babylon.nodeEditor.max.js 3.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("babylonjs"));
  4. else if(typeof define === 'function' && define.amd)
  5. define("babylonjs-node-editor", ["babylonjs"], factory);
  6. else if(typeof exports === 'object')
  7. exports["babylonjs-node-editor"] = factory(require("babylonjs"));
  8. else
  9. root["NODEEDITOR"] = factory(root["BABYLON"]);
  10. })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__) {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = "./legacy/legacy.ts");
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js":
  99. /*!**************************************************************************************!*\
  100. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/fontawesome-svg-core/index.es.js ***!
  101. \**************************************************************************************/
  102. /*! exports provided: icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition */
  103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  104. "use strict";
  105. __webpack_require__.r(__webpack_exports__);
  106. /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "icon", function() { return icon; });
  107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noAuto", function() { return noAuto; });
  108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHtml", function() { return toHtml; });
  110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layer", function() { return layer; });
  111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "text", function() { return text; });
  112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "counter", function() { return counter; });
  113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "library", function() { return library; });
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dom", function() { return dom; });
  115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
  117. function _typeof(obj) {
  118. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  119. _typeof = function (obj) {
  120. return typeof obj;
  121. };
  122. } else {
  123. _typeof = function (obj) {
  124. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  125. };
  126. }
  127. return _typeof(obj);
  128. }
  129. function _classCallCheck(instance, Constructor) {
  130. if (!(instance instanceof Constructor)) {
  131. throw new TypeError("Cannot call a class as a function");
  132. }
  133. }
  134. function _defineProperties(target, props) {
  135. for (var i = 0; i < props.length; i++) {
  136. var descriptor = props[i];
  137. descriptor.enumerable = descriptor.enumerable || false;
  138. descriptor.configurable = true;
  139. if ("value" in descriptor) descriptor.writable = true;
  140. Object.defineProperty(target, descriptor.key, descriptor);
  141. }
  142. }
  143. function _createClass(Constructor, protoProps, staticProps) {
  144. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  145. if (staticProps) _defineProperties(Constructor, staticProps);
  146. return Constructor;
  147. }
  148. function _defineProperty(obj, key, value) {
  149. if (key in obj) {
  150. Object.defineProperty(obj, key, {
  151. value: value,
  152. enumerable: true,
  153. configurable: true,
  154. writable: true
  155. });
  156. } else {
  157. obj[key] = value;
  158. }
  159. return obj;
  160. }
  161. function _objectSpread(target) {
  162. for (var i = 1; i < arguments.length; i++) {
  163. var source = arguments[i] != null ? arguments[i] : {};
  164. var ownKeys = Object.keys(source);
  165. if (typeof Object.getOwnPropertySymbols === 'function') {
  166. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  167. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  168. }));
  169. }
  170. ownKeys.forEach(function (key) {
  171. _defineProperty(target, key, source[key]);
  172. });
  173. }
  174. return target;
  175. }
  176. function _slicedToArray(arr, i) {
  177. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  178. }
  179. function _toConsumableArray(arr) {
  180. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  181. }
  182. function _arrayWithoutHoles(arr) {
  183. if (Array.isArray(arr)) {
  184. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  185. return arr2;
  186. }
  187. }
  188. function _arrayWithHoles(arr) {
  189. if (Array.isArray(arr)) return arr;
  190. }
  191. function _iterableToArray(iter) {
  192. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  193. }
  194. function _iterableToArrayLimit(arr, i) {
  195. var _arr = [];
  196. var _n = true;
  197. var _d = false;
  198. var _e = undefined;
  199. try {
  200. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  201. _arr.push(_s.value);
  202. if (i && _arr.length === i) break;
  203. }
  204. } catch (err) {
  205. _d = true;
  206. _e = err;
  207. } finally {
  208. try {
  209. if (!_n && _i["return"] != null) _i["return"]();
  210. } finally {
  211. if (_d) throw _e;
  212. }
  213. }
  214. return _arr;
  215. }
  216. function _nonIterableSpread() {
  217. throw new TypeError("Invalid attempt to spread non-iterable instance");
  218. }
  219. function _nonIterableRest() {
  220. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  221. }
  222. var noop = function noop() {};
  223. var _WINDOW = {};
  224. var _DOCUMENT = {};
  225. var _MUTATION_OBSERVER = null;
  226. var _PERFORMANCE = {
  227. mark: noop,
  228. measure: noop
  229. };
  230. try {
  231. if (typeof window !== 'undefined') _WINDOW = window;
  232. if (typeof document !== 'undefined') _DOCUMENT = document;
  233. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  234. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  235. } catch (e) {}
  236. var _ref = _WINDOW.navigator || {},
  237. _ref$userAgent = _ref.userAgent,
  238. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  239. var WINDOW = _WINDOW;
  240. var DOCUMENT = _DOCUMENT;
  241. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  242. var PERFORMANCE = _PERFORMANCE;
  243. var IS_BROWSER = !!WINDOW.document;
  244. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  245. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  246. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  247. var UNITS_IN_GRID = 16;
  248. var DEFAULT_FAMILY_PREFIX = 'fa';
  249. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  250. var DATA_FA_I2SVG = 'data-fa-i2svg';
  251. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  252. var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
  253. var DATA_PREFIX = 'data-prefix';
  254. var DATA_ICON = 'data-icon';
  255. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  256. var MUTATION_APPROACH_ASYNC = 'async';
  257. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  258. var PRODUCTION = function () {
  259. try {
  260. return "development" === 'production';
  261. } catch (e) {
  262. return false;
  263. }
  264. }();
  265. var PREFIX_TO_STYLE = {
  266. 'fas': 'solid',
  267. 'far': 'regular',
  268. 'fal': 'light',
  269. 'fab': 'brands',
  270. 'fa': 'solid'
  271. };
  272. var STYLE_TO_PREFIX = {
  273. 'solid': 'fas',
  274. 'regular': 'far',
  275. 'light': 'fal',
  276. 'brands': 'fab'
  277. };
  278. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  279. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  280. var FONT_WEIGHT_TO_PREFIX = {
  281. '900': 'fas',
  282. '400': 'far',
  283. 'normal': 'far',
  284. '300': 'fal'
  285. };
  286. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  287. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  288. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  289. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  290. return "".concat(n, "x");
  291. })).concat(oneToTwenty.map(function (n) {
  292. return "w-".concat(n);
  293. }));
  294. var initial = WINDOW.FontAwesomeConfig || {};
  295. function getAttrConfig(attr) {
  296. var element = DOCUMENT.querySelector('script[' + attr + ']');
  297. if (element) {
  298. return element.getAttribute(attr);
  299. }
  300. }
  301. function coerce(val) {
  302. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  303. // We'll assume that this is an indication that it should be toggled to true
  304. // For example <script data-search-pseudo-elements src="..."></script>
  305. if (val === '') return true;
  306. if (val === 'false') return false;
  307. if (val === 'true') return true;
  308. return val;
  309. }
  310. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  311. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  312. attrs.forEach(function (_ref) {
  313. var _ref2 = _slicedToArray(_ref, 2),
  314. attr = _ref2[0],
  315. key = _ref2[1];
  316. var val = coerce(getAttrConfig(attr));
  317. if (val !== undefined && val !== null) {
  318. initial[key] = val;
  319. }
  320. });
  321. }
  322. var _default = {
  323. familyPrefix: DEFAULT_FAMILY_PREFIX,
  324. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  325. autoReplaceSvg: true,
  326. autoAddCss: true,
  327. autoA11y: true,
  328. searchPseudoElements: false,
  329. observeMutations: true,
  330. mutateApproach: 'async',
  331. keepOriginalSource: true,
  332. measurePerformance: false,
  333. showMissingIcons: true
  334. };
  335. var _config = _objectSpread({}, _default, initial);
  336. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  337. var config = _objectSpread({}, _config);
  338. WINDOW.FontAwesomeConfig = config;
  339. var w = WINDOW || {};
  340. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  341. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  342. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  343. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  344. var namespace = w[NAMESPACE_IDENTIFIER];
  345. var functions = [];
  346. var listener = function listener() {
  347. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  348. loaded = 1;
  349. functions.map(function (fn) {
  350. return fn();
  351. });
  352. };
  353. var loaded = false;
  354. if (IS_DOM) {
  355. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  356. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  357. }
  358. function domready (fn) {
  359. if (!IS_DOM) return;
  360. loaded ? setTimeout(fn, 0) : functions.push(fn);
  361. }
  362. var PENDING = 'pending';
  363. var SETTLED = 'settled';
  364. var FULFILLED = 'fulfilled';
  365. var REJECTED = 'rejected';
  366. var NOOP = function NOOP() {};
  367. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  368. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  369. var asyncQueue = [];
  370. var asyncTimer;
  371. function asyncFlush() {
  372. // run promise callbacks
  373. for (var i = 0; i < asyncQueue.length; i++) {
  374. asyncQueue[i][0](asyncQueue[i][1]);
  375. } // reset async asyncQueue
  376. asyncQueue = [];
  377. asyncTimer = false;
  378. }
  379. function asyncCall(callback, arg) {
  380. asyncQueue.push([callback, arg]);
  381. if (!asyncTimer) {
  382. asyncTimer = true;
  383. asyncSetTimer(asyncFlush, 0);
  384. }
  385. }
  386. function invokeResolver(resolver, promise) {
  387. function resolvePromise(value) {
  388. resolve(promise, value);
  389. }
  390. function rejectPromise(reason) {
  391. reject(promise, reason);
  392. }
  393. try {
  394. resolver(resolvePromise, rejectPromise);
  395. } catch (e) {
  396. rejectPromise(e);
  397. }
  398. }
  399. function invokeCallback(subscriber) {
  400. var owner = subscriber.owner;
  401. var settled = owner._state;
  402. var value = owner._data;
  403. var callback = subscriber[settled];
  404. var promise = subscriber.then;
  405. if (typeof callback === 'function') {
  406. settled = FULFILLED;
  407. try {
  408. value = callback(value);
  409. } catch (e) {
  410. reject(promise, e);
  411. }
  412. }
  413. if (!handleThenable(promise, value)) {
  414. if (settled === FULFILLED) {
  415. resolve(promise, value);
  416. }
  417. if (settled === REJECTED) {
  418. reject(promise, value);
  419. }
  420. }
  421. }
  422. function handleThenable(promise, value) {
  423. var resolved;
  424. try {
  425. if (promise === value) {
  426. throw new TypeError('A promises callback cannot return that same promise.');
  427. }
  428. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  429. // then should be retrieved only once
  430. var then = value.then;
  431. if (typeof then === 'function') {
  432. then.call(value, function (val) {
  433. if (!resolved) {
  434. resolved = true;
  435. if (value === val) {
  436. fulfill(promise, val);
  437. } else {
  438. resolve(promise, val);
  439. }
  440. }
  441. }, function (reason) {
  442. if (!resolved) {
  443. resolved = true;
  444. reject(promise, reason);
  445. }
  446. });
  447. return true;
  448. }
  449. }
  450. } catch (e) {
  451. if (!resolved) {
  452. reject(promise, e);
  453. }
  454. return true;
  455. }
  456. return false;
  457. }
  458. function resolve(promise, value) {
  459. if (promise === value || !handleThenable(promise, value)) {
  460. fulfill(promise, value);
  461. }
  462. }
  463. function fulfill(promise, value) {
  464. if (promise._state === PENDING) {
  465. promise._state = SETTLED;
  466. promise._data = value;
  467. asyncCall(publishFulfillment, promise);
  468. }
  469. }
  470. function reject(promise, reason) {
  471. if (promise._state === PENDING) {
  472. promise._state = SETTLED;
  473. promise._data = reason;
  474. asyncCall(publishRejection, promise);
  475. }
  476. }
  477. function publish(promise) {
  478. promise._then = promise._then.forEach(invokeCallback);
  479. }
  480. function publishFulfillment(promise) {
  481. promise._state = FULFILLED;
  482. publish(promise);
  483. }
  484. function publishRejection(promise) {
  485. promise._state = REJECTED;
  486. publish(promise);
  487. if (!promise._handled && isNode) {
  488. global.process.emit('unhandledRejection', promise._data, promise);
  489. }
  490. }
  491. function notifyRejectionHandled(promise) {
  492. global.process.emit('rejectionHandled', promise);
  493. }
  494. /**
  495. * @class
  496. */
  497. function P(resolver) {
  498. if (typeof resolver !== 'function') {
  499. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  500. }
  501. if (this instanceof P === false) {
  502. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  503. }
  504. this._then = [];
  505. invokeResolver(resolver, this);
  506. }
  507. P.prototype = {
  508. constructor: P,
  509. _state: PENDING,
  510. _then: null,
  511. _data: undefined,
  512. _handled: false,
  513. then: function then(onFulfillment, onRejection) {
  514. var subscriber = {
  515. owner: this,
  516. then: new this.constructor(NOOP),
  517. fulfilled: onFulfillment,
  518. rejected: onRejection
  519. };
  520. if ((onRejection || onFulfillment) && !this._handled) {
  521. this._handled = true;
  522. if (this._state === REJECTED && isNode) {
  523. asyncCall(notifyRejectionHandled, this);
  524. }
  525. }
  526. if (this._state === FULFILLED || this._state === REJECTED) {
  527. // already resolved, call callback async
  528. asyncCall(invokeCallback, subscriber);
  529. } else {
  530. // subscribe
  531. this._then.push(subscriber);
  532. }
  533. return subscriber.then;
  534. },
  535. catch: function _catch(onRejection) {
  536. return this.then(null, onRejection);
  537. }
  538. };
  539. P.all = function (promises) {
  540. if (!Array.isArray(promises)) {
  541. throw new TypeError('You must pass an array to Promise.all().');
  542. }
  543. return new P(function (resolve, reject) {
  544. var results = [];
  545. var remaining = 0;
  546. function resolver(index) {
  547. remaining++;
  548. return function (value) {
  549. results[index] = value;
  550. if (! --remaining) {
  551. resolve(results);
  552. }
  553. };
  554. }
  555. for (var i = 0, promise; i < promises.length; i++) {
  556. promise = promises[i];
  557. if (promise && typeof promise.then === 'function') {
  558. promise.then(resolver(i), reject);
  559. } else {
  560. results[i] = promise;
  561. }
  562. }
  563. if (!remaining) {
  564. resolve(results);
  565. }
  566. });
  567. };
  568. P.race = function (promises) {
  569. if (!Array.isArray(promises)) {
  570. throw new TypeError('You must pass an array to Promise.race().');
  571. }
  572. return new P(function (resolve, reject) {
  573. for (var i = 0, promise; i < promises.length; i++) {
  574. promise = promises[i];
  575. if (promise && typeof promise.then === 'function') {
  576. promise.then(resolve, reject);
  577. } else {
  578. resolve(promise);
  579. }
  580. }
  581. });
  582. };
  583. P.resolve = function (value) {
  584. if (value && _typeof(value) === 'object' && value.constructor === P) {
  585. return value;
  586. }
  587. return new P(function (resolve) {
  588. resolve(value);
  589. });
  590. };
  591. P.reject = function (reason) {
  592. return new P(function (resolve, reject) {
  593. reject(reason);
  594. });
  595. };
  596. var picked = typeof Promise === 'function' ? Promise : P;
  597. var d = UNITS_IN_GRID;
  598. var meaninglessTransform = {
  599. size: 16,
  600. x: 0,
  601. y: 0,
  602. rotate: 0,
  603. flipX: false,
  604. flipY: false
  605. };
  606. function isReserved(name) {
  607. return ~RESERVED_CLASSES.indexOf(name);
  608. }
  609. function insertCss(css) {
  610. if (!css || !IS_DOM) {
  611. return;
  612. }
  613. var style = DOCUMENT.createElement('style');
  614. style.setAttribute('type', 'text/css');
  615. style.innerHTML = css;
  616. var headChildren = DOCUMENT.head.childNodes;
  617. var beforeChild = null;
  618. for (var i = headChildren.length - 1; i > -1; i--) {
  619. var child = headChildren[i];
  620. var tagName = (child.tagName || '').toUpperCase();
  621. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  622. beforeChild = child;
  623. }
  624. }
  625. DOCUMENT.head.insertBefore(style, beforeChild);
  626. return css;
  627. }
  628. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  629. function nextUniqueId() {
  630. var size = 12;
  631. var id = '';
  632. while (size-- > 0) {
  633. id += idPool[Math.random() * 62 | 0];
  634. }
  635. return id;
  636. }
  637. function toArray(obj) {
  638. var array = [];
  639. for (var i = (obj || []).length >>> 0; i--;) {
  640. array[i] = obj[i];
  641. }
  642. return array;
  643. }
  644. function classArray(node) {
  645. if (node.classList) {
  646. return toArray(node.classList);
  647. } else {
  648. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  649. return i;
  650. });
  651. }
  652. }
  653. function getIconName(familyPrefix, cls) {
  654. var parts = cls.split('-');
  655. var prefix = parts[0];
  656. var iconName = parts.slice(1).join('-');
  657. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  658. return iconName;
  659. } else {
  660. return null;
  661. }
  662. }
  663. function htmlEscape(str) {
  664. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  665. }
  666. function joinAttributes(attributes) {
  667. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  668. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  669. }, '').trim();
  670. }
  671. function joinStyles(styles) {
  672. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  673. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  674. }, '');
  675. }
  676. function transformIsMeaningful(transform) {
  677. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  678. }
  679. function transformForSvg(_ref) {
  680. var transform = _ref.transform,
  681. containerWidth = _ref.containerWidth,
  682. iconWidth = _ref.iconWidth;
  683. var outer = {
  684. transform: "translate(".concat(containerWidth / 2, " 256)")
  685. };
  686. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  687. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  688. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  689. var inner = {
  690. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  691. };
  692. var path = {
  693. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  694. };
  695. return {
  696. outer: outer,
  697. inner: inner,
  698. path: path
  699. };
  700. }
  701. function transformForCss(_ref2) {
  702. var transform = _ref2.transform,
  703. _ref2$width = _ref2.width,
  704. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  705. _ref2$height = _ref2.height,
  706. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  707. _ref2$startCentered = _ref2.startCentered,
  708. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  709. var val = '';
  710. if (startCentered && IS_IE) {
  711. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  712. } else if (startCentered) {
  713. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  714. } else {
  715. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  716. }
  717. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  718. val += "rotate(".concat(transform.rotate, "deg) ");
  719. return val;
  720. }
  721. var ALL_SPACE = {
  722. x: 0,
  723. y: 0,
  724. width: '100%',
  725. height: '100%'
  726. };
  727. function makeIconMasking (_ref) {
  728. var children = _ref.children,
  729. attributes = _ref.attributes,
  730. main = _ref.main,
  731. mask = _ref.mask,
  732. transform = _ref.transform;
  733. var mainWidth = main.width,
  734. mainPath = main.icon;
  735. var maskWidth = mask.width,
  736. maskPath = mask.icon;
  737. var trans = transformForSvg({
  738. transform: transform,
  739. containerWidth: maskWidth,
  740. iconWidth: mainWidth
  741. });
  742. var maskRect = {
  743. tag: 'rect',
  744. attributes: _objectSpread({}, ALL_SPACE, {
  745. fill: 'white'
  746. })
  747. };
  748. var maskInnerGroup = {
  749. tag: 'g',
  750. attributes: _objectSpread({}, trans.inner),
  751. children: [{
  752. tag: 'path',
  753. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  754. fill: 'black'
  755. })
  756. }]
  757. };
  758. var maskOuterGroup = {
  759. tag: 'g',
  760. attributes: _objectSpread({}, trans.outer),
  761. children: [maskInnerGroup]
  762. };
  763. var maskId = "mask-".concat(nextUniqueId());
  764. var clipId = "clip-".concat(nextUniqueId());
  765. var maskTag = {
  766. tag: 'mask',
  767. attributes: _objectSpread({}, ALL_SPACE, {
  768. id: maskId,
  769. maskUnits: 'userSpaceOnUse',
  770. maskContentUnits: 'userSpaceOnUse'
  771. }),
  772. children: [maskRect, maskOuterGroup]
  773. };
  774. var defs = {
  775. tag: 'defs',
  776. children: [{
  777. tag: 'clipPath',
  778. attributes: {
  779. id: clipId
  780. },
  781. children: [maskPath]
  782. }, maskTag]
  783. };
  784. children.push(defs, {
  785. tag: 'rect',
  786. attributes: _objectSpread({
  787. fill: 'currentColor',
  788. 'clip-path': "url(#".concat(clipId, ")"),
  789. mask: "url(#".concat(maskId, ")")
  790. }, ALL_SPACE)
  791. });
  792. return {
  793. children: children,
  794. attributes: attributes
  795. };
  796. }
  797. function makeIconStandard (_ref) {
  798. var children = _ref.children,
  799. attributes = _ref.attributes,
  800. main = _ref.main,
  801. transform = _ref.transform,
  802. styles = _ref.styles;
  803. var styleString = joinStyles(styles);
  804. if (styleString.length > 0) {
  805. attributes['style'] = styleString;
  806. }
  807. if (transformIsMeaningful(transform)) {
  808. var trans = transformForSvg({
  809. transform: transform,
  810. containerWidth: main.width,
  811. iconWidth: main.width
  812. });
  813. children.push({
  814. tag: 'g',
  815. attributes: _objectSpread({}, trans.outer),
  816. children: [{
  817. tag: 'g',
  818. attributes: _objectSpread({}, trans.inner),
  819. children: [{
  820. tag: main.icon.tag,
  821. children: main.icon.children,
  822. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  823. }]
  824. }]
  825. });
  826. } else {
  827. children.push(main.icon);
  828. }
  829. return {
  830. children: children,
  831. attributes: attributes
  832. };
  833. }
  834. function asIcon (_ref) {
  835. var children = _ref.children,
  836. main = _ref.main,
  837. mask = _ref.mask,
  838. attributes = _ref.attributes,
  839. styles = _ref.styles,
  840. transform = _ref.transform;
  841. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  842. var width = main.width,
  843. height = main.height;
  844. var offset = {
  845. x: width / height / 2,
  846. y: 0.5
  847. };
  848. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  849. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  850. }));
  851. }
  852. return [{
  853. tag: 'svg',
  854. attributes: attributes,
  855. children: children
  856. }];
  857. }
  858. function asSymbol (_ref) {
  859. var prefix = _ref.prefix,
  860. iconName = _ref.iconName,
  861. children = _ref.children,
  862. attributes = _ref.attributes,
  863. symbol = _ref.symbol;
  864. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  865. return [{
  866. tag: 'svg',
  867. attributes: {
  868. style: 'display: none;'
  869. },
  870. children: [{
  871. tag: 'symbol',
  872. attributes: _objectSpread({}, attributes, {
  873. id: id
  874. }),
  875. children: children
  876. }]
  877. }];
  878. }
  879. function makeInlineSvgAbstract(params) {
  880. var _params$icons = params.icons,
  881. main = _params$icons.main,
  882. mask = _params$icons.mask,
  883. prefix = params.prefix,
  884. iconName = params.iconName,
  885. transform = params.transform,
  886. symbol = params.symbol,
  887. title = params.title,
  888. extra = params.extra,
  889. _params$watchable = params.watchable,
  890. watchable = _params$watchable === void 0 ? false : _params$watchable;
  891. var _ref = mask.found ? mask : main,
  892. width = _ref.width,
  893. height = _ref.height;
  894. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  895. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  896. return extra.classes.indexOf(c) === -1;
  897. }).concat(extra.classes).join(' ');
  898. var content = {
  899. children: [],
  900. attributes: _objectSpread({}, extra.attributes, {
  901. 'data-prefix': prefix,
  902. 'data-icon': iconName,
  903. 'class': attrClass,
  904. 'role': extra.attributes.role || 'img',
  905. 'xmlns': 'http://www.w3.org/2000/svg',
  906. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  907. })
  908. };
  909. if (watchable) {
  910. content.attributes[DATA_FA_I2SVG] = '';
  911. }
  912. if (title) content.children.push({
  913. tag: 'title',
  914. attributes: {
  915. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  916. },
  917. children: [title]
  918. });
  919. var args = _objectSpread({}, content, {
  920. prefix: prefix,
  921. iconName: iconName,
  922. main: main,
  923. mask: mask,
  924. transform: transform,
  925. symbol: symbol,
  926. styles: extra.styles
  927. });
  928. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  929. children = _ref2.children,
  930. attributes = _ref2.attributes;
  931. args.children = children;
  932. args.attributes = attributes;
  933. if (symbol) {
  934. return asSymbol(args);
  935. } else {
  936. return asIcon(args);
  937. }
  938. }
  939. function makeLayersTextAbstract(params) {
  940. var content = params.content,
  941. width = params.width,
  942. height = params.height,
  943. transform = params.transform,
  944. title = params.title,
  945. extra = params.extra,
  946. _params$watchable2 = params.watchable,
  947. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  948. var attributes = _objectSpread({}, extra.attributes, title ? {
  949. 'title': title
  950. } : {}, {
  951. 'class': extra.classes.join(' ')
  952. });
  953. if (watchable) {
  954. attributes[DATA_FA_I2SVG] = '';
  955. }
  956. var styles = _objectSpread({}, extra.styles);
  957. if (transformIsMeaningful(transform)) {
  958. styles['transform'] = transformForCss({
  959. transform: transform,
  960. startCentered: true,
  961. width: width,
  962. height: height
  963. });
  964. styles['-webkit-transform'] = styles['transform'];
  965. }
  966. var styleString = joinStyles(styles);
  967. if (styleString.length > 0) {
  968. attributes['style'] = styleString;
  969. }
  970. var val = [];
  971. val.push({
  972. tag: 'span',
  973. attributes: attributes,
  974. children: [content]
  975. });
  976. if (title) {
  977. val.push({
  978. tag: 'span',
  979. attributes: {
  980. class: 'sr-only'
  981. },
  982. children: [title]
  983. });
  984. }
  985. return val;
  986. }
  987. function makeLayersCounterAbstract(params) {
  988. var content = params.content,
  989. title = params.title,
  990. extra = params.extra;
  991. var attributes = _objectSpread({}, extra.attributes, title ? {
  992. 'title': title
  993. } : {}, {
  994. 'class': extra.classes.join(' ')
  995. });
  996. var styleString = joinStyles(extra.styles);
  997. if (styleString.length > 0) {
  998. attributes['style'] = styleString;
  999. }
  1000. var val = [];
  1001. val.push({
  1002. tag: 'span',
  1003. attributes: attributes,
  1004. children: [content]
  1005. });
  1006. if (title) {
  1007. val.push({
  1008. tag: 'span',
  1009. attributes: {
  1010. class: 'sr-only'
  1011. },
  1012. children: [title]
  1013. });
  1014. }
  1015. return val;
  1016. }
  1017. var noop$1 = function noop() {};
  1018. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  1019. mark: noop$1,
  1020. measure: noop$1
  1021. };
  1022. var preamble = "FA \"5.9.0\"";
  1023. var begin = function begin(name) {
  1024. p.mark("".concat(preamble, " ").concat(name, " begins"));
  1025. return function () {
  1026. return end(name);
  1027. };
  1028. };
  1029. var end = function end(name) {
  1030. p.mark("".concat(preamble, " ").concat(name, " ends"));
  1031. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  1032. };
  1033. var perf = {
  1034. begin: begin,
  1035. end: end
  1036. };
  1037. /**
  1038. * Internal helper to bind a function known to have 4 arguments
  1039. * to a given context.
  1040. */
  1041. var bindInternal4 = function bindInternal4(func, thisContext) {
  1042. return function (a, b, c, d) {
  1043. return func.call(thisContext, a, b, c, d);
  1044. };
  1045. };
  1046. /**
  1047. * # Reduce
  1048. *
  1049. * A fast object `.reduce()` implementation.
  1050. *
  1051. * @param {Object} subject The object to reduce over.
  1052. * @param {Function} fn The reducer function.
  1053. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  1054. * @param {Object} thisContext The context for the reducer.
  1055. * @return {mixed} The final result.
  1056. */
  1057. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  1058. var keys = Object.keys(subject),
  1059. length = keys.length,
  1060. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  1061. i,
  1062. key,
  1063. result;
  1064. if (initialValue === undefined) {
  1065. i = 1;
  1066. result = subject[keys[0]];
  1067. } else {
  1068. i = 0;
  1069. result = initialValue;
  1070. }
  1071. for (; i < length; i++) {
  1072. key = keys[i];
  1073. result = iterator(result, subject[key], key, subject);
  1074. }
  1075. return result;
  1076. };
  1077. function toHex(unicode) {
  1078. var result = '';
  1079. for (var i = 0; i < unicode.length; i++) {
  1080. var hex = unicode.charCodeAt(i).toString(16);
  1081. result += ('000' + hex).slice(-4);
  1082. }
  1083. return result;
  1084. }
  1085. function defineIcons(prefix, icons) {
  1086. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1087. var _params$skipHooks = params.skipHooks,
  1088. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  1089. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1090. var icon = icons[iconName];
  1091. var expanded = !!icon.icon;
  1092. if (expanded) {
  1093. acc[icon.iconName] = icon.icon;
  1094. } else {
  1095. acc[iconName] = icon;
  1096. }
  1097. return acc;
  1098. }, {});
  1099. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  1100. namespace.hooks.addPack(prefix, normalized);
  1101. } else {
  1102. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1103. }
  1104. /**
  1105. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1106. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1107. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1108. * this as well.
  1109. */
  1110. if (prefix === 'fas') {
  1111. defineIcons('fa', icons);
  1112. }
  1113. }
  1114. var styles = namespace.styles,
  1115. shims = namespace.shims;
  1116. var _byUnicode = {};
  1117. var _byLigature = {};
  1118. var _byOldName = {};
  1119. var build = function build() {
  1120. var lookup = function lookup(reducer) {
  1121. return reduce(styles, function (o, style, prefix) {
  1122. o[prefix] = reduce(style, reducer, {});
  1123. return o;
  1124. }, {});
  1125. };
  1126. _byUnicode = lookup(function (acc, icon, iconName) {
  1127. if (icon[3]) {
  1128. acc[icon[3]] = iconName;
  1129. }
  1130. return acc;
  1131. });
  1132. _byLigature = lookup(function (acc, icon, iconName) {
  1133. var ligatures = icon[2];
  1134. acc[iconName] = iconName;
  1135. ligatures.forEach(function (ligature) {
  1136. acc[ligature] = iconName;
  1137. });
  1138. return acc;
  1139. });
  1140. var hasRegular = 'far' in styles;
  1141. _byOldName = reduce(shims, function (acc, shim) {
  1142. var oldName = shim[0];
  1143. var prefix = shim[1];
  1144. var iconName = shim[2];
  1145. if (prefix === 'far' && !hasRegular) {
  1146. prefix = 'fas';
  1147. }
  1148. acc[oldName] = {
  1149. prefix: prefix,
  1150. iconName: iconName
  1151. };
  1152. return acc;
  1153. }, {});
  1154. };
  1155. build();
  1156. function byUnicode(prefix, unicode) {
  1157. return (_byUnicode[prefix] || {})[unicode];
  1158. }
  1159. function byLigature(prefix, ligature) {
  1160. return (_byLigature[prefix] || {})[ligature];
  1161. }
  1162. function byOldName(name) {
  1163. return _byOldName[name] || {
  1164. prefix: null,
  1165. iconName: null
  1166. };
  1167. }
  1168. var styles$1 = namespace.styles;
  1169. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  1170. return {
  1171. prefix: null,
  1172. iconName: null,
  1173. rest: []
  1174. };
  1175. };
  1176. function getCanonicalIcon(values) {
  1177. return values.reduce(function (acc, cls) {
  1178. var iconName = getIconName(config.familyPrefix, cls);
  1179. if (styles$1[cls]) {
  1180. acc.prefix = cls;
  1181. } else if (config.autoFetchSvg && ['fas', 'far', 'fal', 'fab', 'fa'].indexOf(cls) > -1) {
  1182. acc.prefix = cls;
  1183. } else if (iconName) {
  1184. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  1185. acc.iconName = shim.iconName || iconName;
  1186. acc.prefix = shim.prefix || acc.prefix;
  1187. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  1188. acc.rest.push(cls);
  1189. }
  1190. return acc;
  1191. }, emptyCanonicalIcon());
  1192. }
  1193. function iconFromMapping(mapping, prefix, iconName) {
  1194. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  1195. return {
  1196. prefix: prefix,
  1197. iconName: iconName,
  1198. icon: mapping[prefix][iconName]
  1199. };
  1200. }
  1201. }
  1202. function toHtml(abstractNodes) {
  1203. var tag = abstractNodes.tag,
  1204. _abstractNodes$attrib = abstractNodes.attributes,
  1205. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  1206. _abstractNodes$childr = abstractNodes.children,
  1207. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  1208. if (typeof abstractNodes === 'string') {
  1209. return htmlEscape(abstractNodes);
  1210. } else {
  1211. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  1212. }
  1213. }
  1214. var noop$2 = function noop() {};
  1215. function isWatched(node) {
  1216. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  1217. return typeof i2svg === 'string';
  1218. }
  1219. function getMutator() {
  1220. if (config.autoReplaceSvg === true) {
  1221. return mutators.replace;
  1222. }
  1223. var mutator = mutators[config.autoReplaceSvg];
  1224. return mutator || mutators.replace;
  1225. }
  1226. var mutators = {
  1227. replace: function replace(mutation) {
  1228. var node = mutation[0];
  1229. var abstract = mutation[1];
  1230. var newOuterHTML = abstract.map(function (a) {
  1231. return toHtml(a);
  1232. }).join('\n');
  1233. if (node.parentNode && node.outerHTML) {
  1234. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  1235. } else if (node.parentNode) {
  1236. var newNode = document.createElement('span');
  1237. node.parentNode.replaceChild(newNode, node);
  1238. newNode.outerHTML = newOuterHTML;
  1239. }
  1240. },
  1241. nest: function nest(mutation) {
  1242. var node = mutation[0];
  1243. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  1244. // Short-circuit to the standard replacement
  1245. if (~classArray(node).indexOf(config.replacementClass)) {
  1246. return mutators.replace(mutation);
  1247. }
  1248. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  1249. delete abstract[0].attributes.style;
  1250. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  1251. if (cls === config.replacementClass || cls.match(forSvg)) {
  1252. acc.toSvg.push(cls);
  1253. } else {
  1254. acc.toNode.push(cls);
  1255. }
  1256. return acc;
  1257. }, {
  1258. toNode: [],
  1259. toSvg: []
  1260. });
  1261. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  1262. var newInnerHTML = abstract.map(function (a) {
  1263. return toHtml(a);
  1264. }).join('\n');
  1265. node.setAttribute('class', splitClasses.toNode.join(' '));
  1266. node.setAttribute(DATA_FA_I2SVG, '');
  1267. node.innerHTML = newInnerHTML;
  1268. }
  1269. };
  1270. function performOperationSync(op) {
  1271. op();
  1272. }
  1273. function perform(mutations, callback) {
  1274. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  1275. if (mutations.length === 0) {
  1276. callbackFunction();
  1277. } else {
  1278. var frame = performOperationSync;
  1279. if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
  1280. frame = WINDOW.requestAnimationFrame || performOperationSync;
  1281. }
  1282. frame(function () {
  1283. var mutator = getMutator();
  1284. var mark = perf.begin('mutate');
  1285. mutations.map(mutator);
  1286. mark();
  1287. callbackFunction();
  1288. });
  1289. }
  1290. }
  1291. var disabled = false;
  1292. function disableObservation() {
  1293. disabled = true;
  1294. }
  1295. function enableObservation() {
  1296. disabled = false;
  1297. }
  1298. var mo = null;
  1299. function observe(options) {
  1300. if (!MUTATION_OBSERVER) {
  1301. return;
  1302. }
  1303. if (!config.observeMutations) {
  1304. return;
  1305. }
  1306. var treeCallback = options.treeCallback,
  1307. nodeCallback = options.nodeCallback,
  1308. pseudoElementsCallback = options.pseudoElementsCallback,
  1309. _options$observeMutat = options.observeMutationsRoot,
  1310. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  1311. mo = new MUTATION_OBSERVER(function (objects) {
  1312. if (disabled) return;
  1313. toArray(objects).forEach(function (mutationRecord) {
  1314. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  1315. if (config.searchPseudoElements) {
  1316. pseudoElementsCallback(mutationRecord.target);
  1317. }
  1318. treeCallback(mutationRecord.target);
  1319. }
  1320. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1321. pseudoElementsCallback(mutationRecord.target.parentNode);
  1322. }
  1323. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1324. if (mutationRecord.attributeName === 'class') {
  1325. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1326. prefix = _getCanonicalIcon.prefix,
  1327. iconName = _getCanonicalIcon.iconName;
  1328. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1329. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1330. } else {
  1331. nodeCallback(mutationRecord.target);
  1332. }
  1333. }
  1334. });
  1335. });
  1336. if (!IS_DOM) return;
  1337. mo.observe(observeMutationsRoot, {
  1338. childList: true,
  1339. attributes: true,
  1340. characterData: true,
  1341. subtree: true
  1342. });
  1343. }
  1344. function disconnect() {
  1345. if (!mo) return;
  1346. mo.disconnect();
  1347. }
  1348. function styleParser (node) {
  1349. var style = node.getAttribute('style');
  1350. var val = [];
  1351. if (style) {
  1352. val = style.split(';').reduce(function (acc, style) {
  1353. var styles = style.split(':');
  1354. var prop = styles[0];
  1355. var value = styles.slice(1);
  1356. if (prop && value.length > 0) {
  1357. acc[prop] = value.join(':').trim();
  1358. }
  1359. return acc;
  1360. }, {});
  1361. }
  1362. return val;
  1363. }
  1364. function classParser (node) {
  1365. var existingPrefix = node.getAttribute('data-prefix');
  1366. var existingIconName = node.getAttribute('data-icon');
  1367. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1368. var val = getCanonicalIcon(classArray(node));
  1369. if (existingPrefix && existingIconName) {
  1370. val.prefix = existingPrefix;
  1371. val.iconName = existingIconName;
  1372. }
  1373. if (val.prefix && innerText.length > 1) {
  1374. val.iconName = byLigature(val.prefix, node.innerText);
  1375. } else if (val.prefix && innerText.length === 1) {
  1376. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1377. }
  1378. return val;
  1379. }
  1380. var parseTransformString = function parseTransformString(transformString) {
  1381. var transform = {
  1382. size: 16,
  1383. x: 0,
  1384. y: 0,
  1385. flipX: false,
  1386. flipY: false,
  1387. rotate: 0
  1388. };
  1389. if (!transformString) {
  1390. return transform;
  1391. } else {
  1392. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1393. var parts = n.toLowerCase().split('-');
  1394. var first = parts[0];
  1395. var rest = parts.slice(1).join('-');
  1396. if (first && rest === 'h') {
  1397. acc.flipX = true;
  1398. return acc;
  1399. }
  1400. if (first && rest === 'v') {
  1401. acc.flipY = true;
  1402. return acc;
  1403. }
  1404. rest = parseFloat(rest);
  1405. if (isNaN(rest)) {
  1406. return acc;
  1407. }
  1408. switch (first) {
  1409. case 'grow':
  1410. acc.size = acc.size + rest;
  1411. break;
  1412. case 'shrink':
  1413. acc.size = acc.size - rest;
  1414. break;
  1415. case 'left':
  1416. acc.x = acc.x - rest;
  1417. break;
  1418. case 'right':
  1419. acc.x = acc.x + rest;
  1420. break;
  1421. case 'up':
  1422. acc.y = acc.y - rest;
  1423. break;
  1424. case 'down':
  1425. acc.y = acc.y + rest;
  1426. break;
  1427. case 'rotate':
  1428. acc.rotate = acc.rotate + rest;
  1429. break;
  1430. }
  1431. return acc;
  1432. }, transform);
  1433. }
  1434. };
  1435. function transformParser (node) {
  1436. return parseTransformString(node.getAttribute('data-fa-transform'));
  1437. }
  1438. function symbolParser (node) {
  1439. var symbol = node.getAttribute('data-fa-symbol');
  1440. return symbol === null ? false : symbol === '' ? true : symbol;
  1441. }
  1442. function attributesParser (node) {
  1443. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1444. if (acc.name !== 'class' && acc.name !== 'style') {
  1445. acc[attr.name] = attr.value;
  1446. }
  1447. return acc;
  1448. }, {});
  1449. var title = node.getAttribute('title');
  1450. if (config.autoA11y) {
  1451. if (title) {
  1452. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1453. } else {
  1454. extraAttributes['aria-hidden'] = 'true';
  1455. extraAttributes['focusable'] = 'false';
  1456. }
  1457. }
  1458. return extraAttributes;
  1459. }
  1460. function maskParser (node) {
  1461. var mask = node.getAttribute('data-fa-mask');
  1462. if (!mask) {
  1463. return emptyCanonicalIcon();
  1464. } else {
  1465. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1466. return i.trim();
  1467. }));
  1468. }
  1469. }
  1470. function blankMeta() {
  1471. return {
  1472. iconName: null,
  1473. title: null,
  1474. prefix: null,
  1475. transform: meaninglessTransform,
  1476. symbol: false,
  1477. mask: null,
  1478. extra: {
  1479. classes: [],
  1480. styles: {},
  1481. attributes: {}
  1482. }
  1483. };
  1484. }
  1485. function parseMeta(node) {
  1486. var _classParser = classParser(node),
  1487. iconName = _classParser.iconName,
  1488. prefix = _classParser.prefix,
  1489. extraClasses = _classParser.rest;
  1490. var extraStyles = styleParser(node);
  1491. var transform = transformParser(node);
  1492. var symbol = symbolParser(node);
  1493. var extraAttributes = attributesParser(node);
  1494. var mask = maskParser(node);
  1495. return {
  1496. iconName: iconName,
  1497. title: node.getAttribute('title'),
  1498. prefix: prefix,
  1499. transform: transform,
  1500. symbol: symbol,
  1501. mask: mask,
  1502. extra: {
  1503. classes: extraClasses,
  1504. styles: extraStyles,
  1505. attributes: extraAttributes
  1506. }
  1507. };
  1508. }
  1509. function MissingIcon(error) {
  1510. this.name = 'MissingIcon';
  1511. this.message = error || 'Icon unavailable';
  1512. this.stack = new Error().stack;
  1513. }
  1514. MissingIcon.prototype = Object.create(Error.prototype);
  1515. MissingIcon.prototype.constructor = MissingIcon;
  1516. var FILL = {
  1517. fill: 'currentColor'
  1518. };
  1519. var ANIMATION_BASE = {
  1520. attributeType: 'XML',
  1521. repeatCount: 'indefinite',
  1522. dur: '2s'
  1523. };
  1524. var RING = {
  1525. tag: 'path',
  1526. attributes: _objectSpread({}, FILL, {
  1527. d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
  1528. })
  1529. };
  1530. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1531. attributeName: 'opacity'
  1532. });
  1533. var DOT = {
  1534. tag: 'circle',
  1535. attributes: _objectSpread({}, FILL, {
  1536. cx: '256',
  1537. cy: '364',
  1538. r: '28'
  1539. }),
  1540. children: [{
  1541. tag: 'animate',
  1542. attributes: _objectSpread({}, ANIMATION_BASE, {
  1543. attributeName: 'r',
  1544. values: '28;14;28;28;14;28;'
  1545. })
  1546. }, {
  1547. tag: 'animate',
  1548. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1549. values: '1;0;1;1;0;1;'
  1550. })
  1551. }]
  1552. };
  1553. var QUESTION = {
  1554. tag: 'path',
  1555. attributes: _objectSpread({}, FILL, {
  1556. opacity: '1',
  1557. d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
  1558. }),
  1559. children: [{
  1560. tag: 'animate',
  1561. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1562. values: '1;0;0;0;0;1;'
  1563. })
  1564. }]
  1565. };
  1566. var EXCLAMATION = {
  1567. tag: 'path',
  1568. attributes: _objectSpread({}, FILL, {
  1569. opacity: '0',
  1570. d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
  1571. }),
  1572. children: [{
  1573. tag: 'animate',
  1574. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1575. values: '0;0;1;1;0;0;'
  1576. })
  1577. }]
  1578. };
  1579. var missing = {
  1580. tag: 'g',
  1581. children: [RING, DOT, QUESTION, EXCLAMATION]
  1582. };
  1583. var styles$2 = namespace.styles;
  1584. function findIcon(iconName, prefix) {
  1585. return new picked(function (resolve, reject) {
  1586. var val = {
  1587. found: false,
  1588. width: 512,
  1589. height: 512,
  1590. icon: missing
  1591. };
  1592. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1593. var icon = styles$2[prefix][iconName];
  1594. var width = icon[0];
  1595. var height = icon[1];
  1596. var vectorData = icon.slice(4);
  1597. val = {
  1598. found: true,
  1599. width: width,
  1600. height: height,
  1601. icon: {
  1602. tag: 'path',
  1603. attributes: {
  1604. fill: 'currentColor',
  1605. d: vectorData[0]
  1606. }
  1607. }
  1608. };
  1609. return resolve(val);
  1610. }
  1611. if (iconName && prefix && !config.showMissingIcons) {
  1612. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  1613. } else {
  1614. resolve(val);
  1615. }
  1616. });
  1617. }
  1618. var styles$3 = namespace.styles;
  1619. function generateSvgReplacementMutation(node, nodeMeta) {
  1620. var iconName = nodeMeta.iconName,
  1621. title = nodeMeta.title,
  1622. prefix = nodeMeta.prefix,
  1623. transform = nodeMeta.transform,
  1624. symbol = nodeMeta.symbol,
  1625. mask = nodeMeta.mask,
  1626. extra = nodeMeta.extra;
  1627. return new picked(function (resolve, reject) {
  1628. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  1629. var _ref2 = _slicedToArray(_ref, 2),
  1630. main = _ref2[0],
  1631. mask = _ref2[1];
  1632. resolve([node, makeInlineSvgAbstract({
  1633. icons: {
  1634. main: main,
  1635. mask: mask
  1636. },
  1637. prefix: prefix,
  1638. iconName: iconName,
  1639. transform: transform,
  1640. symbol: symbol,
  1641. mask: mask,
  1642. title: title,
  1643. extra: extra,
  1644. watchable: true
  1645. })]);
  1646. });
  1647. });
  1648. }
  1649. function generateLayersText(node, nodeMeta) {
  1650. var title = nodeMeta.title,
  1651. transform = nodeMeta.transform,
  1652. extra = nodeMeta.extra;
  1653. var width = null;
  1654. var height = null;
  1655. if (IS_IE) {
  1656. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1657. var boundingClientRect = node.getBoundingClientRect();
  1658. width = boundingClientRect.width / computedFontSize;
  1659. height = boundingClientRect.height / computedFontSize;
  1660. }
  1661. if (config.autoA11y && !title) {
  1662. extra.attributes['aria-hidden'] = 'true';
  1663. }
  1664. return picked.resolve([node, makeLayersTextAbstract({
  1665. content: node.innerHTML,
  1666. width: width,
  1667. height: height,
  1668. transform: transform,
  1669. title: title,
  1670. extra: extra,
  1671. watchable: true
  1672. })]);
  1673. }
  1674. function generateMutation(node) {
  1675. var nodeMeta = parseMeta(node);
  1676. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1677. return generateLayersText(node, nodeMeta);
  1678. } else {
  1679. return generateSvgReplacementMutation(node, nodeMeta);
  1680. }
  1681. }
  1682. function onTree(root) {
  1683. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1684. if (!IS_DOM) return;
  1685. var htmlClassList = DOCUMENT.documentElement.classList;
  1686. var hclAdd = function hclAdd(suffix) {
  1687. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1688. };
  1689. var hclRemove = function hclRemove(suffix) {
  1690. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1691. };
  1692. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  1693. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1694. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1695. })).join(', ');
  1696. if (prefixesDomQuery.length === 0) {
  1697. return;
  1698. }
  1699. var candidates = [];
  1700. try {
  1701. candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1702. } catch (e) {// noop
  1703. }
  1704. if (candidates.length > 0) {
  1705. hclAdd('pending');
  1706. hclRemove('complete');
  1707. } else {
  1708. return;
  1709. }
  1710. var mark = perf.begin('onTree');
  1711. var mutations = candidates.reduce(function (acc, node) {
  1712. try {
  1713. var mutation = generateMutation(node);
  1714. if (mutation) {
  1715. acc.push(mutation);
  1716. }
  1717. } catch (e) {
  1718. if (!PRODUCTION) {
  1719. if (e instanceof MissingIcon) {
  1720. console.error(e);
  1721. }
  1722. }
  1723. }
  1724. return acc;
  1725. }, []);
  1726. return new picked(function (resolve, reject) {
  1727. picked.all(mutations).then(function (resolvedMutations) {
  1728. perform(resolvedMutations, function () {
  1729. hclAdd('active');
  1730. hclAdd('complete');
  1731. hclRemove('pending');
  1732. if (typeof callback === 'function') callback();
  1733. mark();
  1734. resolve();
  1735. });
  1736. }).catch(function () {
  1737. mark();
  1738. reject();
  1739. });
  1740. });
  1741. }
  1742. function onNode(node) {
  1743. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1744. generateMutation(node).then(function (mutation) {
  1745. if (mutation) {
  1746. perform([mutation], callback);
  1747. }
  1748. });
  1749. }
  1750. function replaceForPosition(node, position) {
  1751. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  1752. return new picked(function (resolve, reject) {
  1753. if (node.getAttribute(pendingAttribute) !== null) {
  1754. // This node is already being processed
  1755. return resolve();
  1756. }
  1757. var children = toArray(node.children);
  1758. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1759. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  1760. })[0];
  1761. var styles = WINDOW.getComputedStyle(node, position);
  1762. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1763. var fontWeight = styles.getPropertyValue('font-weight');
  1764. if (alreadyProcessedPseudoElement && !fontFamily) {
  1765. // If we've already processed it but the current computed style does not result in a font-family,
  1766. // that probably means that a class name that was previously present to make the icon has been
  1767. // removed. So we now should delete the icon.
  1768. node.removeChild(alreadyProcessedPseudoElement);
  1769. return resolve();
  1770. } else if (fontFamily) {
  1771. var content = styles.getPropertyValue('content');
  1772. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1773. var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
  1774. var iconName = byUnicode(prefix, hexValue);
  1775. var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1776. // already done so with the same prefix and iconName
  1777. if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
  1778. node.setAttribute(pendingAttribute, iconIdentifier);
  1779. if (alreadyProcessedPseudoElement) {
  1780. // Delete the old one, since we're replacing it with a new one
  1781. node.removeChild(alreadyProcessedPseudoElement);
  1782. }
  1783. var meta = blankMeta();
  1784. var extra = meta.extra;
  1785. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  1786. findIcon(iconName, prefix).then(function (main) {
  1787. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  1788. icons: {
  1789. main: main,
  1790. mask: emptyCanonicalIcon()
  1791. },
  1792. prefix: prefix,
  1793. iconName: iconIdentifier,
  1794. extra: extra,
  1795. watchable: true
  1796. }));
  1797. var element = DOCUMENT.createElement('svg');
  1798. if (position === ':before') {
  1799. node.insertBefore(element, node.firstChild);
  1800. } else {
  1801. node.appendChild(element);
  1802. }
  1803. element.outerHTML = abstract.map(function (a) {
  1804. return toHtml(a);
  1805. }).join('\n');
  1806. node.removeAttribute(pendingAttribute);
  1807. resolve();
  1808. }).catch(reject);
  1809. } else {
  1810. resolve();
  1811. }
  1812. } else {
  1813. resolve();
  1814. }
  1815. });
  1816. }
  1817. function replace(node) {
  1818. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  1819. }
  1820. function processable(node) {
  1821. return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
  1822. }
  1823. function searchPseudoElements (root) {
  1824. if (!IS_DOM) return;
  1825. return new picked(function (resolve, reject) {
  1826. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  1827. var end = perf.begin('searchPseudoElements');
  1828. disableObservation();
  1829. picked.all(operations).then(function () {
  1830. end();
  1831. enableObservation();
  1832. resolve();
  1833. }).catch(function () {
  1834. end();
  1835. enableObservation();
  1836. reject();
  1837. });
  1838. });
  1839. }
  1840. var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}";
  1841. function css () {
  1842. var dfp = DEFAULT_FAMILY_PREFIX;
  1843. var drc = DEFAULT_REPLACEMENT_CLASS;
  1844. var fp = config.familyPrefix;
  1845. var rc = config.replacementClass;
  1846. var s = baseStyles;
  1847. if (fp !== dfp || rc !== drc) {
  1848. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1849. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1850. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1851. }
  1852. return s;
  1853. }
  1854. var Library =
  1855. /*#__PURE__*/
  1856. function () {
  1857. function Library() {
  1858. _classCallCheck(this, Library);
  1859. this.definitions = {};
  1860. }
  1861. _createClass(Library, [{
  1862. key: "add",
  1863. value: function add() {
  1864. var _this = this;
  1865. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1866. definitions[_key] = arguments[_key];
  1867. }
  1868. var additions = definitions.reduce(this._pullDefinitions, {});
  1869. Object.keys(additions).forEach(function (key) {
  1870. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1871. defineIcons(key, additions[key]);
  1872. build();
  1873. });
  1874. }
  1875. }, {
  1876. key: "reset",
  1877. value: function reset() {
  1878. this.definitions = {};
  1879. }
  1880. }, {
  1881. key: "_pullDefinitions",
  1882. value: function _pullDefinitions(additions, definition) {
  1883. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1884. 0: definition
  1885. } : definition;
  1886. Object.keys(normalized).map(function (key) {
  1887. var _normalized$key = normalized[key],
  1888. prefix = _normalized$key.prefix,
  1889. iconName = _normalized$key.iconName,
  1890. icon = _normalized$key.icon;
  1891. if (!additions[prefix]) additions[prefix] = {};
  1892. additions[prefix][iconName] = icon;
  1893. });
  1894. return additions;
  1895. }
  1896. }]);
  1897. return Library;
  1898. }();
  1899. function prepIcon(icon) {
  1900. var width = icon[0];
  1901. var height = icon[1];
  1902. var vectorData = icon.slice(4);
  1903. return {
  1904. found: true,
  1905. width: width,
  1906. height: height,
  1907. icon: {
  1908. tag: 'path',
  1909. attributes: {
  1910. fill: 'currentColor',
  1911. d: vectorData[0]
  1912. }
  1913. }
  1914. };
  1915. }
  1916. function ensureCss() {
  1917. if (config.autoAddCss && !_cssInserted) {
  1918. insertCss(css());
  1919. _cssInserted = true;
  1920. }
  1921. }
  1922. function apiObject(val, abstractCreator) {
  1923. Object.defineProperty(val, 'abstract', {
  1924. get: abstractCreator
  1925. });
  1926. Object.defineProperty(val, 'html', {
  1927. get: function get() {
  1928. return val.abstract.map(function (a) {
  1929. return toHtml(a);
  1930. });
  1931. }
  1932. });
  1933. Object.defineProperty(val, 'node', {
  1934. get: function get() {
  1935. if (!IS_DOM) return;
  1936. var container = DOCUMENT.createElement('div');
  1937. container.innerHTML = val.html;
  1938. return container.children;
  1939. }
  1940. });
  1941. return val;
  1942. }
  1943. function findIconDefinition(iconLookup) {
  1944. var _iconLookup$prefix = iconLookup.prefix,
  1945. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  1946. iconName = iconLookup.iconName;
  1947. if (!iconName) return;
  1948. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1949. }
  1950. function resolveIcons(next) {
  1951. return function (maybeIconDefinition) {
  1952. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1953. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1954. var mask = params.mask;
  1955. if (mask) {
  1956. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1957. }
  1958. return next(iconDefinition, _objectSpread({}, params, {
  1959. mask: mask
  1960. }));
  1961. };
  1962. }
  1963. var library = new Library();
  1964. var noAuto = function noAuto() {
  1965. config.autoReplaceSvg = false;
  1966. config.observeMutations = false;
  1967. disconnect();
  1968. };
  1969. var _cssInserted = false;
  1970. var dom = {
  1971. i2svg: function i2svg() {
  1972. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1973. if (IS_DOM) {
  1974. ensureCss();
  1975. var _params$node = params.node,
  1976. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1977. _params$callback = params.callback,
  1978. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1979. if (config.searchPseudoElements) {
  1980. searchPseudoElements(node);
  1981. }
  1982. return onTree(node, callback);
  1983. } else {
  1984. return picked.reject('Operation requires a DOM of some kind.');
  1985. }
  1986. },
  1987. css: css,
  1988. insertCss: function insertCss$$1() {
  1989. if (!_cssInserted) {
  1990. insertCss(css());
  1991. _cssInserted = true;
  1992. }
  1993. },
  1994. watch: function watch() {
  1995. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1996. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1997. observeMutationsRoot = params.observeMutationsRoot;
  1998. if (config.autoReplaceSvg === false) {
  1999. config.autoReplaceSvg = true;
  2000. }
  2001. config.observeMutations = true;
  2002. domready(function () {
  2003. autoReplace({
  2004. autoReplaceSvgRoot: autoReplaceSvgRoot
  2005. });
  2006. observe({
  2007. treeCallback: onTree,
  2008. nodeCallback: onNode,
  2009. pseudoElementsCallback: searchPseudoElements,
  2010. observeMutationsRoot: observeMutationsRoot
  2011. });
  2012. });
  2013. }
  2014. };
  2015. var parse = {
  2016. transform: function transform(transformString) {
  2017. return parseTransformString(transformString);
  2018. }
  2019. };
  2020. var icon = resolveIcons(function (iconDefinition) {
  2021. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2022. var _params$transform = params.transform,
  2023. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  2024. _params$symbol = params.symbol,
  2025. symbol = _params$symbol === void 0 ? false : _params$symbol,
  2026. _params$mask = params.mask,
  2027. mask = _params$mask === void 0 ? null : _params$mask,
  2028. _params$title = params.title,
  2029. title = _params$title === void 0 ? null : _params$title,
  2030. _params$classes = params.classes,
  2031. classes = _params$classes === void 0 ? [] : _params$classes,
  2032. _params$attributes = params.attributes,
  2033. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  2034. _params$styles = params.styles,
  2035. styles = _params$styles === void 0 ? {} : _params$styles;
  2036. if (!iconDefinition) return;
  2037. var prefix = iconDefinition.prefix,
  2038. iconName = iconDefinition.iconName,
  2039. icon = iconDefinition.icon;
  2040. return apiObject(_objectSpread({
  2041. type: 'icon'
  2042. }, iconDefinition), function () {
  2043. ensureCss();
  2044. if (config.autoA11y) {
  2045. if (title) {
  2046. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  2047. } else {
  2048. attributes['aria-hidden'] = 'true';
  2049. attributes['focusable'] = 'false';
  2050. }
  2051. }
  2052. return makeInlineSvgAbstract({
  2053. icons: {
  2054. main: prepIcon(icon),
  2055. mask: mask ? prepIcon(mask.icon) : {
  2056. found: false,
  2057. width: null,
  2058. height: null,
  2059. icon: {}
  2060. }
  2061. },
  2062. prefix: prefix,
  2063. iconName: iconName,
  2064. transform: _objectSpread({}, meaninglessTransform, transform),
  2065. symbol: symbol,
  2066. title: title,
  2067. extra: {
  2068. attributes: attributes,
  2069. styles: styles,
  2070. classes: classes
  2071. }
  2072. });
  2073. });
  2074. });
  2075. var text = function text(content) {
  2076. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2077. var _params$transform2 = params.transform,
  2078. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  2079. _params$title2 = params.title,
  2080. title = _params$title2 === void 0 ? null : _params$title2,
  2081. _params$classes2 = params.classes,
  2082. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  2083. _params$attributes2 = params.attributes,
  2084. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  2085. _params$styles2 = params.styles,
  2086. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  2087. return apiObject({
  2088. type: 'text',
  2089. content: content
  2090. }, function () {
  2091. ensureCss();
  2092. return makeLayersTextAbstract({
  2093. content: content,
  2094. transform: _objectSpread({}, meaninglessTransform, transform),
  2095. title: title,
  2096. extra: {
  2097. attributes: attributes,
  2098. styles: styles,
  2099. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  2100. }
  2101. });
  2102. });
  2103. };
  2104. var counter = function counter(content) {
  2105. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2106. var _params$title3 = params.title,
  2107. title = _params$title3 === void 0 ? null : _params$title3,
  2108. _params$classes3 = params.classes,
  2109. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  2110. _params$attributes3 = params.attributes,
  2111. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  2112. _params$styles3 = params.styles,
  2113. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  2114. return apiObject({
  2115. type: 'counter',
  2116. content: content
  2117. }, function () {
  2118. ensureCss();
  2119. return makeLayersCounterAbstract({
  2120. content: content.toString(),
  2121. title: title,
  2122. extra: {
  2123. attributes: attributes,
  2124. styles: styles,
  2125. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  2126. }
  2127. });
  2128. });
  2129. };
  2130. var layer = function layer(assembler) {
  2131. return apiObject({
  2132. type: 'layer'
  2133. }, function () {
  2134. ensureCss();
  2135. var children = [];
  2136. assembler(function (args) {
  2137. Array.isArray(args) ? args.map(function (a) {
  2138. children = children.concat(a.abstract);
  2139. }) : children = children.concat(args.abstract);
  2140. });
  2141. return [{
  2142. tag: 'span',
  2143. attributes: {
  2144. class: "".concat(config.familyPrefix, "-layers")
  2145. },
  2146. children: children
  2147. }];
  2148. });
  2149. };
  2150. var api = {
  2151. noAuto: noAuto,
  2152. config: config,
  2153. dom: dom,
  2154. library: library,
  2155. parse: parse,
  2156. findIconDefinition: findIconDefinition,
  2157. icon: icon,
  2158. text: text,
  2159. counter: counter,
  2160. layer: layer,
  2161. toHtml: toHtml
  2162. };
  2163. var autoReplace = function autoReplace() {
  2164. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2165. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  2166. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  2167. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  2168. node: autoReplaceSvgRoot
  2169. });
  2170. };
  2171. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../timers-browserify/main.js */ "../../node_modules/timers-browserify/main.js").setImmediate))
  2172. /***/ }),
  2173. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  2174. /*!**************************************************************************************!*\
  2175. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  2176. \**************************************************************************************/
  2177. /*! exports provided: fas, prefix, faAd, faAddressBook, faAddressCard, faAdjust, faAirFreshener, faAlignCenter, faAlignJustify, faAlignLeft, faAlignRight, faAllergies, faAmbulance, faAmericanSignLanguageInterpreting, faAnchor, faAngleDoubleDown, faAngleDoubleLeft, faAngleDoubleRight, faAngleDoubleUp, faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAngry, faAnkh, faAppleAlt, faArchive, faArchway, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faArrowCircleDown, faArrowCircleLeft, faArrowCircleRight, faArrowCircleUp, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAlt, faArrowsAltH, faArrowsAltV, faAssistiveListeningSystems, faAsterisk, faAt, faAtlas, faAtom, faAudioDescription, faAward, faBackspace, faBackward, faBalanceScale, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBinoculars, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookOpen, faBookReader, faBookmark, faBowlingBall, faBox, faBoxOpen, faBoxes, faBraille, faBrain, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCamera, faCameraRetro, faCampground, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCartArrowDown, faCartPlus, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMoon, faCloudSun, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCube, faCubes, faCut, faDatabase, faDeaf, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDungeon, faEdit, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFastBackward, faFastForward, faFax, faFeather, faFeatherAlt, faFemale, faFighterJet, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileContract, faFileCsv, faFileDownload, faFileExcel, faFileExport, faFileImage, faFileImport, faFileInvoice, faFileInvoiceDollar, faFileMedical, faFileMedicalAlt, faFilePdf, faFilePowerpoint, faFilePrescription, faFileSignature, faFileUpload, faFileVideo, faFileWord, faFill, faFillDrip, faFilm, faFilter, faFingerprint, faFire, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGlassMartini, faGlassMartiniAlt, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripVertical, faHSquare, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingUsd, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHands, faHandsHelping, faHandshake, faHanukiah, faHashtag, faHatWizard, faHaykal, faHdd, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHome, faHorse, faHospital, faHospitalAlt, faHospitalSymbol, faHotTub, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHryvnia, faICursor, faIdBadge, faIdCard, faIdCardAlt, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLayerGroup, faLeaf, faLemon, faLessThan, faLessThanEqual, faLevelDownAlt, faLevelUpAlt, faLifeRing, faLightbulb, faLink, faLiraSign, faList, faListAlt, faListOl, faListUl, faLocationArrow, faLock, faLockOpen, faLongArrowAltDown, faLongArrowAltLeft, faLongArrowAltRight, faLongArrowAltUp, faLowVision, faLuggageCart, faMagic, faMagnet, faMailBulk, faMale, faMap, faMapMarked, faMapMarkedAlt, faMapMarker, faMapMarkerAlt, faMapPin, faMapSigns, faMarker, faMars, faMarsDouble, faMarsStroke, faMarsStrokeH, faMarsStrokeV, faMask, faMedal, faMedkit, faMeh, faMehBlank, faMehRollingEyes, faMemory, faMenorah, faMercury, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMousePointer, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleCarry, faPercent, faPercentage, faPhone, faPhoneSlash, faPhoneSquare, faPhoneVolume, faPiggyBank, faPills, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRandom, faReceipt, faRecycle, faRedo, faRedoAlt, faRegistered, faReply, faReplyAll, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSave, faSchool, faScrewdriver, faScroll, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSitemap, faSkull, faSkullCrossbones, faSlash, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmoking, faSmokingBan, faSnowflake, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaUp, faSortAmountDown, faSortAmountUp, faSortDown, faSortNumericDown, faSortNumericUp, faSortUp, faSpa, faSpaceShuttle, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStore, faStoreAlt, faStream, faStreetView, faStrikethrough, faStroopwafel, faSubscript, faSubway, faSuitcase, faSuitcaseRolling, faSun, faSuperscript, faSurprise, faSwatchbook, faSwimmer, faSwimmingPool, faSynagogue, faSync, faSyncAlt, faSyringe, faTable, faTableTennis, faTablet, faTabletAlt, faTablets, faTachometerAlt, faTag, faTags, faTape, faTasks, faTaxi, faTeeth, faTeethOpen, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToiletPaper, faToolbox, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrain, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTree, faTrophy, faTruck, faTruckLoading, faTruckMonster, faTruckMoving, faTruckPickup, faTshirt, faTty, faTv, faUmbrella, faUmbrellaBeach, faUnderline, faUndo, faUndoAlt, faUniversalAccess, faUniversity, faUnlink, faUnlock, faUnlockAlt, faUpload, faUser, faUserAlt, faUserAltSlash, faUserAstronaut, faUserCheck, faUserCircle, faUserClock, faUserCog, faUserEdit, faUserFriends, faUserGraduate, faUserInjured, faUserLock, faUserMd, faUserMinus, faUserNinja, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVrCardboard, faWalking, faWallet, faWarehouse, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  2178. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2179. "use strict";
  2180. __webpack_require__.r(__webpack_exports__);
  2181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  2182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  2184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  2187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  2188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  2189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  2190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  2191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  2192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  2193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  2194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  2195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  2196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  2197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  2198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  2199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  2200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  2201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  2202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  2203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  2204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  2206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  2207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  2208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  2209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  2214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  2215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  2216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  2217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  2218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  2219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  2220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  2221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  2222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  2223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  2224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  2225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  2957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  2959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  2988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  2989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  2990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  2991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  2994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  2995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  2996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  2997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  2998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  2999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  3000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  3001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  3002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  3003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  3004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  3005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  3006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  3007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  3008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  3009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  3010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  3011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  3012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  3013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  3014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  3015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  3016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  3017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  3019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  3020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  3021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  3022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  3023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  3024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  3025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  3026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  3027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  3028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  3029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  3030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  3031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  3032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  3033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  3034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  3035. /*!
  3036. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  3037. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  3038. */
  3039. var prefix = "fas";
  3040. var faAd = { prefix: 'fas', iconName: 'ad', icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"] };
  3041. var faAddressBook = { prefix: 'fas', iconName: 'address-book', icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3042. var faAddressCard = { prefix: 'fas', iconName: 'address-card', icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  3043. var faAdjust = { prefix: 'fas', iconName: 'adjust', icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"] };
  3044. var faAirFreshener = { prefix: 'fas', iconName: 'air-freshener', icon: [384, 512, [], "f5d0", "M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"] };
  3045. var faAlignCenter = { prefix: 'fas', iconName: 'align-center', icon: [448, 512, [], "f037", "M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  3046. var faAlignJustify = { prefix: 'fas', iconName: 'align-justify', icon: [448, 512, [], "f039", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3047. var faAlignLeft = { prefix: 'fas', iconName: 'align-left', icon: [448, 512, [], "f036", "M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  3048. var faAlignRight = { prefix: 'fas', iconName: 'align-right', icon: [448, 512, [], "f038", "M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3049. var faAllergies = { prefix: 'fas', iconName: 'allergies', icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3050. var faAmbulance = { prefix: 'fas', iconName: 'ambulance', icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3051. var faAmericanSignLanguageInterpreting = { prefix: 'fas', iconName: 'american-sign-language-interpreting', icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"] };
  3052. var faAnchor = { prefix: 'fas', iconName: 'anchor', icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"] };
  3053. var faAngleDoubleDown = { prefix: 'fas', iconName: 'angle-double-down', icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"] };
  3054. var faAngleDoubleLeft = { prefix: 'fas', iconName: 'angle-double-left', icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"] };
  3055. var faAngleDoubleRight = { prefix: 'fas', iconName: 'angle-double-right', icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"] };
  3056. var faAngleDoubleUp = { prefix: 'fas', iconName: 'angle-double-up', icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"] };
  3057. var faAngleDown = { prefix: 'fas', iconName: 'angle-down', icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"] };
  3058. var faAngleLeft = { prefix: 'fas', iconName: 'angle-left', icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"] };
  3059. var faAngleRight = { prefix: 'fas', iconName: 'angle-right', icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"] };
  3060. var faAngleUp = { prefix: 'fas', iconName: 'angle-up', icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"] };
  3061. var faAngry = { prefix: 'fas', iconName: 'angry', icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"] };
  3062. var faAnkh = { prefix: 'fas', iconName: 'ankh', icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"] };
  3063. var faAppleAlt = { prefix: 'fas', iconName: 'apple-alt', icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"] };
  3064. var faArchive = { prefix: 'fas', iconName: 'archive', icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"] };
  3065. var faArchway = { prefix: 'fas', iconName: 'archway', icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3066. var faArrowAltCircleDown = { prefix: 'fas', iconName: 'arrow-alt-circle-down', icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"] };
  3067. var faArrowAltCircleLeft = { prefix: 'fas', iconName: 'arrow-alt-circle-left', icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"] };
  3068. var faArrowAltCircleRight = { prefix: 'fas', iconName: 'arrow-alt-circle-right', icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"] };
  3069. var faArrowAltCircleUp = { prefix: 'fas', iconName: 'arrow-alt-circle-up', icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"] };
  3070. var faArrowCircleDown = { prefix: 'fas', iconName: 'arrow-circle-down', icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"] };
  3071. var faArrowCircleLeft = { prefix: 'fas', iconName: 'arrow-circle-left', icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"] };
  3072. var faArrowCircleRight = { prefix: 'fas', iconName: 'arrow-circle-right', icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"] };
  3073. var faArrowCircleUp = { prefix: 'fas', iconName: 'arrow-circle-up', icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"] };
  3074. var faArrowDown = { prefix: 'fas', iconName: 'arrow-down', icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"] };
  3075. var faArrowLeft = { prefix: 'fas', iconName: 'arrow-left', icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"] };
  3076. var faArrowRight = { prefix: 'fas', iconName: 'arrow-right', icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"] };
  3077. var faArrowUp = { prefix: 'fas', iconName: 'arrow-up', icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"] };
  3078. var faArrowsAlt = { prefix: 'fas', iconName: 'arrows-alt', icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"] };
  3079. var faArrowsAltH = { prefix: 'fas', iconName: 'arrows-alt-h', icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"] };
  3080. var faArrowsAltV = { prefix: 'fas', iconName: 'arrows-alt-v', icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"] };
  3081. var faAssistiveListeningSystems = { prefix: 'fas', iconName: 'assistive-listening-systems', icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"] };
  3082. var faAsterisk = { prefix: 'fas', iconName: 'asterisk', icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"] };
  3083. var faAt = { prefix: 'fas', iconName: 'at', icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"] };
  3084. var faAtlas = { prefix: 'fas', iconName: 'atlas', icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"] };
  3085. var faAtom = { prefix: 'fas', iconName: 'atom', icon: [448, 512, [], "f5d2", "M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3086. var faAudioDescription = { prefix: 'fas', iconName: 'audio-description', icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"] };
  3087. var faAward = { prefix: 'fas', iconName: 'award', icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"] };
  3088. var faBackspace = { prefix: 'fas', iconName: 'backspace', icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"] };
  3089. var faBackward = { prefix: 'fas', iconName: 'backward', icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"] };
  3090. var faBalanceScale = { prefix: 'fas', iconName: 'balance-scale', icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3091. var faBan = { prefix: 'fas', iconName: 'ban', icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"] };
  3092. var faBandAid = { prefix: 'fas', iconName: 'band-aid', icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"] };
  3093. var faBarcode = { prefix: 'fas', iconName: 'barcode', icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"] };
  3094. var faBars = { prefix: 'fas', iconName: 'bars', icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3095. var faBaseballBall = { prefix: 'fas', iconName: 'baseball-ball', icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"] };
  3096. var faBasketballBall = { prefix: 'fas', iconName: 'basketball-ball', icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"] };
  3097. var faBath = { prefix: 'fas', iconName: 'bath', icon: [512, 512, [], "f2cd", "M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  3098. var faBatteryEmpty = { prefix: 'fas', iconName: 'battery-empty', icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"] };
  3099. var faBatteryFull = { prefix: 'fas', iconName: 'battery-full', icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"] };
  3100. var faBatteryHalf = { prefix: 'fas', iconName: 'battery-half', icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"] };
  3101. var faBatteryQuarter = { prefix: 'fas', iconName: 'battery-quarter', icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"] };
  3102. var faBatteryThreeQuarters = { prefix: 'fas', iconName: 'battery-three-quarters', icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"] };
  3103. var faBed = { prefix: 'fas', iconName: 'bed', icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"] };
  3104. var faBeer = { prefix: 'fas', iconName: 'beer', icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"] };
  3105. var faBell = { prefix: 'fas', iconName: 'bell', icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"] };
  3106. var faBellSlash = { prefix: 'fas', iconName: 'bell-slash', icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"] };
  3107. var faBezierCurve = { prefix: 'fas', iconName: 'bezier-curve', icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3108. var faBible = { prefix: 'fas', iconName: 'bible', icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3109. var faBicycle = { prefix: 'fas', iconName: 'bicycle', icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"] };
  3110. var faBinoculars = { prefix: 'fas', iconName: 'binoculars', icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"] };
  3111. var faBirthdayCake = { prefix: 'fas', iconName: 'birthday-cake', icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"] };
  3112. var faBlender = { prefix: 'fas', iconName: 'blender', icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"] };
  3113. var faBlenderPhone = { prefix: 'fas', iconName: 'blender-phone', icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3114. var faBlind = { prefix: 'fas', iconName: 'blind', icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"] };
  3115. var faBold = { prefix: 'fas', iconName: 'bold', icon: [384, 512, [], "f032", "M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"] };
  3116. var faBolt = { prefix: 'fas', iconName: 'bolt', icon: [320, 512, [], "f0e7", "M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"] };
  3117. var faBomb = { prefix: 'fas', iconName: 'bomb', icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"] };
  3118. var faBone = { prefix: 'fas', iconName: 'bone', icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"] };
  3119. var faBong = { prefix: 'fas', iconName: 'bong', icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"] };
  3120. var faBook = { prefix: 'fas', iconName: 'book', icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"] };
  3121. var faBookDead = { prefix: 'fas', iconName: 'book-dead', icon: [448, 512, [], "f6b7", "M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"] };
  3122. var faBookOpen = { prefix: 'fas', iconName: 'book-open', icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"] };
  3123. var faBookReader = { prefix: 'fas', iconName: 'book-reader', icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"] };
  3124. var faBookmark = { prefix: 'fas', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"] };
  3125. var faBowlingBall = { prefix: 'fas', iconName: 'bowling-ball', icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3126. var faBox = { prefix: 'fas', iconName: 'box', icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"] };
  3127. var faBoxOpen = { prefix: 'fas', iconName: 'box-open', icon: [640, 512, [], "f49e", "M53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9zm585.1 102.8L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9z"] };
  3128. var faBoxes = { prefix: 'fas', iconName: 'boxes', icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"] };
  3129. var faBraille = { prefix: 'fas', iconName: 'braille', icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3130. var faBrain = { prefix: 'fas', iconName: 'brain', icon: [576, 512, [], "f5dc", "M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"] };
  3131. var faBriefcase = { prefix: 'fas', iconName: 'briefcase', icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"] };
  3132. var faBriefcaseMedical = { prefix: 'fas', iconName: 'briefcase-medical', icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"] };
  3133. var faBroadcastTower = { prefix: 'fas', iconName: 'broadcast-tower', icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"] };
  3134. var faBroom = { prefix: 'fas', iconName: 'broom', icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"] };
  3135. var faBrush = { prefix: 'fas', iconName: 'brush', icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"] };
  3136. var faBug = { prefix: 'fas', iconName: 'bug', icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"] };
  3137. var faBuilding = { prefix: 'fas', iconName: 'building', icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"] };
  3138. var faBullhorn = { prefix: 'fas', iconName: 'bullhorn', icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"] };
  3139. var faBullseye = { prefix: 'fas', iconName: 'bullseye', icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"] };
  3140. var faBurn = { prefix: 'fas', iconName: 'burn', icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"] };
  3141. var faBus = { prefix: 'fas', iconName: 'bus', icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3142. var faBusAlt = { prefix: 'fas', iconName: 'bus-alt', icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3143. var faBusinessTime = { prefix: 'fas', iconName: 'business-time', icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"] };
  3144. var faCalculator = { prefix: 'fas', iconName: 'calculator', icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"] };
  3145. var faCalendar = { prefix: 'fas', iconName: 'calendar', icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"] };
  3146. var faCalendarAlt = { prefix: 'fas', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"] };
  3147. var faCalendarCheck = { prefix: 'fas', iconName: 'calendar-check', icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"] };
  3148. var faCalendarMinus = { prefix: 'fas', iconName: 'calendar-minus', icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"] };
  3149. var faCalendarPlus = { prefix: 'fas', iconName: 'calendar-plus', icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"] };
  3150. var faCalendarTimes = { prefix: 'fas', iconName: 'calendar-times', icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"] };
  3151. var faCamera = { prefix: 'fas', iconName: 'camera', icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"] };
  3152. var faCameraRetro = { prefix: 'fas', iconName: 'camera-retro', icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"] };
  3153. var faCampground = { prefix: 'fas', iconName: 'campground', icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"] };
  3154. var faCannabis = { prefix: 'fas', iconName: 'cannabis', icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"] };
  3155. var faCapsules = { prefix: 'fas', iconName: 'capsules', icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"] };
  3156. var faCar = { prefix: 'fas', iconName: 'car', icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  3157. var faCarAlt = { prefix: 'fas', iconName: 'car-alt', icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  3158. var faCarBattery = { prefix: 'fas', iconName: 'car-battery', icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"] };
  3159. var faCarCrash = { prefix: 'fas', iconName: 'car-crash', icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"] };
  3160. var faCarSide = { prefix: 'fas', iconName: 'car-side', icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3161. var faCaretDown = { prefix: 'fas', iconName: 'caret-down', icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"] };
  3162. var faCaretLeft = { prefix: 'fas', iconName: 'caret-left', icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"] };
  3163. var faCaretRight = { prefix: 'fas', iconName: 'caret-right', icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"] };
  3164. var faCaretSquareDown = { prefix: 'fas', iconName: 'caret-square-down', icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"] };
  3165. var faCaretSquareLeft = { prefix: 'fas', iconName: 'caret-square-left', icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"] };
  3166. var faCaretSquareRight = { prefix: 'fas', iconName: 'caret-square-right', icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"] };
  3167. var faCaretSquareUp = { prefix: 'fas', iconName: 'caret-square-up', icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"] };
  3168. var faCaretUp = { prefix: 'fas', iconName: 'caret-up', icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"] };
  3169. var faCartArrowDown = { prefix: 'fas', iconName: 'cart-arrow-down', icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"] };
  3170. var faCartPlus = { prefix: 'fas', iconName: 'cart-plus', icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"] };
  3171. var faCat = { prefix: 'fas', iconName: 'cat', icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3172. var faCertificate = { prefix: 'fas', iconName: 'certificate', icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"] };
  3173. var faChair = { prefix: 'fas', iconName: 'chair', icon: [448, 512, [], "f6c0", "M446.33 341.88l-10.67-32A31.996 31.996 0 0 0 405.3 288H42.69c-13.77 0-26 8.81-30.36 21.88l-10.67 32C-5.24 362.6 10.18 384 32.03 384H32v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h256v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-.03c21.85 0 37.27-21.4 30.36-42.12zM112 128c0-29.48 16.2-54.99 40-68.87V256h48V48h48v208h48V59.13c23.8 13.88 40 39.39 40 68.87v128h48V128C384 57.31 326.69 0 256 0h-64C121.31 0 64 57.31 64 128v128h48V128z"] };
  3174. var faChalkboard = { prefix: 'fas', iconName: 'chalkboard', icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3175. var faChalkboardTeacher = { prefix: 'fas', iconName: 'chalkboard-teacher', icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"] };
  3176. var faChargingStation = { prefix: 'fas', iconName: 'charging-station', icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"] };
  3177. var faChartArea = { prefix: 'fas', iconName: 'chart-area', icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"] };
  3178. var faChartBar = { prefix: 'fas', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3179. var faChartLine = { prefix: 'fas', iconName: 'chart-line', icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"] };
  3180. var faChartPie = { prefix: 'fas', iconName: 'chart-pie', icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"] };
  3181. var faCheck = { prefix: 'fas', iconName: 'check', icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"] };
  3182. var faCheckCircle = { prefix: 'fas', iconName: 'check-circle', icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"] };
  3183. var faCheckDouble = { prefix: 'fas', iconName: 'check-double', icon: [512, 512, [], "f560", "M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"] };
  3184. var faCheckSquare = { prefix: 'fas', iconName: 'check-square', icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"] };
  3185. var faChess = { prefix: 'fas', iconName: 'chess', icon: [512, 512, [], "f439", "M199.821 217.633a6 6 0 0 1 6 6l-.001 20.766a6 6 0 0 1-6 6h-25.805c0 31.715-2.153 96.201 17.398 153.229H64.597C84.54 345.452 82.02 279.245 82.02 250.399H56.183a6 6 0 0 1-6-6l.002-20.766a6 6 0 0 1 6-6h143.636zM41.554 115.088l34.58 95.071h103.734l34.572-95.072c2.846-7.826-2.95-16.101-11.278-16.101H152v-30.22h21.57a6 6 0 0 0 6-6V40.383a6 6 0 0 0-6-6h-28.367V6a6 6 0 0 0-6-6H116.82a6 6 0 0 0-6 6v28.383H82.421a6 6 0 0 0-6 6v22.383a6 6 0 0 0 6 6H104v30.219H52.831c-8.328.001-14.124 8.276-11.277 16.103zM222.678 445.17v-28.067a6 6 0 0 0-6-6H39.322a6 6 0 0 0-6 6v28.067l-22.148 14.164a6 6 0 0 0-2.767 5.055V506a6 6 0 0 0 6 6h227.187a6 6 0 0 0 6-6v-41.612a6 6 0 0 0-2.767-5.055l-22.149-14.163zm90.578-144.225l24.88 16.963c.09 18.124-.167 63.904-11.905 114.522h147.526c-11.713-50.475-11.969-96.324-11.882-114.537l24.859-16.949a3.856 3.856 0 0 0 1.684-3.187v-69.901a3.857 3.857 0 0 0-3.857-3.857h-27.655a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.858-3.857h-52.918a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.857-3.857H315.43a3.857 3.857 0 0 0-3.857 3.857v69.901a3.855 3.855 0 0 0 1.683 3.188zm71.585 51.906c0-8.372 6.787-15.158 15.159-15.158s15.158 6.787 15.158 15.158v30.318h-30.317v-30.318zM504.62 470.059l-13.664-10.639v-15.552a3.857 3.857 0 0 0-3.857-3.857H312.915a3.857 3.857 0 0 0-3.857 3.857v15.552l-13.677 10.639a3.857 3.857 0 0 0-1.488 3.044v35.039a3.857 3.857 0 0 0 3.857 3.857h204.5a3.857 3.857 0 0 0 3.857-3.857v-35.04a3.859 3.859 0 0 0-1.487-3.043z"] };
  3186. var faChessBishop = { prefix: 'fas', iconName: 'chess-bishop', icon: [320, 512, [], "f43a", "M123.158 77.881C107.369 72.53 96 57.597 96 40c0-22.091 17.909-40 40-40h47.796c22.091 0 40 17.909 40 40 0 17.541-11.295 32.434-27.005 37.829 23.993 16.657 48.577 46.839 68.703 82.05L144.929 280.443a6 6 0 0 0 0 8.485l14.142 14.142a6 6 0 0 0 8.485 0L280.9 189.726c17.758 38.297 29.371 79.443 29.371 114.273 0 53.786-22.897 75.788-58.446 86.033V448H68.174v-57.97C32.631 379.784 9.739 357.781 9.739 304c0-78.029 58.281-187.766 113.419-226.119zM320 500v-24c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12z"] };
  3187. var faChessBoard = { prefix: 'fas', iconName: 'chess-board', icon: [512, 512, [], "f43c", "M256 256v64h-64v-64h64zm0-256h-64v64h64V0zm0 256h64v-64h-64v64zM384 0h-64v64h64V0zm0 512h64v-64h-64v64zm128-64v-64h-64v64h64zm-384 64h64v-64h-64v64zm0-512H64v64h64V0zm384 192v-64h-64v64h64zm0 128v-64h-64v64h64zM0 512h64v-64H0v64zM0 64v64h64V64H0zm0 128v64h64v-64H0zm0 128v64h64v-64H0zm256 192h64v-64h-64v64zm-64-128v64h64v-64h-64zm64-192v-64h-64v64h64zM64 384v64h64v-64H64zm64-128H64v64h64v-64zm256 128h64v-64h-64v64zM512 0h-64v64h64V0zM384 256h64v-64h-64v64zm0-192v64h64V64h-64zm-64 320v64h64v-64h-64zm-192-64v64h64v-64h-64zm128 0v64h64v-64h-64zm-64-128h-64v64h64v-64zm-64-64H64v64h64v-64zm192 192h64v-64h-64v64zM192 128V64h-64v64h64zm128 0V64h-64v64h64zm0 64h64v-64h-64v64z"] };
  3188. var faChessKing = { prefix: 'fas', iconName: 'chess-king', icon: [448, 512, [], "f43f", "M416 476v24c0 6.627-5.373 12-12 12H44c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12zm-8.033-324H248v-48h50a6 6 0 0 0 6-6V62a6 6 0 0 0-6-6h-50V6a6 6 0 0 0-6-6h-36a6 6 0 0 0-6 6v50h-50a6 6 0 0 0-6 6v36a6 6 0 0 0 6 6h50v48H40.033c-27.574 0-46.879 27.244-37.738 53.259L87.582 448h272.836l85.287-242.741C454.846 179.244 435.541 152 407.967 152z"] };
  3189. var faChessKnight = { prefix: 'fas', iconName: 'chess-knight', icon: [384, 512, [], "f441", "M352 224v224H32v-46.557c0-30.302 17.12-58.003 44.223-71.554l57.243-28.622A48 48 0 0 0 160 258.334V208l-22.127 11.063a23.996 23.996 0 0 0-12.55 15.645l-11.835 47.338a12 12 0 0 1-7.185 8.231l-29.601 11.84a11.998 11.998 0 0 1-9.33-.176L7.126 275.167A12 12 0 0 1 0 264.201v-158.26c0-6.365 2.529-12.47 7.03-16.971L16 80 1.789 51.578A16.937 16.937 0 0 1 0 44c0-6.627 5.373-12 12-12h148c106.039 0 192 85.961 192 192zm20 240H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12zM52 128c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3190. var faChessPawn = { prefix: 'fas', iconName: 'chess-pawn', icon: [320, 512, [], "f443", "M264 448H56s60-42.743 60-176H84c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h40.209C95.721 210.56 76 181.588 76 148c0-46.392 37.608-84 84-84s84 37.608 84 84c0 33.588-19.721 62.56-48.209 76H236c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-32c0 133.257 60 176 60 176zm28 16H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h264c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12z"] };
  3191. var faChessQueen = { prefix: 'fas', iconName: 'chess-queen', icon: [512, 512, [], "f445", "M436 512H76c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12zM255.579 0c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zm204.568 154.634c-5.768-3.045-12.916-.932-16.082 4.77-8.616 15.516-22.747 37.801-44.065 37.801-28.714 0-30.625-19.804-31.686-57.542-.183-6.492-5.501-11.664-11.995-11.664h-41.006c-5.175 0-9.754 3.328-11.388 8.238-8.89 26.709-26.073 40.992-47.925 40.992s-39.034-14.283-47.925-40.992c-1.634-4.91-6.213-8.238-11.388-8.238h-41.005c-6.495 0-11.813 5.174-11.995 11.667-1.052 37.642-2.934 57.539-31.688 57.539-20.691 0-33.817-20.224-44.425-38.025-3.266-5.48-10.258-7.431-15.899-4.453l-39.179 20.679a12 12 0 0 0-5.51 15.145L112 448h288l105.014-257.448a12 12 0 0 0-5.51-15.145l-39.357-20.773z"] };
  3192. var faChessRook = { prefix: 'fas', iconName: 'chess-rook', icon: [384, 512, [], "f447", "M81.241 215.027C80.957 258.92 77.411 348.076 48 448h287.982c-29.4-99.604-32.936-188.912-33.221-232.975l45.418-42.312a11.998 11.998 0 0 0 3.82-8.78V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v44h-48V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v44H96V44c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v119.932c0 3.33 1.384 6.51 3.82 8.78l45.421 42.315zM160 256c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v64.004h-64V256zm224 220v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12z"] };
  3193. var faChevronCircleDown = { prefix: 'fas', iconName: 'chevron-circle-down', icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"] };
  3194. var faChevronCircleLeft = { prefix: 'fas', iconName: 'chevron-circle-left', icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"] };
  3195. var faChevronCircleRight = { prefix: 'fas', iconName: 'chevron-circle-right', icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"] };
  3196. var faChevronCircleUp = { prefix: 'fas', iconName: 'chevron-circle-up', icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"] };
  3197. var faChevronDown = { prefix: 'fas', iconName: 'chevron-down', icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"] };
  3198. var faChevronLeft = { prefix: 'fas', iconName: 'chevron-left', icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"] };
  3199. var faChevronRight = { prefix: 'fas', iconName: 'chevron-right', icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"] };
  3200. var faChevronUp = { prefix: 'fas', iconName: 'chevron-up', icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"] };
  3201. var faChild = { prefix: 'fas', iconName: 'child', icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"] };
  3202. var faChurch = { prefix: 'fas', iconName: 'church', icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"] };
  3203. var faCircle = { prefix: 'fas', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"] };
  3204. var faCircleNotch = { prefix: 'fas', iconName: 'circle-notch', icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"] };
  3205. var faCity = { prefix: 'fas', iconName: 'city', icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"] };
  3206. var faClipboard = { prefix: 'fas', iconName: 'clipboard', icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"] };
  3207. var faClipboardCheck = { prefix: 'fas', iconName: 'clipboard-check', icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"] };
  3208. var faClipboardList = { prefix: 'fas', iconName: 'clipboard-list', icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  3209. var faClock = { prefix: 'fas', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  3210. var faClone = { prefix: 'fas', iconName: 'clone', icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"] };
  3211. var faClosedCaptioning = { prefix: 'fas', iconName: 'closed-captioning', icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"] };
  3212. var faCloud = { prefix: 'fas', iconName: 'cloud', icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"] };
  3213. var faCloudDownloadAlt = { prefix: 'fas', iconName: 'cloud-download-alt', icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"] };
  3214. var faCloudMoon = { prefix: 'fas', iconName: 'cloud-moon', icon: [640, 512, [], "f6c3", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.3 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm285.26-29.42c-104.23 19.22-199.95-58.16-199.95-160.03 0-58.68 32.45-112.64 85.18-141.7 8.13-4.48 6.08-16.41-3.15-18.06C497.14 1.17 484 0 470.84 0 352.25 0 256 93.04 256 208c0 7.26.4 14.44 1.15 21.51 9.87-3.38 20.18-5.51 30.85-5.51 52.94 0 96 43.06 96 96 0 3.59-.21 7.17-.63 10.73 33.49 15.39 57.47 46.55 63.24 83.86 7.96.87 16.03 1.41 24.23 1.41 66.26 0 126.79-29.19 166.88-77.02 5.93-7.07-.54-17.41-9.71-15.72z"] };
  3215. var faCloudSun = { prefix: 'fas', iconName: 'cloud-sun', icon: [640, 512, [], "f6c4", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.31 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm243.19-99.8c-7.85-6.79-7.85-18.97 0-25.76L633.41 186c12.76-11.05 5.84-32.02-11-33.3l-61.59-4.67c-10.19-.78-17.28-10.49-14.9-20.43l14.95-62.48c3.89-16.26-13.96-29.02-28.08-20.07l-52.51 33.26c-8.61 5.46-20.06 1.75-23.85-7.72l-23.47-58.74c-6.32-15.81-28.19-15.81-34.51 0l-23.38 58.49c-3.83 9.59-15.44 13.35-24.17 7.82l-52.29-33.12c-14.13-8.95-31.98 3.81-28.08 20.07l14.95 62.48c2.38 9.94-4.7 19.65-14.9 20.43l-61.15 4.64c-17 1.29-23.99 22.46-11.1 33.62l31.23 27.05c7.82 5.17 15.21 11.01 21.78 17.84 11.42-4.71 23.73-7.18 36.37-7.18 5.97 0 11.77.71 17.44 1.76 7.09-54.98 53.68-97.76 110.56-97.76 61.76 0 112 50.24 112 112s-50.24 112-112 112c-.95 0-1.83-.26-2.77-.28 13.83 13.2 24.61 29.47 30.16 48.28h27.02c6.25 0 12.37 1.83 17.6 5.27l45.08 29.68c14.19 8.99 31.89-4.17 27.92-20.76l-14.69-61.38c-2.43-10.16 4.8-20.08 15.22-20.87l61.16-4.64c16.84-1.28 23.76-22.25 11-33.3l-47.47-41.11zm-202.66 59.94C393.3 317.34 404.32 320 416 320c44.11 0 80-35.89 80-80s-35.89-80-80-80c-43.25 0-78.39 34.56-79.75 77.49 26.44 15.53 44.59 43.13 47.03 75.33z"] };
  3216. var faCloudUploadAlt = { prefix: 'fas', iconName: 'cloud-upload-alt', icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"] };
  3217. var faCocktail = { prefix: 'fas', iconName: 'cocktail', icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"] };
  3218. var faCode = { prefix: 'fas', iconName: 'code', icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"] };
  3219. var faCodeBranch = { prefix: 'fas', iconName: 'code-branch', icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"] };
  3220. var faCoffee = { prefix: 'fas', iconName: 'coffee', icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"] };
  3221. var faCog = { prefix: 'fas', iconName: 'cog', icon: [512, 512, [], "f013", "M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"] };
  3222. var faCogs = { prefix: 'fas', iconName: 'cogs', icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"] };
  3223. var faCoins = { prefix: 'fas', iconName: 'coins', icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"] };
  3224. var faColumns = { prefix: 'fas', iconName: 'columns', icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"] };
  3225. var faComment = { prefix: 'fas', iconName: 'comment', icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"] };
  3226. var faCommentAlt = { prefix: 'fas', iconName: 'comment-alt', icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"] };
  3227. var faCommentDollar = { prefix: 'fas', iconName: 'comment-dollar', icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"] };
  3228. var faCommentDots = { prefix: 'fas', iconName: 'comment-dots', icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3229. var faCommentSlash = { prefix: 'fas', iconName: 'comment-slash', icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3230. var faComments = { prefix: 'fas', iconName: 'comments', icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"] };
  3231. var faCommentsDollar = { prefix: 'fas', iconName: 'comments-dollar', icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"] };
  3232. var faCompactDisc = { prefix: 'fas', iconName: 'compact-disc', icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  3233. var faCompass = { prefix: 'fas', iconName: 'compass', icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"] };
  3234. var faCompress = { prefix: 'fas', iconName: 'compress', icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3235. var faConciergeBell = { prefix: 'fas', iconName: 'concierge-bell', icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3236. var faCookie = { prefix: 'fas', iconName: 'cookie', icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3237. var faCookieBite = { prefix: 'fas', iconName: 'cookie-bite', icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3238. var faCopy = { prefix: 'fas', iconName: 'copy', icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"] };
  3239. var faCopyright = { prefix: 'fas', iconName: 'copyright', icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"] };
  3240. var faCouch = { prefix: 'fas', iconName: 'couch', icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"] };
  3241. var faCreditCard = { prefix: 'fas', iconName: 'credit-card', icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"] };
  3242. var faCrop = { prefix: 'fas', iconName: 'crop', icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3243. var faCropAlt = { prefix: 'fas', iconName: 'crop-alt', icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"] };
  3244. var faCross = { prefix: 'fas', iconName: 'cross', icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3245. var faCrosshairs = { prefix: 'fas', iconName: 'crosshairs', icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"] };
  3246. var faCrow = { prefix: 'fas', iconName: 'crow', icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3247. var faCrown = { prefix: 'fas', iconName: 'crown', icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"] };
  3248. var faCube = { prefix: 'fas', iconName: 'cube', icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"] };
  3249. var faCubes = { prefix: 'fas', iconName: 'cubes', icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"] };
  3250. var faCut = { prefix: 'fas', iconName: 'cut', icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3251. var faDatabase = { prefix: 'fas', iconName: 'database', icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"] };
  3252. var faDeaf = { prefix: 'fas', iconName: 'deaf', icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"] };
  3253. var faDesktop = { prefix: 'fas', iconName: 'desktop', icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"] };
  3254. var faDharmachakra = { prefix: 'fas', iconName: 'dharmachakra', icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"] };
  3255. var faDiagnoses = { prefix: 'fas', iconName: 'diagnoses', icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  3256. var faDice = { prefix: 'fas', iconName: 'dice', icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3257. var faDiceD20 = { prefix: 'fas', iconName: 'dice-d20', icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"] };
  3258. var faDiceD6 = { prefix: 'fas', iconName: 'dice-d6', icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"] };
  3259. var faDiceFive = { prefix: 'fas', iconName: 'dice-five', icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3260. var faDiceFour = { prefix: 'fas', iconName: 'dice-four', icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3261. var faDiceOne = { prefix: 'fas', iconName: 'dice-one', icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3262. var faDiceSix = { prefix: 'fas', iconName: 'dice-six', icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3263. var faDiceThree = { prefix: 'fas', iconName: 'dice-three', icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3264. var faDiceTwo = { prefix: 'fas', iconName: 'dice-two', icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3265. var faDigitalTachograph = { prefix: 'fas', iconName: 'digital-tachograph', icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"] };
  3266. var faDirections = { prefix: 'fas', iconName: 'directions', icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"] };
  3267. var faDivide = { prefix: 'fas', iconName: 'divide', icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3268. var faDizzy = { prefix: 'fas', iconName: 'dizzy', icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"] };
  3269. var faDna = { prefix: 'fas', iconName: 'dna', icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"] };
  3270. var faDog = { prefix: 'fas', iconName: 'dog', icon: [512, 512, [], "f6d3", "M496 96h-64l-7.16-14.31A32 32 0 0 0 396.22 64H342.6l-27.28-27.28C305.23 26.64 288 33.78 288 48.03v149.84l128 45.71V208h32c35.35 0 64-28.65 64-64v-32c0-8.84-7.16-16-16-16zm-112 48c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM96 224c-17.64 0-32-14.36-32-32 0-17.67-14.33-32-32-32S0 174.33 0 192c0 41.66 26.83 76.85 64 90.1V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V384h160v112c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V277.55L266.05 224H96z"] };
  3271. var faDollarSign = { prefix: 'fas', iconName: 'dollar-sign', icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"] };
  3272. var faDolly = { prefix: 'fas', iconName: 'dolly', icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3273. var faDollyFlatbed = { prefix: 'fas', iconName: 'dolly-flatbed', icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  3274. var faDonate = { prefix: 'fas', iconName: 'donate', icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"] };
  3275. var faDoorClosed = { prefix: 'fas', iconName: 'door-closed', icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"] };
  3276. var faDoorOpen = { prefix: 'fas', iconName: 'door-open', icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"] };
  3277. var faDotCircle = { prefix: 'fas', iconName: 'dot-circle', icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"] };
  3278. var faDove = { prefix: 'fas', iconName: 'dove', icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3279. var faDownload = { prefix: 'fas', iconName: 'download', icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3280. var faDraftingCompass = { prefix: 'fas', iconName: 'drafting-compass', icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"] };
  3281. var faDragon = { prefix: 'fas', iconName: 'dragon', icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"] };
  3282. var faDrawPolygon = { prefix: 'fas', iconName: 'draw-polygon', icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"] };
  3283. var faDrum = { prefix: 'fas', iconName: 'drum', icon: [576, 512, [], "f569", "M458.08 120.88l102.39-61.43c15.16-9.09 20.06-28.75 10.97-43.91C562.34.39 542.7-4.53 527.53 4.57l-160.69 96.41A629.32 629.32 0 0 0 288 96C128.94 96 0 153.31 0 224v160.83c0 30.46 24.03 58.4 64 80.37v-96.37c0-17.6 14.4-32 32-32s32 14.4 32 32v122.41c37.4 11.13 81 18.44 128 20.75V400.84c0-17.6 14.4-32 32-32s32 14.4 32 32V512c47-2.31 90.6-9.62 128-20.75V368.84c0-17.6 14.4-32 32-32s32 14.4 32 32v96.37c39.97-21.97 64-49.91 64-80.37V224.01c-.01-42.38-46.54-79.84-117.92-103.13zM288 304c-132.55 0-240-35.82-240-80s107.45-80 240-80c2.34 0 4.62.1 6.94.12l-87.41 52.44c-15.16 9.09-20.06 28.75-10.97 43.91 9.56 15.93 29.51 19.61 43.91 10.97l162.71-97.62C477.55 167.41 528 193.74 528 224.01 528 268.19 420.54 304 288 304z"] };
  3284. var faDrumSteelpan = { prefix: 'fas', iconName: 'drum-steelpan', icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"] };
  3285. var faDrumstickBite = { prefix: 'fas', iconName: 'drumstick-bite', icon: [512, 512, [], "f6d7", "M462.79 49.57c-66.14-66.09-173.36-66.09-239.5 0C187.81 85.02 160.12 128 160.12 192v85.83l-40.62 40.59c-9.7 9.69-24.04 11.07-36.78 5.98-21.72-8.68-47.42-4.29-65.02 13.29-23.61 23.59-23.61 61.84 0 85.43 15.28 15.27 36.53 19.58 56.14 15.09-4.5 19.6-.18 40.83 15.1 56.1 23.61 23.59 61.88 23.59 85.49 0 17.6-17.58 21.99-43.26 13.31-64.97-5.09-12.73-3.72-27.05 5.99-36.75L234.35 352h85.89c23.2 0 43.57-3.72 61.89-10.03-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.93-14.81-90.25-49.13-124.53z"] };
  3286. var faDumbbell = { prefix: 'fas', iconName: 'dumbbell', icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"] };
  3287. var faDungeon = { prefix: 'fas', iconName: 'dungeon', icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"] };
  3288. var faEdit = { prefix: 'fas', iconName: 'edit', icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"] };
  3289. var faEject = { prefix: 'fas', iconName: 'eject', icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"] };
  3290. var faEllipsisH = { prefix: 'fas', iconName: 'ellipsis-h', icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"] };
  3291. var faEllipsisV = { prefix: 'fas', iconName: 'ellipsis-v', icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"] };
  3292. var faEnvelope = { prefix: 'fas', iconName: 'envelope', icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"] };
  3293. var faEnvelopeOpen = { prefix: 'fas', iconName: 'envelope-open', icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"] };
  3294. var faEnvelopeOpenText = { prefix: 'fas', iconName: 'envelope-open-text', icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"] };
  3295. var faEnvelopeSquare = { prefix: 'fas', iconName: 'envelope-square', icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"] };
  3296. var faEquals = { prefix: 'fas', iconName: 'equals', icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3297. var faEraser = { prefix: 'fas', iconName: 'eraser', icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"] };
  3298. var faEuroSign = { prefix: 'fas', iconName: 'euro-sign', icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"] };
  3299. var faExchangeAlt = { prefix: 'fas', iconName: 'exchange-alt', icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  3300. var faExclamation = { prefix: 'fas', iconName: 'exclamation', icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"] };
  3301. var faExclamationCircle = { prefix: 'fas', iconName: 'exclamation-circle', icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  3302. var faExclamationTriangle = { prefix: 'fas', iconName: 'exclamation-triangle', icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  3303. var faExpand = { prefix: 'fas', iconName: 'expand', icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"] };
  3304. var faExpandArrowsAlt = { prefix: 'fas', iconName: 'expand-arrows-alt', icon: [448, 512, [], "f31e", "M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"] };
  3305. var faExternalLinkAlt = { prefix: 'fas', iconName: 'external-link-alt', icon: [576, 512, [], "f35d", "M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"] };
  3306. var faExternalLinkSquareAlt = { prefix: 'fas', iconName: 'external-link-square-alt', icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"] };
  3307. var faEye = { prefix: 'fas', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"] };
  3308. var faEyeDropper = { prefix: 'fas', iconName: 'eye-dropper', icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"] };
  3309. var faEyeSlash = { prefix: 'fas', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"] };
  3310. var faFastBackward = { prefix: 'fas', iconName: 'fast-backward', icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"] };
  3311. var faFastForward = { prefix: 'fas', iconName: 'fast-forward', icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"] };
  3312. var faFax = { prefix: 'fas', iconName: 'fax', icon: [512, 512, [], "f1ac", "M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"] };
  3313. var faFeather = { prefix: 'fas', iconName: 'feather', icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"] };
  3314. var faFeatherAlt = { prefix: 'fas', iconName: 'feather-alt', icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"] };
  3315. var faFemale = { prefix: 'fas', iconName: 'female', icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"] };
  3316. var faFighterJet = { prefix: 'fas', iconName: 'fighter-jet', icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"] };
  3317. var faFile = { prefix: 'fas', iconName: 'file', icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3318. var faFileAlt = { prefix: 'fas', iconName: 'file-alt', icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3319. var faFileArchive = { prefix: 'fas', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32V32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6zm32.7-53c0 14.9-14.5 27-32.4 27S96 378 96 363c0-14.9 14.5-27 32.4-27s32.5 12.1 32.5 27zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3320. var faFileAudio = { prefix: 'fas', iconName: 'file-audio', icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3321. var faFileCode = { prefix: 'fas', iconName: 'file-code', icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"] };
  3322. var faFileContract = { prefix: 'fas', iconName: 'file-contract', icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3323. var faFileCsv = { prefix: 'fas', iconName: 'file-csv', icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3324. var faFileDownload = { prefix: 'fas', iconName: 'file-download', icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3325. var faFileExcel = { prefix: 'fas', iconName: 'file-excel', icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3326. var faFileExport = { prefix: 'fas', iconName: 'file-export', icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zM192 336v-32c0-8.84 7.16-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.84 0-16-7.16-16-16zm379.05-28.02l-95.7-96.43c-10.06-10.14-27.36-3.01-27.36 11.27V288H384v64h63.99v65.18c0 14.28 17.29 21.41 27.36 11.27l95.7-96.42c6.6-6.66 6.6-17.4 0-24.05z"] };
  3327. var faFileImage = { prefix: 'fas', iconName: 'file-image', icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"] };
  3328. var faFileImport = { prefix: 'fas', iconName: 'file-import', icon: [512, 512, [], "f56f", "M16 288c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h112v-64H16zm336-152V0H152c-13.3 0-24 10.7-24 24v264h127.99v-65.18c0-14.28 17.29-21.41 27.36-11.27l95.7 96.43c6.6 6.65 6.6 17.39 0 24.04l-95.7 96.42c-10.06 10.14-27.36 3.01-27.36-11.27V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24zm153-31L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3329. var faFileInvoice = { prefix: 'fas', iconName: 'file-invoice', icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"] };
  3330. var faFileInvoiceDollar = { prefix: 'fas', iconName: 'file-invoice-dollar', icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"] };
  3331. var faFileMedical = { prefix: 'fas', iconName: 'file-medical', icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"] };
  3332. var faFileMedicalAlt = { prefix: 'fas', iconName: 'file-medical-alt', icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3333. var faFilePdf = { prefix: 'fas', iconName: 'file-pdf', icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"] };
  3334. var faFilePowerpoint = { prefix: 'fas', iconName: 'file-powerpoint', icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"] };
  3335. var faFilePrescription = { prefix: 'fas', iconName: 'file-prescription', icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3336. var faFileSignature = { prefix: 'fas', iconName: 'file-signature', icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"] };
  3337. var faFileUpload = { prefix: 'fas', iconName: 'file-upload', icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3338. var faFileVideo = { prefix: 'fas', iconName: 'file-video', icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"] };
  3339. var faFileWord = { prefix: 'fas', iconName: 'file-word', icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3340. var faFill = { prefix: 'fas', iconName: 'fill', icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"] };
  3341. var faFillDrip = { prefix: 'fas', iconName: 'fill-drip', icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"] };
  3342. var faFilm = { prefix: 'fas', iconName: 'film', icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3343. var faFilter = { prefix: 'fas', iconName: 'filter', icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"] };
  3344. var faFingerprint = { prefix: 'fas', iconName: 'fingerprint', icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"] };
  3345. var faFire = { prefix: 'fas', iconName: 'fire', icon: [384, 512, [], "f06d", "M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"] };
  3346. var faFireExtinguisher = { prefix: 'fas', iconName: 'fire-extinguisher', icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"] };
  3347. var faFirstAid = { prefix: 'fas', iconName: 'first-aid', icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3348. var faFish = { prefix: 'fas', iconName: 'fish', icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3349. var faFistRaised = { prefix: 'fas', iconName: 'fist-raised', icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"] };
  3350. var faFlag = { prefix: 'fas', iconName: 'flag', icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"] };
  3351. var faFlagCheckered = { prefix: 'fas', iconName: 'flag-checkered', icon: [512, 512, [], "f11e", "M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"] };
  3352. var faFlask = { prefix: 'fas', iconName: 'flask', icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"] };
  3353. var faFlushed = { prefix: 'fas', iconName: 'flushed', icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"] };
  3354. var faFolder = { prefix: 'fas', iconName: 'folder', icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"] };
  3355. var faFolderMinus = { prefix: 'fas', iconName: 'folder-minus', icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"] };
  3356. var faFolderOpen = { prefix: 'fas', iconName: 'folder-open', icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"] };
  3357. var faFolderPlus = { prefix: 'fas', iconName: 'folder-plus', icon: [512, 512, [], "f65e", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16h-72v72c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-72h-72c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h72v-72c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v72h72c8.84 0 16 7.16 16 16v16z"] };
  3358. var faFont = { prefix: 'fas', iconName: 'font', icon: [448, 512, [], "f031", "M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"] };
  3359. var faFontAwesomeLogoFull = { prefix: 'fas', iconName: 'font-awesome-logo-full', icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"] };
  3360. var faFootballBall = { prefix: 'fas', iconName: 'football-ball', icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"] };
  3361. var faForward = { prefix: 'fas', iconName: 'forward', icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"] };
  3362. var faFrog = { prefix: 'fas', iconName: 'frog', icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3363. var faFrown = { prefix: 'fas', iconName: 'frown', icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"] };
  3364. var faFrownOpen = { prefix: 'fas', iconName: 'frown-open', icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3365. var faFunnelDollar = { prefix: 'fas', iconName: 'funnel-dollar', icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"] };
  3366. var faFutbol = { prefix: 'fas', iconName: 'futbol', icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"] };
  3367. var faGamepad = { prefix: 'fas', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3368. var faGasPump = { prefix: 'fas', iconName: 'gas-pump', icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"] };
  3369. var faGavel = { prefix: 'fas', iconName: 'gavel', icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"] };
  3370. var faGem = { prefix: 'fas', iconName: 'gem', icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"] };
  3371. var faGenderless = { prefix: 'fas', iconName: 'genderless', icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"] };
  3372. var faGhost = { prefix: 'fas', iconName: 'ghost', icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3373. var faGift = { prefix: 'fas', iconName: 'gift', icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"] };
  3374. var faGlassMartini = { prefix: 'fas', iconName: 'glass-martini', icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"] };
  3375. var faGlassMartiniAlt = { prefix: 'fas', iconName: 'glass-martini-alt', icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"] };
  3376. var faGlasses = { prefix: 'fas', iconName: 'glasses', icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"] };
  3377. var faGlobe = { prefix: 'fas', iconName: 'globe', icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"] };
  3378. var faGlobeAfrica = { prefix: 'fas', iconName: 'globe-africa', icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"] };
  3379. var faGlobeAmericas = { prefix: 'fas', iconName: 'globe-americas', icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"] };
  3380. var faGlobeAsia = { prefix: 'fas', iconName: 'globe-asia', icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"] };
  3381. var faGolfBall = { prefix: 'fas', iconName: 'golf-ball', icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"] };
  3382. var faGopuram = { prefix: 'fas', iconName: 'gopuram', icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.84-7.16-16-16-16h-16v-80c0-8.84-7.16-16-16-16h-16V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16S96 7.16 96 16v112H80c-8.84 0-16 7.16-16 16v80H48c-8.84 0-16 7.16-16 16v112H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zm-272 0v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64h-64zm8-128v-48c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v48h-48z"] };
  3383. var faGraduationCap = { prefix: 'fas', iconName: 'graduation-cap', icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"] };
  3384. var faGreaterThan = { prefix: 'fas', iconName: 'greater-than', icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"] };
  3385. var faGreaterThanEqual = { prefix: 'fas', iconName: 'greater-than-equal', icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3386. var faGrimace = { prefix: 'fas', iconName: 'grimace', icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"] };
  3387. var faGrin = { prefix: 'fas', iconName: 'grin', icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3388. var faGrinAlt = { prefix: 'fas', iconName: 'grin-alt', icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3389. var faGrinBeam = { prefix: 'fas', iconName: 'grin-beam', icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3390. var faGrinBeamSweat = { prefix: 'fas', iconName: 'grin-beam-sweat', icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3391. var faGrinHearts = { prefix: 'fas', iconName: 'grin-hearts', icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"] };
  3392. var faGrinSquint = { prefix: 'fas', iconName: 'grin-squint', icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3393. var faGrinSquintTears = { prefix: 'fas', iconName: 'grin-squint-tears', icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"] };
  3394. var faGrinStars = { prefix: 'fas', iconName: 'grin-stars', icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"] };
  3395. var faGrinTears = { prefix: 'fas', iconName: 'grin-tears', icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3396. var faGrinTongue = { prefix: 'fas', iconName: 'grin-tongue', icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3397. var faGrinTongueSquint = { prefix: 'fas', iconName: 'grin-tongue-squint', icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"] };
  3398. var faGrinTongueWink = { prefix: 'fas', iconName: 'grin-tongue-wink', icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3399. var faGrinWink = { prefix: 'fas', iconName: 'grin-wink', icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"] };
  3400. var faGripHorizontal = { prefix: 'fas', iconName: 'grip-horizontal', icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3401. var faGripVertical = { prefix: 'fas', iconName: 'grip-vertical', icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3402. var faHSquare = { prefix: 'fas', iconName: 'h-square', icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"] };
  3403. var faHammer = { prefix: 'fas', iconName: 'hammer', icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"] };
  3404. var faHamsa = { prefix: 'fas', iconName: 'hamsa', icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3405. var faHandHolding = { prefix: 'fas', iconName: 'hand-holding', icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3406. var faHandHoldingHeart = { prefix: 'fas', iconName: 'hand-holding-heart', icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3407. var faHandHoldingUsd = { prefix: 'fas', iconName: 'hand-holding-usd', icon: [544, 512, [], "f4c0", "M257.6 144.3l50 14.3c3.6 1 6.1 4.4 6.1 8.1 0 4.6-3.8 8.4-8.4 8.4h-32.8c-3.6 0-7.1-.8-10.3-2.2-4.8-2.2-10.4-1.7-14.1 2l-17.5 17.5c-5.3 5.3-4.7 14.3 1.5 18.4 9.5 6.3 20.3 10.1 31.8 11.5V240c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-17.6c30.3-3.6 53.3-31 49.3-63-2.9-23-20.7-41.3-42.9-47.7l-50-14.3c-3.6-1-6.1-4.4-6.1-8.1 0-4.6 3.8-8.4 8.4-8.4h32.8c3.6 0 7.1.8 10.3 2.2 4.8 2.2 10.4 1.7 14.1-2l17.5-17.5c5.3-5.3 4.7-14.3-1.5-18.4-9.5-6.3-20.3-10.1-31.8-11.5V16c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v17.6c-30.3 3.6-53.3 31-49.3 63 2.9 23 20.7 41.3 42.9 47.7zm276.3 183.8c-11.2-10.7-28.5-10-40.3 0L406.4 402c-10.7 9.1-24 14-37.8 14H256.9c-8.3 0-15.1-7.2-15.1-16s6.8-16 15.1-16h73.9c15.1 0 29-10.9 31.4-26.6 3.1-20-11.5-37.4-29.8-37.4H181.3c-25.5 0-50.2 9.3-69.9 26.3L67.5 384H15.1C6.8 384 0 391.2 0 400v96c0 8.8 6.8 16 15.1 16H352c13.7 0 27-4.9 37.8-14l142.8-121c14.4-12.1 15.5-35.3 1.3-48.9z"] };
  3408. var faHandLizard = { prefix: 'fas', iconName: 'hand-lizard', icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"] };
  3409. var faHandPaper = { prefix: 'fas', iconName: 'hand-paper', icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"] };
  3410. var faHandPeace = { prefix: 'fas', iconName: 'hand-peace', icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"] };
  3411. var faHandPointDown = { prefix: 'fas', iconName: 'hand-point-down', icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3412. var faHandPointLeft = { prefix: 'fas', iconName: 'hand-point-left', icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"] };
  3413. var faHandPointRight = { prefix: 'fas', iconName: 'hand-point-right', icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3414. var faHandPointUp = { prefix: 'fas', iconName: 'hand-point-up', icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3415. var faHandPointer = { prefix: 'fas', iconName: 'hand-pointer', icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"] };
  3416. var faHandRock = { prefix: 'fas', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M512 128.79c0-26.322-20.861-48.344-47.18-48.783C437.935 79.558 416 101.217 416 128h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C333.935 47.558 312 69.217 312 96v32h-8V80.79c0-26.322-20.861-48.344-47.18-48.783C229.935 31.558 208 53.217 208 80v48h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C125.935 47.558 104 69.217 104 96v136l-8-7.111V176.79c0-26.322-20.861-48.344-47.18-48.783C21.935 127.558 0 149.217 0 176v66.445a95.998 95.998 0 0 0 32.221 71.751l111.668 99.261A47.999 47.999 0 0 1 160 449.333V456c0 13.255 10.745 24 24 24h240c13.255 0 24-10.745 24-24v-2.921a96.01 96.01 0 0 1 7.523-37.254l48.954-116.265A96.002 96.002 0 0 0 512 262.306V128.79z"] };
  3417. var faHandScissors = { prefix: 'fas', iconName: 'hand-scissors', icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"] };
  3418. var faHandSpock = { prefix: 'fas', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M10.872 316.585c15.139-16.086 40.454-16.854 56.543-1.713L128 371.893v-79.405L88.995 120.865c-4.896-21.542 8.598-42.974 30.14-47.87 21.549-4.894 42.975 8.599 47.87 30.141L201.747 256h9.833L164.016 48.966c-4.946-21.531 8.498-42.994 30.028-47.94 21.532-4.95 42.994 8.498 47.94 30.028L293.664 256h15.105l48.425-193.702c5.357-21.432 27.075-34.462 48.507-29.104 21.432 5.358 34.463 27.075 29.104 48.507L391.231 256h11.08l30.768-129.265c5.117-21.491 26.685-34.768 48.177-29.647 21.491 5.117 34.765 26.686 29.647 48.177l-36.292 152.467A96.024 96.024 0 0 0 472 319.967v42.102a96.002 96.002 0 0 1-3.96 27.287l-26.174 88.287C435.825 498.022 417.101 512 395.846 512H179.172a48.002 48.002 0 0 1-32.898-13.046L12.585 373.128c-16.087-15.141-16.853-40.456-1.713-56.543z"] };
  3419. var faHands = { prefix: 'fas', iconName: 'hands', icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"] };
  3420. var faHandsHelping = { prefix: 'fas', iconName: 'hands-helping', icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"] };
  3421. var faHandshake = { prefix: 'fas', iconName: 'handshake', icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"] };
  3422. var faHanukiah = { prefix: 'fas', iconName: 'hanukiah', icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"] };
  3423. var faHashtag = { prefix: 'fas', iconName: 'hashtag', icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"] };
  3424. var faHatWizard = { prefix: 'fas', iconName: 'hat-wizard', icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"] };
  3425. var faHaykal = { prefix: 'fas', iconName: 'haykal', icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"] };
  3426. var faHdd = { prefix: 'fas', iconName: 'hdd', icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3427. var faHeading = { prefix: 'fas', iconName: 'heading', icon: [512, 512, [], "f1dc", "M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"] };
  3428. var faHeadphones = { prefix: 'fas', iconName: 'headphones', icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"] };
  3429. var faHeadphonesAlt = { prefix: 'fas', iconName: 'headphones-alt', icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"] };
  3430. var faHeadset = { prefix: 'fas', iconName: 'headset', icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"] };
  3431. var faHeart = { prefix: 'fas', iconName: 'heart', icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"] };
  3432. var faHeartbeat = { prefix: 'fas', iconName: 'heartbeat', icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"] };
  3433. var faHelicopter = { prefix: 'fas', iconName: 'helicopter', icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"] };
  3434. var faHighlighter = { prefix: 'fas', iconName: 'highlighter', icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"] };
  3435. var faHiking = { prefix: 'fas', iconName: 'hiking', icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"] };
  3436. var faHippo = { prefix: 'fas', iconName: 'hippo', icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3437. var faHistory = { prefix: 'fas', iconName: 'history', icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"] };
  3438. var faHockeyPuck = { prefix: 'fas', iconName: 'hockey-puck', icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"] };
  3439. var faHome = { prefix: 'fas', iconName: 'home', icon: [576, 512, [], "f015", "M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"] };
  3440. var faHorse = { prefix: 'fas', iconName: 'horse', icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3441. var faHospital = { prefix: 'fas', iconName: 'hospital', icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"] };
  3442. var faHospitalAlt = { prefix: 'fas', iconName: 'hospital-alt', icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3443. var faHospitalSymbol = { prefix: 'fas', iconName: 'hospital-symbol', icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"] };
  3444. var faHotTub = { prefix: 'fas', iconName: 'hot-tub', icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"] };
  3445. var faHotel = { prefix: 'fas', iconName: 'hotel', icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3446. var faHourglass = { prefix: 'fas', iconName: 'hourglass', icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"] };
  3447. var faHourglassEnd = { prefix: 'fas', iconName: 'hourglass-end', icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"] };
  3448. var faHourglassHalf = { prefix: 'fas', iconName: 'hourglass-half', icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"] };
  3449. var faHourglassStart = { prefix: 'fas', iconName: 'hourglass-start', icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"] };
  3450. var faHouseDamage = { prefix: 'fas', iconName: 'house-damage', icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"] };
  3451. var faHryvnia = { prefix: 'fas', iconName: 'hryvnia', icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"] };
  3452. var faICursor = { prefix: 'fas', iconName: 'i-cursor', icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"] };
  3453. var faIdBadge = { prefix: 'fas', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3454. var faIdCard = { prefix: 'fas', iconName: 'id-card', icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"] };
  3455. var faIdCardAlt = { prefix: 'fas', iconName: 'id-card-alt', icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"] };
  3456. var faImage = { prefix: 'fas', iconName: 'image', icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"] };
  3457. var faImages = { prefix: 'fas', iconName: 'images', icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"] };
  3458. var faInbox = { prefix: 'fas', iconName: 'inbox', icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"] };
  3459. var faIndent = { prefix: 'fas', iconName: 'indent', icon: [448, 512, [], "f03c", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"] };
  3460. var faIndustry = { prefix: 'fas', iconName: 'industry', icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"] };
  3461. var faInfinity = { prefix: 'fas', iconName: 'infinity', icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"] };
  3462. var faInfo = { prefix: 'fas', iconName: 'info', icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"] };
  3463. var faInfoCircle = { prefix: 'fas', iconName: 'info-circle', icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"] };
  3464. var faItalic = { prefix: 'fas', iconName: 'italic', icon: [320, 512, [], "f033", "M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"] };
  3465. var faJedi = { prefix: 'fas', iconName: 'jedi', icon: [544, 512, [], "f669", "M479.99 352l58.88-58.87c3.29-16.8 5.13-34.12 5.13-51.86 0-5.81-.68-11.51-1.05-17.27H496l41.25-41.24c-14.5-64.79-52.43-123.05-107.91-162.27-2.77-1.96-5.97-2.99-9.25-2.99-5.37 0-10.41 2.71-13.49 7.24-3.05 4.49-3.64 9.99-1.61 15.09 6.55 16.46 9.86 33.73 9.86 51.31 0 45.12-21.03 86.57-57.69 113.73-4.02 2.98-6.46 7.5-6.7 12.4-.24 4.92 1.76 9.66 5.49 13.03 32.93 29.75 47.35 73.51 38.57 117.07-9.74 48.35-48.84 87.1-97.31 96.5l-2.5-65.34L321.88 397c2.98 2.06 7.39 1.69 10.02-.8a8.002 8.002 0 0 0 1.34-9.92l-20.11-33.73 42.07-8.72c3.7-.75 6.38-4.05 6.38-7.83 0-3.77-2.69-7.06-6.38-7.83l-42.07-8.73 20.13-33.77c1.92-3.23 1.34-7.31-1.38-9.91-2.7-2.55-6.97-2.89-10-.8l-30.39 20.67L279.96 7.7a7.964 7.964 0 0 0-8-7.7c-4.33 0-7.84 3.38-8 7.67l-11.52 287.97-30.39-20.66c-3.14-2.12-7.27-1.83-10 .78-2.72 2.59-3.3 6.67-1.36 9.94l20.11 33.73-42.07 8.73c-3.7.75-6.38 4.05-6.38 7.83s2.67 7.08 6.38 7.83l42.07 8.72-20.13 33.77c-1.92 3.23-1.34 7.33 1.39 9.94 2.59 2.45 7.03 2.75 10 .75l27.16-18.48-2.5 65.26c-56.94-11.64-99.89-61.89-99.89-121.92 0-35.08 14.62-67.6 41.17-91.58 3.72-3.36 5.72-8.11 5.48-13.01-.24-4.9-2.68-9.41-6.69-12.38-36.67-27.16-57.71-68.62-57.71-113.74 0-17.56 3.31-34.81 9.84-51.26 2.02-5.09 1.43-10.59-1.62-15.09-3.08-4.54-8.13-7.25-13.51-7.25-3.3 0-6.5 1.04-9.27 3-55.87 39.52-93.6 97.37-107.97 162.07L47.93 224H.72c-.63 9.92-.97 19.91-.5 29.99.62 13.43 2.54 26.53 5.11 39.41l58.6 58.6H24.02c41.25 90.23 131.13 154.94 235.1 159.71 4.3.2 8.59.29 12.85.29 110.34 0 205.35-65.83 247.98-160h-39.96z"] };
  3466. var faJoint = { prefix: 'fas', iconName: 'joint', icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"] };
  3467. var faJournalWhills = { prefix: 'fas', iconName: 'journal-whills', icon: [448, 512, [], "f66a", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM133.08 144.39l21.26 21.26c1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34c3.12-3.12 3.12-8.19 0-11.31l-26.42-26.42c10-20.9 26.24-37.97 46.37-49.26C179.62 88.4 176 99.74 176 112c0 19.96 9.33 37.57 23.66 49.31C190.01 171.37 184 184.96 184 200c0 26.94 19.04 49.4 44.38 54.76l1.36-32.71-10.37 7.04c-.69.45-1.47.69-2.25.69-1 0-1.98-.38-2.75-1.09a4.006 4.006 0 0 1-.69-4.95l8.54-14.31-17.91-3.72c-1.86-.39-3.19-2.03-3.19-3.92s1.33-3.53 3.19-3.92l17.91-3.72-8.54-14.31c-.95-1.61-.67-3.67.69-4.95 1.36-1.3 3.44-1.44 5-.41l12.01 8.16L236 71.83c.09-2.14 1.86-3.83 4-3.83s3.91 1.69 4 3.83l4.68 112.29 14.2-9.65a4.067 4.067 0 0 1 5 .41 4.006 4.006 0 0 1 .69 4.95l-8.54 14.31 17.91 3.72c1.86.39 3.19 2.03 3.19 3.92s-1.33 3.53-3.19 3.92l-17.91 3.72 8.54 14.31c.95 1.61.67 3.67-.69 4.95-.77.72-1.77 1.09-2.75 1.09-.78 0-1.56-.23-2.25-.69l-12.68-8.62 1.43 34.28C276.96 249.4 296 226.94 296 200c0-15.04-6.01-28.63-15.66-38.69C294.67 149.57 304 131.96 304 112c0-12.26-3.62-23.6-9.6-33.33 20.13 11.28 36.37 28.36 46.37 49.26l-26.42 26.42c-3.12 3.12-3.12 8.19 0 11.31 1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34l21.26-21.26c2.97 10.08 5.07 20.55 5.07 31.6 0 .52-.14.99-.15 1.51l-37.11 32.47a7.975 7.975 0 0 0-.75 11.28 7.97 7.97 0 0 0 6.02 2.73c1.88 0 3.75-.66 5.27-1.98l23.59-20.64C337.32 250.96 293.09 288 240 288s-97.32-37.04-108.86-86.62l23.59 20.64A7.957 7.957 0 0 0 160 224c2.22 0 4.44-.92 6.02-2.73 2.92-3.33 2.58-8.38-.75-11.28l-37.11-32.47c-.01-.52-.15-.99-.15-1.51-.01-11.06 2.09-21.53 5.07-31.62zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3468. var faKaaba = { prefix: 'fas', iconName: 'kaaba', icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"] };
  3469. var faKey = { prefix: 'fas', iconName: 'key', icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"] };
  3470. var faKeyboard = { prefix: 'fas', iconName: 'keyboard', icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3471. var faKhanda = { prefix: 'fas', iconName: 'khanda', icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"] };
  3472. var faKiss = { prefix: 'fas', iconName: 'kiss', icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3473. var faKissBeam = { prefix: 'fas', iconName: 'kiss-beam', icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"] };
  3474. var faKissWinkHeart = { prefix: 'fas', iconName: 'kiss-wink-heart', icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"] };
  3475. var faKiwiBird = { prefix: 'fas', iconName: 'kiwi-bird', icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"] };
  3476. var faLandmark = { prefix: 'fas', iconName: 'landmark', icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3477. var faLanguage = { prefix: 'fas', iconName: 'language', icon: [640, 512, [], "f1ab", "M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"] };
  3478. var faLaptop = { prefix: 'fas', iconName: 'laptop', icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3479. var faLaptopCode = { prefix: 'fas', iconName: 'laptop-code', icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3480. var faLaugh = { prefix: 'fas', iconName: 'laugh', icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"] };
  3481. var faLaughBeam = { prefix: 'fas', iconName: 'laugh-beam', icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3482. var faLaughSquint = { prefix: 'fas', iconName: 'laugh-squint', icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3483. var faLaughWink = { prefix: 'fas', iconName: 'laugh-wink', icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3484. var faLayerGroup = { prefix: 'fas', iconName: 'layer-group', icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"] };
  3485. var faLeaf = { prefix: 'fas', iconName: 'leaf', icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"] };
  3486. var faLemon = { prefix: 'fas', iconName: 'lemon', icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"] };
  3487. var faLessThan = { prefix: 'fas', iconName: 'less-than', icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"] };
  3488. var faLessThanEqual = { prefix: 'fas', iconName: 'less-than-equal', icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3489. var faLevelDownAlt = { prefix: 'fas', iconName: 'level-down-alt', icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"] };
  3490. var faLevelUpAlt = { prefix: 'fas', iconName: 'level-up-alt', icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"] };
  3491. var faLifeRing = { prefix: 'fas', iconName: 'life-ring', icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"] };
  3492. var faLightbulb = { prefix: 'fas', iconName: 'lightbulb', icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3493. var faLink = { prefix: 'fas', iconName: 'link', icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"] };
  3494. var faLiraSign = { prefix: 'fas', iconName: 'lira-sign', icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"] };
  3495. var faList = { prefix: 'fas', iconName: 'list', icon: [512, 512, [], "f03a", "M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"] };
  3496. var faListAlt = { prefix: 'fas', iconName: 'list-alt', icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"] };
  3497. var faListOl = { prefix: 'fas', iconName: 'list-ol', icon: [512, 512, [], "f0cb", "M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3498. var faListUl = { prefix: 'fas', iconName: 'list-ul', icon: [512, 512, [], "f0ca", "M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3499. var faLocationArrow = { prefix: 'fas', iconName: 'location-arrow', icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"] };
  3500. var faLock = { prefix: 'fas', iconName: 'lock', icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"] };
  3501. var faLockOpen = { prefix: 'fas', iconName: 'lock-open', icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"] };
  3502. var faLongArrowAltDown = { prefix: 'fas', iconName: 'long-arrow-alt-down', icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"] };
  3503. var faLongArrowAltLeft = { prefix: 'fas', iconName: 'long-arrow-alt-left', icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"] };
  3504. var faLongArrowAltRight = { prefix: 'fas', iconName: 'long-arrow-alt-right', icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"] };
  3505. var faLongArrowAltUp = { prefix: 'fas', iconName: 'long-arrow-alt-up', icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"] };
  3506. var faLowVision = { prefix: 'fas', iconName: 'low-vision', icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"] };
  3507. var faLuggageCart = { prefix: 'fas', iconName: 'luggage-cart', icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"] };
  3508. var faMagic = { prefix: 'fas', iconName: 'magic', icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"] };
  3509. var faMagnet = { prefix: 'fas', iconName: 'magnet', icon: [512, 512, [], "f076", "M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"] };
  3510. var faMailBulk = { prefix: 'fas', iconName: 'mail-bulk', icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"] };
  3511. var faMale = { prefix: 'fas', iconName: 'male', icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"] };
  3512. var faMap = { prefix: 'fas', iconName: 'map', icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3513. var faMapMarked = { prefix: 'fas', iconName: 'map-marked', icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3514. var faMapMarkedAlt = { prefix: 'fas', iconName: 'map-marked-alt', icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3515. var faMapMarker = { prefix: 'fas', iconName: 'map-marker', icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"] };
  3516. var faMapMarkerAlt = { prefix: 'fas', iconName: 'map-marker-alt', icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"] };
  3517. var faMapPin = { prefix: 'fas', iconName: 'map-pin', icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"] };
  3518. var faMapSigns = { prefix: 'fas', iconName: 'map-signs', icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"] };
  3519. var faMarker = { prefix: 'fas', iconName: 'marker', icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"] };
  3520. var faMars = { prefix: 'fas', iconName: 'mars', icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3521. var faMarsDouble = { prefix: 'fas', iconName: 'mars-double', icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"] };
  3522. var faMarsStroke = { prefix: 'fas', iconName: 'mars-stroke', icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3523. var faMarsStrokeH = { prefix: 'fas', iconName: 'mars-stroke-h', icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3524. var faMarsStrokeV = { prefix: 'fas', iconName: 'mars-stroke-v', icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3525. var faMask = { prefix: 'fas', iconName: 'mask', icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"] };
  3526. var faMedal = { prefix: 'fas', iconName: 'medal', icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"] };
  3527. var faMedkit = { prefix: 'fas', iconName: 'medkit', icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"] };
  3528. var faMeh = { prefix: 'fas', iconName: 'meh', icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3529. var faMehBlank = { prefix: 'fas', iconName: 'meh-blank', icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3530. var faMehRollingEyes = { prefix: 'fas', iconName: 'meh-rolling-eyes', icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"] };
  3531. var faMemory = { prefix: 'fas', iconName: 'memory', icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"] };
  3532. var faMenorah = { prefix: 'fas', iconName: 'menorah', icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"] };
  3533. var faMercury = { prefix: 'fas', iconName: 'mercury', icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3534. var faMicrochip = { prefix: 'fas', iconName: 'microchip', icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"] };
  3535. var faMicrophone = { prefix: 'fas', iconName: 'microphone', icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"] };
  3536. var faMicrophoneAlt = { prefix: 'fas', iconName: 'microphone-alt', icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"] };
  3537. var faMicrophoneAltSlash = { prefix: 'fas', iconName: 'microphone-alt-slash', icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3538. var faMicrophoneSlash = { prefix: 'fas', iconName: 'microphone-slash', icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3539. var faMicroscope = { prefix: 'fas', iconName: 'microscope', icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"] };
  3540. var faMinus = { prefix: 'fas', iconName: 'minus', icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3541. var faMinusCircle = { prefix: 'fas', iconName: 'minus-circle', icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"] };
  3542. var faMinusSquare = { prefix: 'fas', iconName: 'minus-square', icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"] };
  3543. var faMobile = { prefix: 'fas', iconName: 'mobile', icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3544. var faMobileAlt = { prefix: 'fas', iconName: 'mobile-alt', icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"] };
  3545. var faMoneyBill = { prefix: 'fas', iconName: 'money-bill', icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3546. var faMoneyBillAlt = { prefix: 'fas', iconName: 'money-bill-alt', icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3547. var faMoneyBillWave = { prefix: 'fas', iconName: 'money-bill-wave', icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"] };
  3548. var faMoneyBillWaveAlt = { prefix: 'fas', iconName: 'money-bill-wave-alt', icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"] };
  3549. var faMoneyCheck = { prefix: 'fas', iconName: 'money-check', icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"] };
  3550. var faMoneyCheckAlt = { prefix: 'fas', iconName: 'money-check-alt', icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"] };
  3551. var faMonument = { prefix: 'fas', iconName: 'monument', icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3552. var faMoon = { prefix: 'fas', iconName: 'moon', icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"] };
  3553. var faMortarPestle = { prefix: 'fas', iconName: 'mortar-pestle', icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3554. var faMosque = { prefix: 'fas', iconName: 'mosque', icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"] };
  3555. var faMotorcycle = { prefix: 'fas', iconName: 'motorcycle', icon: [640, 512, [], "f21c", "M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"] };
  3556. var faMountain = { prefix: 'fas', iconName: 'mountain', icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"] };
  3557. var faMousePointer = { prefix: 'fas', iconName: 'mouse-pointer', icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"] };
  3558. var faMusic = { prefix: 'fas', iconName: 'music', icon: [512, 512, [], "f001", "M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"] };
  3559. var faNetworkWired = { prefix: 'fas', iconName: 'network-wired', icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"] };
  3560. var faNeuter = { prefix: 'fas', iconName: 'neuter', icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3561. var faNewspaper = { prefix: 'fas', iconName: 'newspaper', icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"] };
  3562. var faNotEqual = { prefix: 'fas', iconName: 'not-equal', icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"] };
  3563. var faNotesMedical = { prefix: 'fas', iconName: 'notes-medical', icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"] };
  3564. var faObjectGroup = { prefix: 'fas', iconName: 'object-group', icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"] };
  3565. var faObjectUngroup = { prefix: 'fas', iconName: 'object-ungroup', icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"] };
  3566. var faOilCan = { prefix: 'fas', iconName: 'oil-can', icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"] };
  3567. var faOm = { prefix: 'fas', iconName: 'om', icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"] };
  3568. var faOtter = { prefix: 'fas', iconName: 'otter', icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"] };
  3569. var faOutdent = { prefix: 'fas', iconName: 'outdent', icon: [448, 512, [], "f03b", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"] };
  3570. var faPaintBrush = { prefix: 'fas', iconName: 'paint-brush', icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"] };
  3571. var faPaintRoller = { prefix: 'fas', iconName: 'paint-roller', icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"] };
  3572. var faPalette = { prefix: 'fas', iconName: 'palette', icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3573. var faPallet = { prefix: 'fas', iconName: 'pallet', icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"] };
  3574. var faPaperPlane = { prefix: 'fas', iconName: 'paper-plane', icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"] };
  3575. var faPaperclip = { prefix: 'fas', iconName: 'paperclip', icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"] };
  3576. var faParachuteBox = { prefix: 'fas', iconName: 'parachute-box', icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"] };
  3577. var faParagraph = { prefix: 'fas', iconName: 'paragraph', icon: [448, 512, [], "f1dd", "M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"] };
  3578. var faParking = { prefix: 'fas', iconName: 'parking', icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"] };
  3579. var faPassport = { prefix: 'fas', iconName: 'passport', icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"] };
  3580. var faPastafarianism = { prefix: 'fas', iconName: 'pastafarianism', icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"] };
  3581. var faPaste = { prefix: 'fas', iconName: 'paste', icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"] };
  3582. var faPause = { prefix: 'fas', iconName: 'pause', icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"] };
  3583. var faPauseCircle = { prefix: 'fas', iconName: 'pause-circle', icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"] };
  3584. var faPaw = { prefix: 'fas', iconName: 'paw', icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"] };
  3585. var faPeace = { prefix: 'fas', iconName: 'peace', icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"] };
  3586. var faPen = { prefix: 'fas', iconName: 'pen', icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"] };
  3587. var faPenAlt = { prefix: 'fas', iconName: 'pen-alt', icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"] };
  3588. var faPenFancy = { prefix: 'fas', iconName: 'pen-fancy', icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"] };
  3589. var faPenNib = { prefix: 'fas', iconName: 'pen-nib', icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"] };
  3590. var faPenSquare = { prefix: 'fas', iconName: 'pen-square', icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"] };
  3591. var faPencilAlt = { prefix: 'fas', iconName: 'pencil-alt', icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"] };
  3592. var faPencilRuler = { prefix: 'fas', iconName: 'pencil-ruler', icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"] };
  3593. var faPeopleCarry = { prefix: 'fas', iconName: 'people-carry', icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"] };
  3594. var faPercent = { prefix: 'fas', iconName: 'percent', icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"] };
  3595. var faPercentage = { prefix: 'fas', iconName: 'percentage', icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"] };
  3596. var faPhone = { prefix: 'fas', iconName: 'phone', icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"] };
  3597. var faPhoneSlash = { prefix: 'fas', iconName: 'phone-slash', icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3598. var faPhoneSquare = { prefix: 'fas', iconName: 'phone-square', icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"] };
  3599. var faPhoneVolume = { prefix: 'fas', iconName: 'phone-volume', icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"] };
  3600. var faPiggyBank = { prefix: 'fas', iconName: 'piggy-bank', icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"] };
  3601. var faPills = { prefix: 'fas', iconName: 'pills', icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"] };
  3602. var faPlaceOfWorship = { prefix: 'fas', iconName: 'place-of-worship', icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"] };
  3603. var faPlane = { prefix: 'fas', iconName: 'plane', icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"] };
  3604. var faPlaneArrival = { prefix: 'fas', iconName: 'plane-arrival', icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"] };
  3605. var faPlaneDeparture = { prefix: 'fas', iconName: 'plane-departure', icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"] };
  3606. var faPlay = { prefix: 'fas', iconName: 'play', icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"] };
  3607. var faPlayCircle = { prefix: 'fas', iconName: 'play-circle', icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"] };
  3608. var faPlug = { prefix: 'fas', iconName: 'plug', icon: [384, 512, [], "f1e6", "M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"] };
  3609. var faPlus = { prefix: 'fas', iconName: 'plus', icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3610. var faPlusCircle = { prefix: 'fas', iconName: 'plus-circle', icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3611. var faPlusSquare = { prefix: 'fas', iconName: 'plus-square', icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3612. var faPodcast = { prefix: 'fas', iconName: 'podcast', icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"] };
  3613. var faPoll = { prefix: 'fas', iconName: 'poll', icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"] };
  3614. var faPollH = { prefix: 'fas', iconName: 'poll-h', icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"] };
  3615. var faPoo = { prefix: 'fas', iconName: 'poo', icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3616. var faPoop = { prefix: 'fas', iconName: 'poop', icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"] };
  3617. var faPortrait = { prefix: 'fas', iconName: 'portrait', icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3618. var faPoundSign = { prefix: 'fas', iconName: 'pound-sign', icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"] };
  3619. var faPowerOff = { prefix: 'fas', iconName: 'power-off', icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"] };
  3620. var faPray = { prefix: 'fas', iconName: 'pray', icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"] };
  3621. var faPrayingHands = { prefix: 'fas', iconName: 'praying-hands', icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"] };
  3622. var faPrescription = { prefix: 'fas', iconName: 'prescription', icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"] };
  3623. var faPrescriptionBottle = { prefix: 'fas', iconName: 'prescription-bottle', icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"] };
  3624. var faPrescriptionBottleAlt = { prefix: 'fas', iconName: 'prescription-bottle-alt', icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"] };
  3625. var faPrint = { prefix: 'fas', iconName: 'print', icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3626. var faProcedures = { prefix: 'fas', iconName: 'procedures', icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"] };
  3627. var faProjectDiagram = { prefix: 'fas', iconName: 'project-diagram', icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"] };
  3628. var faPuzzlePiece = { prefix: 'fas', iconName: 'puzzle-piece', icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"] };
  3629. var faQrcode = { prefix: 'fas', iconName: 'qrcode', icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"] };
  3630. var faQuestion = { prefix: 'fas', iconName: 'question', icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"] };
  3631. var faQuestionCircle = { prefix: 'fas', iconName: 'question-circle', icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"] };
  3632. var faQuidditch = { prefix: 'fas', iconName: 'quidditch', icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"] };
  3633. var faQuoteLeft = { prefix: 'fas', iconName: 'quote-left', icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3634. var faQuoteRight = { prefix: 'fas', iconName: 'quote-right', icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"] };
  3635. var faQuran = { prefix: 'fas', iconName: 'quran', icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3636. var faRandom = { prefix: 'fas', iconName: 'random', icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"] };
  3637. var faReceipt = { prefix: 'fas', iconName: 'receipt', icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"] };
  3638. var faRecycle = { prefix: 'fas', iconName: 'recycle', icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"] };
  3639. var faRedo = { prefix: 'fas', iconName: 'redo', icon: [512, 512, [], "f01e", "M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"] };
  3640. var faRedoAlt = { prefix: 'fas', iconName: 'redo-alt', icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"] };
  3641. var faRegistered = { prefix: 'fas', iconName: 'registered', icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"] };
  3642. var faReply = { prefix: 'fas', iconName: 'reply', icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"] };
  3643. var faReplyAll = { prefix: 'fas', iconName: 'reply-all', icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"] };
  3644. var faRetweet = { prefix: 'fas', iconName: 'retweet', icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"] };
  3645. var faRibbon = { prefix: 'fas', iconName: 'ribbon', icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"] };
  3646. var faRing = { prefix: 'fas', iconName: 'ring', icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"] };
  3647. var faRoad = { prefix: 'fas', iconName: 'road', icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"] };
  3648. var faRobot = { prefix: 'fas', iconName: 'robot', icon: [640, 512, [], "f544", "M0 256v128c0 17.7 14.3 32 32 32h32V224H32c-17.7 0-32 14.3-32 32zM464 96H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H176c-44.2 0-80 35.8-80 80v272c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V176c0-44.2-35.8-80-80-80zM256 416h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm128 120h-64v-32h64v32zm96 0h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm192-72h-32v192h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32z"] };
  3649. var faRocket = { prefix: 'fas', iconName: 'rocket', icon: [512, 512, [], "f135", "M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3650. var faRoute = { prefix: 'fas', iconName: 'route', icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3651. var faRss = { prefix: 'fas', iconName: 'rss', icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"] };
  3652. var faRssSquare = { prefix: 'fas', iconName: 'rss-square', icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"] };
  3653. var faRubleSign = { prefix: 'fas', iconName: 'ruble-sign', icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"] };
  3654. var faRuler = { prefix: 'fas', iconName: 'ruler', icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"] };
  3655. var faRulerCombined = { prefix: 'fas', iconName: 'ruler-combined', icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3656. var faRulerHorizontal = { prefix: 'fas', iconName: 'ruler-horizontal', icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"] };
  3657. var faRulerVertical = { prefix: 'fas', iconName: 'ruler-vertical', icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"] };
  3658. var faRunning = { prefix: 'fas', iconName: 'running', icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"] };
  3659. var faRupeeSign = { prefix: 'fas', iconName: 'rupee-sign', icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"] };
  3660. var faSadCry = { prefix: 'fas', iconName: 'sad-cry', icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"] };
  3661. var faSadTear = { prefix: 'fas', iconName: 'sad-tear', icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"] };
  3662. var faSave = { prefix: 'fas', iconName: 'save', icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"] };
  3663. var faSchool = { prefix: 'fas', iconName: 'school', icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"] };
  3664. var faScrewdriver = { prefix: 'fas', iconName: 'screwdriver', icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"] };
  3665. var faScroll = { prefix: 'fas', iconName: 'scroll', icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"] };
  3666. var faSearch = { prefix: 'fas', iconName: 'search', icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"] };
  3667. var faSearchDollar = { prefix: 'fas', iconName: 'search-dollar', icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"] };
  3668. var faSearchLocation = { prefix: 'fas', iconName: 'search-location', icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3669. var faSearchMinus = { prefix: 'fas', iconName: 'search-minus', icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3670. var faSearchPlus = { prefix: 'fas', iconName: 'search-plus', icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3671. var faSeedling = { prefix: 'fas', iconName: 'seedling', icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"] };
  3672. var faServer = { prefix: 'fas', iconName: 'server', icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"] };
  3673. var faShapes = { prefix: 'fas', iconName: 'shapes', icon: [512, 512, [], "f61f", "M512 320v160c0 17.67-14.33 32-32 32H320c-17.67 0-32-14.33-32-32V320c0-17.67 14.33-32 32-32h160c17.67 0 32 14.33 32 32zm-384-64C57.31 256 0 313.31 0 384s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm351.03-32c25.34 0 41.18-26.67 28.51-48L412.51 16c-12.67-21.33-44.35-21.33-57.02 0l-95.03 160c-12.67 21.33 3.17 48 28.51 48h190.06z"] };
  3674. var faShare = { prefix: 'fas', iconName: 'share', icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"] };
  3675. var faShareAlt = { prefix: 'fas', iconName: 'share-alt', icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"] };
  3676. var faShareAltSquare = { prefix: 'fas', iconName: 'share-alt-square', icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"] };
  3677. var faShareSquare = { prefix: 'fas', iconName: 'share-square', icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"] };
  3678. var faShekelSign = { prefix: 'fas', iconName: 'shekel-sign', icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"] };
  3679. var faShieldAlt = { prefix: 'fas', iconName: 'shield-alt', icon: [512, 512, [], "f3ed", "M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"] };
  3680. var faShip = { prefix: 'fas', iconName: 'ship', icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"] };
  3681. var faShippingFast = { prefix: 'fas', iconName: 'shipping-fast', icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3682. var faShoePrints = { prefix: 'fas', iconName: 'shoe-prints', icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"] };
  3683. var faShoppingBag = { prefix: 'fas', iconName: 'shopping-bag', icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"] };
  3684. var faShoppingBasket = { prefix: 'fas', iconName: 'shopping-basket', icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"] };
  3685. var faShoppingCart = { prefix: 'fas', iconName: 'shopping-cart', icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"] };
  3686. var faShower = { prefix: 'fas', iconName: 'shower', icon: [512, 512, [], "f2cc", "M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"] };
  3687. var faShuttleVan = { prefix: 'fas', iconName: 'shuttle-van', icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"] };
  3688. var faSign = { prefix: 'fas', iconName: 'sign', icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"] };
  3689. var faSignInAlt = { prefix: 'fas', iconName: 'sign-in-alt', icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"] };
  3690. var faSignLanguage = { prefix: 'fas', iconName: 'sign-language', icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"] };
  3691. var faSignOutAlt = { prefix: 'fas', iconName: 'sign-out-alt', icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"] };
  3692. var faSignal = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3693. var faSignature = { prefix: 'fas', iconName: 'signature', icon: [512, 512, [], "f5b7", "M496 320h-91.86c-9.27 0-19.72-11.31-25.78-28.52-15.23-43.36-48.11-70.3-85.8-70.3-30.84 0-58.47 18.05-76.11 49.23L194.8 106.5C188.84 81.08 169.34 64 146.28 64c-23.05 0-42.55 17.08-48.5 42.5L56.16 284.2C50.7 307.45 37.75 320 28.33 320H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h12.33c41.97 0 78.19-34.23 90.14-85.2l23.84-101.78 29.25 222.11c1.98 15.05 13.82 27.45 28.94 28.75.99.09 1.96.13 2.93.13 14.08 0 26.64-9.27 30.69-22.95l33.03-112.34c5.88-16.72 15.84-27.52 25.41-27.52 9.58 0 19.55 10.8 25.78 28.52 15.23 43.36 48.11 70.3 85.8 70.3H496c8.84 0 16-7.16 16-16v-32c0-8.86-7.16-16.02-16-16.02z"] };
  3694. var faSitemap = { prefix: 'fas', iconName: 'sitemap', icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3695. var faSkull = { prefix: 'fas', iconName: 'skull', icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"] };
  3696. var faSkullCrossbones = { prefix: 'fas', iconName: 'skull-crossbones', icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"] };
  3697. var faSlash = { prefix: 'fas', iconName: 'slash', icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"] };
  3698. var faSlidersH = { prefix: 'fas', iconName: 'sliders-h', icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"] };
  3699. var faSmile = { prefix: 'fas', iconName: 'smile', icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"] };
  3700. var faSmileBeam = { prefix: 'fas', iconName: 'smile-beam', icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"] };
  3701. var faSmileWink = { prefix: 'fas', iconName: 'smile-wink', icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"] };
  3702. var faSmoking = { prefix: 'fas', iconName: 'smoking', icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"] };
  3703. var faSmokingBan = { prefix: 'fas', iconName: 'smoking-ban', icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"] };
  3704. var faSnowflake = { prefix: 'fas', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M444.816 301.639a24.12 24.12 0 0 0 2.661-16.978c-2.725-12.966-15.339-21.245-28.174-18.492l-87.407 25.046L264 256l67.896-35.215 87.407 25.046c12.835 2.753 25.449-5.526 28.174-18.492 2.725-12.966-5.471-25.708-18.305-28.461l-47.477-7.137 53.077-30.956c11.363-6.627 15.257-21.306 8.696-32.785-6.561-11.479-21.091-15.412-32.454-8.785l-53.077 30.956 17.621-45.104c4.057-12.606-2.768-26.146-15.247-30.245-12.478-4.099-25.883 2.797-29.94 15.402l-22.232 88.99-60.38 35.215V144l65.175-63.945c8.778-9.852 7.987-25.027-1.766-33.894-9.753-8.867-24.775-8.068-33.552 1.784l-29.857 37.967V24c0-13.255-10.637-24-23.758-24s-23.758 10.745-23.758 24v61.912l-29.857-37.967c-8.779-9.852-23.799-10.652-33.552-1.784-9.753 8.867-10.543 24.042-1.766 33.894L200.242 144v70.431l-60.38-35.215-22.232-88.99c-4.057-12.605-17.462-19.501-29.94-15.402-12.478 4.099-19.304 17.64-15.247 30.245l17.62 45.104-53.077-30.956c-11.363-6.627-25.893-2.694-32.454 8.785s-2.667 26.157 8.696 32.785l53.077 30.956-47.477 7.137C5.993 201.634-2.203 214.375.523 227.341c2.725 12.965 15.339 21.245 28.174 18.492l87.407-25.046L184 256l-67.896 35.215-87.406-25.045c-12.835-2.753-25.449 5.526-28.174 18.492-2.725 12.967 5.47 25.708 18.305 28.461l47.477 7.137-53.077 30.956C1.866 357.843-2.027 372.521 4.533 384s21.091 15.412 32.454 8.785l53.077-30.956-17.62 45.104a24.157 24.157 0 0 0 2.022 19.428c2.831 4.953 7.416 8.909 13.224 10.816 12.478 4.099 25.883-2.797 29.94-15.402l22.232-88.99 60.38-35.215V368l-65.175 63.945c-8.778 9.852-7.987 25.027 1.766 33.894 9.754 8.868 24.774 8.068 33.552-1.784l29.857-37.967V488c0 13.255 10.637 24 23.758 24s23.758-10.745 23.758-24v-61.912l29.857 37.967A23.59 23.59 0 0 0 295.282 472a23.534 23.534 0 0 0 15.885-6.161c9.753-8.867 10.544-24.042 1.766-33.894L247.758 368v-70.431l60.38 35.215 22.232 88.99c4.057 12.605 17.462 19.501 29.94 15.402 12.479-4.099 19.304-17.64 15.247-30.245l-17.621-45.104 53.077 30.956c11.363 6.627 25.893 2.694 32.454-8.785s2.667-26.157-8.696-32.785l-53.077-30.956 47.477-7.137c6.86-1.469 12.394-5.793 15.645-11.481z"] };
  3705. var faSocks = { prefix: 'fas', iconName: 'socks', icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"] };
  3706. var faSolarPanel = { prefix: 'fas', iconName: 'solar-panel', icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"] };
  3707. var faSort = { prefix: 'fas', iconName: 'sort', icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"] };
  3708. var faSortAlphaDown = { prefix: 'fas', iconName: 'sort-alpha-down', icon: [448, 512, [], "f15d", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3709. var faSortAlphaUp = { prefix: 'fas', iconName: 'sort-alpha-up', icon: [448, 512, [], "f15e", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3710. var faSortAmountDown = { prefix: 'fas', iconName: 'sort-amount-down', icon: [512, 512, [], "f160", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3711. var faSortAmountUp = { prefix: 'fas', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3712. var faSortDown = { prefix: 'fas', iconName: 'sort-down', icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"] };
  3713. var faSortNumericDown = { prefix: 'fas', iconName: 'sort-numeric-down', icon: [448, 512, [], "f162", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"] };
  3714. var faSortNumericUp = { prefix: 'fas', iconName: 'sort-numeric-up', icon: [448, 512, [], "f163", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"] };
  3715. var faSortUp = { prefix: 'fas', iconName: 'sort-up', icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"] };
  3716. var faSpa = { prefix: 'fas', iconName: 'spa', icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"] };
  3717. var faSpaceShuttle = { prefix: 'fas', iconName: 'space-shuttle', icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"] };
  3718. var faSpider = { prefix: 'fas', iconName: 'spider', icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"] };
  3719. var faSpinner = { prefix: 'fas', iconName: 'spinner', icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"] };
  3720. var faSplotch = { prefix: 'fas', iconName: 'splotch', icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"] };
  3721. var faSprayCan = { prefix: 'fas', iconName: 'spray-can', icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3722. var faSquare = { prefix: 'fas', iconName: 'square', icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3723. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3724. var faSquareRootAlt = { prefix: 'fas', iconName: 'square-root-alt', icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"] };
  3725. var faStamp = { prefix: 'fas', iconName: 'stamp', icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"] };
  3726. var faStar = { prefix: 'fas', iconName: 'star', icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"] };
  3727. var faStarAndCrescent = { prefix: 'fas', iconName: 'star-and-crescent', icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"] };
  3728. var faStarHalf = { prefix: 'fas', iconName: 'star-half', icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"] };
  3729. var faStarHalfAlt = { prefix: 'fas', iconName: 'star-half-alt', icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"] };
  3730. var faStarOfDavid = { prefix: 'fas', iconName: 'star-of-david', icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"] };
  3731. var faStarOfLife = { prefix: 'fas', iconName: 'star-of-life', icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"] };
  3732. var faStepBackward = { prefix: 'fas', iconName: 'step-backward', icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"] };
  3733. var faStepForward = { prefix: 'fas', iconName: 'step-forward', icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"] };
  3734. var faStethoscope = { prefix: 'fas', iconName: 'stethoscope', icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3735. var faStickyNote = { prefix: 'fas', iconName: 'sticky-note', icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"] };
  3736. var faStop = { prefix: 'fas', iconName: 'stop', icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3737. var faStopCircle = { prefix: 'fas', iconName: 'stop-circle', icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"] };
  3738. var faStopwatch = { prefix: 'fas', iconName: 'stopwatch', icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3739. var faStore = { prefix: 'fas', iconName: 'store', icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"] };
  3740. var faStoreAlt = { prefix: 'fas', iconName: 'store-alt', icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"] };
  3741. var faStream = { prefix: 'fas', iconName: 'stream', icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"] };
  3742. var faStreetView = { prefix: 'fas', iconName: 'street-view', icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"] };
  3743. var faStrikethrough = { prefix: 'fas', iconName: 'strikethrough', icon: [512, 512, [], "f0cc", "M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"] };
  3744. var faStroopwafel = { prefix: 'fas', iconName: 'stroopwafel', icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"] };
  3745. var faSubscript = { prefix: 'fas', iconName: 'subscript', icon: [512, 512, [], "f12c", "M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"] };
  3746. var faSubway = { prefix: 'fas', iconName: 'subway', icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3747. var faSuitcase = { prefix: 'fas', iconName: 'suitcase', icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"] };
  3748. var faSuitcaseRolling = { prefix: 'fas', iconName: 'suitcase-rolling', icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"] };
  3749. var faSun = { prefix: 'fas', iconName: 'sun', icon: [512, 512, [], "f185", "M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"] };
  3750. var faSuperscript = { prefix: 'fas', iconName: 'superscript', icon: [512, 512, [], "f12b", "M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"] };
  3751. var faSurprise = { prefix: 'fas', iconName: 'surprise', icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3752. var faSwatchbook = { prefix: 'fas', iconName: 'swatchbook', icon: [511, 512, [], "f5c3", "M479.06 320H372.29L186.15 506.51c-2.06 2.07-4.49 3.58-6.67 5.49h299.58c17.64 0 31.94-14.33 31.94-32V352c0-17.67-14.3-32-31.94-32zm-44.5-152.9l-90.33-90.51c-12.47-12.5-32.69-12.5-45.17 0l-75.5 75.65V416c0 2.96-.67 5.73-.87 8.64l211.87-212.28c12.47-12.5 12.47-32.77 0-45.26zM191.62 32c0-17.67-14.3-32-31.94-32H31.94C14.3 0 0 14.33 0 32v384c0 53.02 42.9 96 95.81 96s95.81-42.98 95.81-96V32zM95.81 440c-13.23 0-23.95-10.75-23.95-24 0-13.26 10.73-24 23.95-24s23.95 10.74 23.95 24c.01 13.25-10.72 24-23.95 24zm31.94-184H63.88v-64h63.88v64zm0-128H63.88V64h63.88v64z"] };
  3753. var faSwimmer = { prefix: 'fas', iconName: 'swimmer', icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"] };
  3754. var faSwimmingPool = { prefix: 'fas', iconName: 'swimming-pool', icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"] };
  3755. var faSynagogue = { prefix: 'fas', iconName: 'synagogue', icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"] };
  3756. var faSync = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.104 77.801l-101.53-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12h-47.411c-6.853 0-12.315 5.729-11.987 12.574zM256 432c-60.895 0-114.517-30.858-146.109-77.805l101.868 4.871c6.845.327 12.573-5.134 12.573-11.986v-47.412c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12V500c0 6.627 5.373 12 12 12h47.385c6.863 0 12.328-5.745 11.985-12.599l-4.129-82.575C112.725 470.166 180.405 504 256 504c121.187 0 222.067-86.924 243.704-201.824 1.388-7.369-4.308-14.176-11.807-14.176h-49.084c-5.57 0-10.377 3.842-11.676 9.259C408.593 374.592 339.069 432 256 432z"] };
  3757. var faSyncAlt = { prefix: 'fas', iconName: 'sync-alt', icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"] };
  3758. var faSyringe = { prefix: 'fas', iconName: 'syringe', icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"] };
  3759. var faTable = { prefix: 'fas', iconName: 'table', icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"] };
  3760. var faTableTennis = { prefix: 'fas', iconName: 'table-tennis', icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"] };
  3761. var faTablet = { prefix: 'fas', iconName: 'tablet', icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3762. var faTabletAlt = { prefix: 'fas', iconName: 'tablet-alt', icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"] };
  3763. var faTablets = { prefix: 'fas', iconName: 'tablets', icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"] };
  3764. var faTachometerAlt = { prefix: 'fas', iconName: 'tachometer-alt', icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3765. var faTag = { prefix: 'fas', iconName: 'tag', icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3766. var faTags = { prefix: 'fas', iconName: 'tags', icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"] };
  3767. var faTape = { prefix: 'fas', iconName: 'tape', icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"] };
  3768. var faTasks = { prefix: 'fas', iconName: 'tasks', icon: [512, 512, [], "f0ae", "M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"] };
  3769. var faTaxi = { prefix: 'fas', iconName: 'taxi', icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3770. var faTeeth = { prefix: 'fas', iconName: 'teeth', icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"] };
  3771. var faTeethOpen = { prefix: 'fas', iconName: 'teeth-open', icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"] };
  3772. var faTerminal = { prefix: 'fas', iconName: 'terminal', icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"] };
  3773. var faTextHeight = { prefix: 'fas', iconName: 'text-height', icon: [576, 512, [], "f034", "M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"] };
  3774. var faTextWidth = { prefix: 'fas', iconName: 'text-width', icon: [448, 512, [], "f035", "M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"] };
  3775. var faTh = { prefix: 'fas', iconName: 'th', icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"] };
  3776. var faThLarge = { prefix: 'fas', iconName: 'th-large', icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"] };
  3777. var faThList = { prefix: 'fas', iconName: 'th-list', icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"] };
  3778. var faTheaterMasks = { prefix: 'fas', iconName: 'theater-masks', icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"] };
  3779. var faThermometer = { prefix: 'fas', iconName: 'thermometer', icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"] };
  3780. var faThermometerEmpty = { prefix: 'fas', iconName: 'thermometer-empty', icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3781. var faThermometerFull = { prefix: 'fas', iconName: 'thermometer-full', icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"] };
  3782. var faThermometerHalf = { prefix: 'fas', iconName: 'thermometer-half', icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3783. var faThermometerQuarter = { prefix: 'fas', iconName: 'thermometer-quarter', icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3784. var faThermometerThreeQuarters = { prefix: 'fas', iconName: 'thermometer-three-quarters', icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3785. var faThumbsDown = { prefix: 'fas', iconName: 'thumbs-down', icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"] };
  3786. var faThumbsUp = { prefix: 'fas', iconName: 'thumbs-up', icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"] };
  3787. var faThumbtack = { prefix: 'fas', iconName: 'thumbtack', icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"] };
  3788. var faTicketAlt = { prefix: 'fas', iconName: 'ticket-alt', icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"] };
  3789. var faTimes = { prefix: 'fas', iconName: 'times', icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"] };
  3790. var faTimesCircle = { prefix: 'fas', iconName: 'times-circle', icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"] };
  3791. var faTint = { prefix: 'fas', iconName: 'tint', icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3792. var faTintSlash = { prefix: 'fas', iconName: 'tint-slash', icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"] };
  3793. var faTired = { prefix: 'fas', iconName: 'tired', icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"] };
  3794. var faToggleOff = { prefix: 'fas', iconName: 'toggle-off', icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"] };
  3795. var faToggleOn = { prefix: 'fas', iconName: 'toggle-on', icon: [576, 512, [], "f205", "M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"] };
  3796. var faToiletPaper = { prefix: 'fas', iconName: 'toilet-paper', icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"] };
  3797. var faToolbox = { prefix: 'fas', iconName: 'toolbox', icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"] };
  3798. var faTooth = { prefix: 'fas', iconName: 'tooth', icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"] };
  3799. var faTorah = { prefix: 'fas', iconName: 'torah', icon: [448, 512, [], "f6a0", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM139.11 141.21c-2.77-4.41.4-10.14 5.6-10.14h53.08c.9 0 1.73-.46 2.21-1.22l34.4-54.76c2.6-4.13 8.61-4.13 11.21 0l34.4 54.76a2.61 2.61 0 0 0 2.21 1.22h53.08c5.2 0 8.37 5.73 5.6 10.14L314.01 184l26.88 42.79c2.77 4.4-.4 10.13-5.6 10.13h-53.08c-.9 0-1.73.46-2.21 1.22l-34.4 54.76c-2.6 4.13-8.61 4.13-11.21 0L200 238.15a2.61 2.61 0 0 0-2.21-1.22h-53.08c-5.2 0-8.37-5.73-5.6-10.13l26.88-42.8-26.88-42.79zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3800. var faToriiGate = { prefix: 'fas', iconName: 'torii-gate', icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"] };
  3801. var faTractor = { prefix: 'fas', iconName: 'tractor', icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"] };
  3802. var faTrademark = { prefix: 'fas', iconName: 'trademark', icon: [640, 512, [], "f25c", "M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"] };
  3803. var faTrafficLight = { prefix: 'fas', iconName: 'traffic-light', icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3804. var faTrain = { prefix: 'fas', iconName: 'train', icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"] };
  3805. var faTransgender = { prefix: 'fas', iconName: 'transgender', icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3806. var faTransgenderAlt = { prefix: 'fas', iconName: 'transgender-alt', icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3807. var faTrash = { prefix: 'fas', iconName: 'trash', icon: [448, 512, [], "f1f8", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"] };
  3808. var faTrashAlt = { prefix: 'fas', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm416 56v324c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V140c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12zm-272 68c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208z"] };
  3809. var faTree = { prefix: 'fas', iconName: 'tree', icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"] };
  3810. var faTrophy = { prefix: 'fas', iconName: 'trophy', icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"] };
  3811. var faTruck = { prefix: 'fas', iconName: 'truck', icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3812. var faTruckLoading = { prefix: 'fas', iconName: 'truck-loading', icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3813. var faTruckMonster = { prefix: 'fas', iconName: 'truck-monster', icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3814. var faTruckMoving = { prefix: 'fas', iconName: 'truck-moving', icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"] };
  3815. var faTruckPickup = { prefix: 'fas', iconName: 'truck-pickup', icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3816. var faTshirt = { prefix: 'fas', iconName: 'tshirt', icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"] };
  3817. var faTty = { prefix: 'fas', iconName: 'tty', icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3818. var faTv = { prefix: 'fas', iconName: 'tv', icon: [640, 512, [], "f26c", "M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"] };
  3819. var faUmbrella = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.406-158.567-30.731-10.21 8.264-20.912-1.109-18.696-9.481C32.146 134.573 158.516 64.612 288.001 64.612c128.793 0 256.546 69.961 287.706 193.538 2.206 8.322-8.426 17.793-18.696 9.481zM256 261.001V416c0 17.645-14.355 32-32 32s-32-14.355-32-32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 52.935 43.065 96 96 96s96-43.065 96-96V261.288c-21.836-10.806-45.425-9.737-64-.287zm64-211.007V32c0-17.673-14.327-32-32-32s-32 14.327-32 32v17.987a372.105 372.105 0 0 1 64 .007z"] };
  3820. var faUmbrellaBeach = { prefix: 'fas', iconName: 'umbrella-beach', icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"] };
  3821. var faUnderline = { prefix: 'fas', iconName: 'underline', icon: [448, 512, [], "f0cd", "M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"] };
  3822. var faUndo = { prefix: 'fas', iconName: 'undo', icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"] };
  3823. var faUndoAlt = { prefix: 'fas', iconName: 'undo-alt', icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"] };
  3824. var faUniversalAccess = { prefix: 'fas', iconName: 'universal-access', icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"] };
  3825. var faUniversity = { prefix: 'fas', iconName: 'university', icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"] };
  3826. var faUnlink = { prefix: 'fas', iconName: 'unlink', icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"] };
  3827. var faUnlock = { prefix: 'fas', iconName: 'unlock', icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3828. var faUnlockAlt = { prefix: 'fas', iconName: 'unlock-alt', icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"] };
  3829. var faUpload = { prefix: 'fas', iconName: 'upload', icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3830. var faUser = { prefix: 'fas', iconName: 'user', icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3831. var faUserAlt = { prefix: 'fas', iconName: 'user-alt', icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"] };
  3832. var faUserAltSlash = { prefix: 'fas', iconName: 'user-alt-slash', icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"] };
  3833. var faUserAstronaut = { prefix: 'fas', iconName: 'user-astronaut', icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"] };
  3834. var faUserCheck = { prefix: 'fas', iconName: 'user-check', icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"] };
  3835. var faUserCircle = { prefix: 'fas', iconName: 'user-circle', icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"] };
  3836. var faUserClock = { prefix: 'fas', iconName: 'user-clock', icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"] };
  3837. var faUserCog = { prefix: 'fas', iconName: 'user-cog', icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"] };
  3838. var faUserEdit = { prefix: 'fas', iconName: 'user-edit', icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"] };
  3839. var faUserFriends = { prefix: 'fas', iconName: 'user-friends', icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"] };
  3840. var faUserGraduate = { prefix: 'fas', iconName: 'user-graduate', icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"] };
  3841. var faUserInjured = { prefix: 'fas', iconName: 'user-injured', icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"] };
  3842. var faUserLock = { prefix: 'fas', iconName: 'user-lock', icon: [640, 512, [], "f502", "M320 320c0-11.1 3.1-21.4 8.1-30.5-4.8-.5-9.5-1.5-14.5-1.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h280.9c-5.5-9.5-8.9-20.3-8.9-32V320zm-96-64c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm384 32h-32v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80v48h-32c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V320c0-17.7-14.3-32-32-32zm-80 0h-64v-48c0-17.6 14.4-32 32-32s32 14.4 32 32v48z"] };
  3843. var faUserMd = { prefix: 'fas', iconName: 'user-md', icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"] };
  3844. var faUserMinus = { prefix: 'fas', iconName: 'user-minus', icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3845. var faUserNinja = { prefix: 'fas', iconName: 'user-ninja', icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"] };
  3846. var faUserPlus = { prefix: 'fas', iconName: 'user-plus', icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3847. var faUserSecret = { prefix: 'fas', iconName: 'user-secret', icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"] };
  3848. var faUserShield = { prefix: 'fas', iconName: 'user-shield', icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"] };
  3849. var faUserSlash = { prefix: 'fas', iconName: 'user-slash', icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"] };
  3850. var faUserTag = { prefix: 'fas', iconName: 'user-tag', icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"] };
  3851. var faUserTie = { prefix: 'fas', iconName: 'user-tie', icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"] };
  3852. var faUserTimes = { prefix: 'fas', iconName: 'user-times', icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3853. var faUsers = { prefix: 'fas', iconName: 'users', icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3854. var faUsersCog = { prefix: 'fas', iconName: 'users-cog', icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3855. var faUtensilSpoon = { prefix: 'fas', iconName: 'utensil-spoon', icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"] };
  3856. var faUtensils = { prefix: 'fas', iconName: 'utensils', icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"] };
  3857. var faVectorSquare = { prefix: 'fas', iconName: 'vector-square', icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"] };
  3858. var faVenus = { prefix: 'fas', iconName: 'venus', icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3859. var faVenusDouble = { prefix: 'fas', iconName: 'venus-double', icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"] };
  3860. var faVenusMars = { prefix: 'fas', iconName: 'venus-mars', icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3861. var faVial = { prefix: 'fas', iconName: 'vial', icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"] };
  3862. var faVials = { prefix: 'fas', iconName: 'vials', icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"] };
  3863. var faVideo = { prefix: 'fas', iconName: 'video', icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"] };
  3864. var faVideoSlash = { prefix: 'fas', iconName: 'video-slash', icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"] };
  3865. var faVihara = { prefix: 'fas', iconName: 'vihara', icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"] };
  3866. var faVolleyballBall = { prefix: 'fas', iconName: 'volleyball-ball', icon: [495, 512, [], "f45f", "M223.3 243.4c-.9-37-8.6-72.8-22.7-105.7-90.8 42.4-157.5 122.4-180.3 216.8 13.4 30.8 32.9 58.3 56.9 81.1 22.7-79.2 74.2-147.8 146.1-192.2zM186.4 109c-15-26.4-34.5-50.1-57.4-70.7C38 88.1-15.8 191.2 4 300.5c33.4-83.1 98.4-152 182.4-191.5zM374 274.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5 57.3 59.3 91 138.2 93.5 222.7 32.5 17.7 67.3 29 102.9 33.2zm-124.7 9.5c-31.6 19.3-58.7 43.9-80.2 72.6 82 57.3 184.5 75.1 277.5 47.8 19.7-26.4 34.2-56.8 42.2-89.9-26.6 6.6-53.7 10.4-80.9 10.4-54.6-.1-108.9-14.1-158.6-40.9zM151 383.3c-15.2 26-25.7 54.4-32.1 84.2 37.6 23 81.7 36.5 129.1 36.5 61 0 116.7-22.1 159.9-58.6C295 461.5 204.6 420.6 151 383.3zM331.3 22.7c55.3 70.4 82.5 161.2 74.6 253.6 30.3.2 60.5-4.8 89.7-14.2 0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"] };
  3867. var faVolumeDown = { prefix: 'fas', iconName: 'volume-down', icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"] };
  3868. var faVolumeMute = { prefix: 'fas', iconName: 'volume-mute', icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"] };
  3869. var faVolumeOff = { prefix: 'fas', iconName: 'volume-off', icon: [257, 512, [], "f026", "M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"] };
  3870. var faVolumeUp = { prefix: 'fas', iconName: 'volume-up', icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"] };
  3871. var faVrCardboard = { prefix: 'fas', iconName: 'vr-cardboard', icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"] };
  3872. var faWalking = { prefix: 'fas', iconName: 'walking', icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"] };
  3873. var faWallet = { prefix: 'fas', iconName: 'wallet', icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3874. var faWarehouse = { prefix: 'fas', iconName: 'warehouse', icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"] };
  3875. var faWeight = { prefix: 'fas', iconName: 'weight', icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"] };
  3876. var faWeightHanging = { prefix: 'fas', iconName: 'weight-hanging', icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3877. var faWheelchair = { prefix: 'fas', iconName: 'wheelchair', icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"] };
  3878. var faWifi = { prefix: 'fas', iconName: 'wifi', icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"] };
  3879. var faWind = { prefix: 'fas', iconName: 'wind', icon: [512, 512, [], "f72e", "M156.66 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h142.19c15.95 0 30.77 10.85 33.37 26.58C194.86 366.6 179.42 384 160 384c-14.11 0-26.13-9.19-30.37-21.9-2.11-6.31-8.6-10.1-15.25-10.1H81.63c-9.8 0-17.73 8.81-15.86 18.43C74.39 414.58 113.37 448 160 448c57.09 0 102.7-50.09 95.19-108.63-6.21-48.39-49.74-83.37-98.53-83.37zM16 224h336c59.7 0 106.83-54.76 93.83-116.69-7.61-36.23-36.91-65.53-73.14-73.14-55.44-11.64-105.13 24.91-114.93 75.53-1.86 9.57 6.09 18.3 15.84 18.3h32.8c6.65 0 13.14-3.79 15.25-10.1C325.88 105.19 337.89 96 352 96c19.42 0 34.86 17.39 31.55 37.41-2.6 15.73-17.42 26.59-33.37 26.59H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16zm384 32H243.68c19.34 16.57 33.19 38.79 39.77 64H400c26.47 0 48 21.53 48 48s-21.53 48-48 48c-17.86 0-33.33-9.86-41.56-24.38-2.85-5.03-8.69-7.62-14.47-7.62h-33.82c-10.91 0-18.96 10.81-15.35 21.1 17.77 50.6 70.54 84.75 129.41 72.35 41.22-8.69 75.1-41.65 84.67-82.68C525.98 321.46 470.48 256 400 256z"] };
  3880. var faWindowClose = { prefix: 'fas', iconName: 'window-close', icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"] };
  3881. var faWindowMaximize = { prefix: 'fas', iconName: 'window-maximize', icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"] };
  3882. var faWindowMinimize = { prefix: 'fas', iconName: 'window-minimize', icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"] };
  3883. var faWindowRestore = { prefix: 'fas', iconName: 'window-restore', icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"] };
  3884. var faWineBottle = { prefix: 'fas', iconName: 'wine-bottle', icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"] };
  3885. var faWineGlass = { prefix: 'fas', iconName: 'wine-glass', icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"] };
  3886. var faWineGlassAlt = { prefix: 'fas', iconName: 'wine-glass-alt', icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"] };
  3887. var faWonSign = { prefix: 'fas', iconName: 'won-sign', icon: [576, 512, [], "f159", "M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"] };
  3888. var faWrench = { prefix: 'fas', iconName: 'wrench', icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3889. var faXRay = { prefix: 'fas', iconName: 'x-ray', icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"] };
  3890. var faYenSign = { prefix: 'fas', iconName: 'yen-sign', icon: [384, 512, [], "f157", "M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"] };
  3891. var faYinYang = { prefix: 'fas', iconName: 'yin-yang', icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3892. var _iconsCache = {
  3893. faAd: faAd,
  3894. faAddressBook: faAddressBook,
  3895. faAddressCard: faAddressCard,
  3896. faAdjust: faAdjust,
  3897. faAirFreshener: faAirFreshener,
  3898. faAlignCenter: faAlignCenter,
  3899. faAlignJustify: faAlignJustify,
  3900. faAlignLeft: faAlignLeft,
  3901. faAlignRight: faAlignRight,
  3902. faAllergies: faAllergies,
  3903. faAmbulance: faAmbulance,
  3904. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3905. faAnchor: faAnchor,
  3906. faAngleDoubleDown: faAngleDoubleDown,
  3907. faAngleDoubleLeft: faAngleDoubleLeft,
  3908. faAngleDoubleRight: faAngleDoubleRight,
  3909. faAngleDoubleUp: faAngleDoubleUp,
  3910. faAngleDown: faAngleDown,
  3911. faAngleLeft: faAngleLeft,
  3912. faAngleRight: faAngleRight,
  3913. faAngleUp: faAngleUp,
  3914. faAngry: faAngry,
  3915. faAnkh: faAnkh,
  3916. faAppleAlt: faAppleAlt,
  3917. faArchive: faArchive,
  3918. faArchway: faArchway,
  3919. faArrowAltCircleDown: faArrowAltCircleDown,
  3920. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3921. faArrowAltCircleRight: faArrowAltCircleRight,
  3922. faArrowAltCircleUp: faArrowAltCircleUp,
  3923. faArrowCircleDown: faArrowCircleDown,
  3924. faArrowCircleLeft: faArrowCircleLeft,
  3925. faArrowCircleRight: faArrowCircleRight,
  3926. faArrowCircleUp: faArrowCircleUp,
  3927. faArrowDown: faArrowDown,
  3928. faArrowLeft: faArrowLeft,
  3929. faArrowRight: faArrowRight,
  3930. faArrowUp: faArrowUp,
  3931. faArrowsAlt: faArrowsAlt,
  3932. faArrowsAltH: faArrowsAltH,
  3933. faArrowsAltV: faArrowsAltV,
  3934. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3935. faAsterisk: faAsterisk,
  3936. faAt: faAt,
  3937. faAtlas: faAtlas,
  3938. faAtom: faAtom,
  3939. faAudioDescription: faAudioDescription,
  3940. faAward: faAward,
  3941. faBackspace: faBackspace,
  3942. faBackward: faBackward,
  3943. faBalanceScale: faBalanceScale,
  3944. faBan: faBan,
  3945. faBandAid: faBandAid,
  3946. faBarcode: faBarcode,
  3947. faBars: faBars,
  3948. faBaseballBall: faBaseballBall,
  3949. faBasketballBall: faBasketballBall,
  3950. faBath: faBath,
  3951. faBatteryEmpty: faBatteryEmpty,
  3952. faBatteryFull: faBatteryFull,
  3953. faBatteryHalf: faBatteryHalf,
  3954. faBatteryQuarter: faBatteryQuarter,
  3955. faBatteryThreeQuarters: faBatteryThreeQuarters,
  3956. faBed: faBed,
  3957. faBeer: faBeer,
  3958. faBell: faBell,
  3959. faBellSlash: faBellSlash,
  3960. faBezierCurve: faBezierCurve,
  3961. faBible: faBible,
  3962. faBicycle: faBicycle,
  3963. faBinoculars: faBinoculars,
  3964. faBirthdayCake: faBirthdayCake,
  3965. faBlender: faBlender,
  3966. faBlenderPhone: faBlenderPhone,
  3967. faBlind: faBlind,
  3968. faBold: faBold,
  3969. faBolt: faBolt,
  3970. faBomb: faBomb,
  3971. faBone: faBone,
  3972. faBong: faBong,
  3973. faBook: faBook,
  3974. faBookDead: faBookDead,
  3975. faBookOpen: faBookOpen,
  3976. faBookReader: faBookReader,
  3977. faBookmark: faBookmark,
  3978. faBowlingBall: faBowlingBall,
  3979. faBox: faBox,
  3980. faBoxOpen: faBoxOpen,
  3981. faBoxes: faBoxes,
  3982. faBraille: faBraille,
  3983. faBrain: faBrain,
  3984. faBriefcase: faBriefcase,
  3985. faBriefcaseMedical: faBriefcaseMedical,
  3986. faBroadcastTower: faBroadcastTower,
  3987. faBroom: faBroom,
  3988. faBrush: faBrush,
  3989. faBug: faBug,
  3990. faBuilding: faBuilding,
  3991. faBullhorn: faBullhorn,
  3992. faBullseye: faBullseye,
  3993. faBurn: faBurn,
  3994. faBus: faBus,
  3995. faBusAlt: faBusAlt,
  3996. faBusinessTime: faBusinessTime,
  3997. faCalculator: faCalculator,
  3998. faCalendar: faCalendar,
  3999. faCalendarAlt: faCalendarAlt,
  4000. faCalendarCheck: faCalendarCheck,
  4001. faCalendarMinus: faCalendarMinus,
  4002. faCalendarPlus: faCalendarPlus,
  4003. faCalendarTimes: faCalendarTimes,
  4004. faCamera: faCamera,
  4005. faCameraRetro: faCameraRetro,
  4006. faCampground: faCampground,
  4007. faCannabis: faCannabis,
  4008. faCapsules: faCapsules,
  4009. faCar: faCar,
  4010. faCarAlt: faCarAlt,
  4011. faCarBattery: faCarBattery,
  4012. faCarCrash: faCarCrash,
  4013. faCarSide: faCarSide,
  4014. faCaretDown: faCaretDown,
  4015. faCaretLeft: faCaretLeft,
  4016. faCaretRight: faCaretRight,
  4017. faCaretSquareDown: faCaretSquareDown,
  4018. faCaretSquareLeft: faCaretSquareLeft,
  4019. faCaretSquareRight: faCaretSquareRight,
  4020. faCaretSquareUp: faCaretSquareUp,
  4021. faCaretUp: faCaretUp,
  4022. faCartArrowDown: faCartArrowDown,
  4023. faCartPlus: faCartPlus,
  4024. faCat: faCat,
  4025. faCertificate: faCertificate,
  4026. faChair: faChair,
  4027. faChalkboard: faChalkboard,
  4028. faChalkboardTeacher: faChalkboardTeacher,
  4029. faChargingStation: faChargingStation,
  4030. faChartArea: faChartArea,
  4031. faChartBar: faChartBar,
  4032. faChartLine: faChartLine,
  4033. faChartPie: faChartPie,
  4034. faCheck: faCheck,
  4035. faCheckCircle: faCheckCircle,
  4036. faCheckDouble: faCheckDouble,
  4037. faCheckSquare: faCheckSquare,
  4038. faChess: faChess,
  4039. faChessBishop: faChessBishop,
  4040. faChessBoard: faChessBoard,
  4041. faChessKing: faChessKing,
  4042. faChessKnight: faChessKnight,
  4043. faChessPawn: faChessPawn,
  4044. faChessQueen: faChessQueen,
  4045. faChessRook: faChessRook,
  4046. faChevronCircleDown: faChevronCircleDown,
  4047. faChevronCircleLeft: faChevronCircleLeft,
  4048. faChevronCircleRight: faChevronCircleRight,
  4049. faChevronCircleUp: faChevronCircleUp,
  4050. faChevronDown: faChevronDown,
  4051. faChevronLeft: faChevronLeft,
  4052. faChevronRight: faChevronRight,
  4053. faChevronUp: faChevronUp,
  4054. faChild: faChild,
  4055. faChurch: faChurch,
  4056. faCircle: faCircle,
  4057. faCircleNotch: faCircleNotch,
  4058. faCity: faCity,
  4059. faClipboard: faClipboard,
  4060. faClipboardCheck: faClipboardCheck,
  4061. faClipboardList: faClipboardList,
  4062. faClock: faClock,
  4063. faClone: faClone,
  4064. faClosedCaptioning: faClosedCaptioning,
  4065. faCloud: faCloud,
  4066. faCloudDownloadAlt: faCloudDownloadAlt,
  4067. faCloudMoon: faCloudMoon,
  4068. faCloudSun: faCloudSun,
  4069. faCloudUploadAlt: faCloudUploadAlt,
  4070. faCocktail: faCocktail,
  4071. faCode: faCode,
  4072. faCodeBranch: faCodeBranch,
  4073. faCoffee: faCoffee,
  4074. faCog: faCog,
  4075. faCogs: faCogs,
  4076. faCoins: faCoins,
  4077. faColumns: faColumns,
  4078. faComment: faComment,
  4079. faCommentAlt: faCommentAlt,
  4080. faCommentDollar: faCommentDollar,
  4081. faCommentDots: faCommentDots,
  4082. faCommentSlash: faCommentSlash,
  4083. faComments: faComments,
  4084. faCommentsDollar: faCommentsDollar,
  4085. faCompactDisc: faCompactDisc,
  4086. faCompass: faCompass,
  4087. faCompress: faCompress,
  4088. faConciergeBell: faConciergeBell,
  4089. faCookie: faCookie,
  4090. faCookieBite: faCookieBite,
  4091. faCopy: faCopy,
  4092. faCopyright: faCopyright,
  4093. faCouch: faCouch,
  4094. faCreditCard: faCreditCard,
  4095. faCrop: faCrop,
  4096. faCropAlt: faCropAlt,
  4097. faCross: faCross,
  4098. faCrosshairs: faCrosshairs,
  4099. faCrow: faCrow,
  4100. faCrown: faCrown,
  4101. faCube: faCube,
  4102. faCubes: faCubes,
  4103. faCut: faCut,
  4104. faDatabase: faDatabase,
  4105. faDeaf: faDeaf,
  4106. faDesktop: faDesktop,
  4107. faDharmachakra: faDharmachakra,
  4108. faDiagnoses: faDiagnoses,
  4109. faDice: faDice,
  4110. faDiceD20: faDiceD20,
  4111. faDiceD6: faDiceD6,
  4112. faDiceFive: faDiceFive,
  4113. faDiceFour: faDiceFour,
  4114. faDiceOne: faDiceOne,
  4115. faDiceSix: faDiceSix,
  4116. faDiceThree: faDiceThree,
  4117. faDiceTwo: faDiceTwo,
  4118. faDigitalTachograph: faDigitalTachograph,
  4119. faDirections: faDirections,
  4120. faDivide: faDivide,
  4121. faDizzy: faDizzy,
  4122. faDna: faDna,
  4123. faDog: faDog,
  4124. faDollarSign: faDollarSign,
  4125. faDolly: faDolly,
  4126. faDollyFlatbed: faDollyFlatbed,
  4127. faDonate: faDonate,
  4128. faDoorClosed: faDoorClosed,
  4129. faDoorOpen: faDoorOpen,
  4130. faDotCircle: faDotCircle,
  4131. faDove: faDove,
  4132. faDownload: faDownload,
  4133. faDraftingCompass: faDraftingCompass,
  4134. faDragon: faDragon,
  4135. faDrawPolygon: faDrawPolygon,
  4136. faDrum: faDrum,
  4137. faDrumSteelpan: faDrumSteelpan,
  4138. faDrumstickBite: faDrumstickBite,
  4139. faDumbbell: faDumbbell,
  4140. faDungeon: faDungeon,
  4141. faEdit: faEdit,
  4142. faEject: faEject,
  4143. faEllipsisH: faEllipsisH,
  4144. faEllipsisV: faEllipsisV,
  4145. faEnvelope: faEnvelope,
  4146. faEnvelopeOpen: faEnvelopeOpen,
  4147. faEnvelopeOpenText: faEnvelopeOpenText,
  4148. faEnvelopeSquare: faEnvelopeSquare,
  4149. faEquals: faEquals,
  4150. faEraser: faEraser,
  4151. faEuroSign: faEuroSign,
  4152. faExchangeAlt: faExchangeAlt,
  4153. faExclamation: faExclamation,
  4154. faExclamationCircle: faExclamationCircle,
  4155. faExclamationTriangle: faExclamationTriangle,
  4156. faExpand: faExpand,
  4157. faExpandArrowsAlt: faExpandArrowsAlt,
  4158. faExternalLinkAlt: faExternalLinkAlt,
  4159. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  4160. faEye: faEye,
  4161. faEyeDropper: faEyeDropper,
  4162. faEyeSlash: faEyeSlash,
  4163. faFastBackward: faFastBackward,
  4164. faFastForward: faFastForward,
  4165. faFax: faFax,
  4166. faFeather: faFeather,
  4167. faFeatherAlt: faFeatherAlt,
  4168. faFemale: faFemale,
  4169. faFighterJet: faFighterJet,
  4170. faFile: faFile,
  4171. faFileAlt: faFileAlt,
  4172. faFileArchive: faFileArchive,
  4173. faFileAudio: faFileAudio,
  4174. faFileCode: faFileCode,
  4175. faFileContract: faFileContract,
  4176. faFileCsv: faFileCsv,
  4177. faFileDownload: faFileDownload,
  4178. faFileExcel: faFileExcel,
  4179. faFileExport: faFileExport,
  4180. faFileImage: faFileImage,
  4181. faFileImport: faFileImport,
  4182. faFileInvoice: faFileInvoice,
  4183. faFileInvoiceDollar: faFileInvoiceDollar,
  4184. faFileMedical: faFileMedical,
  4185. faFileMedicalAlt: faFileMedicalAlt,
  4186. faFilePdf: faFilePdf,
  4187. faFilePowerpoint: faFilePowerpoint,
  4188. faFilePrescription: faFilePrescription,
  4189. faFileSignature: faFileSignature,
  4190. faFileUpload: faFileUpload,
  4191. faFileVideo: faFileVideo,
  4192. faFileWord: faFileWord,
  4193. faFill: faFill,
  4194. faFillDrip: faFillDrip,
  4195. faFilm: faFilm,
  4196. faFilter: faFilter,
  4197. faFingerprint: faFingerprint,
  4198. faFire: faFire,
  4199. faFireExtinguisher: faFireExtinguisher,
  4200. faFirstAid: faFirstAid,
  4201. faFish: faFish,
  4202. faFistRaised: faFistRaised,
  4203. faFlag: faFlag,
  4204. faFlagCheckered: faFlagCheckered,
  4205. faFlask: faFlask,
  4206. faFlushed: faFlushed,
  4207. faFolder: faFolder,
  4208. faFolderMinus: faFolderMinus,
  4209. faFolderOpen: faFolderOpen,
  4210. faFolderPlus: faFolderPlus,
  4211. faFont: faFont,
  4212. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  4213. faFootballBall: faFootballBall,
  4214. faForward: faForward,
  4215. faFrog: faFrog,
  4216. faFrown: faFrown,
  4217. faFrownOpen: faFrownOpen,
  4218. faFunnelDollar: faFunnelDollar,
  4219. faFutbol: faFutbol,
  4220. faGamepad: faGamepad,
  4221. faGasPump: faGasPump,
  4222. faGavel: faGavel,
  4223. faGem: faGem,
  4224. faGenderless: faGenderless,
  4225. faGhost: faGhost,
  4226. faGift: faGift,
  4227. faGlassMartini: faGlassMartini,
  4228. faGlassMartiniAlt: faGlassMartiniAlt,
  4229. faGlasses: faGlasses,
  4230. faGlobe: faGlobe,
  4231. faGlobeAfrica: faGlobeAfrica,
  4232. faGlobeAmericas: faGlobeAmericas,
  4233. faGlobeAsia: faGlobeAsia,
  4234. faGolfBall: faGolfBall,
  4235. faGopuram: faGopuram,
  4236. faGraduationCap: faGraduationCap,
  4237. faGreaterThan: faGreaterThan,
  4238. faGreaterThanEqual: faGreaterThanEqual,
  4239. faGrimace: faGrimace,
  4240. faGrin: faGrin,
  4241. faGrinAlt: faGrinAlt,
  4242. faGrinBeam: faGrinBeam,
  4243. faGrinBeamSweat: faGrinBeamSweat,
  4244. faGrinHearts: faGrinHearts,
  4245. faGrinSquint: faGrinSquint,
  4246. faGrinSquintTears: faGrinSquintTears,
  4247. faGrinStars: faGrinStars,
  4248. faGrinTears: faGrinTears,
  4249. faGrinTongue: faGrinTongue,
  4250. faGrinTongueSquint: faGrinTongueSquint,
  4251. faGrinTongueWink: faGrinTongueWink,
  4252. faGrinWink: faGrinWink,
  4253. faGripHorizontal: faGripHorizontal,
  4254. faGripVertical: faGripVertical,
  4255. faHSquare: faHSquare,
  4256. faHammer: faHammer,
  4257. faHamsa: faHamsa,
  4258. faHandHolding: faHandHolding,
  4259. faHandHoldingHeart: faHandHoldingHeart,
  4260. faHandHoldingUsd: faHandHoldingUsd,
  4261. faHandLizard: faHandLizard,
  4262. faHandPaper: faHandPaper,
  4263. faHandPeace: faHandPeace,
  4264. faHandPointDown: faHandPointDown,
  4265. faHandPointLeft: faHandPointLeft,
  4266. faHandPointRight: faHandPointRight,
  4267. faHandPointUp: faHandPointUp,
  4268. faHandPointer: faHandPointer,
  4269. faHandRock: faHandRock,
  4270. faHandScissors: faHandScissors,
  4271. faHandSpock: faHandSpock,
  4272. faHands: faHands,
  4273. faHandsHelping: faHandsHelping,
  4274. faHandshake: faHandshake,
  4275. faHanukiah: faHanukiah,
  4276. faHashtag: faHashtag,
  4277. faHatWizard: faHatWizard,
  4278. faHaykal: faHaykal,
  4279. faHdd: faHdd,
  4280. faHeading: faHeading,
  4281. faHeadphones: faHeadphones,
  4282. faHeadphonesAlt: faHeadphonesAlt,
  4283. faHeadset: faHeadset,
  4284. faHeart: faHeart,
  4285. faHeartbeat: faHeartbeat,
  4286. faHelicopter: faHelicopter,
  4287. faHighlighter: faHighlighter,
  4288. faHiking: faHiking,
  4289. faHippo: faHippo,
  4290. faHistory: faHistory,
  4291. faHockeyPuck: faHockeyPuck,
  4292. faHome: faHome,
  4293. faHorse: faHorse,
  4294. faHospital: faHospital,
  4295. faHospitalAlt: faHospitalAlt,
  4296. faHospitalSymbol: faHospitalSymbol,
  4297. faHotTub: faHotTub,
  4298. faHotel: faHotel,
  4299. faHourglass: faHourglass,
  4300. faHourglassEnd: faHourglassEnd,
  4301. faHourglassHalf: faHourglassHalf,
  4302. faHourglassStart: faHourglassStart,
  4303. faHouseDamage: faHouseDamage,
  4304. faHryvnia: faHryvnia,
  4305. faICursor: faICursor,
  4306. faIdBadge: faIdBadge,
  4307. faIdCard: faIdCard,
  4308. faIdCardAlt: faIdCardAlt,
  4309. faImage: faImage,
  4310. faImages: faImages,
  4311. faInbox: faInbox,
  4312. faIndent: faIndent,
  4313. faIndustry: faIndustry,
  4314. faInfinity: faInfinity,
  4315. faInfo: faInfo,
  4316. faInfoCircle: faInfoCircle,
  4317. faItalic: faItalic,
  4318. faJedi: faJedi,
  4319. faJoint: faJoint,
  4320. faJournalWhills: faJournalWhills,
  4321. faKaaba: faKaaba,
  4322. faKey: faKey,
  4323. faKeyboard: faKeyboard,
  4324. faKhanda: faKhanda,
  4325. faKiss: faKiss,
  4326. faKissBeam: faKissBeam,
  4327. faKissWinkHeart: faKissWinkHeart,
  4328. faKiwiBird: faKiwiBird,
  4329. faLandmark: faLandmark,
  4330. faLanguage: faLanguage,
  4331. faLaptop: faLaptop,
  4332. faLaptopCode: faLaptopCode,
  4333. faLaugh: faLaugh,
  4334. faLaughBeam: faLaughBeam,
  4335. faLaughSquint: faLaughSquint,
  4336. faLaughWink: faLaughWink,
  4337. faLayerGroup: faLayerGroup,
  4338. faLeaf: faLeaf,
  4339. faLemon: faLemon,
  4340. faLessThan: faLessThan,
  4341. faLessThanEqual: faLessThanEqual,
  4342. faLevelDownAlt: faLevelDownAlt,
  4343. faLevelUpAlt: faLevelUpAlt,
  4344. faLifeRing: faLifeRing,
  4345. faLightbulb: faLightbulb,
  4346. faLink: faLink,
  4347. faLiraSign: faLiraSign,
  4348. faList: faList,
  4349. faListAlt: faListAlt,
  4350. faListOl: faListOl,
  4351. faListUl: faListUl,
  4352. faLocationArrow: faLocationArrow,
  4353. faLock: faLock,
  4354. faLockOpen: faLockOpen,
  4355. faLongArrowAltDown: faLongArrowAltDown,
  4356. faLongArrowAltLeft: faLongArrowAltLeft,
  4357. faLongArrowAltRight: faLongArrowAltRight,
  4358. faLongArrowAltUp: faLongArrowAltUp,
  4359. faLowVision: faLowVision,
  4360. faLuggageCart: faLuggageCart,
  4361. faMagic: faMagic,
  4362. faMagnet: faMagnet,
  4363. faMailBulk: faMailBulk,
  4364. faMale: faMale,
  4365. faMap: faMap,
  4366. faMapMarked: faMapMarked,
  4367. faMapMarkedAlt: faMapMarkedAlt,
  4368. faMapMarker: faMapMarker,
  4369. faMapMarkerAlt: faMapMarkerAlt,
  4370. faMapPin: faMapPin,
  4371. faMapSigns: faMapSigns,
  4372. faMarker: faMarker,
  4373. faMars: faMars,
  4374. faMarsDouble: faMarsDouble,
  4375. faMarsStroke: faMarsStroke,
  4376. faMarsStrokeH: faMarsStrokeH,
  4377. faMarsStrokeV: faMarsStrokeV,
  4378. faMask: faMask,
  4379. faMedal: faMedal,
  4380. faMedkit: faMedkit,
  4381. faMeh: faMeh,
  4382. faMehBlank: faMehBlank,
  4383. faMehRollingEyes: faMehRollingEyes,
  4384. faMemory: faMemory,
  4385. faMenorah: faMenorah,
  4386. faMercury: faMercury,
  4387. faMicrochip: faMicrochip,
  4388. faMicrophone: faMicrophone,
  4389. faMicrophoneAlt: faMicrophoneAlt,
  4390. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4391. faMicrophoneSlash: faMicrophoneSlash,
  4392. faMicroscope: faMicroscope,
  4393. faMinus: faMinus,
  4394. faMinusCircle: faMinusCircle,
  4395. faMinusSquare: faMinusSquare,
  4396. faMobile: faMobile,
  4397. faMobileAlt: faMobileAlt,
  4398. faMoneyBill: faMoneyBill,
  4399. faMoneyBillAlt: faMoneyBillAlt,
  4400. faMoneyBillWave: faMoneyBillWave,
  4401. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4402. faMoneyCheck: faMoneyCheck,
  4403. faMoneyCheckAlt: faMoneyCheckAlt,
  4404. faMonument: faMonument,
  4405. faMoon: faMoon,
  4406. faMortarPestle: faMortarPestle,
  4407. faMosque: faMosque,
  4408. faMotorcycle: faMotorcycle,
  4409. faMountain: faMountain,
  4410. faMousePointer: faMousePointer,
  4411. faMusic: faMusic,
  4412. faNetworkWired: faNetworkWired,
  4413. faNeuter: faNeuter,
  4414. faNewspaper: faNewspaper,
  4415. faNotEqual: faNotEqual,
  4416. faNotesMedical: faNotesMedical,
  4417. faObjectGroup: faObjectGroup,
  4418. faObjectUngroup: faObjectUngroup,
  4419. faOilCan: faOilCan,
  4420. faOm: faOm,
  4421. faOtter: faOtter,
  4422. faOutdent: faOutdent,
  4423. faPaintBrush: faPaintBrush,
  4424. faPaintRoller: faPaintRoller,
  4425. faPalette: faPalette,
  4426. faPallet: faPallet,
  4427. faPaperPlane: faPaperPlane,
  4428. faPaperclip: faPaperclip,
  4429. faParachuteBox: faParachuteBox,
  4430. faParagraph: faParagraph,
  4431. faParking: faParking,
  4432. faPassport: faPassport,
  4433. faPastafarianism: faPastafarianism,
  4434. faPaste: faPaste,
  4435. faPause: faPause,
  4436. faPauseCircle: faPauseCircle,
  4437. faPaw: faPaw,
  4438. faPeace: faPeace,
  4439. faPen: faPen,
  4440. faPenAlt: faPenAlt,
  4441. faPenFancy: faPenFancy,
  4442. faPenNib: faPenNib,
  4443. faPenSquare: faPenSquare,
  4444. faPencilAlt: faPencilAlt,
  4445. faPencilRuler: faPencilRuler,
  4446. faPeopleCarry: faPeopleCarry,
  4447. faPercent: faPercent,
  4448. faPercentage: faPercentage,
  4449. faPhone: faPhone,
  4450. faPhoneSlash: faPhoneSlash,
  4451. faPhoneSquare: faPhoneSquare,
  4452. faPhoneVolume: faPhoneVolume,
  4453. faPiggyBank: faPiggyBank,
  4454. faPills: faPills,
  4455. faPlaceOfWorship: faPlaceOfWorship,
  4456. faPlane: faPlane,
  4457. faPlaneArrival: faPlaneArrival,
  4458. faPlaneDeparture: faPlaneDeparture,
  4459. faPlay: faPlay,
  4460. faPlayCircle: faPlayCircle,
  4461. faPlug: faPlug,
  4462. faPlus: faPlus,
  4463. faPlusCircle: faPlusCircle,
  4464. faPlusSquare: faPlusSquare,
  4465. faPodcast: faPodcast,
  4466. faPoll: faPoll,
  4467. faPollH: faPollH,
  4468. faPoo: faPoo,
  4469. faPoop: faPoop,
  4470. faPortrait: faPortrait,
  4471. faPoundSign: faPoundSign,
  4472. faPowerOff: faPowerOff,
  4473. faPray: faPray,
  4474. faPrayingHands: faPrayingHands,
  4475. faPrescription: faPrescription,
  4476. faPrescriptionBottle: faPrescriptionBottle,
  4477. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4478. faPrint: faPrint,
  4479. faProcedures: faProcedures,
  4480. faProjectDiagram: faProjectDiagram,
  4481. faPuzzlePiece: faPuzzlePiece,
  4482. faQrcode: faQrcode,
  4483. faQuestion: faQuestion,
  4484. faQuestionCircle: faQuestionCircle,
  4485. faQuidditch: faQuidditch,
  4486. faQuoteLeft: faQuoteLeft,
  4487. faQuoteRight: faQuoteRight,
  4488. faQuran: faQuran,
  4489. faRandom: faRandom,
  4490. faReceipt: faReceipt,
  4491. faRecycle: faRecycle,
  4492. faRedo: faRedo,
  4493. faRedoAlt: faRedoAlt,
  4494. faRegistered: faRegistered,
  4495. faReply: faReply,
  4496. faReplyAll: faReplyAll,
  4497. faRetweet: faRetweet,
  4498. faRibbon: faRibbon,
  4499. faRing: faRing,
  4500. faRoad: faRoad,
  4501. faRobot: faRobot,
  4502. faRocket: faRocket,
  4503. faRoute: faRoute,
  4504. faRss: faRss,
  4505. faRssSquare: faRssSquare,
  4506. faRubleSign: faRubleSign,
  4507. faRuler: faRuler,
  4508. faRulerCombined: faRulerCombined,
  4509. faRulerHorizontal: faRulerHorizontal,
  4510. faRulerVertical: faRulerVertical,
  4511. faRunning: faRunning,
  4512. faRupeeSign: faRupeeSign,
  4513. faSadCry: faSadCry,
  4514. faSadTear: faSadTear,
  4515. faSave: faSave,
  4516. faSchool: faSchool,
  4517. faScrewdriver: faScrewdriver,
  4518. faScroll: faScroll,
  4519. faSearch: faSearch,
  4520. faSearchDollar: faSearchDollar,
  4521. faSearchLocation: faSearchLocation,
  4522. faSearchMinus: faSearchMinus,
  4523. faSearchPlus: faSearchPlus,
  4524. faSeedling: faSeedling,
  4525. faServer: faServer,
  4526. faShapes: faShapes,
  4527. faShare: faShare,
  4528. faShareAlt: faShareAlt,
  4529. faShareAltSquare: faShareAltSquare,
  4530. faShareSquare: faShareSquare,
  4531. faShekelSign: faShekelSign,
  4532. faShieldAlt: faShieldAlt,
  4533. faShip: faShip,
  4534. faShippingFast: faShippingFast,
  4535. faShoePrints: faShoePrints,
  4536. faShoppingBag: faShoppingBag,
  4537. faShoppingBasket: faShoppingBasket,
  4538. faShoppingCart: faShoppingCart,
  4539. faShower: faShower,
  4540. faShuttleVan: faShuttleVan,
  4541. faSign: faSign,
  4542. faSignInAlt: faSignInAlt,
  4543. faSignLanguage: faSignLanguage,
  4544. faSignOutAlt: faSignOutAlt,
  4545. faSignal: faSignal,
  4546. faSignature: faSignature,
  4547. faSitemap: faSitemap,
  4548. faSkull: faSkull,
  4549. faSkullCrossbones: faSkullCrossbones,
  4550. faSlash: faSlash,
  4551. faSlidersH: faSlidersH,
  4552. faSmile: faSmile,
  4553. faSmileBeam: faSmileBeam,
  4554. faSmileWink: faSmileWink,
  4555. faSmoking: faSmoking,
  4556. faSmokingBan: faSmokingBan,
  4557. faSnowflake: faSnowflake,
  4558. faSocks: faSocks,
  4559. faSolarPanel: faSolarPanel,
  4560. faSort: faSort,
  4561. faSortAlphaDown: faSortAlphaDown,
  4562. faSortAlphaUp: faSortAlphaUp,
  4563. faSortAmountDown: faSortAmountDown,
  4564. faSortAmountUp: faSortAmountUp,
  4565. faSortDown: faSortDown,
  4566. faSortNumericDown: faSortNumericDown,
  4567. faSortNumericUp: faSortNumericUp,
  4568. faSortUp: faSortUp,
  4569. faSpa: faSpa,
  4570. faSpaceShuttle: faSpaceShuttle,
  4571. faSpider: faSpider,
  4572. faSpinner: faSpinner,
  4573. faSplotch: faSplotch,
  4574. faSprayCan: faSprayCan,
  4575. faSquare: faSquare,
  4576. faSquareFull: faSquareFull,
  4577. faSquareRootAlt: faSquareRootAlt,
  4578. faStamp: faStamp,
  4579. faStar: faStar,
  4580. faStarAndCrescent: faStarAndCrescent,
  4581. faStarHalf: faStarHalf,
  4582. faStarHalfAlt: faStarHalfAlt,
  4583. faStarOfDavid: faStarOfDavid,
  4584. faStarOfLife: faStarOfLife,
  4585. faStepBackward: faStepBackward,
  4586. faStepForward: faStepForward,
  4587. faStethoscope: faStethoscope,
  4588. faStickyNote: faStickyNote,
  4589. faStop: faStop,
  4590. faStopCircle: faStopCircle,
  4591. faStopwatch: faStopwatch,
  4592. faStore: faStore,
  4593. faStoreAlt: faStoreAlt,
  4594. faStream: faStream,
  4595. faStreetView: faStreetView,
  4596. faStrikethrough: faStrikethrough,
  4597. faStroopwafel: faStroopwafel,
  4598. faSubscript: faSubscript,
  4599. faSubway: faSubway,
  4600. faSuitcase: faSuitcase,
  4601. faSuitcaseRolling: faSuitcaseRolling,
  4602. faSun: faSun,
  4603. faSuperscript: faSuperscript,
  4604. faSurprise: faSurprise,
  4605. faSwatchbook: faSwatchbook,
  4606. faSwimmer: faSwimmer,
  4607. faSwimmingPool: faSwimmingPool,
  4608. faSynagogue: faSynagogue,
  4609. faSync: faSync,
  4610. faSyncAlt: faSyncAlt,
  4611. faSyringe: faSyringe,
  4612. faTable: faTable,
  4613. faTableTennis: faTableTennis,
  4614. faTablet: faTablet,
  4615. faTabletAlt: faTabletAlt,
  4616. faTablets: faTablets,
  4617. faTachometerAlt: faTachometerAlt,
  4618. faTag: faTag,
  4619. faTags: faTags,
  4620. faTape: faTape,
  4621. faTasks: faTasks,
  4622. faTaxi: faTaxi,
  4623. faTeeth: faTeeth,
  4624. faTeethOpen: faTeethOpen,
  4625. faTerminal: faTerminal,
  4626. faTextHeight: faTextHeight,
  4627. faTextWidth: faTextWidth,
  4628. faTh: faTh,
  4629. faThLarge: faThLarge,
  4630. faThList: faThList,
  4631. faTheaterMasks: faTheaterMasks,
  4632. faThermometer: faThermometer,
  4633. faThermometerEmpty: faThermometerEmpty,
  4634. faThermometerFull: faThermometerFull,
  4635. faThermometerHalf: faThermometerHalf,
  4636. faThermometerQuarter: faThermometerQuarter,
  4637. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4638. faThumbsDown: faThumbsDown,
  4639. faThumbsUp: faThumbsUp,
  4640. faThumbtack: faThumbtack,
  4641. faTicketAlt: faTicketAlt,
  4642. faTimes: faTimes,
  4643. faTimesCircle: faTimesCircle,
  4644. faTint: faTint,
  4645. faTintSlash: faTintSlash,
  4646. faTired: faTired,
  4647. faToggleOff: faToggleOff,
  4648. faToggleOn: faToggleOn,
  4649. faToiletPaper: faToiletPaper,
  4650. faToolbox: faToolbox,
  4651. faTooth: faTooth,
  4652. faTorah: faTorah,
  4653. faToriiGate: faToriiGate,
  4654. faTractor: faTractor,
  4655. faTrademark: faTrademark,
  4656. faTrafficLight: faTrafficLight,
  4657. faTrain: faTrain,
  4658. faTransgender: faTransgender,
  4659. faTransgenderAlt: faTransgenderAlt,
  4660. faTrash: faTrash,
  4661. faTrashAlt: faTrashAlt,
  4662. faTree: faTree,
  4663. faTrophy: faTrophy,
  4664. faTruck: faTruck,
  4665. faTruckLoading: faTruckLoading,
  4666. faTruckMonster: faTruckMonster,
  4667. faTruckMoving: faTruckMoving,
  4668. faTruckPickup: faTruckPickup,
  4669. faTshirt: faTshirt,
  4670. faTty: faTty,
  4671. faTv: faTv,
  4672. faUmbrella: faUmbrella,
  4673. faUmbrellaBeach: faUmbrellaBeach,
  4674. faUnderline: faUnderline,
  4675. faUndo: faUndo,
  4676. faUndoAlt: faUndoAlt,
  4677. faUniversalAccess: faUniversalAccess,
  4678. faUniversity: faUniversity,
  4679. faUnlink: faUnlink,
  4680. faUnlock: faUnlock,
  4681. faUnlockAlt: faUnlockAlt,
  4682. faUpload: faUpload,
  4683. faUser: faUser,
  4684. faUserAlt: faUserAlt,
  4685. faUserAltSlash: faUserAltSlash,
  4686. faUserAstronaut: faUserAstronaut,
  4687. faUserCheck: faUserCheck,
  4688. faUserCircle: faUserCircle,
  4689. faUserClock: faUserClock,
  4690. faUserCog: faUserCog,
  4691. faUserEdit: faUserEdit,
  4692. faUserFriends: faUserFriends,
  4693. faUserGraduate: faUserGraduate,
  4694. faUserInjured: faUserInjured,
  4695. faUserLock: faUserLock,
  4696. faUserMd: faUserMd,
  4697. faUserMinus: faUserMinus,
  4698. faUserNinja: faUserNinja,
  4699. faUserPlus: faUserPlus,
  4700. faUserSecret: faUserSecret,
  4701. faUserShield: faUserShield,
  4702. faUserSlash: faUserSlash,
  4703. faUserTag: faUserTag,
  4704. faUserTie: faUserTie,
  4705. faUserTimes: faUserTimes,
  4706. faUsers: faUsers,
  4707. faUsersCog: faUsersCog,
  4708. faUtensilSpoon: faUtensilSpoon,
  4709. faUtensils: faUtensils,
  4710. faVectorSquare: faVectorSquare,
  4711. faVenus: faVenus,
  4712. faVenusDouble: faVenusDouble,
  4713. faVenusMars: faVenusMars,
  4714. faVial: faVial,
  4715. faVials: faVials,
  4716. faVideo: faVideo,
  4717. faVideoSlash: faVideoSlash,
  4718. faVihara: faVihara,
  4719. faVolleyballBall: faVolleyballBall,
  4720. faVolumeDown: faVolumeDown,
  4721. faVolumeMute: faVolumeMute,
  4722. faVolumeOff: faVolumeOff,
  4723. faVolumeUp: faVolumeUp,
  4724. faVrCardboard: faVrCardboard,
  4725. faWalking: faWalking,
  4726. faWallet: faWallet,
  4727. faWarehouse: faWarehouse,
  4728. faWeight: faWeight,
  4729. faWeightHanging: faWeightHanging,
  4730. faWheelchair: faWheelchair,
  4731. faWifi: faWifi,
  4732. faWind: faWind,
  4733. faWindowClose: faWindowClose,
  4734. faWindowMaximize: faWindowMaximize,
  4735. faWindowMinimize: faWindowMinimize,
  4736. faWindowRestore: faWindowRestore,
  4737. faWineBottle: faWineBottle,
  4738. faWineGlass: faWineGlass,
  4739. faWineGlassAlt: faWineGlassAlt,
  4740. faWonSign: faWonSign,
  4741. faWrench: faWrench,
  4742. faXRay: faXRay,
  4743. faYenSign: faYenSign,
  4744. faYinYang: faYinYang
  4745. };
  4746. /***/ }),
  4747. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4748. /*!***********************************************************************************!*\
  4749. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4750. \***********************************************************************************/
  4751. /*! exports provided: FontAwesomeIcon */
  4752. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4753. "use strict";
  4754. __webpack_require__.r(__webpack_exports__);
  4755. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4756. /* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js");
  4757. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4758. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4759. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4760. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4761. function _typeof(obj) {
  4762. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  4763. _typeof = function (obj) {
  4764. return typeof obj;
  4765. };
  4766. } else {
  4767. _typeof = function (obj) {
  4768. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4769. };
  4770. }
  4771. return _typeof(obj);
  4772. }
  4773. function _defineProperty(obj, key, value) {
  4774. if (key in obj) {
  4775. Object.defineProperty(obj, key, {
  4776. value: value,
  4777. enumerable: true,
  4778. configurable: true,
  4779. writable: true
  4780. });
  4781. } else {
  4782. obj[key] = value;
  4783. }
  4784. return obj;
  4785. }
  4786. function _objectSpread(target) {
  4787. for (var i = 1; i < arguments.length; i++) {
  4788. var source = arguments[i] != null ? arguments[i] : {};
  4789. var ownKeys = Object.keys(source);
  4790. if (typeof Object.getOwnPropertySymbols === 'function') {
  4791. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  4792. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  4793. }));
  4794. }
  4795. ownKeys.forEach(function (key) {
  4796. _defineProperty(target, key, source[key]);
  4797. });
  4798. }
  4799. return target;
  4800. }
  4801. function _objectWithoutPropertiesLoose(source, excluded) {
  4802. if (source == null) return {};
  4803. var target = {};
  4804. var sourceKeys = Object.keys(source);
  4805. var key, i;
  4806. for (i = 0; i < sourceKeys.length; i++) {
  4807. key = sourceKeys[i];
  4808. if (excluded.indexOf(key) >= 0) continue;
  4809. target[key] = source[key];
  4810. }
  4811. return target;
  4812. }
  4813. function _objectWithoutProperties(source, excluded) {
  4814. if (source == null) return {};
  4815. var target = _objectWithoutPropertiesLoose(source, excluded);
  4816. var key, i;
  4817. if (Object.getOwnPropertySymbols) {
  4818. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  4819. for (i = 0; i < sourceSymbolKeys.length; i++) {
  4820. key = sourceSymbolKeys[i];
  4821. if (excluded.indexOf(key) >= 0) continue;
  4822. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  4823. target[key] = source[key];
  4824. }
  4825. }
  4826. return target;
  4827. }
  4828. function _toConsumableArray(arr) {
  4829. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  4830. }
  4831. function _arrayWithoutHoles(arr) {
  4832. if (Array.isArray(arr)) {
  4833. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4834. return arr2;
  4835. }
  4836. }
  4837. function _iterableToArray(iter) {
  4838. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  4839. }
  4840. function _nonIterableSpread() {
  4841. throw new TypeError("Invalid attempt to spread non-iterable instance");
  4842. }
  4843. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4844. function createCommonjsModule(fn, module) {
  4845. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4846. }
  4847. var humps = createCommonjsModule(function (module) {
  4848. (function(global) {
  4849. var _processKeys = function(convert, obj, options) {
  4850. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4851. return obj;
  4852. }
  4853. var output,
  4854. i = 0,
  4855. l = 0;
  4856. if(_isArray(obj)) {
  4857. output = [];
  4858. for(l=obj.length; i<l; i++) {
  4859. output.push(_processKeys(convert, obj[i], options));
  4860. }
  4861. }
  4862. else {
  4863. output = {};
  4864. for(var key in obj) {
  4865. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4866. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4867. }
  4868. }
  4869. }
  4870. return output;
  4871. };
  4872. // String conversion methods
  4873. var separateWords = function(string, options) {
  4874. options = options || {};
  4875. var separator = options.separator || '_';
  4876. var split = options.split || /(?=[A-Z])/;
  4877. return string.split(split).join(separator);
  4878. };
  4879. var camelize = function(string) {
  4880. if (_isNumerical(string)) {
  4881. return string;
  4882. }
  4883. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4884. return chr ? chr.toUpperCase() : '';
  4885. });
  4886. // Ensure 1st char is always lowercase
  4887. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4888. };
  4889. var pascalize = function(string) {
  4890. var camelized = camelize(string);
  4891. // Ensure 1st char is always uppercase
  4892. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4893. };
  4894. var decamelize = function(string, options) {
  4895. return separateWords(string, options).toLowerCase();
  4896. };
  4897. // Utilities
  4898. // Taken from Underscore.js
  4899. var toString = Object.prototype.toString;
  4900. var _isFunction = function(obj) {
  4901. return typeof(obj) === 'function';
  4902. };
  4903. var _isObject = function(obj) {
  4904. return obj === Object(obj);
  4905. };
  4906. var _isArray = function(obj) {
  4907. return toString.call(obj) == '[object Array]';
  4908. };
  4909. var _isDate = function(obj) {
  4910. return toString.call(obj) == '[object Date]';
  4911. };
  4912. var _isRegExp = function(obj) {
  4913. return toString.call(obj) == '[object RegExp]';
  4914. };
  4915. var _isBoolean = function(obj) {
  4916. return toString.call(obj) == '[object Boolean]';
  4917. };
  4918. // Performant way to determine if obj coerces to a number
  4919. var _isNumerical = function(obj) {
  4920. obj = obj - 0;
  4921. return obj === obj;
  4922. };
  4923. // Sets up function which handles processing keys
  4924. // allowing the convert function to be modified by a callback
  4925. var _processor = function(convert, options) {
  4926. var callback = options && 'process' in options ? options.process : options;
  4927. if(typeof(callback) !== 'function') {
  4928. return convert;
  4929. }
  4930. return function(string, options) {
  4931. return callback(string, convert, options);
  4932. }
  4933. };
  4934. var humps = {
  4935. camelize: camelize,
  4936. decamelize: decamelize,
  4937. pascalize: pascalize,
  4938. depascalize: decamelize,
  4939. camelizeKeys: function(object, options) {
  4940. return _processKeys(_processor(camelize, options), object);
  4941. },
  4942. decamelizeKeys: function(object, options) {
  4943. return _processKeys(_processor(decamelize, options), object, options);
  4944. },
  4945. pascalizeKeys: function(object, options) {
  4946. return _processKeys(_processor(pascalize, options), object);
  4947. },
  4948. depascalizeKeys: function () {
  4949. return this.decamelizeKeys.apply(this, arguments);
  4950. }
  4951. };
  4952. if (module.exports) {
  4953. module.exports = humps;
  4954. } else {
  4955. global.humps = humps;
  4956. }
  4957. })(commonjsGlobal);
  4958. });
  4959. function capitalize(val) {
  4960. return val.charAt(0).toUpperCase() + val.slice(1);
  4961. }
  4962. function styleToObject(style) {
  4963. return style.split(';').map(function (s) {
  4964. return s.trim();
  4965. }).filter(function (s) {
  4966. return s;
  4967. }).reduce(function (acc, pair) {
  4968. var i = pair.indexOf(':');
  4969. var prop = humps.camelize(pair.slice(0, i));
  4970. var value = pair.slice(i + 1).trim();
  4971. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4972. return acc;
  4973. }, {});
  4974. }
  4975. function convert(createElement, element) {
  4976. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4977. if (typeof element === 'string') {
  4978. return element;
  4979. }
  4980. var children = (element.children || []).map(function (child) {
  4981. return convert(createElement, child);
  4982. });
  4983. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4984. var val = element.attributes[key];
  4985. switch (key) {
  4986. case 'class':
  4987. acc.attrs['className'] = val;
  4988. delete element.attributes['class'];
  4989. break;
  4990. case 'style':
  4991. acc.attrs['style'] = styleToObject(val);
  4992. break;
  4993. default:
  4994. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4995. acc.attrs[key.toLowerCase()] = val;
  4996. } else {
  4997. acc.attrs[humps.camelize(key)] = val;
  4998. }
  4999. }
  5000. return acc;
  5001. }, {
  5002. attrs: {}
  5003. });
  5004. var _extraProps$style = extraProps.style,
  5005. existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
  5006. remaining = _objectWithoutProperties(extraProps, ["style"]);
  5007. mixins.attrs['style'] = _objectSpread({}, mixins.attrs['style'], existingStyle);
  5008. return createElement.apply(void 0, [element.tag, _objectSpread({}, mixins.attrs, remaining)].concat(_toConsumableArray(children)));
  5009. }
  5010. var PRODUCTION = false;
  5011. try {
  5012. PRODUCTION = "development" === 'production';
  5013. } catch (e) {}
  5014. function log () {
  5015. if (!PRODUCTION && console && typeof console.error === 'function') {
  5016. var _console;
  5017. (_console = console).error.apply(_console, arguments);
  5018. }
  5019. }
  5020. function objectWithKey(key, value) {
  5021. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
  5022. }
  5023. function classList(props) {
  5024. var _classes;
  5025. var classes = (_classes = {
  5026. 'fa-spin': props.spin,
  5027. 'fa-pulse': props.pulse,
  5028. 'fa-fw': props.fixedWidth,
  5029. 'fa-inverse': props.inverse,
  5030. 'fa-border': props.border,
  5031. 'fa-li': props.listItem,
  5032. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  5033. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  5034. }, _defineProperty(_classes, "fa-".concat(props.size), props.size !== null), _defineProperty(_classes, "fa-rotate-".concat(props.rotation), props.rotation !== null), _defineProperty(_classes, "fa-pull-".concat(props.pull), props.pull !== null), _classes);
  5035. return Object.keys(classes).map(function (key) {
  5036. return classes[key] ? key : null;
  5037. }).filter(function (key) {
  5038. return key;
  5039. });
  5040. }
  5041. function normalizeIconArgs(icon$$1) {
  5042. if (icon$$1 === null) {
  5043. return null;
  5044. }
  5045. if (_typeof(icon$$1) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  5046. return icon$$1;
  5047. }
  5048. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  5049. return {
  5050. prefix: icon$$1[0],
  5051. iconName: icon$$1[1]
  5052. };
  5053. }
  5054. if (typeof icon$$1 === 'string') {
  5055. return {
  5056. prefix: 'fas',
  5057. iconName: icon$$1
  5058. };
  5059. }
  5060. }
  5061. function FontAwesomeIcon(props) {
  5062. var iconArgs = props.icon,
  5063. maskArgs = props.mask,
  5064. symbol = props.symbol,
  5065. className = props.className,
  5066. title = props.title;
  5067. var iconLookup = normalizeIconArgs(iconArgs);
  5068. var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  5069. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  5070. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  5071. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread({}, classes, transform, mask, {
  5072. symbol: symbol,
  5073. title: title
  5074. }));
  5075. if (!renderedIcon) {
  5076. log('Could not find icon', iconLookup);
  5077. return null;
  5078. }
  5079. var abstract = renderedIcon.abstract;
  5080. var extraProps = {};
  5081. Object.keys(props).forEach(function (key) {
  5082. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  5083. extraProps[key] = props[key];
  5084. }
  5085. });
  5086. return convertCurry(abstract[0], extraProps);
  5087. }
  5088. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  5089. FontAwesomeIcon.propTypes = {
  5090. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5091. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5092. mask: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  5093. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5094. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5095. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  5096. icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  5097. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5098. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  5099. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5100. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  5101. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  5102. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5103. symbol: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  5104. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5105. transform: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object])
  5106. };
  5107. FontAwesomeIcon.defaultProps = {
  5108. border: false,
  5109. className: '',
  5110. mask: null,
  5111. fixedWidth: false,
  5112. inverse: false,
  5113. flip: null,
  5114. icon: null,
  5115. listItem: false,
  5116. pull: null,
  5117. pulse: false,
  5118. rotation: null,
  5119. size: null,
  5120. spin: false,
  5121. symbol: false,
  5122. title: '',
  5123. transform: null
  5124. };
  5125. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  5126. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  5127. /***/ }),
  5128. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss":
  5129. /*!************************************************************************************************************************************************!*\
  5130. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss ***!
  5131. \************************************************************************************************************************************************/
  5132. /*! no static exports found */
  5133. /***/ (function(module, exports, __webpack_require__) {
  5134. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5135. // imports
  5136. // module
  5137. exports.push([module.i, ".srd-node {\n width: 200px; }\n\n.srd-node--selected .input-port-border {\n border-color: #00c0ff !important; }\n\n.srd-node--selected .output-port-border {\n border-color: #00c0ff !important; }\n\n.srd-default-link--path-selected {\n animation: 0s !important; }\n\n.srd-port {\n grid-column: 1;\n grid-row: 1;\n background: #2796B2;\n border-radius: 10px;\n transform: scale(1); }\n .srd-port.connected {\n background: #CAB422; }\n .srd-port:hover {\n background: greenyellow !important; }\n\n.diagramBlock {\n background: white;\n width: 100%;\n border: 4px solid black;\n border-radius: 20px;\n display: grid;\n grid-template-rows: 30px auto;\n grid-template-columns: 50% 50%; }\n .diagramBlock.input {\n background: #40866E;\n color: white; }\n .diagramBlock.input .value {\n grid-row: 2; }\n .diagramBlock.input .outputs {\n transform: translateY(5px); }\n .diagramBlock.trigonometry {\n background: #405c86;\n color: white; }\n .diagramBlock.trigonometry .value {\n grid-row: 2; }\n .diagramBlock.remap {\n color: white;\n background: #4086BB; }\n .diagramBlock.remap .value {\n grid-row: 2; }\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 white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n background: black;\n color: white; }\n .diagramBlock .value {\n grid-row: 3;\n grid-column: 1 / span 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n .diagramBlock .value .value-text {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .inputs {\n grid-row: 2;\n grid-column: 1;\n padding-bottom: 8px; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 10px calc(100% - 10px);\n grid-template-rows: 100%; }\n .diagramBlock .inputs .input-port .input-port-plug {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-content: center;\n margin-left: -8px;\n position: relative; }\n .diagramBlock .inputs .input-port .input-port-plug:hover .input-port-connection {\n background: greenyellow !important; }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-type {\n width: 15px;\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n transform: scale(1); }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-type img {\n width: 12px; }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-border {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n border: 4px solid black;\n width: 4px;\n height: 7px;\n border-right: 0;\n position: absolute;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px;\n transform: translateX(-2px) scale(1.2); }\n .diagramBlock .inputs .input-port .input-port-label {\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .diagramBlock .outputs {\n grid-row: 2;\n grid-column: 2;\n padding-bottom: 8px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 10px) 10px;\n grid-template-rows: 100%; }\n .diagramBlock .outputs .output-port .output-port-plug {\n grid-column: 2;\n grid-row: 1;\n display: grid;\n align-content: center;\n position: relative;\n margin-left: 3px; }\n .diagramBlock .outputs .output-port .output-port-plug:hover .output-port-connection {\n background: greenyellow !important; }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-type {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n transform: scale(1); }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-type img {\n width: 12px; }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-border {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n border: 4px solid black;\n width: 4px;\n border-left: 0;\n border-left: 0;\n transform: translateX(9px) scale(1.2);\n border-bottom-right-radius: 10px;\n border-top-right-radius: 10px; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .diagramBlock.texture-block {\n display: grid;\n grid-template-rows: 30px auto 1fr;\n grid-template-columns: calc(100% - 60px) 60px; }\n .diagramBlock.texture-block .inputs {\n grid-column: 1;\n grid-row: 2; }\n .diagramBlock.texture-block .outputs {\n grid-column: 2;\n grid-row: 2 / span 2; }\n .diagramBlock.texture-block .textureLine {\n height: 140px;\n grid-column: 1;\n grid-row: 3;\n overflow: hidden;\n border-bottom-left-radius: 16px;\n border: black 4px solid;\n border-left: 0px;\n border-bottom: 0px; }\n .diagramBlock.texture-block .textureLine canvas {\n width: 100%;\n height: 100%; }\n", ""]);
  5138. // exports
  5139. /***/ }),
  5140. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss":
  5141. /*!****************************************************************************************************************************************!*\
  5142. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/log/log.scss ***!
  5143. \****************************************************************************************************************************************/
  5144. /*! no static exports found */
  5145. /***/ (function(module, exports, __webpack_require__) {
  5146. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5147. // imports
  5148. // module
  5149. exports.push([module.i, "#log-console {\n background: #333333;\n border: #555555 solid 1px;\n height: 120px;\n box-sizing: border-box;\n margin: 0;\n padding: 10px;\n width: 100%;\n overflow: hidden;\n overflow-y: auto; }\n #log-console .log {\n color: white;\n font-size: 14px;\n font-family: 'Courier New', Courier, monospace; }\n #log-console .log.error {\n color: red; }\n", ""]);
  5150. // exports
  5151. /***/ }),
  5152. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss":
  5153. /*!**************************************************************************************************************************************************!*\
  5154. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss ***!
  5155. \**************************************************************************************************************************************************/
  5156. /*! no static exports found */
  5157. /***/ (function(module, exports, __webpack_require__) {
  5158. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5159. // imports
  5160. // module
  5161. exports.push([module.i, "#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 100%;\n overflow: hidden; }\n #nodeList .pane {\n color: white;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .pane .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 .pane .draggableLine:hover {\n background: #337ab7;\n color: white; }\n #nodeList .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .pane .buttonLine button {\n background: #222222;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .pane .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .pane .buttonLine button:active {\n background: #282828; }\n #nodeList .pane .buttonLine button:focus {\n outline: 0px; }\n #nodeList .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .pane .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .pane .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 1px solid rgba(255, 255, 255, 0.3); }\n", ""]);
  5162. // exports
  5163. /***/ }),
  5164. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss":
  5165. /*!********************************************************************************************************************************************************!*\
  5166. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss ***!
  5167. \********************************************************************************************************************************************************/
  5168. /*! no static exports found */
  5169. /***/ (function(module, exports, __webpack_require__) {
  5170. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5171. // imports
  5172. // module
  5173. exports.push([module.i, "#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr 20px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #propertyTab #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: calc(100% - 5px); }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #propertyTab .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n padding-bottom: 5px; }\n #propertyTab .buttonLine input[type=\"file\"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n padding-top: 0px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: '';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #propertyTab .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .color3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n", ""]);
  5174. // exports
  5175. /***/ }),
  5176. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss":
  5177. /*!**************************************************************************************************************************!*\
  5178. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./main.scss ***!
  5179. \**************************************************************************************************************************/
  5180. /*! no static exports found */
  5181. /***/ (function(module, exports, __webpack_require__) {
  5182. exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5183. // imports
  5184. // module
  5185. exports.push([module.i, "#node-editor-graph-root {\n display: grid;\n grid-template-rows: calc(100% - 120px) 120px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px \"acumin-pro\"; }\n\n#nodeList {\n grid-row: 1 / span 2;\n grid-column: 1; }\n\n#leftGrab {\n grid-row: 1 / span 2;\n grid-column: 2;\n cursor: ew-resize; }\n\n#rightGrab {\n grid-row: 1 / span 2;\n grid-column: 4;\n cursor: ew-resize; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 3;\n background: #5f5b60;\n width: 100%;\n height: 100%; }\n .diagram-container .diagram {\n width: 100%;\n height: 100%; }\n\n.right-panel {\n grid-row: 1 / span 2;\n grid-column: 5;\n display: grid;\n grid-template-rows: 1fr 30px auto;\n grid-template-columns: 100%; }\n .right-panel #propertyTab {\n grid-row: 1;\n grid-column: 1; }\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 .button {\n display: grid;\n justify-content: center;\n align-content: center;\n height: 30px;\n width: calc(100% / 4);\n cursor: pointer; }\n .right-panel #preview-mesh-bar .button:hover {\n background: #337ab7;\n color: white;\n opacity: 0.8; }\n .right-panel #preview-mesh-bar .button.selected {\n background: #337ab7;\n color: white; }\n .right-panel #preview {\n border-top: 1px solid #555555;\n grid-row: 3;\n grid-column: 1;\n width: 100%;\n display: grid;\n outline: 0 !important; }\n .right-panel #preview #preview-canvas {\n width: 100%;\n height: 100%;\n outline: 0 !important; }\n\n#log-console {\n grid-row: 2;\n grid-column: 3; }\n\n.dialog-container {\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n display: grid;\n font-family: \"acumin-pro\";\n top: 0; }\n .dialog-container .dialog {\n align-self: center;\n justify-self: center;\n min-height: 140px;\n max-width: 400px;\n border-radius: 10px;\n background: white;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: calc(100% - 50px) 50px; }\n .dialog-container .dialog .dialog-message {\n grid-row: 1;\n grid-column: 1;\n margin-top: 20px;\n padding: 10px;\n font-size: 18px;\n color: black; }\n .dialog-container .dialog .dialog-buttons {\n grid-row: 2;\n grid-column: 1;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%;\n color: white; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok {\n cursor: pointer;\n justify-self: center;\n background: green;\n min-width: 80px;\n justify-content: center;\n display: grid;\n align-content: center;\n align-self: center;\n height: 35px;\n border-radius: 10px; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok:hover {\n opacity: 0.8; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok.error {\n background: red; }\n", ""]);
  5186. // exports
  5187. /***/ }),
  5188. /***/ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css":
  5189. /*!****************************************************************************************************************************!*\
  5190. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  5191. \****************************************************************************************************************************/
  5192. /*! no static exports found */
  5193. /***/ (function(module, exports, __webpack_require__) {
  5194. exports = module.exports = __webpack_require__(/*! ../../css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5195. // imports
  5196. // module
  5197. exports.push([module.i, ".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n", ""]);
  5198. // exports
  5199. /***/ }),
  5200. /***/ "../../node_modules/css-loader/lib/css-base.js":
  5201. /*!*******************************************************************!*\
  5202. !*** C:/Repos/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  5203. \*******************************************************************/
  5204. /*! no static exports found */
  5205. /***/ (function(module, exports) {
  5206. /*
  5207. MIT License http://www.opensource.org/licenses/mit-license.php
  5208. Author Tobias Koppers @sokra
  5209. */
  5210. // css base code, injected by the css-loader
  5211. module.exports = function(useSourceMap) {
  5212. var list = [];
  5213. // return the list of modules as css string
  5214. list.toString = function toString() {
  5215. return this.map(function (item) {
  5216. var content = cssWithMappingToString(item, useSourceMap);
  5217. if(item[2]) {
  5218. return "@media " + item[2] + "{" + content + "}";
  5219. } else {
  5220. return content;
  5221. }
  5222. }).join("");
  5223. };
  5224. // import a list of modules into the list
  5225. list.i = function(modules, mediaQuery) {
  5226. if(typeof modules === "string")
  5227. modules = [[null, modules, ""]];
  5228. var alreadyImportedModules = {};
  5229. for(var i = 0; i < this.length; i++) {
  5230. var id = this[i][0];
  5231. if(typeof id === "number")
  5232. alreadyImportedModules[id] = true;
  5233. }
  5234. for(i = 0; i < modules.length; i++) {
  5235. var item = modules[i];
  5236. // skip already imported module
  5237. // this implementation is not 100% perfect for weird media query combinations
  5238. // when a module is imported multiple times with different media queries.
  5239. // I hope this will never occur (Hey this way we have smaller bundles)
  5240. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  5241. if(mediaQuery && !item[2]) {
  5242. item[2] = mediaQuery;
  5243. } else if(mediaQuery) {
  5244. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  5245. }
  5246. list.push(item);
  5247. }
  5248. }
  5249. };
  5250. return list;
  5251. };
  5252. function cssWithMappingToString(item, useSourceMap) {
  5253. var content = item[1] || '';
  5254. var cssMapping = item[3];
  5255. if (!cssMapping) {
  5256. return content;
  5257. }
  5258. if (useSourceMap && typeof btoa === 'function') {
  5259. var sourceMapping = toComment(cssMapping);
  5260. var sourceURLs = cssMapping.sources.map(function (source) {
  5261. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  5262. });
  5263. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  5264. }
  5265. return [content].join('\n');
  5266. }
  5267. // Adapted from convert-source-map (MIT)
  5268. function toComment(sourceMap) {
  5269. // eslint-disable-next-line no-undef
  5270. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  5271. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  5272. return '/*# ' + data + ' */';
  5273. }
  5274. /***/ }),
  5275. /***/ "../../node_modules/dagre/index.js":
  5276. /*!*******************************************************!*\
  5277. !*** C:/Repos/Babylon.js/node_modules/dagre/index.js ***!
  5278. \*******************************************************/
  5279. /*! no static exports found */
  5280. /***/ (function(module, exports, __webpack_require__) {
  5281. /*
  5282. Copyright (c) 2012-2014 Chris Pettitt
  5283. Permission is hereby granted, free of charge, to any person obtaining a copy
  5284. of this software and associated documentation files (the "Software"), to deal
  5285. in the Software without restriction, including without limitation the rights
  5286. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  5287. copies of the Software, and to permit persons to whom the Software is
  5288. furnished to do so, subject to the following conditions:
  5289. The above copyright notice and this permission notice shall be included in
  5290. all copies or substantial portions of the Software.
  5291. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  5292. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  5293. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  5294. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  5295. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  5296. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  5297. THE SOFTWARE.
  5298. */
  5299. module.exports = {
  5300. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  5301. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  5302. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  5303. util: {
  5304. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  5305. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  5306. },
  5307. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  5308. };
  5309. /***/ }),
  5310. /***/ "../../node_modules/dagre/lib/acyclic.js":
  5311. /*!*************************************************************!*\
  5312. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  5313. \*************************************************************/
  5314. /*! no static exports found */
  5315. /***/ (function(module, exports, __webpack_require__) {
  5316. "use strict";
  5317. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5318. greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  5319. module.exports = {
  5320. run: run,
  5321. undo: undo
  5322. };
  5323. function run(g) {
  5324. var fas = (g.graph().acyclicer === "greedy"
  5325. ? greedyFAS(g, weightFn(g))
  5326. : dfsFAS(g));
  5327. _.forEach(fas, function(e) {
  5328. var label = g.edge(e);
  5329. g.removeEdge(e);
  5330. label.forwardName = e.name;
  5331. label.reversed = true;
  5332. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  5333. });
  5334. function weightFn(g) {
  5335. return function(e) {
  5336. return g.edge(e).weight;
  5337. };
  5338. }
  5339. }
  5340. function dfsFAS(g) {
  5341. var fas = [],
  5342. stack = {},
  5343. visited = {};
  5344. function dfs(v) {
  5345. if (_.has(visited, v)) {
  5346. return;
  5347. }
  5348. visited[v] = true;
  5349. stack[v] = true;
  5350. _.forEach(g.outEdges(v), function(e) {
  5351. if (_.has(stack, e.w)) {
  5352. fas.push(e);
  5353. } else {
  5354. dfs(e.w);
  5355. }
  5356. });
  5357. delete stack[v];
  5358. }
  5359. _.forEach(g.nodes(), dfs);
  5360. return fas;
  5361. }
  5362. function undo(g) {
  5363. _.forEach(g.edges(), function(e) {
  5364. var label = g.edge(e);
  5365. if (label.reversed) {
  5366. g.removeEdge(e);
  5367. var forwardName = label.forwardName;
  5368. delete label.reversed;
  5369. delete label.forwardName;
  5370. g.setEdge(e.w, e.v, label, forwardName);
  5371. }
  5372. });
  5373. }
  5374. /***/ }),
  5375. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  5376. /*!*************************************************************************!*\
  5377. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  5378. \*************************************************************************/
  5379. /*! no static exports found */
  5380. /***/ (function(module, exports, __webpack_require__) {
  5381. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5382. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  5383. module.exports = addBorderSegments;
  5384. function addBorderSegments(g) {
  5385. function dfs(v) {
  5386. var children = g.children(v),
  5387. node = g.node(v);
  5388. if (children.length) {
  5389. _.forEach(children, dfs);
  5390. }
  5391. if (_.has(node, "minRank")) {
  5392. node.borderLeft = [];
  5393. node.borderRight = [];
  5394. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  5395. rank < maxRank;
  5396. ++rank) {
  5397. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  5398. addBorderNode(g, "borderRight", "_br", v, node, rank);
  5399. }
  5400. }
  5401. }
  5402. _.forEach(g.children(), dfs);
  5403. }
  5404. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  5405. var label = { width: 0, height: 0, rank: rank, borderType: prop },
  5406. prev = sgNode[prop][rank - 1],
  5407. curr = util.addDummyNode(g, "border", label, prefix);
  5408. sgNode[prop][rank] = curr;
  5409. g.setParent(curr, sg);
  5410. if (prev) {
  5411. g.setEdge(prev, curr, { weight: 1 });
  5412. }
  5413. }
  5414. /***/ }),
  5415. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  5416. /*!***********************************************************************!*\
  5417. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  5418. \***********************************************************************/
  5419. /*! no static exports found */
  5420. /***/ (function(module, exports, __webpack_require__) {
  5421. "use strict";
  5422. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  5423. module.exports = {
  5424. adjust: adjust,
  5425. undo: undo
  5426. };
  5427. function adjust(g) {
  5428. var rankDir = g.graph().rankdir.toLowerCase();
  5429. if (rankDir === "lr" || rankDir === "rl") {
  5430. swapWidthHeight(g);
  5431. }
  5432. }
  5433. function undo(g) {
  5434. var rankDir = g.graph().rankdir.toLowerCase();
  5435. if (rankDir === "bt" || rankDir === "rl") {
  5436. reverseY(g);
  5437. }
  5438. if (rankDir === "lr" || rankDir === "rl") {
  5439. swapXY(g);
  5440. swapWidthHeight(g);
  5441. }
  5442. }
  5443. function swapWidthHeight(g) {
  5444. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  5445. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  5446. }
  5447. function swapWidthHeightOne(attrs) {
  5448. var w = attrs.width;
  5449. attrs.width = attrs.height;
  5450. attrs.height = w;
  5451. }
  5452. function reverseY(g) {
  5453. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  5454. _.forEach(g.edges(), function(e) {
  5455. var edge = g.edge(e);
  5456. _.forEach(edge.points, reverseYOne);
  5457. if (_.has(edge, "y")) {
  5458. reverseYOne(edge);
  5459. }
  5460. });
  5461. }
  5462. function reverseYOne(attrs) {
  5463. attrs.y = -attrs.y;
  5464. }
  5465. function swapXY(g) {
  5466. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  5467. _.forEach(g.edges(), function(e) {
  5468. var edge = g.edge(e);
  5469. _.forEach(edge.points, swapXYOne);
  5470. if (_.has(edge, "x")) {
  5471. swapXYOne(edge);
  5472. }
  5473. });
  5474. }
  5475. function swapXYOne(attrs) {
  5476. var x = attrs.x;
  5477. attrs.x = attrs.y;
  5478. attrs.y = x;
  5479. }
  5480. /***/ }),
  5481. /***/ "../../node_modules/dagre/lib/data/list.js":
  5482. /*!***************************************************************!*\
  5483. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  5484. \***************************************************************/
  5485. /*! no static exports found */
  5486. /***/ (function(module, exports) {
  5487. /*
  5488. * Simple doubly linked list implementation derived from Cormen, et al.,
  5489. * "Introduction to Algorithms".
  5490. */
  5491. module.exports = List;
  5492. function List() {
  5493. var sentinel = {};
  5494. sentinel._next = sentinel._prev = sentinel;
  5495. this._sentinel = sentinel;
  5496. }
  5497. List.prototype.dequeue = function() {
  5498. var sentinel = this._sentinel,
  5499. entry = sentinel._prev;
  5500. if (entry !== sentinel) {
  5501. unlink(entry);
  5502. return entry;
  5503. }
  5504. };
  5505. List.prototype.enqueue = function(entry) {
  5506. var sentinel = this._sentinel;
  5507. if (entry._prev && entry._next) {
  5508. unlink(entry);
  5509. }
  5510. entry._next = sentinel._next;
  5511. sentinel._next._prev = entry;
  5512. sentinel._next = entry;
  5513. entry._prev = sentinel;
  5514. };
  5515. List.prototype.toString = function() {
  5516. var strs = [],
  5517. sentinel = this._sentinel,
  5518. curr = sentinel._prev;
  5519. while (curr !== sentinel) {
  5520. strs.push(JSON.stringify(curr, filterOutLinks));
  5521. curr = curr._prev;
  5522. }
  5523. return "[" + strs.join(", ") + "]";
  5524. };
  5525. function unlink(entry) {
  5526. entry._prev._next = entry._next;
  5527. entry._next._prev = entry._prev;
  5528. delete entry._next;
  5529. delete entry._prev;
  5530. }
  5531. function filterOutLinks(k, v) {
  5532. if (k !== "_next" && k !== "_prev") {
  5533. return v;
  5534. }
  5535. }
  5536. /***/ }),
  5537. /***/ "../../node_modules/dagre/lib/debug.js":
  5538. /*!***********************************************************!*\
  5539. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/debug.js ***!
  5540. \***********************************************************/
  5541. /*! no static exports found */
  5542. /***/ (function(module, exports, __webpack_require__) {
  5543. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5544. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5545. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5546. module.exports = {
  5547. debugOrdering: debugOrdering
  5548. };
  5549. /* istanbul ignore next */
  5550. function debugOrdering(g) {
  5551. var layerMatrix = util.buildLayerMatrix(g);
  5552. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  5553. _.forEach(g.nodes(), function(v) {
  5554. h.setNode(v, { label: v });
  5555. h.setParent(v, "layer" + g.node(v).rank);
  5556. });
  5557. _.forEach(g.edges(), function(e) {
  5558. h.setEdge(e.v, e.w, {}, e.name);
  5559. });
  5560. _.forEach(layerMatrix, function(layer, i) {
  5561. var layerV = "layer" + i;
  5562. h.setNode(layerV, { rank: "same" });
  5563. _.reduce(layer, function(u, v) {
  5564. h.setEdge(u, v, { style: "invis" });
  5565. return v;
  5566. });
  5567. });
  5568. return h;
  5569. }
  5570. /***/ }),
  5571. /***/ "../../node_modules/dagre/lib/graphlib.js":
  5572. /*!**************************************************************!*\
  5573. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  5574. \**************************************************************/
  5575. /*! no static exports found */
  5576. /***/ (function(module, exports, __webpack_require__) {
  5577. /* global window */
  5578. var graphlib;
  5579. if (true) {
  5580. try {
  5581. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  5582. } catch (e) {}
  5583. }
  5584. if (!graphlib) {
  5585. graphlib = window.graphlib;
  5586. }
  5587. module.exports = graphlib;
  5588. /***/ }),
  5589. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  5590. /*!****************************************************************!*\
  5591. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  5592. \****************************************************************/
  5593. /*! no static exports found */
  5594. /***/ (function(module, exports, __webpack_require__) {
  5595. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5596. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  5597. List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  5598. /*
  5599. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  5600. * arc set is a set of edges that can be removed to make a graph acyclic.
  5601. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  5602. * effective heuristic for the feedback arc set problem." This implementation
  5603. * adjusts that from the paper to allow for weighted edges.
  5604. */
  5605. module.exports = greedyFAS;
  5606. var DEFAULT_WEIGHT_FN = _.constant(1);
  5607. function greedyFAS(g, weightFn) {
  5608. if (g.nodeCount() <= 1) {
  5609. return [];
  5610. }
  5611. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  5612. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  5613. // Expand multi-edges
  5614. return _.flatten(_.map(results, function(e) {
  5615. return g.outEdges(e.v, e.w);
  5616. }), true);
  5617. }
  5618. function doGreedyFAS(g, buckets, zeroIdx) {
  5619. var results = [],
  5620. sources = buckets[buckets.length - 1],
  5621. sinks = buckets[0];
  5622. var entry;
  5623. while (g.nodeCount()) {
  5624. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5625. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5626. if (g.nodeCount()) {
  5627. for (var i = buckets.length - 2; i > 0; --i) {
  5628. entry = buckets[i].dequeue();
  5629. if (entry) {
  5630. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  5631. break;
  5632. }
  5633. }
  5634. }
  5635. }
  5636. return results;
  5637. }
  5638. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  5639. var results = collectPredecessors ? [] : undefined;
  5640. _.forEach(g.inEdges(entry.v), function(edge) {
  5641. var weight = g.edge(edge),
  5642. uEntry = g.node(edge.v);
  5643. if (collectPredecessors) {
  5644. results.push({ v: edge.v, w: edge.w });
  5645. }
  5646. uEntry.out -= weight;
  5647. assignBucket(buckets, zeroIdx, uEntry);
  5648. });
  5649. _.forEach(g.outEdges(entry.v), function(edge) {
  5650. var weight = g.edge(edge),
  5651. w = edge.w,
  5652. wEntry = g.node(w);
  5653. wEntry["in"] -= weight;
  5654. assignBucket(buckets, zeroIdx, wEntry);
  5655. });
  5656. g.removeNode(entry.v);
  5657. return results;
  5658. }
  5659. function buildState(g, weightFn) {
  5660. var fasGraph = new Graph(),
  5661. maxIn = 0,
  5662. maxOut = 0;
  5663. _.forEach(g.nodes(), function(v) {
  5664. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  5665. });
  5666. // Aggregate weights on nodes, but also sum the weights across multi-edges
  5667. // into a single edge for the fasGraph.
  5668. _.forEach(g.edges(), function(e) {
  5669. var prevWeight = fasGraph.edge(e.v, e.w) || 0,
  5670. weight = weightFn(e),
  5671. edgeWeight = prevWeight + weight;
  5672. fasGraph.setEdge(e.v, e.w, edgeWeight);
  5673. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  5674. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  5675. });
  5676. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  5677. var zeroIdx = maxIn + 1;
  5678. _.forEach(fasGraph.nodes(), function(v) {
  5679. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  5680. });
  5681. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  5682. }
  5683. function assignBucket(buckets, zeroIdx, entry) {
  5684. if (!entry.out) {
  5685. buckets[0].enqueue(entry);
  5686. } else if (!entry["in"]) {
  5687. buckets[buckets.length - 1].enqueue(entry);
  5688. } else {
  5689. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  5690. }
  5691. }
  5692. /***/ }),
  5693. /***/ "../../node_modules/dagre/lib/layout.js":
  5694. /*!************************************************************!*\
  5695. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/layout.js ***!
  5696. \************************************************************/
  5697. /*! no static exports found */
  5698. /***/ (function(module, exports, __webpack_require__) {
  5699. "use strict";
  5700. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5701. acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js"),
  5702. normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js"),
  5703. rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js"),
  5704. normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks,
  5705. parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js"),
  5706. removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks,
  5707. nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js"),
  5708. addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js"),
  5709. coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js"),
  5710. order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js"),
  5711. position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js"),
  5712. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5713. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5714. module.exports = layout;
  5715. function layout(g, opts) {
  5716. var time = opts && opts.debugTiming ? util.time : util.notime;
  5717. time("layout", function() {
  5718. var layoutGraph = time(" buildLayoutGraph",
  5719. function() { return buildLayoutGraph(g); });
  5720. time(" runLayout", function() { runLayout(layoutGraph, time); });
  5721. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  5722. });
  5723. }
  5724. function runLayout(g, time) {
  5725. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  5726. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  5727. time(" acyclic", function() { acyclic.run(g); });
  5728. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  5729. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  5730. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  5731. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  5732. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  5733. time(" normalizeRanks", function() { normalizeRanks(g); });
  5734. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  5735. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  5736. time(" normalize.run", function() { normalize.run(g); });
  5737. time(" parentDummyChains", function() { parentDummyChains(g); });
  5738. time(" addBorderSegments", function() { addBorderSegments(g); });
  5739. time(" order", function() { order(g); });
  5740. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  5741. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  5742. time(" position", function() { position(g); });
  5743. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  5744. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  5745. time(" normalize.undo", function() { normalize.undo(g); });
  5746. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  5747. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  5748. time(" translateGraph", function() { translateGraph(g); });
  5749. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  5750. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  5751. time(" acyclic.undo", function() { acyclic.undo(g); });
  5752. }
  5753. /*
  5754. * Copies final layout information from the layout graph back to the input
  5755. * graph. This process only copies whitelisted attributes from the layout graph
  5756. * to the input graph, so it serves as a good place to determine what
  5757. * attributes can influence layout.
  5758. */
  5759. function updateInputGraph(inputGraph, layoutGraph) {
  5760. _.forEach(inputGraph.nodes(), function(v) {
  5761. var inputLabel = inputGraph.node(v),
  5762. layoutLabel = layoutGraph.node(v);
  5763. if (inputLabel) {
  5764. inputLabel.x = layoutLabel.x;
  5765. inputLabel.y = layoutLabel.y;
  5766. if (layoutGraph.children(v).length) {
  5767. inputLabel.width = layoutLabel.width;
  5768. inputLabel.height = layoutLabel.height;
  5769. }
  5770. }
  5771. });
  5772. _.forEach(inputGraph.edges(), function(e) {
  5773. var inputLabel = inputGraph.edge(e),
  5774. layoutLabel = layoutGraph.edge(e);
  5775. inputLabel.points = layoutLabel.points;
  5776. if (_.has(layoutLabel, "x")) {
  5777. inputLabel.x = layoutLabel.x;
  5778. inputLabel.y = layoutLabel.y;
  5779. }
  5780. });
  5781. inputGraph.graph().width = layoutGraph.graph().width;
  5782. inputGraph.graph().height = layoutGraph.graph().height;
  5783. }
  5784. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"],
  5785. graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" },
  5786. graphAttrs = ["acyclicer", "ranker", "rankdir", "align"],
  5787. nodeNumAttrs = ["width", "height"],
  5788. nodeDefaults = { width: 0, height: 0 },
  5789. edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"],
  5790. edgeDefaults = {
  5791. minlen: 1, weight: 1, width: 0, height: 0,
  5792. labeloffset: 10, labelpos: "r"
  5793. },
  5794. edgeAttrs = ["labelpos"];
  5795. /*
  5796. * Constructs a new graph from the input graph, which can be used for layout.
  5797. * This process copies only whitelisted attributes from the input graph to the
  5798. * layout graph. Thus this function serves as a good place to determine what
  5799. * attributes can influence layout.
  5800. */
  5801. function buildLayoutGraph(inputGraph) {
  5802. var g = new Graph({ multigraph: true, compound: true }),
  5803. graph = canonicalize(inputGraph.graph());
  5804. g.setGraph(_.merge({},
  5805. graphDefaults,
  5806. selectNumberAttrs(graph, graphNumAttrs),
  5807. _.pick(graph, graphAttrs)));
  5808. _.forEach(inputGraph.nodes(), function(v) {
  5809. var node = canonicalize(inputGraph.node(v));
  5810. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  5811. g.setParent(v, inputGraph.parent(v));
  5812. });
  5813. _.forEach(inputGraph.edges(), function(e) {
  5814. var edge = canonicalize(inputGraph.edge(e));
  5815. g.setEdge(e, _.merge({},
  5816. edgeDefaults,
  5817. selectNumberAttrs(edge, edgeNumAttrs),
  5818. _.pick(edge, edgeAttrs)));
  5819. });
  5820. return g;
  5821. }
  5822. /*
  5823. * This idea comes from the Gansner paper: to account for edge labels in our
  5824. * layout we split each rank in half by doubling minlen and halving ranksep.
  5825. * Then we can place labels at these mid-points between nodes.
  5826. *
  5827. * We also add some minimal padding to the width to push the label for the edge
  5828. * away from the edge itself a bit.
  5829. */
  5830. function makeSpaceForEdgeLabels(g) {
  5831. var graph = g.graph();
  5832. graph.ranksep /= 2;
  5833. _.forEach(g.edges(), function(e) {
  5834. var edge = g.edge(e);
  5835. edge.minlen *= 2;
  5836. if (edge.labelpos.toLowerCase() !== "c") {
  5837. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  5838. edge.width += edge.labeloffset;
  5839. } else {
  5840. edge.height += edge.labeloffset;
  5841. }
  5842. }
  5843. });
  5844. }
  5845. /*
  5846. * Creates temporary dummy nodes that capture the rank in which each edge's
  5847. * label is going to, if it has one of non-zero width and height. We do this
  5848. * so that we can safely remove empty ranks while preserving balance for the
  5849. * label's position.
  5850. */
  5851. function injectEdgeLabelProxies(g) {
  5852. _.forEach(g.edges(), function(e) {
  5853. var edge = g.edge(e);
  5854. if (edge.width && edge.height) {
  5855. var v = g.node(e.v),
  5856. w = g.node(e.w),
  5857. label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  5858. util.addDummyNode(g, "edge-proxy", label, "_ep");
  5859. }
  5860. });
  5861. }
  5862. function assignRankMinMax(g) {
  5863. var maxRank = 0;
  5864. _.forEach(g.nodes(), function(v) {
  5865. var node = g.node(v);
  5866. if (node.borderTop) {
  5867. node.minRank = g.node(node.borderTop).rank;
  5868. node.maxRank = g.node(node.borderBottom).rank;
  5869. maxRank = _.max(maxRank, node.maxRank);
  5870. }
  5871. });
  5872. g.graph().maxRank = maxRank;
  5873. }
  5874. function removeEdgeLabelProxies(g) {
  5875. _.forEach(g.nodes(), function(v) {
  5876. var node = g.node(v);
  5877. if (node.dummy === "edge-proxy") {
  5878. g.edge(node.e).labelRank = node.rank;
  5879. g.removeNode(v);
  5880. }
  5881. });
  5882. }
  5883. function translateGraph(g) {
  5884. var minX = Number.POSITIVE_INFINITY,
  5885. maxX = 0,
  5886. minY = Number.POSITIVE_INFINITY,
  5887. maxY = 0,
  5888. graphLabel = g.graph(),
  5889. marginX = graphLabel.marginx || 0,
  5890. marginY = graphLabel.marginy || 0;
  5891. function getExtremes(attrs) {
  5892. var x = attrs.x,
  5893. y = attrs.y,
  5894. w = attrs.width,
  5895. h = attrs.height;
  5896. minX = Math.min(minX, x - w / 2);
  5897. maxX = Math.max(maxX, x + w / 2);
  5898. minY = Math.min(minY, y - h / 2);
  5899. maxY = Math.max(maxY, y + h / 2);
  5900. }
  5901. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  5902. _.forEach(g.edges(), function(e) {
  5903. var edge = g.edge(e);
  5904. if (_.has(edge, "x")) {
  5905. getExtremes(edge);
  5906. }
  5907. });
  5908. minX -= marginX;
  5909. minY -= marginY;
  5910. _.forEach(g.nodes(), function(v) {
  5911. var node = g.node(v);
  5912. node.x -= minX;
  5913. node.y -= minY;
  5914. });
  5915. _.forEach(g.edges(), function(e) {
  5916. var edge = g.edge(e);
  5917. _.forEach(edge.points, function(p) {
  5918. p.x -= minX;
  5919. p.y -= minY;
  5920. });
  5921. if (_.has(edge, "x")) { edge.x -= minX; }
  5922. if (_.has(edge, "y")) { edge.y -= minY; }
  5923. });
  5924. graphLabel.width = maxX - minX + marginX;
  5925. graphLabel.height = maxY - minY + marginY;
  5926. }
  5927. function assignNodeIntersects(g) {
  5928. _.forEach(g.edges(), function(e) {
  5929. var edge = g.edge(e),
  5930. nodeV = g.node(e.v),
  5931. nodeW = g.node(e.w),
  5932. p1, p2;
  5933. if (!edge.points) {
  5934. edge.points = [];
  5935. p1 = nodeW;
  5936. p2 = nodeV;
  5937. } else {
  5938. p1 = edge.points[0];
  5939. p2 = edge.points[edge.points.length - 1];
  5940. }
  5941. edge.points.unshift(util.intersectRect(nodeV, p1));
  5942. edge.points.push(util.intersectRect(nodeW, p2));
  5943. });
  5944. }
  5945. function fixupEdgeLabelCoords(g) {
  5946. _.forEach(g.edges(), function(e) {
  5947. var edge = g.edge(e);
  5948. if (_.has(edge, "x")) {
  5949. if (edge.labelpos === "l" || edge.labelpos === "r") {
  5950. edge.width -= edge.labeloffset;
  5951. }
  5952. switch (edge.labelpos) {
  5953. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  5954. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  5955. }
  5956. }
  5957. });
  5958. }
  5959. function reversePointsForReversedEdges(g) {
  5960. _.forEach(g.edges(), function(e) {
  5961. var edge = g.edge(e);
  5962. if (edge.reversed) {
  5963. edge.points.reverse();
  5964. }
  5965. });
  5966. }
  5967. function removeBorderNodes(g) {
  5968. _.forEach(g.nodes(), function(v) {
  5969. if (g.children(v).length) {
  5970. var node = g.node(v),
  5971. t = g.node(node.borderTop),
  5972. b = g.node(node.borderBottom),
  5973. l = g.node(_.last(node.borderLeft)),
  5974. r = g.node(_.last(node.borderRight));
  5975. node.width = Math.abs(r.x - l.x);
  5976. node.height = Math.abs(b.y - t.y);
  5977. node.x = l.x + node.width / 2;
  5978. node.y = t.y + node.height / 2;
  5979. }
  5980. });
  5981. _.forEach(g.nodes(), function(v) {
  5982. if (g.node(v).dummy === "border") {
  5983. g.removeNode(v);
  5984. }
  5985. });
  5986. }
  5987. function removeSelfEdges(g) {
  5988. _.forEach(g.edges(), function(e) {
  5989. if (e.v === e.w) {
  5990. var node = g.node(e.v);
  5991. if (!node.selfEdges) {
  5992. node.selfEdges = [];
  5993. }
  5994. node.selfEdges.push({ e: e, label: g.edge(e) });
  5995. g.removeEdge(e);
  5996. }
  5997. });
  5998. }
  5999. function insertSelfEdges(g) {
  6000. var layers = util.buildLayerMatrix(g);
  6001. _.forEach(layers, function(layer) {
  6002. var orderShift = 0;
  6003. _.forEach(layer, function(v, i) {
  6004. var node = g.node(v);
  6005. node.order = i + orderShift;
  6006. _.forEach(node.selfEdges, function(selfEdge) {
  6007. util.addDummyNode(g, "selfedge", {
  6008. width: selfEdge.label.width,
  6009. height: selfEdge.label.height,
  6010. rank: node.rank,
  6011. order: i + (++orderShift),
  6012. e: selfEdge.e,
  6013. label: selfEdge.label
  6014. }, "_se");
  6015. });
  6016. delete node.selfEdges;
  6017. });
  6018. });
  6019. }
  6020. function positionSelfEdges(g) {
  6021. _.forEach(g.nodes(), function(v) {
  6022. var node = g.node(v);
  6023. if (node.dummy === "selfedge") {
  6024. var selfNode = g.node(node.e.v),
  6025. x = selfNode.x + selfNode.width / 2,
  6026. y = selfNode.y,
  6027. dx = node.x - x,
  6028. dy = selfNode.height / 2;
  6029. g.setEdge(node.e, node.label);
  6030. g.removeNode(v);
  6031. node.label.points = [
  6032. { x: x + 2 * dx / 3, y: y - dy },
  6033. { x: x + 5 * dx / 6, y: y - dy },
  6034. { x: x + dx , y: y },
  6035. { x: x + 5 * dx / 6, y: y + dy },
  6036. { x: x + 2 * dx / 3, y: y + dy }
  6037. ];
  6038. node.label.x = node.x;
  6039. node.label.y = node.y;
  6040. }
  6041. });
  6042. }
  6043. function selectNumberAttrs(obj, attrs) {
  6044. return _.mapValues(_.pick(obj, attrs), Number);
  6045. }
  6046. function canonicalize(attrs) {
  6047. var newAttrs = {};
  6048. _.forEach(attrs, function(v, k) {
  6049. newAttrs[k.toLowerCase()] = v;
  6050. });
  6051. return newAttrs;
  6052. }
  6053. /***/ }),
  6054. /***/ "../../node_modules/dagre/lib/lodash.js":
  6055. /*!************************************************************!*\
  6056. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  6057. \************************************************************/
  6058. /*! no static exports found */
  6059. /***/ (function(module, exports, __webpack_require__) {
  6060. /* global window */
  6061. var lodash;
  6062. if (true) {
  6063. try {
  6064. lodash = {
  6065. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  6066. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  6067. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  6068. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  6069. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  6070. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  6071. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  6072. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  6073. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  6074. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  6075. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  6076. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  6077. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  6078. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  6079. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  6080. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  6081. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  6082. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  6083. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  6084. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  6085. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  6086. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  6087. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  6088. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  6089. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  6090. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  6091. };
  6092. } catch (e) {}
  6093. }
  6094. if (!lodash) {
  6095. lodash = window._;
  6096. }
  6097. module.exports = lodash;
  6098. /***/ }),
  6099. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  6100. /*!*******************************************************************!*\
  6101. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  6102. \*******************************************************************/
  6103. /*! no static exports found */
  6104. /***/ (function(module, exports, __webpack_require__) {
  6105. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6106. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6107. module.exports = {
  6108. run: run,
  6109. cleanup: cleanup
  6110. };
  6111. /*
  6112. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  6113. * adds appropriate edges to ensure that all cluster nodes are placed between
  6114. * these boundries, and ensures that the graph is connected.
  6115. *
  6116. * In addition we ensure, through the use of the minlen property, that nodes
  6117. * and subgraph border nodes to not end up on the same rank.
  6118. *
  6119. * Preconditions:
  6120. *
  6121. * 1. Input graph is a DAG
  6122. * 2. Nodes in the input graph has a minlen attribute
  6123. *
  6124. * Postconditions:
  6125. *
  6126. * 1. Input graph is connected.
  6127. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  6128. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  6129. * get placed on the same rank as subgraph border nodes.
  6130. *
  6131. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  6132. * Graphs."
  6133. */
  6134. function run(g) {
  6135. var root = util.addDummyNode(g, "root", {}, "_root");
  6136. var depths = treeDepths(g);
  6137. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  6138. var nodeSep = 2 * height + 1;
  6139. g.graph().nestingRoot = root;
  6140. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  6141. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  6142. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  6143. var weight = sumWeights(g) + 1;
  6144. // Create border nodes and link them up
  6145. _.forEach(g.children(), function(child) {
  6146. dfs(g, root, nodeSep, weight, height, depths, child);
  6147. });
  6148. // Save the multiplier for node layers for later removal of empty border
  6149. // layers.
  6150. g.graph().nodeRankFactor = nodeSep;
  6151. }
  6152. function dfs(g, root, nodeSep, weight, height, depths, v) {
  6153. var children = g.children(v);
  6154. if (!children.length) {
  6155. if (v !== root) {
  6156. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  6157. }
  6158. return;
  6159. }
  6160. var top = util.addBorderNode(g, "_bt"),
  6161. bottom = util.addBorderNode(g, "_bb"),
  6162. label = g.node(v);
  6163. g.setParent(top, v);
  6164. label.borderTop = top;
  6165. g.setParent(bottom, v);
  6166. label.borderBottom = bottom;
  6167. _.forEach(children, function(child) {
  6168. dfs(g, root, nodeSep, weight, height, depths, child);
  6169. var childNode = g.node(child),
  6170. childTop = childNode.borderTop ? childNode.borderTop : child,
  6171. childBottom = childNode.borderBottom ? childNode.borderBottom : child,
  6172. thisWeight = childNode.borderTop ? weight : 2 * weight,
  6173. minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  6174. g.setEdge(top, childTop, {
  6175. weight: thisWeight,
  6176. minlen: minlen,
  6177. nestingEdge: true
  6178. });
  6179. g.setEdge(childBottom, bottom, {
  6180. weight: thisWeight,
  6181. minlen: minlen,
  6182. nestingEdge: true
  6183. });
  6184. });
  6185. if (!g.parent(v)) {
  6186. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  6187. }
  6188. }
  6189. function treeDepths(g) {
  6190. var depths = {};
  6191. function dfs(v, depth) {
  6192. var children = g.children(v);
  6193. if (children && children.length) {
  6194. _.forEach(children, function(child) {
  6195. dfs(child, depth + 1);
  6196. });
  6197. }
  6198. depths[v] = depth;
  6199. }
  6200. _.forEach(g.children(), function(v) { dfs(v, 1); });
  6201. return depths;
  6202. }
  6203. function sumWeights(g) {
  6204. return _.reduce(g.edges(), function(acc, e) {
  6205. return acc + g.edge(e).weight;
  6206. }, 0);
  6207. }
  6208. function cleanup(g) {
  6209. var graphLabel = g.graph();
  6210. g.removeNode(graphLabel.nestingRoot);
  6211. delete graphLabel.nestingRoot;
  6212. _.forEach(g.edges(), function(e) {
  6213. var edge = g.edge(e);
  6214. if (edge.nestingEdge) {
  6215. g.removeEdge(e);
  6216. }
  6217. });
  6218. }
  6219. /***/ }),
  6220. /***/ "../../node_modules/dagre/lib/normalize.js":
  6221. /*!***************************************************************!*\
  6222. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  6223. \***************************************************************/
  6224. /*! no static exports found */
  6225. /***/ (function(module, exports, __webpack_require__) {
  6226. "use strict";
  6227. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6228. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6229. module.exports = {
  6230. run: run,
  6231. undo: undo
  6232. };
  6233. /*
  6234. * Breaks any long edges in the graph into short segments that span 1 layer
  6235. * each. This operation is undoable with the denormalize function.
  6236. *
  6237. * Pre-conditions:
  6238. *
  6239. * 1. The input graph is a DAG.
  6240. * 2. Each node in the graph has a "rank" property.
  6241. *
  6242. * Post-condition:
  6243. *
  6244. * 1. All edges in the graph have a length of 1.
  6245. * 2. Dummy nodes are added where edges have been split into segments.
  6246. * 3. The graph is augmented with a "dummyChains" attribute which contains
  6247. * the first dummy in each chain of dummy nodes produced.
  6248. */
  6249. function run(g) {
  6250. g.graph().dummyChains = [];
  6251. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  6252. }
  6253. function normalizeEdge(g, e) {
  6254. var v = e.v,
  6255. vRank = g.node(v).rank,
  6256. w = e.w,
  6257. wRank = g.node(w).rank,
  6258. name = e.name,
  6259. edgeLabel = g.edge(e),
  6260. labelRank = edgeLabel.labelRank;
  6261. if (wRank === vRank + 1) return;
  6262. g.removeEdge(e);
  6263. var dummy, attrs, i;
  6264. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  6265. edgeLabel.points = [];
  6266. attrs = {
  6267. width: 0, height: 0,
  6268. edgeLabel: edgeLabel, edgeObj: e,
  6269. rank: vRank
  6270. };
  6271. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  6272. if (vRank === labelRank) {
  6273. attrs.width = edgeLabel.width;
  6274. attrs.height = edgeLabel.height;
  6275. attrs.dummy = "edge-label";
  6276. attrs.labelpos = edgeLabel.labelpos;
  6277. }
  6278. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  6279. if (i === 0) {
  6280. g.graph().dummyChains.push(dummy);
  6281. }
  6282. v = dummy;
  6283. }
  6284. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  6285. }
  6286. function undo(g) {
  6287. _.forEach(g.graph().dummyChains, function(v) {
  6288. var node = g.node(v),
  6289. origLabel = node.edgeLabel,
  6290. w;
  6291. g.setEdge(node.edgeObj, origLabel);
  6292. while (node.dummy) {
  6293. w = g.successors(v)[0];
  6294. g.removeNode(v);
  6295. origLabel.points.push({ x: node.x, y: node.y });
  6296. if (node.dummy === "edge-label") {
  6297. origLabel.x = node.x;
  6298. origLabel.y = node.y;
  6299. origLabel.width = node.width;
  6300. origLabel.height = node.height;
  6301. }
  6302. v = w;
  6303. node = g.node(v);
  6304. }
  6305. });
  6306. }
  6307. /***/ }),
  6308. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  6309. /*!************************************************************************************!*\
  6310. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  6311. \************************************************************************************/
  6312. /*! no static exports found */
  6313. /***/ (function(module, exports, __webpack_require__) {
  6314. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6315. module.exports = addSubgraphConstraints;
  6316. function addSubgraphConstraints(g, cg, vs) {
  6317. var prev = {},
  6318. rootPrev;
  6319. _.forEach(vs, function(v) {
  6320. var child = g.parent(v),
  6321. parent,
  6322. prevChild;
  6323. while (child) {
  6324. parent = g.parent(child);
  6325. if (parent) {
  6326. prevChild = prev[parent];
  6327. prev[parent] = child;
  6328. } else {
  6329. prevChild = rootPrev;
  6330. rootPrev = child;
  6331. }
  6332. if (prevChild && prevChild !== child) {
  6333. cg.setEdge(prevChild, child);
  6334. return;
  6335. }
  6336. child = parent;
  6337. }
  6338. });
  6339. /*
  6340. function dfs(v) {
  6341. var children = v ? g.children(v) : g.children();
  6342. if (children.length) {
  6343. var min = Number.POSITIVE_INFINITY,
  6344. subgraphs = [];
  6345. _.each(children, function(child) {
  6346. var childMin = dfs(child);
  6347. if (g.children(child).length) {
  6348. subgraphs.push({ v: child, order: childMin });
  6349. }
  6350. min = Math.min(min, childMin);
  6351. });
  6352. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  6353. cg.setEdge(prev.v, curr.v);
  6354. return curr;
  6355. });
  6356. return min;
  6357. }
  6358. return g.node(v).order;
  6359. }
  6360. dfs(undefined);
  6361. */
  6362. }
  6363. /***/ }),
  6364. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  6365. /*!**********************************************************************!*\
  6366. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  6367. \**********************************************************************/
  6368. /*! no static exports found */
  6369. /***/ (function(module, exports, __webpack_require__) {
  6370. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6371. module.exports = barycenter;
  6372. function barycenter(g, movable) {
  6373. return _.map(movable, function(v) {
  6374. var inV = g.inEdges(v);
  6375. if (!inV.length) {
  6376. return { v: v };
  6377. } else {
  6378. var result = _.reduce(inV, function(acc, e) {
  6379. var edge = g.edge(e),
  6380. nodeU = g.node(e.v);
  6381. return {
  6382. sum: acc.sum + (edge.weight * nodeU.order),
  6383. weight: acc.weight + edge.weight
  6384. };
  6385. }, { sum: 0, weight: 0 });
  6386. return {
  6387. v: v,
  6388. barycenter: result.sum / result.weight,
  6389. weight: result.weight
  6390. };
  6391. }
  6392. });
  6393. }
  6394. /***/ }),
  6395. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  6396. /*!*****************************************************************************!*\
  6397. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  6398. \*****************************************************************************/
  6399. /*! no static exports found */
  6400. /***/ (function(module, exports, __webpack_require__) {
  6401. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6402. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  6403. module.exports = buildLayerGraph;
  6404. /*
  6405. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  6406. * contain all base and subgraph nodes from the request layer in their original
  6407. * hierarchy and any edges that are incident on these nodes and are of the type
  6408. * requested by the "relationship" parameter.
  6409. *
  6410. * Nodes from the requested rank that do not have parents are assigned a root
  6411. * node in the output graph, which is set in the root graph attribute. This
  6412. * makes it easy to walk the hierarchy of movable nodes during ordering.
  6413. *
  6414. * Pre-conditions:
  6415. *
  6416. * 1. Input graph is a DAG
  6417. * 2. Base nodes in the input graph have a rank attribute
  6418. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  6419. * 4. Edges have an assigned weight
  6420. *
  6421. * Post-conditions:
  6422. *
  6423. * 1. Output graph has all nodes in the movable rank with preserved
  6424. * hierarchy.
  6425. * 2. Root nodes in the movable layer are made children of the node
  6426. * indicated by the root attribute of the graph.
  6427. * 3. Non-movable nodes incident on movable nodes, selected by the
  6428. * relationship parameter, are included in the graph (without hierarchy).
  6429. * 4. Edges incident on movable nodes, selected by the relationship
  6430. * parameter, are added to the output graph.
  6431. * 5. The weights for copied edges are aggregated as need, since the output
  6432. * graph is not a multi-graph.
  6433. */
  6434. function buildLayerGraph(g, rank, relationship) {
  6435. var root = createRootNode(g),
  6436. result = new Graph({ compound: true }).setGraph({ root: root })
  6437. .setDefaultNodeLabel(function(v) { return g.node(v); });
  6438. _.forEach(g.nodes(), function(v) {
  6439. var node = g.node(v),
  6440. parent = g.parent(v);
  6441. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  6442. result.setNode(v);
  6443. result.setParent(v, parent || root);
  6444. // This assumes we have only short edges!
  6445. _.forEach(g[relationship](v), function(e) {
  6446. var u = e.v === v ? e.w : e.v,
  6447. edge = result.edge(u, v),
  6448. weight = !_.isUndefined(edge) ? edge.weight : 0;
  6449. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  6450. });
  6451. if (_.has(node, "minRank")) {
  6452. result.setNode(v, {
  6453. borderLeft: node.borderLeft[rank],
  6454. borderRight: node.borderRight[rank]
  6455. });
  6456. }
  6457. }
  6458. });
  6459. return result;
  6460. }
  6461. function createRootNode(g) {
  6462. var v;
  6463. while (g.hasNode((v = _.uniqueId("_root"))));
  6464. return v;
  6465. }
  6466. /***/ }),
  6467. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  6468. /*!***********************************************************************!*\
  6469. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  6470. \***********************************************************************/
  6471. /*! no static exports found */
  6472. /***/ (function(module, exports, __webpack_require__) {
  6473. "use strict";
  6474. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6475. module.exports = crossCount;
  6476. /*
  6477. * A function that takes a layering (an array of layers, each with an array of
  6478. * ordererd nodes) and a graph and returns a weighted crossing count.
  6479. *
  6480. * Pre-conditions:
  6481. *
  6482. * 1. Input graph must be simple (not a multigraph), directed, and include
  6483. * only simple edges.
  6484. * 2. Edges in the input graph must have assigned weights.
  6485. *
  6486. * Post-conditions:
  6487. *
  6488. * 1. The graph and layering matrix are left unchanged.
  6489. *
  6490. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  6491. */
  6492. function crossCount(g, layering) {
  6493. var cc = 0;
  6494. for (var i = 1; i < layering.length; ++i) {
  6495. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  6496. }
  6497. return cc;
  6498. }
  6499. function twoLayerCrossCount(g, northLayer, southLayer) {
  6500. // Sort all of the edges between the north and south layers by their position
  6501. // in the north layer and then the south. Map these edges to the position of
  6502. // their head in the south layer.
  6503. var southPos = _.zipObject(southLayer,
  6504. _.map(southLayer, function (v, i) { return i; }));
  6505. var southEntries = _.flatten(_.map(northLayer, function(v) {
  6506. return _.sortBy(_.map(g.outEdges(v), function(e) {
  6507. return { pos: southPos[e.w], weight: g.edge(e).weight };
  6508. }), "pos");
  6509. }), true);
  6510. // Build the accumulator tree
  6511. var firstIndex = 1;
  6512. while (firstIndex < southLayer.length) firstIndex <<= 1;
  6513. var treeSize = 2 * firstIndex - 1;
  6514. firstIndex -= 1;
  6515. var tree = _.map(new Array(treeSize), function() { return 0; });
  6516. // Calculate the weighted crossings
  6517. var cc = 0;
  6518. _.forEach(southEntries.forEach(function(entry) {
  6519. var index = entry.pos + firstIndex;
  6520. tree[index] += entry.weight;
  6521. var weightSum = 0;
  6522. while (index > 0) {
  6523. if (index % 2) {
  6524. weightSum += tree[index + 1];
  6525. }
  6526. index = (index - 1) >> 1;
  6527. tree[index] += entry.weight;
  6528. }
  6529. cc += entry.weight * weightSum;
  6530. }));
  6531. return cc;
  6532. }
  6533. /***/ }),
  6534. /***/ "../../node_modules/dagre/lib/order/index.js":
  6535. /*!*****************************************************************!*\
  6536. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  6537. \*****************************************************************/
  6538. /*! no static exports found */
  6539. /***/ (function(module, exports, __webpack_require__) {
  6540. "use strict";
  6541. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6542. initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js"),
  6543. crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js"),
  6544. sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js"),
  6545. buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js"),
  6546. addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js"),
  6547. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6548. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6549. module.exports = order;
  6550. /*
  6551. * Applies heuristics to minimize edge crossings in the graph and sets the best
  6552. * order solution as an order attribute on each node.
  6553. *
  6554. * Pre-conditions:
  6555. *
  6556. * 1. Graph must be DAG
  6557. * 2. Graph nodes must be objects with a "rank" attribute
  6558. * 3. Graph edges must have the "weight" attribute
  6559. *
  6560. * Post-conditions:
  6561. *
  6562. * 1. Graph nodes will have an "order" attribute based on the results of the
  6563. * algorithm.
  6564. */
  6565. function order(g) {
  6566. var maxRank = util.maxRank(g),
  6567. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  6568. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  6569. var layering = initOrder(g);
  6570. assignOrder(g, layering);
  6571. var bestCC = Number.POSITIVE_INFINITY,
  6572. best;
  6573. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  6574. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  6575. layering = util.buildLayerMatrix(g);
  6576. var cc = crossCount(g, layering);
  6577. if (cc < bestCC) {
  6578. lastBest = 0;
  6579. best = _.cloneDeep(layering);
  6580. bestCC = cc;
  6581. }
  6582. }
  6583. assignOrder(g, best);
  6584. }
  6585. function buildLayerGraphs(g, ranks, relationship) {
  6586. return _.map(ranks, function(rank) {
  6587. return buildLayerGraph(g, rank, relationship);
  6588. });
  6589. }
  6590. function sweepLayerGraphs(layerGraphs, biasRight) {
  6591. var cg = new Graph();
  6592. _.forEach(layerGraphs, function(lg) {
  6593. var root = lg.graph().root;
  6594. var sorted = sortSubgraph(lg, root, cg, biasRight);
  6595. _.forEach(sorted.vs, function(v, i) {
  6596. lg.node(v).order = i;
  6597. });
  6598. addSubgraphConstraints(lg, cg, sorted.vs);
  6599. });
  6600. }
  6601. function assignOrder(g, layering) {
  6602. _.forEach(layering, function(layer) {
  6603. _.forEach(layer, function(v, i) {
  6604. g.node(v).order = i;
  6605. });
  6606. });
  6607. }
  6608. /***/ }),
  6609. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  6610. /*!**********************************************************************!*\
  6611. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  6612. \**********************************************************************/
  6613. /*! no static exports found */
  6614. /***/ (function(module, exports, __webpack_require__) {
  6615. "use strict";
  6616. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6617. module.exports = initOrder;
  6618. /*
  6619. * Assigns an initial order value for each node by performing a DFS search
  6620. * starting from nodes in the first rank. Nodes are assigned an order in their
  6621. * rank as they are first visited.
  6622. *
  6623. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  6624. * Graphs."
  6625. *
  6626. * Returns a layering matrix with an array per layer and each layer sorted by
  6627. * the order of its nodes.
  6628. */
  6629. function initOrder(g) {
  6630. var visited = {},
  6631. simpleNodes = _.filter(g.nodes(), function(v) {
  6632. return !g.children(v).length;
  6633. }),
  6634. maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; })),
  6635. layers = _.map(_.range(maxRank + 1), function() { return []; });
  6636. function dfs(v) {
  6637. if (_.has(visited, v)) return;
  6638. visited[v] = true;
  6639. var node = g.node(v);
  6640. layers[node.rank].push(v);
  6641. _.forEach(g.successors(v), dfs);
  6642. }
  6643. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  6644. _.forEach(orderedVs, dfs);
  6645. return layers;
  6646. }
  6647. /***/ }),
  6648. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  6649. /*!*****************************************************************************!*\
  6650. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  6651. \*****************************************************************************/
  6652. /*! no static exports found */
  6653. /***/ (function(module, exports, __webpack_require__) {
  6654. "use strict";
  6655. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6656. module.exports = resolveConflicts;
  6657. /*
  6658. * Given a list of entries of the form {v, barycenter, weight} and a
  6659. * constraint graph this function will resolve any conflicts between the
  6660. * constraint graph and the barycenters for the entries. If the barycenters for
  6661. * an entry would violate a constraint in the constraint graph then we coalesce
  6662. * the nodes in the conflict into a new node that respects the contraint and
  6663. * aggregates barycenter and weight information.
  6664. *
  6665. * This implementation is based on the description in Forster, "A Fast and
  6666. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  6667. * differs in some specific details.
  6668. *
  6669. * Pre-conditions:
  6670. *
  6671. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  6672. * no barycenter, then {v}.
  6673. *
  6674. * Returns:
  6675. *
  6676. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  6677. * `vs` may either be a singleton or it may be an aggregation of nodes
  6678. * ordered such that they do not violate constraints from the constraint
  6679. * graph. The property `i` is the lowest original index of any of the
  6680. * elements in `vs`.
  6681. */
  6682. function resolveConflicts(entries, cg) {
  6683. var mappedEntries = {};
  6684. _.forEach(entries, function(entry, i) {
  6685. var tmp = mappedEntries[entry.v] = {
  6686. indegree: 0,
  6687. "in": [],
  6688. out: [],
  6689. vs: [entry.v],
  6690. i: i
  6691. };
  6692. if (!_.isUndefined(entry.barycenter)) {
  6693. tmp.barycenter = entry.barycenter;
  6694. tmp.weight = entry.weight;
  6695. }
  6696. });
  6697. _.forEach(cg.edges(), function(e) {
  6698. var entryV = mappedEntries[e.v],
  6699. entryW = mappedEntries[e.w];
  6700. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  6701. entryW.indegree++;
  6702. entryV.out.push(mappedEntries[e.w]);
  6703. }
  6704. });
  6705. var sourceSet = _.filter(mappedEntries, function(entry) {
  6706. return !entry.indegree;
  6707. });
  6708. return doResolveConflicts(sourceSet);
  6709. }
  6710. function doResolveConflicts(sourceSet) {
  6711. var entries = [];
  6712. function handleIn(vEntry) {
  6713. return function(uEntry) {
  6714. if (uEntry.merged) {
  6715. return;
  6716. }
  6717. if (_.isUndefined(uEntry.barycenter) ||
  6718. _.isUndefined(vEntry.barycenter) ||
  6719. uEntry.barycenter >= vEntry.barycenter) {
  6720. mergeEntries(vEntry, uEntry);
  6721. }
  6722. };
  6723. }
  6724. function handleOut(vEntry) {
  6725. return function(wEntry) {
  6726. wEntry["in"].push(vEntry);
  6727. if (--wEntry.indegree === 0) {
  6728. sourceSet.push(wEntry);
  6729. }
  6730. };
  6731. }
  6732. while (sourceSet.length) {
  6733. var entry = sourceSet.pop();
  6734. entries.push(entry);
  6735. _.forEach(entry["in"].reverse(), handleIn(entry));
  6736. _.forEach(entry.out, handleOut(entry));
  6737. }
  6738. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  6739. function(entry) {
  6740. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  6741. });
  6742. }
  6743. function mergeEntries(target, source) {
  6744. var sum = 0,
  6745. weight = 0;
  6746. if (target.weight) {
  6747. sum += target.barycenter * target.weight;
  6748. weight += target.weight;
  6749. }
  6750. if (source.weight) {
  6751. sum += source.barycenter * source.weight;
  6752. weight += source.weight;
  6753. }
  6754. target.vs = source.vs.concat(target.vs);
  6755. target.barycenter = sum / weight;
  6756. target.weight = weight;
  6757. target.i = Math.min(source.i, target.i);
  6758. source.merged = true;
  6759. }
  6760. /***/ }),
  6761. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  6762. /*!*************************************************************************!*\
  6763. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  6764. \*************************************************************************/
  6765. /*! no static exports found */
  6766. /***/ (function(module, exports, __webpack_require__) {
  6767. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6768. barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js"),
  6769. resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js"),
  6770. sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  6771. module.exports = sortSubgraph;
  6772. function sortSubgraph(g, v, cg, biasRight) {
  6773. var movable = g.children(v),
  6774. node = g.node(v),
  6775. bl = node ? node.borderLeft : undefined,
  6776. br = node ? node.borderRight: undefined,
  6777. subgraphs = {};
  6778. if (bl) {
  6779. movable = _.filter(movable, function(w) {
  6780. return w !== bl && w !== br;
  6781. });
  6782. }
  6783. var barycenters = barycenter(g, movable);
  6784. _.forEach(barycenters, function(entry) {
  6785. if (g.children(entry.v).length) {
  6786. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  6787. subgraphs[entry.v] = subgraphResult;
  6788. if (_.has(subgraphResult, "barycenter")) {
  6789. mergeBarycenters(entry, subgraphResult);
  6790. }
  6791. }
  6792. });
  6793. var entries = resolveConflicts(barycenters, cg);
  6794. expandSubgraphs(entries, subgraphs);
  6795. var result = sort(entries, biasRight);
  6796. if (bl) {
  6797. result.vs = _.flatten([bl, result.vs, br], true);
  6798. if (g.predecessors(bl).length) {
  6799. var blPred = g.node(g.predecessors(bl)[0]),
  6800. brPred = g.node(g.predecessors(br)[0]);
  6801. if (!_.has(result, "barycenter")) {
  6802. result.barycenter = 0;
  6803. result.weight = 0;
  6804. }
  6805. result.barycenter = (result.barycenter * result.weight +
  6806. blPred.order + brPred.order) / (result.weight + 2);
  6807. result.weight += 2;
  6808. }
  6809. }
  6810. return result;
  6811. }
  6812. function expandSubgraphs(entries, subgraphs) {
  6813. _.forEach(entries, function(entry) {
  6814. entry.vs = _.flatten(entry.vs.map(function(v) {
  6815. if (subgraphs[v]) {
  6816. return subgraphs[v].vs;
  6817. }
  6818. return v;
  6819. }), true);
  6820. });
  6821. }
  6822. function mergeBarycenters(target, other) {
  6823. if (!_.isUndefined(target.barycenter)) {
  6824. target.barycenter = (target.barycenter * target.weight +
  6825. other.barycenter * other.weight) /
  6826. (target.weight + other.weight);
  6827. target.weight += other.weight;
  6828. } else {
  6829. target.barycenter = other.barycenter;
  6830. target.weight = other.weight;
  6831. }
  6832. }
  6833. /***/ }),
  6834. /***/ "../../node_modules/dagre/lib/order/sort.js":
  6835. /*!****************************************************************!*\
  6836. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  6837. \****************************************************************/
  6838. /*! no static exports found */
  6839. /***/ (function(module, exports, __webpack_require__) {
  6840. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6841. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6842. module.exports = sort;
  6843. function sort(entries, biasRight) {
  6844. var parts = util.partition(entries, function(entry) {
  6845. return _.has(entry, "barycenter");
  6846. });
  6847. var sortable = parts.lhs,
  6848. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  6849. vs = [],
  6850. sum = 0,
  6851. weight = 0,
  6852. vsIndex = 0;
  6853. sortable.sort(compareWithBias(!!biasRight));
  6854. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6855. _.forEach(sortable, function (entry) {
  6856. vsIndex += entry.vs.length;
  6857. vs.push(entry.vs);
  6858. sum += entry.barycenter * entry.weight;
  6859. weight += entry.weight;
  6860. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6861. });
  6862. var result = { vs: _.flatten(vs, true) };
  6863. if (weight) {
  6864. result.barycenter = sum / weight;
  6865. result.weight = weight;
  6866. }
  6867. return result;
  6868. }
  6869. function consumeUnsortable(vs, unsortable, index) {
  6870. var last;
  6871. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  6872. unsortable.pop();
  6873. vs.push(last.vs);
  6874. index++;
  6875. }
  6876. return index;
  6877. }
  6878. function compareWithBias(bias) {
  6879. return function(entryV, entryW) {
  6880. if (entryV.barycenter < entryW.barycenter) {
  6881. return -1;
  6882. } else if (entryV.barycenter > entryW.barycenter) {
  6883. return 1;
  6884. }
  6885. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  6886. };
  6887. }
  6888. /***/ }),
  6889. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  6890. /*!*************************************************************************!*\
  6891. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  6892. \*************************************************************************/
  6893. /*! no static exports found */
  6894. /***/ (function(module, exports, __webpack_require__) {
  6895. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  6896. module.exports = parentDummyChains;
  6897. function parentDummyChains(g) {
  6898. var postorderNums = postorder(g);
  6899. _.forEach(g.graph().dummyChains, function(v) {
  6900. var node = g.node(v),
  6901. edgeObj = node.edgeObj,
  6902. pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w),
  6903. path = pathData.path,
  6904. lca = pathData.lca,
  6905. pathIdx = 0,
  6906. pathV = path[pathIdx],
  6907. ascending = true;
  6908. while (v !== edgeObj.w) {
  6909. node = g.node(v);
  6910. if (ascending) {
  6911. while ((pathV = path[pathIdx]) !== lca &&
  6912. g.node(pathV).maxRank < node.rank) {
  6913. pathIdx++;
  6914. }
  6915. if (pathV === lca) {
  6916. ascending = false;
  6917. }
  6918. }
  6919. if (!ascending) {
  6920. while (pathIdx < path.length - 1 &&
  6921. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  6922. pathIdx++;
  6923. }
  6924. pathV = path[pathIdx];
  6925. }
  6926. g.setParent(v, pathV);
  6927. v = g.successors(v)[0];
  6928. }
  6929. });
  6930. }
  6931. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  6932. // full path and the LCA.
  6933. function findPath(g, postorderNums, v, w) {
  6934. var vPath = [],
  6935. wPath = [],
  6936. low = Math.min(postorderNums[v].low, postorderNums[w].low),
  6937. lim = Math.max(postorderNums[v].lim, postorderNums[w].lim),
  6938. parent,
  6939. lca;
  6940. // Traverse up from v to find the LCA
  6941. parent = v;
  6942. do {
  6943. parent = g.parent(parent);
  6944. vPath.push(parent);
  6945. } while (parent &&
  6946. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  6947. lca = parent;
  6948. // Traverse from w to LCA
  6949. parent = w;
  6950. while ((parent = g.parent(parent)) !== lca) {
  6951. wPath.push(parent);
  6952. }
  6953. return { path: vPath.concat(wPath.reverse()), lca: lca };
  6954. }
  6955. function postorder(g) {
  6956. var result = {},
  6957. lim = 0;
  6958. function dfs(v) {
  6959. var low = lim;
  6960. _.forEach(g.children(v), dfs);
  6961. result[v] = { low: low, lim: lim++ };
  6962. }
  6963. _.forEach(g.children(), dfs);
  6964. return result;
  6965. }
  6966. /***/ }),
  6967. /***/ "../../node_modules/dagre/lib/position/bk.js":
  6968. /*!*****************************************************************!*\
  6969. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  6970. \*****************************************************************/
  6971. /*! no static exports found */
  6972. /***/ (function(module, exports, __webpack_require__) {
  6973. "use strict";
  6974. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6975. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6976. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6977. /*
  6978. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  6979. * and Simple Horizontal Coordinate Assignment."
  6980. */
  6981. module.exports = {
  6982. positionX: positionX,
  6983. findType1Conflicts: findType1Conflicts,
  6984. findType2Conflicts: findType2Conflicts,
  6985. addConflict: addConflict,
  6986. hasConflict: hasConflict,
  6987. verticalAlignment: verticalAlignment,
  6988. horizontalCompaction: horizontalCompaction,
  6989. alignCoordinates: alignCoordinates,
  6990. findSmallestWidthAlignment: findSmallestWidthAlignment,
  6991. balance: balance
  6992. };
  6993. /*
  6994. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  6995. * property. A type-1 conflict is one where a non-inner segment crosses an
  6996. * inner segment. An inner segment is an edge with both incident nodes marked
  6997. * with the "dummy" property.
  6998. *
  6999. * This algorithm scans layer by layer, starting with the second, for type-1
  7000. * conflicts between the current layer and the previous layer. For each layer
  7001. * it scans the nodes from left to right until it reaches one that is incident
  7002. * on an inner segment. It then scans predecessors to determine if they have
  7003. * edges that cross that inner segment. At the end a final scan is done for all
  7004. * nodes on the current rank to see if they cross the last visited inner
  7005. * segment.
  7006. *
  7007. * This algorithm (safely) assumes that a dummy node will only be incident on a
  7008. * single node in the layers being scanned.
  7009. */
  7010. function findType1Conflicts(g, layering) {
  7011. var conflicts = {};
  7012. function visitLayer(prevLayer, layer) {
  7013. var
  7014. // last visited node in the previous layer that is incident on an inner
  7015. // segment.
  7016. k0 = 0,
  7017. // Tracks the last node in this layer scanned for crossings with a type-1
  7018. // segment.
  7019. scanPos = 0,
  7020. prevLayerLength = prevLayer.length,
  7021. lastNode = _.last(layer);
  7022. _.forEach(layer, function(v, i) {
  7023. var w = findOtherInnerSegmentNode(g, v),
  7024. k1 = w ? g.node(w).order : prevLayerLength;
  7025. if (w || v === lastNode) {
  7026. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  7027. _.forEach(g.predecessors(scanNode), function(u) {
  7028. var uLabel = g.node(u),
  7029. uPos = uLabel.order;
  7030. if ((uPos < k0 || k1 < uPos) &&
  7031. !(uLabel.dummy && g.node(scanNode).dummy)) {
  7032. addConflict(conflicts, u, scanNode);
  7033. }
  7034. });
  7035. });
  7036. scanPos = i + 1;
  7037. k0 = k1;
  7038. }
  7039. });
  7040. return layer;
  7041. }
  7042. _.reduce(layering, visitLayer);
  7043. return conflicts;
  7044. }
  7045. function findType2Conflicts(g, layering) {
  7046. var conflicts = {};
  7047. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  7048. var v;
  7049. _.forEach(_.range(southPos, southEnd), function(i) {
  7050. v = south[i];
  7051. if (g.node(v).dummy) {
  7052. _.forEach(g.predecessors(v), function(u) {
  7053. var uNode = g.node(u);
  7054. if (uNode.dummy &&
  7055. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  7056. addConflict(conflicts, u, v);
  7057. }
  7058. });
  7059. }
  7060. });
  7061. }
  7062. function visitLayer(north, south) {
  7063. var prevNorthPos = -1,
  7064. nextNorthPos,
  7065. southPos = 0;
  7066. _.forEach(south, function(v, southLookahead) {
  7067. if (g.node(v).dummy === "border") {
  7068. var predecessors = g.predecessors(v);
  7069. if (predecessors.length) {
  7070. nextNorthPos = g.node(predecessors[0]).order;
  7071. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  7072. southPos = southLookahead;
  7073. prevNorthPos = nextNorthPos;
  7074. }
  7075. }
  7076. scan(south, southPos, south.length, nextNorthPos, north.length);
  7077. });
  7078. return south;
  7079. }
  7080. _.reduce(layering, visitLayer);
  7081. return conflicts;
  7082. }
  7083. function findOtherInnerSegmentNode(g, v) {
  7084. if (g.node(v).dummy) {
  7085. return _.find(g.predecessors(v), function(u) {
  7086. return g.node(u).dummy;
  7087. });
  7088. }
  7089. }
  7090. function addConflict(conflicts, v, w) {
  7091. if (v > w) {
  7092. var tmp = v;
  7093. v = w;
  7094. w = tmp;
  7095. }
  7096. var conflictsV = conflicts[v];
  7097. if (!conflictsV) {
  7098. conflicts[v] = conflictsV = {};
  7099. }
  7100. conflictsV[w] = true;
  7101. }
  7102. function hasConflict(conflicts, v, w) {
  7103. if (v > w) {
  7104. var tmp = v;
  7105. v = w;
  7106. w = tmp;
  7107. }
  7108. return _.has(conflicts[v], w);
  7109. }
  7110. /*
  7111. * Try to align nodes into vertical "blocks" where possible. This algorithm
  7112. * attempts to align a node with one of its median neighbors. If the edge
  7113. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  7114. * If a previous node has already formed a block with a node after the node
  7115. * we're trying to form a block with, we also ignore that possibility - our
  7116. * blocks would be split in that scenario.
  7117. */
  7118. function verticalAlignment(g, layering, conflicts, neighborFn) {
  7119. var root = {},
  7120. align = {},
  7121. pos = {};
  7122. // We cache the position here based on the layering because the graph and
  7123. // layering may be out of sync. The layering matrix is manipulated to
  7124. // generate different extreme alignments.
  7125. _.forEach(layering, function(layer) {
  7126. _.forEach(layer, function(v, order) {
  7127. root[v] = v;
  7128. align[v] = v;
  7129. pos[v] = order;
  7130. });
  7131. });
  7132. _.forEach(layering, function(layer) {
  7133. var prevIdx = -1;
  7134. _.forEach(layer, function(v) {
  7135. var ws = neighborFn(v);
  7136. if (ws.length) {
  7137. ws = _.sortBy(ws, function(w) { return pos[w]; });
  7138. var mp = (ws.length - 1) / 2;
  7139. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  7140. var w = ws[i];
  7141. if (align[v] === v &&
  7142. prevIdx < pos[w] &&
  7143. !hasConflict(conflicts, v, w)) {
  7144. align[w] = v;
  7145. align[v] = root[v] = root[w];
  7146. prevIdx = pos[w];
  7147. }
  7148. }
  7149. }
  7150. });
  7151. });
  7152. return { root: root, align: align };
  7153. }
  7154. function horizontalCompaction(g, layering, root, align, reverseSep) {
  7155. // This portion of the algorithm differs from BK due to a number of problems.
  7156. // Instead of their algorithm we construct a new block graph and do two
  7157. // sweeps. The first sweep places blocks with the smallest possible
  7158. // coordinates. The second sweep removes unused space by moving blocks to the
  7159. // greatest coordinates without violating separation.
  7160. var xs = {},
  7161. blockG = buildBlockGraph(g, layering, root, reverseSep),
  7162. borderType = reverseSep ? "borderLeft" : "borderRight";
  7163. function iterate(setXsFunc, nextNodesFunc) {
  7164. var stack = blockG.nodes();
  7165. var elem = stack.pop();
  7166. var visited = {};
  7167. while (elem) {
  7168. if (visited[elem]) {
  7169. setXsFunc(elem);
  7170. } else {
  7171. visited[elem] = true;
  7172. stack.push(elem);
  7173. stack = stack.concat(nextNodesFunc(elem));
  7174. }
  7175. elem = stack.pop();
  7176. }
  7177. }
  7178. // First pass, assign smallest coordinates
  7179. function pass1(elem) {
  7180. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  7181. return Math.max(acc, xs[e.v] + blockG.edge(e));
  7182. }, 0);
  7183. }
  7184. // Second pass, assign greatest coordinates
  7185. function pass2(elem) {
  7186. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  7187. return Math.min(acc, xs[e.w] - blockG.edge(e));
  7188. }, Number.POSITIVE_INFINITY);
  7189. var node = g.node(elem);
  7190. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  7191. xs[elem] = Math.max(xs[elem], min);
  7192. }
  7193. }
  7194. iterate(pass1, blockG.predecessors.bind(blockG));
  7195. iterate(pass2, blockG.successors.bind(blockG));
  7196. // Assign x coordinates to all nodes
  7197. _.forEach(align, function(v) {
  7198. xs[v] = xs[root[v]];
  7199. });
  7200. return xs;
  7201. }
  7202. function buildBlockGraph(g, layering, root, reverseSep) {
  7203. var blockGraph = new Graph(),
  7204. graphLabel = g.graph(),
  7205. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  7206. _.forEach(layering, function(layer) {
  7207. var u;
  7208. _.forEach(layer, function(v) {
  7209. var vRoot = root[v];
  7210. blockGraph.setNode(vRoot);
  7211. if (u) {
  7212. var uRoot = root[u],
  7213. prevMax = blockGraph.edge(uRoot, vRoot);
  7214. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  7215. }
  7216. u = v;
  7217. });
  7218. });
  7219. return blockGraph;
  7220. }
  7221. /*
  7222. * Returns the alignment that has the smallest width of the given alignments.
  7223. */
  7224. function findSmallestWidthAlignment(g, xss) {
  7225. return _.minBy(_.values(xss), function (xs) {
  7226. var max = Number.NEGATIVE_INFINITY;
  7227. var min = Number.POSITIVE_INFINITY;
  7228. _.forIn(xs, function (x, v) {
  7229. var halfWidth = width(g, v) / 2;
  7230. max = Math.max(x + halfWidth, max);
  7231. min = Math.min(x - halfWidth, min);
  7232. });
  7233. return max - min;
  7234. });
  7235. }
  7236. /*
  7237. * Align the coordinates of each of the layout alignments such that
  7238. * left-biased alignments have their minimum coordinate at the same point as
  7239. * the minimum coordinate of the smallest width alignment and right-biased
  7240. * alignments have their maximum coordinate at the same point as the maximum
  7241. * coordinate of the smallest width alignment.
  7242. */
  7243. function alignCoordinates(xss, alignTo) {
  7244. var alignToVals = _.values(alignTo),
  7245. alignToMin = _.min(alignToVals),
  7246. alignToMax = _.max(alignToVals);
  7247. _.forEach(["u", "d"], function(vert) {
  7248. _.forEach(["l", "r"], function(horiz) {
  7249. var alignment = vert + horiz,
  7250. xs = xss[alignment],
  7251. delta;
  7252. if (xs === alignTo) return;
  7253. var xsVals = _.values(xs);
  7254. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  7255. if (delta) {
  7256. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  7257. }
  7258. });
  7259. });
  7260. }
  7261. function balance(xss, align) {
  7262. return _.mapValues(xss.ul, function(ignore, v) {
  7263. if (align) {
  7264. return xss[align.toLowerCase()][v];
  7265. } else {
  7266. var xs = _.sortBy(_.map(xss, v));
  7267. return (xs[1] + xs[2]) / 2;
  7268. }
  7269. });
  7270. }
  7271. function positionX(g) {
  7272. var layering = util.buildLayerMatrix(g),
  7273. conflicts = _.merge(findType1Conflicts(g, layering),
  7274. findType2Conflicts(g, layering));
  7275. var xss = {},
  7276. adjustedLayering;
  7277. _.forEach(["u", "d"], function(vert) {
  7278. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  7279. _.forEach(["l", "r"], function(horiz) {
  7280. if (horiz === "r") {
  7281. adjustedLayering = _.map(adjustedLayering, function(inner) {
  7282. return _.values(inner).reverse();
  7283. });
  7284. }
  7285. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  7286. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  7287. var xs = horizontalCompaction(g, adjustedLayering,
  7288. align.root, align.align,
  7289. horiz === "r");
  7290. if (horiz === "r") {
  7291. xs = _.mapValues(xs, function(x) { return -x; });
  7292. }
  7293. xss[vert + horiz] = xs;
  7294. });
  7295. });
  7296. var smallestWidth = findSmallestWidthAlignment(g, xss);
  7297. alignCoordinates(xss, smallestWidth);
  7298. return balance(xss, g.graph().align);
  7299. }
  7300. function sep(nodeSep, edgeSep, reverseSep) {
  7301. return function(g, v, w) {
  7302. var vLabel = g.node(v),
  7303. wLabel = g.node(w),
  7304. sum = 0,
  7305. delta;
  7306. sum += vLabel.width / 2;
  7307. if (_.has(vLabel, "labelpos")) {
  7308. switch (vLabel.labelpos.toLowerCase()) {
  7309. case "l": delta = -vLabel.width / 2; break;
  7310. case "r": delta = vLabel.width / 2; break;
  7311. }
  7312. }
  7313. if (delta) {
  7314. sum += reverseSep ? delta : -delta;
  7315. }
  7316. delta = 0;
  7317. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  7318. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  7319. sum += wLabel.width / 2;
  7320. if (_.has(wLabel, "labelpos")) {
  7321. switch (wLabel.labelpos.toLowerCase()) {
  7322. case "l": delta = wLabel.width / 2; break;
  7323. case "r": delta = -wLabel.width / 2; break;
  7324. }
  7325. }
  7326. if (delta) {
  7327. sum += reverseSep ? delta : -delta;
  7328. }
  7329. delta = 0;
  7330. return sum;
  7331. };
  7332. }
  7333. function width(g, v) {
  7334. return g.node(v).width;
  7335. }
  7336. /***/ }),
  7337. /***/ "../../node_modules/dagre/lib/position/index.js":
  7338. /*!********************************************************************!*\
  7339. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  7340. \********************************************************************/
  7341. /*! no static exports found */
  7342. /***/ (function(module, exports, __webpack_require__) {
  7343. "use strict";
  7344. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7345. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js"),
  7346. positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  7347. module.exports = position;
  7348. function position(g) {
  7349. g = util.asNonCompoundGraph(g);
  7350. positionY(g);
  7351. _.forEach(positionX(g), function(x, v) {
  7352. g.node(v).x = x;
  7353. });
  7354. }
  7355. function positionY(g) {
  7356. var layering = util.buildLayerMatrix(g),
  7357. rankSep = g.graph().ranksep,
  7358. prevY = 0;
  7359. _.forEach(layering, function(layer) {
  7360. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  7361. _.forEach(layer, function(v) {
  7362. g.node(v).y = prevY + maxHeight / 2;
  7363. });
  7364. prevY += maxHeight + rankSep;
  7365. });
  7366. }
  7367. /***/ }),
  7368. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  7369. /*!************************************************************************!*\
  7370. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  7371. \************************************************************************/
  7372. /*! no static exports found */
  7373. /***/ (function(module, exports, __webpack_require__) {
  7374. "use strict";
  7375. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7376. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  7377. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  7378. module.exports = feasibleTree;
  7379. /*
  7380. * Constructs a spanning tree with tight edges and adjusted the input node's
  7381. * ranks to achieve this. A tight edge is one that is has a length that matches
  7382. * its "minlen" attribute.
  7383. *
  7384. * The basic structure for this function is derived from Gansner, et al., "A
  7385. * Technique for Drawing Directed Graphs."
  7386. *
  7387. * Pre-conditions:
  7388. *
  7389. * 1. Graph must be a DAG.
  7390. * 2. Graph must be connected.
  7391. * 3. Graph must have at least one node.
  7392. * 5. Graph nodes must have been previously assigned a "rank" property that
  7393. * respects the "minlen" property of incident edges.
  7394. * 6. Graph edges must have a "minlen" property.
  7395. *
  7396. * Post-conditions:
  7397. *
  7398. * - Graph nodes will have their rank adjusted to ensure that all edges are
  7399. * tight.
  7400. *
  7401. * Returns a tree (undirected graph) that is constructed using only "tight"
  7402. * edges.
  7403. */
  7404. function feasibleTree(g) {
  7405. var t = new Graph({ directed: false });
  7406. // Choose arbitrary node from which to start our tree
  7407. var start = g.nodes()[0],
  7408. size = g.nodeCount();
  7409. t.setNode(start, {});
  7410. var edge, delta;
  7411. while (tightTree(t, g) < size) {
  7412. edge = findMinSlackEdge(t, g);
  7413. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  7414. shiftRanks(t, g, delta);
  7415. }
  7416. return t;
  7417. }
  7418. /*
  7419. * Finds a maximal tree of tight edges and returns the number of nodes in the
  7420. * tree.
  7421. */
  7422. function tightTree(t, g) {
  7423. function dfs(v) {
  7424. _.forEach(g.nodeEdges(v), function(e) {
  7425. var edgeV = e.v,
  7426. w = (v === edgeV) ? e.w : edgeV;
  7427. if (!t.hasNode(w) && !slack(g, e)) {
  7428. t.setNode(w, {});
  7429. t.setEdge(v, w, {});
  7430. dfs(w);
  7431. }
  7432. });
  7433. }
  7434. _.forEach(t.nodes(), dfs);
  7435. return t.nodeCount();
  7436. }
  7437. /*
  7438. * Finds the edge with the smallest slack that is incident on tree and returns
  7439. * it.
  7440. */
  7441. function findMinSlackEdge(t, g) {
  7442. return _.minBy(g.edges(), function(e) {
  7443. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  7444. return slack(g, e);
  7445. }
  7446. });
  7447. }
  7448. function shiftRanks(t, g, delta) {
  7449. _.forEach(t.nodes(), function(v) {
  7450. g.node(v).rank += delta;
  7451. });
  7452. }
  7453. /***/ }),
  7454. /***/ "../../node_modules/dagre/lib/rank/index.js":
  7455. /*!****************************************************************!*\
  7456. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  7457. \****************************************************************/
  7458. /*! no static exports found */
  7459. /***/ (function(module, exports, __webpack_require__) {
  7460. "use strict";
  7461. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js"),
  7462. longestPath = rankUtil.longestPath,
  7463. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7464. networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  7465. module.exports = rank;
  7466. /*
  7467. * Assigns a rank to each node in the input graph that respects the "minlen"
  7468. * constraint specified on edges between nodes.
  7469. *
  7470. * This basic structure is derived from Gansner, et al., "A Technique for
  7471. * Drawing Directed Graphs."
  7472. *
  7473. * Pre-conditions:
  7474. *
  7475. * 1. Graph must be a connected DAG
  7476. * 2. Graph nodes must be objects
  7477. * 3. Graph edges must have "weight" and "minlen" attributes
  7478. *
  7479. * Post-conditions:
  7480. *
  7481. * 1. Graph nodes will have a "rank" attribute based on the results of the
  7482. * algorithm. Ranks can start at any index (including negative), we'll
  7483. * fix them up later.
  7484. */
  7485. function rank(g) {
  7486. switch(g.graph().ranker) {
  7487. case "network-simplex": networkSimplexRanker(g); break;
  7488. case "tight-tree": tightTreeRanker(g); break;
  7489. case "longest-path": longestPathRanker(g); break;
  7490. default: networkSimplexRanker(g);
  7491. }
  7492. }
  7493. // A fast and simple ranker, but results are far from optimal.
  7494. var longestPathRanker = longestPath;
  7495. function tightTreeRanker(g) {
  7496. longestPath(g);
  7497. feasibleTree(g);
  7498. }
  7499. function networkSimplexRanker(g) {
  7500. networkSimplex(g);
  7501. }
  7502. /***/ }),
  7503. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  7504. /*!**************************************************************************!*\
  7505. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  7506. \**************************************************************************/
  7507. /*! no static exports found */
  7508. /***/ (function(module, exports, __webpack_require__) {
  7509. "use strict";
  7510. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7511. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7512. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack,
  7513. initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath,
  7514. preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder,
  7515. postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder,
  7516. simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  7517. module.exports = networkSimplex;
  7518. // Expose some internals for testing purposes
  7519. networkSimplex.initLowLimValues = initLowLimValues;
  7520. networkSimplex.initCutValues = initCutValues;
  7521. networkSimplex.calcCutValue = calcCutValue;
  7522. networkSimplex.leaveEdge = leaveEdge;
  7523. networkSimplex.enterEdge = enterEdge;
  7524. networkSimplex.exchangeEdges = exchangeEdges;
  7525. /*
  7526. * The network simplex algorithm assigns ranks to each node in the input graph
  7527. * and iteratively improves the ranking to reduce the length of edges.
  7528. *
  7529. * Preconditions:
  7530. *
  7531. * 1. The input graph must be a DAG.
  7532. * 2. All nodes in the graph must have an object value.
  7533. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  7534. *
  7535. * Postconditions:
  7536. *
  7537. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  7538. * been optimized by the network simplex algorithm. Ranks start at 0.
  7539. *
  7540. *
  7541. * A rough sketch of the algorithm is as follows:
  7542. *
  7543. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  7544. * which assigns ranks to the lowest position possible. In general this
  7545. * leads to very wide bottom ranks and unnecessarily long edges.
  7546. * 2. Construct a feasible tight tree. A tight tree is one such that all
  7547. * edges in the tree have no slack (difference between length of edge
  7548. * and minlen for the edge). This by itself greatly improves the assigned
  7549. * rankings by shorting edges.
  7550. * 3. Iteratively find edges that have negative cut values. Generally a
  7551. * negative cut value indicates that the edge could be removed and a new
  7552. * tree edge could be added to produce a more compact graph.
  7553. *
  7554. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  7555. * for Drawing Directed Graphs." The structure of the file roughly follows the
  7556. * structure of the overall algorithm.
  7557. */
  7558. function networkSimplex(g) {
  7559. g = simplify(g);
  7560. initRank(g);
  7561. var t = feasibleTree(g);
  7562. initLowLimValues(t);
  7563. initCutValues(t, g);
  7564. var e, f;
  7565. while ((e = leaveEdge(t))) {
  7566. f = enterEdge(t, g, e);
  7567. exchangeEdges(t, g, e, f);
  7568. }
  7569. }
  7570. /*
  7571. * Initializes cut values for all edges in the tree.
  7572. */
  7573. function initCutValues(t, g) {
  7574. var vs = postorder(t, t.nodes());
  7575. vs = vs.slice(0, vs.length - 1);
  7576. _.forEach(vs, function(v) {
  7577. assignCutValue(t, g, v);
  7578. });
  7579. }
  7580. function assignCutValue(t, g, child) {
  7581. var childLab = t.node(child),
  7582. parent = childLab.parent;
  7583. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  7584. }
  7585. /*
  7586. * Given the tight tree, its graph, and a child in the graph calculate and
  7587. * return the cut value for the edge between the child and its parent.
  7588. */
  7589. function calcCutValue(t, g, child) {
  7590. var childLab = t.node(child),
  7591. parent = childLab.parent,
  7592. // True if the child is on the tail end of the edge in the directed graph
  7593. childIsTail = true,
  7594. // The graph's view of the tree edge we're inspecting
  7595. graphEdge = g.edge(child, parent),
  7596. // The accumulated cut value for the edge between this node and its parent
  7597. cutValue = 0;
  7598. if (!graphEdge) {
  7599. childIsTail = false;
  7600. graphEdge = g.edge(parent, child);
  7601. }
  7602. cutValue = graphEdge.weight;
  7603. _.forEach(g.nodeEdges(child), function(e) {
  7604. var isOutEdge = e.v === child,
  7605. other = isOutEdge ? e.w : e.v;
  7606. if (other !== parent) {
  7607. var pointsToHead = isOutEdge === childIsTail,
  7608. otherWeight = g.edge(e).weight;
  7609. cutValue += pointsToHead ? otherWeight : -otherWeight;
  7610. if (isTreeEdge(t, child, other)) {
  7611. var otherCutValue = t.edge(child, other).cutvalue;
  7612. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  7613. }
  7614. }
  7615. });
  7616. return cutValue;
  7617. }
  7618. function initLowLimValues(tree, root) {
  7619. if (arguments.length < 2) {
  7620. root = tree.nodes()[0];
  7621. }
  7622. dfsAssignLowLim(tree, {}, 1, root);
  7623. }
  7624. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  7625. var low = nextLim,
  7626. label = tree.node(v);
  7627. visited[v] = true;
  7628. _.forEach(tree.neighbors(v), function(w) {
  7629. if (!_.has(visited, w)) {
  7630. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  7631. }
  7632. });
  7633. label.low = low;
  7634. label.lim = nextLim++;
  7635. if (parent) {
  7636. label.parent = parent;
  7637. } else {
  7638. // TODO should be able to remove this when we incrementally update low lim
  7639. delete label.parent;
  7640. }
  7641. return nextLim;
  7642. }
  7643. function leaveEdge(tree) {
  7644. return _.find(tree.edges(), function(e) {
  7645. return tree.edge(e).cutvalue < 0;
  7646. });
  7647. }
  7648. function enterEdge(t, g, edge) {
  7649. var v = edge.v,
  7650. w = edge.w;
  7651. // For the rest of this function we assume that v is the tail and w is the
  7652. // head, so if we don't have this edge in the graph we should flip it to
  7653. // match the correct orientation.
  7654. if (!g.hasEdge(v, w)) {
  7655. v = edge.w;
  7656. w = edge.v;
  7657. }
  7658. var vLabel = t.node(v),
  7659. wLabel = t.node(w),
  7660. tailLabel = vLabel,
  7661. flip = false;
  7662. // If the root is in the tail of the edge then we need to flip the logic that
  7663. // checks for the head and tail nodes in the candidates function below.
  7664. if (vLabel.lim > wLabel.lim) {
  7665. tailLabel = wLabel;
  7666. flip = true;
  7667. }
  7668. var candidates = _.filter(g.edges(), function(edge) {
  7669. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  7670. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  7671. });
  7672. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  7673. }
  7674. function exchangeEdges(t, g, e, f) {
  7675. var v = e.v,
  7676. w = e.w;
  7677. t.removeEdge(v, w);
  7678. t.setEdge(f.v, f.w, {});
  7679. initLowLimValues(t);
  7680. initCutValues(t, g);
  7681. updateRanks(t, g);
  7682. }
  7683. function updateRanks(t, g) {
  7684. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; }),
  7685. vs = preorder(t, root);
  7686. vs = vs.slice(1);
  7687. _.forEach(vs, function(v) {
  7688. var parent = t.node(v).parent,
  7689. edge = g.edge(v, parent),
  7690. flipped = false;
  7691. if (!edge) {
  7692. edge = g.edge(parent, v);
  7693. flipped = true;
  7694. }
  7695. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  7696. });
  7697. }
  7698. /*
  7699. * Returns true if the edge is in the tree.
  7700. */
  7701. function isTreeEdge(tree, u, v) {
  7702. return tree.hasEdge(u, v);
  7703. }
  7704. /*
  7705. * Returns true if the specified node is descendant of the root node per the
  7706. * assigned low and lim attributes in the tree.
  7707. */
  7708. function isDescendant(tree, vLabel, rootLabel) {
  7709. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  7710. }
  7711. /***/ }),
  7712. /***/ "../../node_modules/dagre/lib/rank/util.js":
  7713. /*!***************************************************************!*\
  7714. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  7715. \***************************************************************/
  7716. /*! no static exports found */
  7717. /***/ (function(module, exports, __webpack_require__) {
  7718. "use strict";
  7719. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  7720. module.exports = {
  7721. longestPath: longestPath,
  7722. slack: slack
  7723. };
  7724. /*
  7725. * Initializes ranks for the input graph using the longest path algorithm. This
  7726. * algorithm scales well and is fast in practice, it yields rather poor
  7727. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  7728. * ranks wide and leaving edges longer than necessary. However, due to its
  7729. * speed, this algorithm is good for getting an initial ranking that can be fed
  7730. * into other algorithms.
  7731. *
  7732. * This algorithm does not normalize layers because it will be used by other
  7733. * algorithms in most cases. If using this algorithm directly, be sure to
  7734. * run normalize at the end.
  7735. *
  7736. * Pre-conditions:
  7737. *
  7738. * 1. Input graph is a DAG.
  7739. * 2. Input graph node labels can be assigned properties.
  7740. *
  7741. * Post-conditions:
  7742. *
  7743. * 1. Each node will be assign an (unnormalized) "rank" property.
  7744. */
  7745. function longestPath(g) {
  7746. var visited = {};
  7747. function dfs(v) {
  7748. var label = g.node(v);
  7749. if (_.has(visited, v)) {
  7750. return label.rank;
  7751. }
  7752. visited[v] = true;
  7753. var rank = _.min(_.map(g.outEdges(v), function(e) {
  7754. return dfs(e.w) - g.edge(e).minlen;
  7755. }));
  7756. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  7757. rank === undefined || // return value of _.map([]) for Lodash 4
  7758. rank === null) { // return value of _.map([null])
  7759. rank = 0;
  7760. }
  7761. return (label.rank = rank);
  7762. }
  7763. _.forEach(g.sources(), dfs);
  7764. }
  7765. /*
  7766. * Returns the amount of slack for the given edge. The slack is defined as the
  7767. * difference between the length of the edge and its minimum length.
  7768. */
  7769. function slack(g, e) {
  7770. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  7771. }
  7772. /***/ }),
  7773. /***/ "../../node_modules/dagre/lib/util.js":
  7774. /*!**********************************************************!*\
  7775. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/util.js ***!
  7776. \**********************************************************/
  7777. /*! no static exports found */
  7778. /***/ (function(module, exports, __webpack_require__) {
  7779. "use strict";
  7780. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7781. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  7782. module.exports = {
  7783. addDummyNode: addDummyNode,
  7784. simplify: simplify,
  7785. asNonCompoundGraph: asNonCompoundGraph,
  7786. successorWeights: successorWeights,
  7787. predecessorWeights: predecessorWeights,
  7788. intersectRect: intersectRect,
  7789. buildLayerMatrix: buildLayerMatrix,
  7790. normalizeRanks: normalizeRanks,
  7791. removeEmptyRanks: removeEmptyRanks,
  7792. addBorderNode: addBorderNode,
  7793. maxRank: maxRank,
  7794. partition: partition,
  7795. time: time,
  7796. notime: notime
  7797. };
  7798. /*
  7799. * Adds a dummy node to the graph and return v.
  7800. */
  7801. function addDummyNode(g, type, attrs, name) {
  7802. var v;
  7803. do {
  7804. v = _.uniqueId(name);
  7805. } while (g.hasNode(v));
  7806. attrs.dummy = type;
  7807. g.setNode(v, attrs);
  7808. return v;
  7809. }
  7810. /*
  7811. * Returns a new graph with only simple edges. Handles aggregation of data
  7812. * associated with multi-edges.
  7813. */
  7814. function simplify(g) {
  7815. var simplified = new Graph().setGraph(g.graph());
  7816. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  7817. _.forEach(g.edges(), function(e) {
  7818. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 },
  7819. label = g.edge(e);
  7820. simplified.setEdge(e.v, e.w, {
  7821. weight: simpleLabel.weight + label.weight,
  7822. minlen: Math.max(simpleLabel.minlen, label.minlen)
  7823. });
  7824. });
  7825. return simplified;
  7826. }
  7827. function asNonCompoundGraph(g) {
  7828. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  7829. _.forEach(g.nodes(), function(v) {
  7830. if (!g.children(v).length) {
  7831. simplified.setNode(v, g.node(v));
  7832. }
  7833. });
  7834. _.forEach(g.edges(), function(e) {
  7835. simplified.setEdge(e, g.edge(e));
  7836. });
  7837. return simplified;
  7838. }
  7839. function successorWeights(g) {
  7840. var weightMap = _.map(g.nodes(), function(v) {
  7841. var sucs = {};
  7842. _.forEach(g.outEdges(v), function(e) {
  7843. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  7844. });
  7845. return sucs;
  7846. });
  7847. return _.zipObject(g.nodes(), weightMap);
  7848. }
  7849. function predecessorWeights(g) {
  7850. var weightMap = _.map(g.nodes(), function(v) {
  7851. var preds = {};
  7852. _.forEach(g.inEdges(v), function(e) {
  7853. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  7854. });
  7855. return preds;
  7856. });
  7857. return _.zipObject(g.nodes(), weightMap);
  7858. }
  7859. /*
  7860. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  7861. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  7862. */
  7863. function intersectRect(rect, point) {
  7864. var x = rect.x;
  7865. var y = rect.y;
  7866. // Rectangle intersection algorithm from:
  7867. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  7868. var dx = point.x - x;
  7869. var dy = point.y - y;
  7870. var w = rect.width / 2;
  7871. var h = rect.height / 2;
  7872. if (!dx && !dy) {
  7873. throw new Error("Not possible to find intersection inside of the rectangle");
  7874. }
  7875. var sx, sy;
  7876. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  7877. // Intersection is top or bottom of rect.
  7878. if (dy < 0) {
  7879. h = -h;
  7880. }
  7881. sx = h * dx / dy;
  7882. sy = h;
  7883. } else {
  7884. // Intersection is left or right of rect.
  7885. if (dx < 0) {
  7886. w = -w;
  7887. }
  7888. sx = w;
  7889. sy = w * dy / dx;
  7890. }
  7891. return { x: x + sx, y: y + sy };
  7892. }
  7893. /*
  7894. * Given a DAG with each node assigned "rank" and "order" properties, this
  7895. * function will produce a matrix with the ids of each node.
  7896. */
  7897. function buildLayerMatrix(g) {
  7898. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  7899. _.forEach(g.nodes(), function(v) {
  7900. var node = g.node(v),
  7901. rank = node.rank;
  7902. if (!_.isUndefined(rank)) {
  7903. layering[rank][node.order] = v;
  7904. }
  7905. });
  7906. return layering;
  7907. }
  7908. /*
  7909. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  7910. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  7911. */
  7912. function normalizeRanks(g) {
  7913. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7914. _.forEach(g.nodes(), function(v) {
  7915. var node = g.node(v);
  7916. if (_.has(node, "rank")) {
  7917. node.rank -= min;
  7918. }
  7919. });
  7920. }
  7921. function removeEmptyRanks(g) {
  7922. // Ranks may not start at 0, so we need to offset them
  7923. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7924. var layers = [];
  7925. _.forEach(g.nodes(), function(v) {
  7926. var rank = g.node(v).rank - offset;
  7927. if (!layers[rank]) {
  7928. layers[rank] = [];
  7929. }
  7930. layers[rank].push(v);
  7931. });
  7932. var delta = 0,
  7933. nodeRankFactor = g.graph().nodeRankFactor;
  7934. _.forEach(layers, function(vs, i) {
  7935. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  7936. --delta;
  7937. } else if (delta) {
  7938. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  7939. }
  7940. });
  7941. }
  7942. function addBorderNode(g, prefix, rank, order) {
  7943. var node = {
  7944. width: 0,
  7945. height: 0
  7946. };
  7947. if (arguments.length >= 4) {
  7948. node.rank = rank;
  7949. node.order = order;
  7950. }
  7951. return addDummyNode(g, "border", node, prefix);
  7952. }
  7953. function maxRank(g) {
  7954. return _.max(_.map(g.nodes(), function(v) {
  7955. var rank = g.node(v).rank;
  7956. if (!_.isUndefined(rank)) {
  7957. return rank;
  7958. }
  7959. }));
  7960. }
  7961. /*
  7962. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  7963. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  7964. * into `rhs.
  7965. */
  7966. function partition(collection, fn) {
  7967. var result = { lhs: [], rhs: [] };
  7968. _.forEach(collection, function(value) {
  7969. if (fn(value)) {
  7970. result.lhs.push(value);
  7971. } else {
  7972. result.rhs.push(value);
  7973. }
  7974. });
  7975. return result;
  7976. }
  7977. /*
  7978. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  7979. * time it takes to execute the function.
  7980. */
  7981. function time(name, fn) {
  7982. var start = _.now();
  7983. try {
  7984. return fn();
  7985. } finally {
  7986. console.log(name + " time: " + (_.now() - start) + "ms");
  7987. }
  7988. }
  7989. function notime(name, fn) {
  7990. return fn();
  7991. }
  7992. /***/ }),
  7993. /***/ "../../node_modules/dagre/lib/version.js":
  7994. /*!*************************************************************!*\
  7995. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/version.js ***!
  7996. \*************************************************************/
  7997. /*! no static exports found */
  7998. /***/ (function(module, exports) {
  7999. module.exports = "0.8.4";
  8000. /***/ }),
  8001. /***/ "../../node_modules/graphlib/index.js":
  8002. /*!**********************************************************!*\
  8003. !*** C:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  8004. \**********************************************************/
  8005. /*! no static exports found */
  8006. /***/ (function(module, exports, __webpack_require__) {
  8007. /**
  8008. * Copyright (c) 2014, Chris Pettitt
  8009. * All rights reserved.
  8010. *
  8011. * Redistribution and use in source and binary forms, with or without
  8012. * modification, are permitted provided that the following conditions are met:
  8013. *
  8014. * 1. Redistributions of source code must retain the above copyright notice, this
  8015. * list of conditions and the following disclaimer.
  8016. *
  8017. * 2. Redistributions in binary form must reproduce the above copyright notice,
  8018. * this list of conditions and the following disclaimer in the documentation
  8019. * and/or other materials provided with the distribution.
  8020. *
  8021. * 3. Neither the name of the copyright holder nor the names of its contributors
  8022. * may be used to endorse or promote products derived from this software without
  8023. * specific prior written permission.
  8024. *
  8025. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  8026. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  8027. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  8028. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  8029. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8030. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  8031. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  8032. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  8033. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  8034. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8035. */
  8036. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  8037. module.exports = {
  8038. Graph: lib.Graph,
  8039. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  8040. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  8041. version: lib.version
  8042. };
  8043. /***/ }),
  8044. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  8045. /*!***********************************************************************!*\
  8046. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  8047. \***********************************************************************/
  8048. /*! no static exports found */
  8049. /***/ (function(module, exports, __webpack_require__) {
  8050. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8051. module.exports = components;
  8052. function components(g) {
  8053. var visited = {},
  8054. cmpts = [],
  8055. cmpt;
  8056. function dfs(v) {
  8057. if (_.has(visited, v)) return;
  8058. visited[v] = true;
  8059. cmpt.push(v);
  8060. _.each(g.successors(v), dfs);
  8061. _.each(g.predecessors(v), dfs);
  8062. }
  8063. _.each(g.nodes(), function(v) {
  8064. cmpt = [];
  8065. dfs(v);
  8066. if (cmpt.length) {
  8067. cmpts.push(cmpt);
  8068. }
  8069. });
  8070. return cmpts;
  8071. }
  8072. /***/ }),
  8073. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  8074. /*!****************************************************************!*\
  8075. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  8076. \****************************************************************/
  8077. /*! no static exports found */
  8078. /***/ (function(module, exports, __webpack_require__) {
  8079. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8080. module.exports = dfs;
  8081. /*
  8082. * A helper that preforms a pre- or post-order traversal on the input graph
  8083. * and returns the nodes in the order they were visited. If the graph is
  8084. * undirected then this algorithm will navigate using neighbors. If the graph
  8085. * is directed then this algorithm will navigate using successors.
  8086. *
  8087. * Order must be one of "pre" or "post".
  8088. */
  8089. function dfs(g, vs, order) {
  8090. if (!_.isArray(vs)) {
  8091. vs = [vs];
  8092. }
  8093. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  8094. var acc = [],
  8095. visited = {};
  8096. _.each(vs, function(v) {
  8097. if (!g.hasNode(v)) {
  8098. throw new Error("Graph does not have node: " + v);
  8099. }
  8100. doDfs(g, v, order === "post", visited, navigation, acc);
  8101. });
  8102. return acc;
  8103. }
  8104. function doDfs(g, v, postorder, visited, navigation, acc) {
  8105. if (!_.has(visited, v)) {
  8106. visited[v] = true;
  8107. if (!postorder) { acc.push(v); }
  8108. _.each(navigation(v), function(w) {
  8109. doDfs(g, w, postorder, visited, navigation, acc);
  8110. });
  8111. if (postorder) { acc.push(v); }
  8112. }
  8113. }
  8114. /***/ }),
  8115. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  8116. /*!*************************************************************************!*\
  8117. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  8118. \*************************************************************************/
  8119. /*! no static exports found */
  8120. /***/ (function(module, exports, __webpack_require__) {
  8121. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8122. _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8123. module.exports = dijkstraAll;
  8124. function dijkstraAll(g, weightFunc, edgeFunc) {
  8125. return _.transform(g.nodes(), function(acc, v) {
  8126. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  8127. }, {});
  8128. }
  8129. /***/ }),
  8130. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  8131. /*!*********************************************************************!*\
  8132. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  8133. \*********************************************************************/
  8134. /*! no static exports found */
  8135. /***/ (function(module, exports, __webpack_require__) {
  8136. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8137. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8138. module.exports = dijkstra;
  8139. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8140. function dijkstra(g, source, weightFn, edgeFn) {
  8141. return runDijkstra(g, String(source),
  8142. weightFn || DEFAULT_WEIGHT_FUNC,
  8143. edgeFn || function(v) { return g.outEdges(v); });
  8144. }
  8145. function runDijkstra(g, source, weightFn, edgeFn) {
  8146. var results = {},
  8147. pq = new PriorityQueue(),
  8148. v, vEntry;
  8149. var updateNeighbors = function(edge) {
  8150. var w = edge.v !== v ? edge.v : edge.w,
  8151. wEntry = results[w],
  8152. weight = weightFn(edge),
  8153. distance = vEntry.distance + weight;
  8154. if (weight < 0) {
  8155. throw new Error("dijkstra does not allow negative edge weights. " +
  8156. "Bad edge: " + edge + " Weight: " + weight);
  8157. }
  8158. if (distance < wEntry.distance) {
  8159. wEntry.distance = distance;
  8160. wEntry.predecessor = v;
  8161. pq.decrease(w, distance);
  8162. }
  8163. };
  8164. g.nodes().forEach(function(v) {
  8165. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  8166. results[v] = { distance: distance };
  8167. pq.add(v, distance);
  8168. });
  8169. while (pq.size() > 0) {
  8170. v = pq.removeMin();
  8171. vEntry = results[v];
  8172. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  8173. break;
  8174. }
  8175. edgeFn(v).forEach(updateNeighbors);
  8176. }
  8177. return results;
  8178. }
  8179. /***/ }),
  8180. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  8181. /*!************************************************************************!*\
  8182. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  8183. \************************************************************************/
  8184. /*! no static exports found */
  8185. /***/ (function(module, exports, __webpack_require__) {
  8186. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8187. tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  8188. module.exports = findCycles;
  8189. function findCycles(g) {
  8190. return _.filter(tarjan(g), function(cmpt) {
  8191. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  8192. });
  8193. }
  8194. /***/ }),
  8195. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  8196. /*!***************************************************************************!*\
  8197. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  8198. \***************************************************************************/
  8199. /*! no static exports found */
  8200. /***/ (function(module, exports, __webpack_require__) {
  8201. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8202. module.exports = floydWarshall;
  8203. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8204. function floydWarshall(g, weightFn, edgeFn) {
  8205. return runFloydWarshall(g,
  8206. weightFn || DEFAULT_WEIGHT_FUNC,
  8207. edgeFn || function(v) { return g.outEdges(v); });
  8208. }
  8209. function runFloydWarshall(g, weightFn, edgeFn) {
  8210. var results = {},
  8211. nodes = g.nodes();
  8212. nodes.forEach(function(v) {
  8213. results[v] = {};
  8214. results[v][v] = { distance: 0 };
  8215. nodes.forEach(function(w) {
  8216. if (v !== w) {
  8217. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  8218. }
  8219. });
  8220. edgeFn(v).forEach(function(edge) {
  8221. var w = edge.v === v ? edge.w : edge.v,
  8222. d = weightFn(edge);
  8223. results[v][w] = { distance: d, predecessor: v };
  8224. });
  8225. });
  8226. nodes.forEach(function(k) {
  8227. var rowK = results[k];
  8228. nodes.forEach(function(i) {
  8229. var rowI = results[i];
  8230. nodes.forEach(function(j) {
  8231. var ik = rowI[k];
  8232. var kj = rowK[j];
  8233. var ij = rowI[j];
  8234. var altDistance = ik.distance + kj.distance;
  8235. if (altDistance < ij.distance) {
  8236. ij.distance = altDistance;
  8237. ij.predecessor = kj.predecessor;
  8238. }
  8239. });
  8240. });
  8241. });
  8242. return results;
  8243. }
  8244. /***/ }),
  8245. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  8246. /*!******************************************************************!*\
  8247. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  8248. \******************************************************************/
  8249. /*! no static exports found */
  8250. /***/ (function(module, exports, __webpack_require__) {
  8251. module.exports = {
  8252. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  8253. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8254. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  8255. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  8256. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  8257. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  8258. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  8259. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  8260. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  8261. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  8262. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  8263. };
  8264. /***/ }),
  8265. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  8266. /*!***********************************************************************!*\
  8267. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  8268. \***********************************************************************/
  8269. /*! no static exports found */
  8270. /***/ (function(module, exports, __webpack_require__) {
  8271. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  8272. module.exports = isAcyclic;
  8273. function isAcyclic(g) {
  8274. try {
  8275. topsort(g);
  8276. } catch (e) {
  8277. if (e instanceof topsort.CycleException) {
  8278. return false;
  8279. }
  8280. throw e;
  8281. }
  8282. return true;
  8283. }
  8284. /***/ }),
  8285. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  8286. /*!**********************************************************************!*\
  8287. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  8288. \**********************************************************************/
  8289. /*! no static exports found */
  8290. /***/ (function(module, exports, __webpack_require__) {
  8291. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8292. module.exports = postorder;
  8293. function postorder(g, vs) {
  8294. return dfs(g, vs, "post");
  8295. }
  8296. /***/ }),
  8297. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  8298. /*!*********************************************************************!*\
  8299. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  8300. \*********************************************************************/
  8301. /*! no static exports found */
  8302. /***/ (function(module, exports, __webpack_require__) {
  8303. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8304. module.exports = preorder;
  8305. function preorder(g, vs) {
  8306. return dfs(g, vs, "pre");
  8307. }
  8308. /***/ }),
  8309. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  8310. /*!*****************************************************************!*\
  8311. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  8312. \*****************************************************************/
  8313. /*! no static exports found */
  8314. /***/ (function(module, exports, __webpack_require__) {
  8315. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8316. Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js"),
  8317. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8318. module.exports = prim;
  8319. function prim(g, weightFunc) {
  8320. var result = new Graph(),
  8321. parents = {},
  8322. pq = new PriorityQueue(),
  8323. v;
  8324. function updateNeighbors(edge) {
  8325. var w = edge.v === v ? edge.w : edge.v,
  8326. pri = pq.priority(w);
  8327. if (pri !== undefined) {
  8328. var edgeWeight = weightFunc(edge);
  8329. if (edgeWeight < pri) {
  8330. parents[w] = v;
  8331. pq.decrease(w, edgeWeight);
  8332. }
  8333. }
  8334. }
  8335. if (g.nodeCount() === 0) {
  8336. return result;
  8337. }
  8338. _.each(g.nodes(), function(v) {
  8339. pq.add(v, Number.POSITIVE_INFINITY);
  8340. result.setNode(v);
  8341. });
  8342. // Start from an arbitrary node
  8343. pq.decrease(g.nodes()[0], 0);
  8344. var init = false;
  8345. while (pq.size() > 0) {
  8346. v = pq.removeMin();
  8347. if (_.has(parents, v)) {
  8348. result.setEdge(v, parents[v]);
  8349. } else if (init) {
  8350. throw new Error("Input graph is not connected: " + g);
  8351. } else {
  8352. init = true;
  8353. }
  8354. g.nodeEdges(v).forEach(updateNeighbors);
  8355. }
  8356. return result;
  8357. }
  8358. /***/ }),
  8359. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  8360. /*!*******************************************************************!*\
  8361. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  8362. \*******************************************************************/
  8363. /*! no static exports found */
  8364. /***/ (function(module, exports, __webpack_require__) {
  8365. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8366. module.exports = tarjan;
  8367. function tarjan(g) {
  8368. var index = 0,
  8369. stack = [],
  8370. visited = {}, // node id -> { onStack, lowlink, index }
  8371. results = [];
  8372. function dfs(v) {
  8373. var entry = visited[v] = {
  8374. onStack: true,
  8375. lowlink: index,
  8376. index: index++
  8377. };
  8378. stack.push(v);
  8379. g.successors(v).forEach(function(w) {
  8380. if (!_.has(visited, w)) {
  8381. dfs(w);
  8382. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  8383. } else if (visited[w].onStack) {
  8384. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  8385. }
  8386. });
  8387. if (entry.lowlink === entry.index) {
  8388. var cmpt = [],
  8389. w;
  8390. do {
  8391. w = stack.pop();
  8392. visited[w].onStack = false;
  8393. cmpt.push(w);
  8394. } while (v !== w);
  8395. results.push(cmpt);
  8396. }
  8397. }
  8398. g.nodes().forEach(function(v) {
  8399. if (!_.has(visited, v)) {
  8400. dfs(v);
  8401. }
  8402. });
  8403. return results;
  8404. }
  8405. /***/ }),
  8406. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  8407. /*!********************************************************************!*\
  8408. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  8409. \********************************************************************/
  8410. /*! no static exports found */
  8411. /***/ (function(module, exports, __webpack_require__) {
  8412. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8413. module.exports = topsort;
  8414. topsort.CycleException = CycleException;
  8415. function topsort(g) {
  8416. var visited = {},
  8417. stack = {},
  8418. results = [];
  8419. function visit(node) {
  8420. if (_.has(stack, node)) {
  8421. throw new CycleException();
  8422. }
  8423. if (!_.has(visited, node)) {
  8424. stack[node] = true;
  8425. visited[node] = true;
  8426. _.each(g.predecessors(node), visit);
  8427. delete stack[node];
  8428. results.push(node);
  8429. }
  8430. }
  8431. _.each(g.sinks(), visit);
  8432. if (_.size(visited) !== g.nodeCount()) {
  8433. throw new CycleException();
  8434. }
  8435. return results;
  8436. }
  8437. function CycleException() {}
  8438. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  8439. /***/ }),
  8440. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  8441. /*!****************************************************************************!*\
  8442. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  8443. \****************************************************************************/
  8444. /*! no static exports found */
  8445. /***/ (function(module, exports, __webpack_require__) {
  8446. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8447. module.exports = PriorityQueue;
  8448. /**
  8449. * A min-priority queue data structure. This algorithm is derived from Cormen,
  8450. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  8451. * queue is that you can efficiently (in O(1) time) get the smallest key in
  8452. * the queue. Adding and removing elements takes O(log n) time. A key can
  8453. * have its priority decreased in O(log n) time.
  8454. */
  8455. function PriorityQueue() {
  8456. this._arr = [];
  8457. this._keyIndices = {};
  8458. }
  8459. /**
  8460. * Returns the number of elements in the queue. Takes `O(1)` time.
  8461. */
  8462. PriorityQueue.prototype.size = function() {
  8463. return this._arr.length;
  8464. };
  8465. /**
  8466. * Returns the keys that are in the queue. Takes `O(n)` time.
  8467. */
  8468. PriorityQueue.prototype.keys = function() {
  8469. return this._arr.map(function(x) { return x.key; });
  8470. };
  8471. /**
  8472. * Returns `true` if **key** is in the queue and `false` if not.
  8473. */
  8474. PriorityQueue.prototype.has = function(key) {
  8475. return _.has(this._keyIndices, key);
  8476. };
  8477. /**
  8478. * Returns the priority for **key**. If **key** is not present in the queue
  8479. * then this function returns `undefined`. Takes `O(1)` time.
  8480. *
  8481. * @param {Object} key
  8482. */
  8483. PriorityQueue.prototype.priority = function(key) {
  8484. var index = this._keyIndices[key];
  8485. if (index !== undefined) {
  8486. return this._arr[index].priority;
  8487. }
  8488. };
  8489. /**
  8490. * Returns the key for the minimum element in this queue. If the queue is
  8491. * empty this function throws an Error. Takes `O(1)` time.
  8492. */
  8493. PriorityQueue.prototype.min = function() {
  8494. if (this.size() === 0) {
  8495. throw new Error("Queue underflow");
  8496. }
  8497. return this._arr[0].key;
  8498. };
  8499. /**
  8500. * Inserts a new key into the priority queue. If the key already exists in
  8501. * the queue this function returns `false`; otherwise it will return `true`.
  8502. * Takes `O(n)` time.
  8503. *
  8504. * @param {Object} key the key to add
  8505. * @param {Number} priority the initial priority for the key
  8506. */
  8507. PriorityQueue.prototype.add = function(key, priority) {
  8508. var keyIndices = this._keyIndices;
  8509. key = String(key);
  8510. if (!_.has(keyIndices, key)) {
  8511. var arr = this._arr;
  8512. var index = arr.length;
  8513. keyIndices[key] = index;
  8514. arr.push({key: key, priority: priority});
  8515. this._decrease(index);
  8516. return true;
  8517. }
  8518. return false;
  8519. };
  8520. /**
  8521. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  8522. */
  8523. PriorityQueue.prototype.removeMin = function() {
  8524. this._swap(0, this._arr.length - 1);
  8525. var min = this._arr.pop();
  8526. delete this._keyIndices[min.key];
  8527. this._heapify(0);
  8528. return min.key;
  8529. };
  8530. /**
  8531. * Decreases the priority for **key** to **priority**. If the new priority is
  8532. * greater than the previous priority, this function will throw an Error.
  8533. *
  8534. * @param {Object} key the key for which to raise priority
  8535. * @param {Number} priority the new priority for the key
  8536. */
  8537. PriorityQueue.prototype.decrease = function(key, priority) {
  8538. var index = this._keyIndices[key];
  8539. if (priority > this._arr[index].priority) {
  8540. throw new Error("New priority is greater than current priority. " +
  8541. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  8542. }
  8543. this._arr[index].priority = priority;
  8544. this._decrease(index);
  8545. };
  8546. PriorityQueue.prototype._heapify = function(i) {
  8547. var arr = this._arr;
  8548. var l = 2 * i,
  8549. r = l + 1,
  8550. largest = i;
  8551. if (l < arr.length) {
  8552. largest = arr[l].priority < arr[largest].priority ? l : largest;
  8553. if (r < arr.length) {
  8554. largest = arr[r].priority < arr[largest].priority ? r : largest;
  8555. }
  8556. if (largest !== i) {
  8557. this._swap(i, largest);
  8558. this._heapify(largest);
  8559. }
  8560. }
  8561. };
  8562. PriorityQueue.prototype._decrease = function(index) {
  8563. var arr = this._arr;
  8564. var priority = arr[index].priority;
  8565. var parent;
  8566. while (index !== 0) {
  8567. parent = index >> 1;
  8568. if (arr[parent].priority < priority) {
  8569. break;
  8570. }
  8571. this._swap(index, parent);
  8572. index = parent;
  8573. }
  8574. };
  8575. PriorityQueue.prototype._swap = function(i, j) {
  8576. var arr = this._arr;
  8577. var keyIndices = this._keyIndices;
  8578. var origArrI = arr[i];
  8579. var origArrJ = arr[j];
  8580. arr[i] = origArrJ;
  8581. arr[j] = origArrI;
  8582. keyIndices[origArrJ.key] = i;
  8583. keyIndices[origArrI.key] = j;
  8584. };
  8585. /***/ }),
  8586. /***/ "../../node_modules/graphlib/lib/graph.js":
  8587. /*!**************************************************************!*\
  8588. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  8589. \**************************************************************/
  8590. /*! no static exports found */
  8591. /***/ (function(module, exports, __webpack_require__) {
  8592. "use strict";
  8593. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8594. module.exports = Graph;
  8595. var DEFAULT_EDGE_NAME = "\x00",
  8596. GRAPH_NODE = "\x00",
  8597. EDGE_KEY_DELIM = "\x01";
  8598. // Implementation notes:
  8599. //
  8600. // * Node id query functions should return string ids for the nodes
  8601. // * Edge id query functions should return an "edgeObj", edge object, that is
  8602. // composed of enough information to uniquely identify an edge: {v, w, name}.
  8603. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  8604. // reference edges. This is because we need a performant way to look these
  8605. // edges up and, object properties, which have string keys, are the closest
  8606. // we're going to get to a performant hashtable in JavaScript.
  8607. function Graph(opts) {
  8608. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  8609. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  8610. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  8611. // Label for the graph itself
  8612. this._label = undefined;
  8613. // Defaults to be set when creating a new node
  8614. this._defaultNodeLabelFn = _.constant(undefined);
  8615. // Defaults to be set when creating a new edge
  8616. this._defaultEdgeLabelFn = _.constant(undefined);
  8617. // v -> label
  8618. this._nodes = {};
  8619. if (this._isCompound) {
  8620. // v -> parent
  8621. this._parent = {};
  8622. // v -> children
  8623. this._children = {};
  8624. this._children[GRAPH_NODE] = {};
  8625. }
  8626. // v -> edgeObj
  8627. this._in = {};
  8628. // u -> v -> Number
  8629. this._preds = {};
  8630. // v -> edgeObj
  8631. this._out = {};
  8632. // v -> w -> Number
  8633. this._sucs = {};
  8634. // e -> edgeObj
  8635. this._edgeObjs = {};
  8636. // e -> label
  8637. this._edgeLabels = {};
  8638. }
  8639. /* Number of nodes in the graph. Should only be changed by the implementation. */
  8640. Graph.prototype._nodeCount = 0;
  8641. /* Number of edges in the graph. Should only be changed by the implementation. */
  8642. Graph.prototype._edgeCount = 0;
  8643. /* === Graph functions ========= */
  8644. Graph.prototype.isDirected = function() {
  8645. return this._isDirected;
  8646. };
  8647. Graph.prototype.isMultigraph = function() {
  8648. return this._isMultigraph;
  8649. };
  8650. Graph.prototype.isCompound = function() {
  8651. return this._isCompound;
  8652. };
  8653. Graph.prototype.setGraph = function(label) {
  8654. this._label = label;
  8655. return this;
  8656. };
  8657. Graph.prototype.graph = function() {
  8658. return this._label;
  8659. };
  8660. /* === Node functions ========== */
  8661. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  8662. if (!_.isFunction(newDefault)) {
  8663. newDefault = _.constant(newDefault);
  8664. }
  8665. this._defaultNodeLabelFn = newDefault;
  8666. return this;
  8667. };
  8668. Graph.prototype.nodeCount = function() {
  8669. return this._nodeCount;
  8670. };
  8671. Graph.prototype.nodes = function() {
  8672. return _.keys(this._nodes);
  8673. };
  8674. Graph.prototype.sources = function() {
  8675. var self = this;
  8676. return _.filter(this.nodes(), function(v) {
  8677. return _.isEmpty(self._in[v]);
  8678. });
  8679. };
  8680. Graph.prototype.sinks = function() {
  8681. var self = this;
  8682. return _.filter(this.nodes(), function(v) {
  8683. return _.isEmpty(self._out[v]);
  8684. });
  8685. };
  8686. Graph.prototype.setNodes = function(vs, value) {
  8687. var args = arguments;
  8688. var self = this;
  8689. _.each(vs, function(v) {
  8690. if (args.length > 1) {
  8691. self.setNode(v, value);
  8692. } else {
  8693. self.setNode(v);
  8694. }
  8695. });
  8696. return this;
  8697. };
  8698. Graph.prototype.setNode = function(v, value) {
  8699. if (_.has(this._nodes, v)) {
  8700. if (arguments.length > 1) {
  8701. this._nodes[v] = value;
  8702. }
  8703. return this;
  8704. }
  8705. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  8706. if (this._isCompound) {
  8707. this._parent[v] = GRAPH_NODE;
  8708. this._children[v] = {};
  8709. this._children[GRAPH_NODE][v] = true;
  8710. }
  8711. this._in[v] = {};
  8712. this._preds[v] = {};
  8713. this._out[v] = {};
  8714. this._sucs[v] = {};
  8715. ++this._nodeCount;
  8716. return this;
  8717. };
  8718. Graph.prototype.node = function(v) {
  8719. return this._nodes[v];
  8720. };
  8721. Graph.prototype.hasNode = function(v) {
  8722. return _.has(this._nodes, v);
  8723. };
  8724. Graph.prototype.removeNode = function(v) {
  8725. var self = this;
  8726. if (_.has(this._nodes, v)) {
  8727. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  8728. delete this._nodes[v];
  8729. if (this._isCompound) {
  8730. this._removeFromParentsChildList(v);
  8731. delete this._parent[v];
  8732. _.each(this.children(v), function(child) {
  8733. self.setParent(child);
  8734. });
  8735. delete this._children[v];
  8736. }
  8737. _.each(_.keys(this._in[v]), removeEdge);
  8738. delete this._in[v];
  8739. delete this._preds[v];
  8740. _.each(_.keys(this._out[v]), removeEdge);
  8741. delete this._out[v];
  8742. delete this._sucs[v];
  8743. --this._nodeCount;
  8744. }
  8745. return this;
  8746. };
  8747. Graph.prototype.setParent = function(v, parent) {
  8748. if (!this._isCompound) {
  8749. throw new Error("Cannot set parent in a non-compound graph");
  8750. }
  8751. if (_.isUndefined(parent)) {
  8752. parent = GRAPH_NODE;
  8753. } else {
  8754. // Coerce parent to string
  8755. parent += "";
  8756. for (var ancestor = parent;
  8757. !_.isUndefined(ancestor);
  8758. ancestor = this.parent(ancestor)) {
  8759. if (ancestor === v) {
  8760. throw new Error("Setting " + parent+ " as parent of " + v +
  8761. " would create a cycle");
  8762. }
  8763. }
  8764. this.setNode(parent);
  8765. }
  8766. this.setNode(v);
  8767. this._removeFromParentsChildList(v);
  8768. this._parent[v] = parent;
  8769. this._children[parent][v] = true;
  8770. return this;
  8771. };
  8772. Graph.prototype._removeFromParentsChildList = function(v) {
  8773. delete this._children[this._parent[v]][v];
  8774. };
  8775. Graph.prototype.parent = function(v) {
  8776. if (this._isCompound) {
  8777. var parent = this._parent[v];
  8778. if (parent !== GRAPH_NODE) {
  8779. return parent;
  8780. }
  8781. }
  8782. };
  8783. Graph.prototype.children = function(v) {
  8784. if (_.isUndefined(v)) {
  8785. v = GRAPH_NODE;
  8786. }
  8787. if (this._isCompound) {
  8788. var children = this._children[v];
  8789. if (children) {
  8790. return _.keys(children);
  8791. }
  8792. } else if (v === GRAPH_NODE) {
  8793. return this.nodes();
  8794. } else if (this.hasNode(v)) {
  8795. return [];
  8796. }
  8797. };
  8798. Graph.prototype.predecessors = function(v) {
  8799. var predsV = this._preds[v];
  8800. if (predsV) {
  8801. return _.keys(predsV);
  8802. }
  8803. };
  8804. Graph.prototype.successors = function(v) {
  8805. var sucsV = this._sucs[v];
  8806. if (sucsV) {
  8807. return _.keys(sucsV);
  8808. }
  8809. };
  8810. Graph.prototype.neighbors = function(v) {
  8811. var preds = this.predecessors(v);
  8812. if (preds) {
  8813. return _.union(preds, this.successors(v));
  8814. }
  8815. };
  8816. Graph.prototype.isLeaf = function (v) {
  8817. var neighbors;
  8818. if (this.isDirected()) {
  8819. neighbors = this.successors(v);
  8820. } else {
  8821. neighbors = this.neighbors(v);
  8822. }
  8823. return neighbors.length === 0;
  8824. };
  8825. Graph.prototype.filterNodes = function(filter) {
  8826. var copy = new this.constructor({
  8827. directed: this._isDirected,
  8828. multigraph: this._isMultigraph,
  8829. compound: this._isCompound
  8830. });
  8831. copy.setGraph(this.graph());
  8832. var self = this;
  8833. _.each(this._nodes, function(value, v) {
  8834. if (filter(v)) {
  8835. copy.setNode(v, value);
  8836. }
  8837. });
  8838. _.each(this._edgeObjs, function(e) {
  8839. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  8840. copy.setEdge(e, self.edge(e));
  8841. }
  8842. });
  8843. var parents = {};
  8844. function findParent(v) {
  8845. var parent = self.parent(v);
  8846. if (parent === undefined || copy.hasNode(parent)) {
  8847. parents[v] = parent;
  8848. return parent;
  8849. } else if (parent in parents) {
  8850. return parents[parent];
  8851. } else {
  8852. return findParent(parent);
  8853. }
  8854. }
  8855. if (this._isCompound) {
  8856. _.each(copy.nodes(), function(v) {
  8857. copy.setParent(v, findParent(v));
  8858. });
  8859. }
  8860. return copy;
  8861. };
  8862. /* === Edge functions ========== */
  8863. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  8864. if (!_.isFunction(newDefault)) {
  8865. newDefault = _.constant(newDefault);
  8866. }
  8867. this._defaultEdgeLabelFn = newDefault;
  8868. return this;
  8869. };
  8870. Graph.prototype.edgeCount = function() {
  8871. return this._edgeCount;
  8872. };
  8873. Graph.prototype.edges = function() {
  8874. return _.values(this._edgeObjs);
  8875. };
  8876. Graph.prototype.setPath = function(vs, value) {
  8877. var self = this,
  8878. args = arguments;
  8879. _.reduce(vs, function(v, w) {
  8880. if (args.length > 1) {
  8881. self.setEdge(v, w, value);
  8882. } else {
  8883. self.setEdge(v, w);
  8884. }
  8885. return w;
  8886. });
  8887. return this;
  8888. };
  8889. /*
  8890. * setEdge(v, w, [value, [name]])
  8891. * setEdge({ v, w, [name] }, [value])
  8892. */
  8893. Graph.prototype.setEdge = function() {
  8894. var v, w, name, value,
  8895. valueSpecified = false,
  8896. arg0 = arguments[0];
  8897. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  8898. v = arg0.v;
  8899. w = arg0.w;
  8900. name = arg0.name;
  8901. if (arguments.length === 2) {
  8902. value = arguments[1];
  8903. valueSpecified = true;
  8904. }
  8905. } else {
  8906. v = arg0;
  8907. w = arguments[1];
  8908. name = arguments[3];
  8909. if (arguments.length > 2) {
  8910. value = arguments[2];
  8911. valueSpecified = true;
  8912. }
  8913. }
  8914. v = "" + v;
  8915. w = "" + w;
  8916. if (!_.isUndefined(name)) {
  8917. name = "" + name;
  8918. }
  8919. var e = edgeArgsToId(this._isDirected, v, w, name);
  8920. if (_.has(this._edgeLabels, e)) {
  8921. if (valueSpecified) {
  8922. this._edgeLabels[e] = value;
  8923. }
  8924. return this;
  8925. }
  8926. if (!_.isUndefined(name) && !this._isMultigraph) {
  8927. throw new Error("Cannot set a named edge when isMultigraph = false");
  8928. }
  8929. // It didn't exist, so we need to create it.
  8930. // First ensure the nodes exist.
  8931. this.setNode(v);
  8932. this.setNode(w);
  8933. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  8934. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  8935. // Ensure we add undirected edges in a consistent way.
  8936. v = edgeObj.v;
  8937. w = edgeObj.w;
  8938. Object.freeze(edgeObj);
  8939. this._edgeObjs[e] = edgeObj;
  8940. incrementOrInitEntry(this._preds[w], v);
  8941. incrementOrInitEntry(this._sucs[v], w);
  8942. this._in[w][e] = edgeObj;
  8943. this._out[v][e] = edgeObj;
  8944. this._edgeCount++;
  8945. return this;
  8946. };
  8947. Graph.prototype.edge = function(v, w, name) {
  8948. var e = (arguments.length === 1
  8949. ? edgeObjToId(this._isDirected, arguments[0])
  8950. : edgeArgsToId(this._isDirected, v, w, name));
  8951. return this._edgeLabels[e];
  8952. };
  8953. Graph.prototype.hasEdge = function(v, w, name) {
  8954. var e = (arguments.length === 1
  8955. ? edgeObjToId(this._isDirected, arguments[0])
  8956. : edgeArgsToId(this._isDirected, v, w, name));
  8957. return _.has(this._edgeLabels, e);
  8958. };
  8959. Graph.prototype.removeEdge = function(v, w, name) {
  8960. var e = (arguments.length === 1
  8961. ? edgeObjToId(this._isDirected, arguments[0])
  8962. : edgeArgsToId(this._isDirected, v, w, name)),
  8963. edge = this._edgeObjs[e];
  8964. if (edge) {
  8965. v = edge.v;
  8966. w = edge.w;
  8967. delete this._edgeLabels[e];
  8968. delete this._edgeObjs[e];
  8969. decrementOrRemoveEntry(this._preds[w], v);
  8970. decrementOrRemoveEntry(this._sucs[v], w);
  8971. delete this._in[w][e];
  8972. delete this._out[v][e];
  8973. this._edgeCount--;
  8974. }
  8975. return this;
  8976. };
  8977. Graph.prototype.inEdges = function(v, u) {
  8978. var inV = this._in[v];
  8979. if (inV) {
  8980. var edges = _.values(inV);
  8981. if (!u) {
  8982. return edges;
  8983. }
  8984. return _.filter(edges, function(edge) { return edge.v === u; });
  8985. }
  8986. };
  8987. Graph.prototype.outEdges = function(v, w) {
  8988. var outV = this._out[v];
  8989. if (outV) {
  8990. var edges = _.values(outV);
  8991. if (!w) {
  8992. return edges;
  8993. }
  8994. return _.filter(edges, function(edge) { return edge.w === w; });
  8995. }
  8996. };
  8997. Graph.prototype.nodeEdges = function(v, w) {
  8998. var inEdges = this.inEdges(v, w);
  8999. if (inEdges) {
  9000. return inEdges.concat(this.outEdges(v, w));
  9001. }
  9002. };
  9003. function incrementOrInitEntry(map, k) {
  9004. if (map[k]) {
  9005. map[k]++;
  9006. } else {
  9007. map[k] = 1;
  9008. }
  9009. }
  9010. function decrementOrRemoveEntry(map, k) {
  9011. if (!--map[k]) { delete map[k]; }
  9012. }
  9013. function edgeArgsToId(isDirected, v_, w_, name) {
  9014. var v = "" + v_;
  9015. var w = "" + w_;
  9016. if (!isDirected && v > w) {
  9017. var tmp = v;
  9018. v = w;
  9019. w = tmp;
  9020. }
  9021. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  9022. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  9023. }
  9024. function edgeArgsToObj(isDirected, v_, w_, name) {
  9025. var v = "" + v_;
  9026. var w = "" + w_;
  9027. if (!isDirected && v > w) {
  9028. var tmp = v;
  9029. v = w;
  9030. w = tmp;
  9031. }
  9032. var edgeObj = { v: v, w: w };
  9033. if (name) {
  9034. edgeObj.name = name;
  9035. }
  9036. return edgeObj;
  9037. }
  9038. function edgeObjToId(isDirected, edgeObj) {
  9039. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  9040. }
  9041. /***/ }),
  9042. /***/ "../../node_modules/graphlib/lib/index.js":
  9043. /*!**************************************************************!*\
  9044. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  9045. \**************************************************************/
  9046. /*! no static exports found */
  9047. /***/ (function(module, exports, __webpack_require__) {
  9048. // Includes only the "core" of graphlib
  9049. module.exports = {
  9050. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  9051. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  9052. };
  9053. /***/ }),
  9054. /***/ "../../node_modules/graphlib/lib/json.js":
  9055. /*!*************************************************************!*\
  9056. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  9057. \*************************************************************/
  9058. /*! no static exports found */
  9059. /***/ (function(module, exports, __webpack_require__) {
  9060. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  9061. Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  9062. module.exports = {
  9063. write: write,
  9064. read: read
  9065. };
  9066. function write(g) {
  9067. var json = {
  9068. options: {
  9069. directed: g.isDirected(),
  9070. multigraph: g.isMultigraph(),
  9071. compound: g.isCompound()
  9072. },
  9073. nodes: writeNodes(g),
  9074. edges: writeEdges(g)
  9075. };
  9076. if (!_.isUndefined(g.graph())) {
  9077. json.value = _.clone(g.graph());
  9078. }
  9079. return json;
  9080. }
  9081. function writeNodes(g) {
  9082. return _.map(g.nodes(), function(v) {
  9083. var nodeValue = g.node(v),
  9084. parent = g.parent(v),
  9085. node = { v: v };
  9086. if (!_.isUndefined(nodeValue)) {
  9087. node.value = nodeValue;
  9088. }
  9089. if (!_.isUndefined(parent)) {
  9090. node.parent = parent;
  9091. }
  9092. return node;
  9093. });
  9094. }
  9095. function writeEdges(g) {
  9096. return _.map(g.edges(), function(e) {
  9097. var edgeValue = g.edge(e),
  9098. edge = { v: e.v, w: e.w };
  9099. if (!_.isUndefined(e.name)) {
  9100. edge.name = e.name;
  9101. }
  9102. if (!_.isUndefined(edgeValue)) {
  9103. edge.value = edgeValue;
  9104. }
  9105. return edge;
  9106. });
  9107. }
  9108. function read(json) {
  9109. var g = new Graph(json.options).setGraph(json.value);
  9110. _.each(json.nodes, function(entry) {
  9111. g.setNode(entry.v, entry.value);
  9112. if (entry.parent) {
  9113. g.setParent(entry.v, entry.parent);
  9114. }
  9115. });
  9116. _.each(json.edges, function(entry) {
  9117. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  9118. });
  9119. return g;
  9120. }
  9121. /***/ }),
  9122. /***/ "../../node_modules/graphlib/lib/lodash.js":
  9123. /*!***************************************************************!*\
  9124. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  9125. \***************************************************************/
  9126. /*! no static exports found */
  9127. /***/ (function(module, exports, __webpack_require__) {
  9128. /* global window */
  9129. var lodash;
  9130. if (true) {
  9131. try {
  9132. lodash = {
  9133. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  9134. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  9135. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  9136. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  9137. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  9138. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  9139. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  9140. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  9141. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  9142. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  9143. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  9144. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  9145. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  9146. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  9147. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  9148. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  9149. };
  9150. } catch (e) {}
  9151. }
  9152. if (!lodash) {
  9153. lodash = window._;
  9154. }
  9155. module.exports = lodash;
  9156. /***/ }),
  9157. /***/ "../../node_modules/graphlib/lib/version.js":
  9158. /*!****************************************************************!*\
  9159. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  9160. \****************************************************************/
  9161. /*! no static exports found */
  9162. /***/ (function(module, exports) {
  9163. module.exports = '2.1.7';
  9164. /***/ }),
  9165. /***/ "../../node_modules/lodash/_DataView.js":
  9166. /*!************************************************************!*\
  9167. !*** C:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  9168. \************************************************************/
  9169. /*! no static exports found */
  9170. /***/ (function(module, exports, __webpack_require__) {
  9171. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9172. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9173. /* Built-in method references that are verified to be native. */
  9174. var DataView = getNative(root, 'DataView');
  9175. module.exports = DataView;
  9176. /***/ }),
  9177. /***/ "../../node_modules/lodash/_Hash.js":
  9178. /*!********************************************************!*\
  9179. !*** C:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  9180. \********************************************************/
  9181. /*! no static exports found */
  9182. /***/ (function(module, exports, __webpack_require__) {
  9183. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  9184. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  9185. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  9186. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  9187. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  9188. /**
  9189. * Creates a hash object.
  9190. *
  9191. * @private
  9192. * @constructor
  9193. * @param {Array} [entries] The key-value pairs to cache.
  9194. */
  9195. function Hash(entries) {
  9196. var index = -1,
  9197. length = entries == null ? 0 : entries.length;
  9198. this.clear();
  9199. while (++index < length) {
  9200. var entry = entries[index];
  9201. this.set(entry[0], entry[1]);
  9202. }
  9203. }
  9204. // Add methods to `Hash`.
  9205. Hash.prototype.clear = hashClear;
  9206. Hash.prototype['delete'] = hashDelete;
  9207. Hash.prototype.get = hashGet;
  9208. Hash.prototype.has = hashHas;
  9209. Hash.prototype.set = hashSet;
  9210. module.exports = Hash;
  9211. /***/ }),
  9212. /***/ "../../node_modules/lodash/_ListCache.js":
  9213. /*!*************************************************************!*\
  9214. !*** C:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  9215. \*************************************************************/
  9216. /*! no static exports found */
  9217. /***/ (function(module, exports, __webpack_require__) {
  9218. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  9219. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  9220. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  9221. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  9222. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  9223. /**
  9224. * Creates an list cache object.
  9225. *
  9226. * @private
  9227. * @constructor
  9228. * @param {Array} [entries] The key-value pairs to cache.
  9229. */
  9230. function ListCache(entries) {
  9231. var index = -1,
  9232. length = entries == null ? 0 : entries.length;
  9233. this.clear();
  9234. while (++index < length) {
  9235. var entry = entries[index];
  9236. this.set(entry[0], entry[1]);
  9237. }
  9238. }
  9239. // Add methods to `ListCache`.
  9240. ListCache.prototype.clear = listCacheClear;
  9241. ListCache.prototype['delete'] = listCacheDelete;
  9242. ListCache.prototype.get = listCacheGet;
  9243. ListCache.prototype.has = listCacheHas;
  9244. ListCache.prototype.set = listCacheSet;
  9245. module.exports = ListCache;
  9246. /***/ }),
  9247. /***/ "../../node_modules/lodash/_Map.js":
  9248. /*!*******************************************************!*\
  9249. !*** C:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  9250. \*******************************************************/
  9251. /*! no static exports found */
  9252. /***/ (function(module, exports, __webpack_require__) {
  9253. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9254. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9255. /* Built-in method references that are verified to be native. */
  9256. var Map = getNative(root, 'Map');
  9257. module.exports = Map;
  9258. /***/ }),
  9259. /***/ "../../node_modules/lodash/_MapCache.js":
  9260. /*!************************************************************!*\
  9261. !*** C:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  9262. \************************************************************/
  9263. /*! no static exports found */
  9264. /***/ (function(module, exports, __webpack_require__) {
  9265. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  9266. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  9267. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  9268. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  9269. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  9270. /**
  9271. * Creates a map cache object to store key-value pairs.
  9272. *
  9273. * @private
  9274. * @constructor
  9275. * @param {Array} [entries] The key-value pairs to cache.
  9276. */
  9277. function MapCache(entries) {
  9278. var index = -1,
  9279. length = entries == null ? 0 : entries.length;
  9280. this.clear();
  9281. while (++index < length) {
  9282. var entry = entries[index];
  9283. this.set(entry[0], entry[1]);
  9284. }
  9285. }
  9286. // Add methods to `MapCache`.
  9287. MapCache.prototype.clear = mapCacheClear;
  9288. MapCache.prototype['delete'] = mapCacheDelete;
  9289. MapCache.prototype.get = mapCacheGet;
  9290. MapCache.prototype.has = mapCacheHas;
  9291. MapCache.prototype.set = mapCacheSet;
  9292. module.exports = MapCache;
  9293. /***/ }),
  9294. /***/ "../../node_modules/lodash/_Promise.js":
  9295. /*!***********************************************************!*\
  9296. !*** C:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  9297. \***********************************************************/
  9298. /*! no static exports found */
  9299. /***/ (function(module, exports, __webpack_require__) {
  9300. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9301. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9302. /* Built-in method references that are verified to be native. */
  9303. var Promise = getNative(root, 'Promise');
  9304. module.exports = Promise;
  9305. /***/ }),
  9306. /***/ "../../node_modules/lodash/_Set.js":
  9307. /*!*******************************************************!*\
  9308. !*** C:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  9309. \*******************************************************/
  9310. /*! no static exports found */
  9311. /***/ (function(module, exports, __webpack_require__) {
  9312. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9313. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9314. /* Built-in method references that are verified to be native. */
  9315. var Set = getNative(root, 'Set');
  9316. module.exports = Set;
  9317. /***/ }),
  9318. /***/ "../../node_modules/lodash/_SetCache.js":
  9319. /*!************************************************************!*\
  9320. !*** C:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  9321. \************************************************************/
  9322. /*! no static exports found */
  9323. /***/ (function(module, exports, __webpack_require__) {
  9324. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  9325. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  9326. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  9327. /**
  9328. *
  9329. * Creates an array cache object to store unique values.
  9330. *
  9331. * @private
  9332. * @constructor
  9333. * @param {Array} [values] The values to cache.
  9334. */
  9335. function SetCache(values) {
  9336. var index = -1,
  9337. length = values == null ? 0 : values.length;
  9338. this.__data__ = new MapCache;
  9339. while (++index < length) {
  9340. this.add(values[index]);
  9341. }
  9342. }
  9343. // Add methods to `SetCache`.
  9344. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  9345. SetCache.prototype.has = setCacheHas;
  9346. module.exports = SetCache;
  9347. /***/ }),
  9348. /***/ "../../node_modules/lodash/_Stack.js":
  9349. /*!*********************************************************!*\
  9350. !*** C:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  9351. \*********************************************************/
  9352. /*! no static exports found */
  9353. /***/ (function(module, exports, __webpack_require__) {
  9354. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  9355. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  9356. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  9357. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  9358. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  9359. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  9360. /**
  9361. * Creates a stack cache object to store key-value pairs.
  9362. *
  9363. * @private
  9364. * @constructor
  9365. * @param {Array} [entries] The key-value pairs to cache.
  9366. */
  9367. function Stack(entries) {
  9368. var data = this.__data__ = new ListCache(entries);
  9369. this.size = data.size;
  9370. }
  9371. // Add methods to `Stack`.
  9372. Stack.prototype.clear = stackClear;
  9373. Stack.prototype['delete'] = stackDelete;
  9374. Stack.prototype.get = stackGet;
  9375. Stack.prototype.has = stackHas;
  9376. Stack.prototype.set = stackSet;
  9377. module.exports = Stack;
  9378. /***/ }),
  9379. /***/ "../../node_modules/lodash/_Symbol.js":
  9380. /*!**********************************************************!*\
  9381. !*** C:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  9382. \**********************************************************/
  9383. /*! no static exports found */
  9384. /***/ (function(module, exports, __webpack_require__) {
  9385. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9386. /** Built-in value references. */
  9387. var Symbol = root.Symbol;
  9388. module.exports = Symbol;
  9389. /***/ }),
  9390. /***/ "../../node_modules/lodash/_Uint8Array.js":
  9391. /*!**************************************************************!*\
  9392. !*** C:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  9393. \**************************************************************/
  9394. /*! no static exports found */
  9395. /***/ (function(module, exports, __webpack_require__) {
  9396. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9397. /** Built-in value references. */
  9398. var Uint8Array = root.Uint8Array;
  9399. module.exports = Uint8Array;
  9400. /***/ }),
  9401. /***/ "../../node_modules/lodash/_WeakMap.js":
  9402. /*!***********************************************************!*\
  9403. !*** C:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  9404. \***********************************************************/
  9405. /*! no static exports found */
  9406. /***/ (function(module, exports, __webpack_require__) {
  9407. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9408. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9409. /* Built-in method references that are verified to be native. */
  9410. var WeakMap = getNative(root, 'WeakMap');
  9411. module.exports = WeakMap;
  9412. /***/ }),
  9413. /***/ "../../node_modules/lodash/_apply.js":
  9414. /*!*********************************************************!*\
  9415. !*** C:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  9416. \*********************************************************/
  9417. /*! no static exports found */
  9418. /***/ (function(module, exports) {
  9419. /**
  9420. * A faster alternative to `Function#apply`, this function invokes `func`
  9421. * with the `this` binding of `thisArg` and the arguments of `args`.
  9422. *
  9423. * @private
  9424. * @param {Function} func The function to invoke.
  9425. * @param {*} thisArg The `this` binding of `func`.
  9426. * @param {Array} args The arguments to invoke `func` with.
  9427. * @returns {*} Returns the result of `func`.
  9428. */
  9429. function apply(func, thisArg, args) {
  9430. switch (args.length) {
  9431. case 0: return func.call(thisArg);
  9432. case 1: return func.call(thisArg, args[0]);
  9433. case 2: return func.call(thisArg, args[0], args[1]);
  9434. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  9435. }
  9436. return func.apply(thisArg, args);
  9437. }
  9438. module.exports = apply;
  9439. /***/ }),
  9440. /***/ "../../node_modules/lodash/_arrayEach.js":
  9441. /*!*************************************************************!*\
  9442. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  9443. \*************************************************************/
  9444. /*! no static exports found */
  9445. /***/ (function(module, exports) {
  9446. /**
  9447. * A specialized version of `_.forEach` for arrays without support for
  9448. * iteratee shorthands.
  9449. *
  9450. * @private
  9451. * @param {Array} [array] The array to iterate over.
  9452. * @param {Function} iteratee The function invoked per iteration.
  9453. * @returns {Array} Returns `array`.
  9454. */
  9455. function arrayEach(array, iteratee) {
  9456. var index = -1,
  9457. length = array == null ? 0 : array.length;
  9458. while (++index < length) {
  9459. if (iteratee(array[index], index, array) === false) {
  9460. break;
  9461. }
  9462. }
  9463. return array;
  9464. }
  9465. module.exports = arrayEach;
  9466. /***/ }),
  9467. /***/ "../../node_modules/lodash/_arrayFilter.js":
  9468. /*!***************************************************************!*\
  9469. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  9470. \***************************************************************/
  9471. /*! no static exports found */
  9472. /***/ (function(module, exports) {
  9473. /**
  9474. * A specialized version of `_.filter` for arrays without support for
  9475. * iteratee shorthands.
  9476. *
  9477. * @private
  9478. * @param {Array} [array] The array to iterate over.
  9479. * @param {Function} predicate The function invoked per iteration.
  9480. * @returns {Array} Returns the new filtered array.
  9481. */
  9482. function arrayFilter(array, predicate) {
  9483. var index = -1,
  9484. length = array == null ? 0 : array.length,
  9485. resIndex = 0,
  9486. result = [];
  9487. while (++index < length) {
  9488. var value = array[index];
  9489. if (predicate(value, index, array)) {
  9490. result[resIndex++] = value;
  9491. }
  9492. }
  9493. return result;
  9494. }
  9495. module.exports = arrayFilter;
  9496. /***/ }),
  9497. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  9498. /*!*****************************************************************!*\
  9499. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  9500. \*****************************************************************/
  9501. /*! no static exports found */
  9502. /***/ (function(module, exports, __webpack_require__) {
  9503. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  9504. /**
  9505. * A specialized version of `_.includes` for arrays without support for
  9506. * specifying an index to search from.
  9507. *
  9508. * @private
  9509. * @param {Array} [array] The array to inspect.
  9510. * @param {*} target The value to search for.
  9511. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9512. */
  9513. function arrayIncludes(array, value) {
  9514. var length = array == null ? 0 : array.length;
  9515. return !!length && baseIndexOf(array, value, 0) > -1;
  9516. }
  9517. module.exports = arrayIncludes;
  9518. /***/ }),
  9519. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  9520. /*!*********************************************************************!*\
  9521. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  9522. \*********************************************************************/
  9523. /*! no static exports found */
  9524. /***/ (function(module, exports) {
  9525. /**
  9526. * This function is like `arrayIncludes` except that it accepts a comparator.
  9527. *
  9528. * @private
  9529. * @param {Array} [array] The array to inspect.
  9530. * @param {*} target The value to search for.
  9531. * @param {Function} comparator The comparator invoked per element.
  9532. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9533. */
  9534. function arrayIncludesWith(array, value, comparator) {
  9535. var index = -1,
  9536. length = array == null ? 0 : array.length;
  9537. while (++index < length) {
  9538. if (comparator(value, array[index])) {
  9539. return true;
  9540. }
  9541. }
  9542. return false;
  9543. }
  9544. module.exports = arrayIncludesWith;
  9545. /***/ }),
  9546. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  9547. /*!*****************************************************************!*\
  9548. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  9549. \*****************************************************************/
  9550. /*! no static exports found */
  9551. /***/ (function(module, exports, __webpack_require__) {
  9552. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  9553. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  9554. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9555. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9556. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  9557. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  9558. /** Used for built-in method references. */
  9559. var objectProto = Object.prototype;
  9560. /** Used to check objects for own properties. */
  9561. var hasOwnProperty = objectProto.hasOwnProperty;
  9562. /**
  9563. * Creates an array of the enumerable property names of the array-like `value`.
  9564. *
  9565. * @private
  9566. * @param {*} value The value to query.
  9567. * @param {boolean} inherited Specify returning inherited property names.
  9568. * @returns {Array} Returns the array of property names.
  9569. */
  9570. function arrayLikeKeys(value, inherited) {
  9571. var isArr = isArray(value),
  9572. isArg = !isArr && isArguments(value),
  9573. isBuff = !isArr && !isArg && isBuffer(value),
  9574. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  9575. skipIndexes = isArr || isArg || isBuff || isType,
  9576. result = skipIndexes ? baseTimes(value.length, String) : [],
  9577. length = result.length;
  9578. for (var key in value) {
  9579. if ((inherited || hasOwnProperty.call(value, key)) &&
  9580. !(skipIndexes && (
  9581. // Safari 9 has enumerable `arguments.length` in strict mode.
  9582. key == 'length' ||
  9583. // Node.js 0.10 has enumerable non-index properties on buffers.
  9584. (isBuff && (key == 'offset' || key == 'parent')) ||
  9585. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  9586. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  9587. // Skip index properties.
  9588. isIndex(key, length)
  9589. ))) {
  9590. result.push(key);
  9591. }
  9592. }
  9593. return result;
  9594. }
  9595. module.exports = arrayLikeKeys;
  9596. /***/ }),
  9597. /***/ "../../node_modules/lodash/_arrayMap.js":
  9598. /*!************************************************************!*\
  9599. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  9600. \************************************************************/
  9601. /*! no static exports found */
  9602. /***/ (function(module, exports) {
  9603. /**
  9604. * A specialized version of `_.map` for arrays without support for iteratee
  9605. * shorthands.
  9606. *
  9607. * @private
  9608. * @param {Array} [array] The array to iterate over.
  9609. * @param {Function} iteratee The function invoked per iteration.
  9610. * @returns {Array} Returns the new mapped array.
  9611. */
  9612. function arrayMap(array, iteratee) {
  9613. var index = -1,
  9614. length = array == null ? 0 : array.length,
  9615. result = Array(length);
  9616. while (++index < length) {
  9617. result[index] = iteratee(array[index], index, array);
  9618. }
  9619. return result;
  9620. }
  9621. module.exports = arrayMap;
  9622. /***/ }),
  9623. /***/ "../../node_modules/lodash/_arrayPush.js":
  9624. /*!*************************************************************!*\
  9625. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  9626. \*************************************************************/
  9627. /*! no static exports found */
  9628. /***/ (function(module, exports) {
  9629. /**
  9630. * Appends the elements of `values` to `array`.
  9631. *
  9632. * @private
  9633. * @param {Array} array The array to modify.
  9634. * @param {Array} values The values to append.
  9635. * @returns {Array} Returns `array`.
  9636. */
  9637. function arrayPush(array, values) {
  9638. var index = -1,
  9639. length = values.length,
  9640. offset = array.length;
  9641. while (++index < length) {
  9642. array[offset + index] = values[index];
  9643. }
  9644. return array;
  9645. }
  9646. module.exports = arrayPush;
  9647. /***/ }),
  9648. /***/ "../../node_modules/lodash/_arrayReduce.js":
  9649. /*!***************************************************************!*\
  9650. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  9651. \***************************************************************/
  9652. /*! no static exports found */
  9653. /***/ (function(module, exports) {
  9654. /**
  9655. * A specialized version of `_.reduce` for arrays without support for
  9656. * iteratee shorthands.
  9657. *
  9658. * @private
  9659. * @param {Array} [array] The array to iterate over.
  9660. * @param {Function} iteratee The function invoked per iteration.
  9661. * @param {*} [accumulator] The initial value.
  9662. * @param {boolean} [initAccum] Specify using the first element of `array` as
  9663. * the initial value.
  9664. * @returns {*} Returns the accumulated value.
  9665. */
  9666. function arrayReduce(array, iteratee, accumulator, initAccum) {
  9667. var index = -1,
  9668. length = array == null ? 0 : array.length;
  9669. if (initAccum && length) {
  9670. accumulator = array[++index];
  9671. }
  9672. while (++index < length) {
  9673. accumulator = iteratee(accumulator, array[index], index, array);
  9674. }
  9675. return accumulator;
  9676. }
  9677. module.exports = arrayReduce;
  9678. /***/ }),
  9679. /***/ "../../node_modules/lodash/_arraySome.js":
  9680. /*!*************************************************************!*\
  9681. !*** C:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  9682. \*************************************************************/
  9683. /*! no static exports found */
  9684. /***/ (function(module, exports) {
  9685. /**
  9686. * A specialized version of `_.some` for arrays without support for iteratee
  9687. * shorthands.
  9688. *
  9689. * @private
  9690. * @param {Array} [array] The array to iterate over.
  9691. * @param {Function} predicate The function invoked per iteration.
  9692. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9693. * else `false`.
  9694. */
  9695. function arraySome(array, predicate) {
  9696. var index = -1,
  9697. length = array == null ? 0 : array.length;
  9698. while (++index < length) {
  9699. if (predicate(array[index], index, array)) {
  9700. return true;
  9701. }
  9702. }
  9703. return false;
  9704. }
  9705. module.exports = arraySome;
  9706. /***/ }),
  9707. /***/ "../../node_modules/lodash/_asciiSize.js":
  9708. /*!*************************************************************!*\
  9709. !*** C:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  9710. \*************************************************************/
  9711. /*! no static exports found */
  9712. /***/ (function(module, exports, __webpack_require__) {
  9713. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  9714. /**
  9715. * Gets the size of an ASCII `string`.
  9716. *
  9717. * @private
  9718. * @param {string} string The string inspect.
  9719. * @returns {number} Returns the string size.
  9720. */
  9721. var asciiSize = baseProperty('length');
  9722. module.exports = asciiSize;
  9723. /***/ }),
  9724. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  9725. /*!********************************************************************!*\
  9726. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  9727. \********************************************************************/
  9728. /*! no static exports found */
  9729. /***/ (function(module, exports, __webpack_require__) {
  9730. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9731. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9732. /**
  9733. * This function is like `assignValue` except that it doesn't assign
  9734. * `undefined` values.
  9735. *
  9736. * @private
  9737. * @param {Object} object The object to modify.
  9738. * @param {string} key The key of the property to assign.
  9739. * @param {*} value The value to assign.
  9740. */
  9741. function assignMergeValue(object, key, value) {
  9742. if ((value !== undefined && !eq(object[key], value)) ||
  9743. (value === undefined && !(key in object))) {
  9744. baseAssignValue(object, key, value);
  9745. }
  9746. }
  9747. module.exports = assignMergeValue;
  9748. /***/ }),
  9749. /***/ "../../node_modules/lodash/_assignValue.js":
  9750. /*!***************************************************************!*\
  9751. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  9752. \***************************************************************/
  9753. /*! no static exports found */
  9754. /***/ (function(module, exports, __webpack_require__) {
  9755. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9756. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9757. /** Used for built-in method references. */
  9758. var objectProto = Object.prototype;
  9759. /** Used to check objects for own properties. */
  9760. var hasOwnProperty = objectProto.hasOwnProperty;
  9761. /**
  9762. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  9763. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  9764. * for equality comparisons.
  9765. *
  9766. * @private
  9767. * @param {Object} object The object to modify.
  9768. * @param {string} key The key of the property to assign.
  9769. * @param {*} value The value to assign.
  9770. */
  9771. function assignValue(object, key, value) {
  9772. var objValue = object[key];
  9773. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  9774. (value === undefined && !(key in object))) {
  9775. baseAssignValue(object, key, value);
  9776. }
  9777. }
  9778. module.exports = assignValue;
  9779. /***/ }),
  9780. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  9781. /*!****************************************************************!*\
  9782. !*** C:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  9783. \****************************************************************/
  9784. /*! no static exports found */
  9785. /***/ (function(module, exports, __webpack_require__) {
  9786. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9787. /**
  9788. * Gets the index at which the `key` is found in `array` of key-value pairs.
  9789. *
  9790. * @private
  9791. * @param {Array} array The array to inspect.
  9792. * @param {*} key The key to search for.
  9793. * @returns {number} Returns the index of the matched value, else `-1`.
  9794. */
  9795. function assocIndexOf(array, key) {
  9796. var length = array.length;
  9797. while (length--) {
  9798. if (eq(array[length][0], key)) {
  9799. return length;
  9800. }
  9801. }
  9802. return -1;
  9803. }
  9804. module.exports = assocIndexOf;
  9805. /***/ }),
  9806. /***/ "../../node_modules/lodash/_baseAssign.js":
  9807. /*!**************************************************************!*\
  9808. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  9809. \**************************************************************/
  9810. /*! no static exports found */
  9811. /***/ (function(module, exports, __webpack_require__) {
  9812. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9813. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9814. /**
  9815. * The base implementation of `_.assign` without support for multiple sources
  9816. * or `customizer` functions.
  9817. *
  9818. * @private
  9819. * @param {Object} object The destination object.
  9820. * @param {Object} source The source object.
  9821. * @returns {Object} Returns `object`.
  9822. */
  9823. function baseAssign(object, source) {
  9824. return object && copyObject(source, keys(source), object);
  9825. }
  9826. module.exports = baseAssign;
  9827. /***/ }),
  9828. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  9829. /*!****************************************************************!*\
  9830. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  9831. \****************************************************************/
  9832. /*! no static exports found */
  9833. /***/ (function(module, exports, __webpack_require__) {
  9834. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9835. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  9836. /**
  9837. * The base implementation of `_.assignIn` without support for multiple sources
  9838. * or `customizer` functions.
  9839. *
  9840. * @private
  9841. * @param {Object} object The destination object.
  9842. * @param {Object} source The source object.
  9843. * @returns {Object} Returns `object`.
  9844. */
  9845. function baseAssignIn(object, source) {
  9846. return object && copyObject(source, keysIn(source), object);
  9847. }
  9848. module.exports = baseAssignIn;
  9849. /***/ }),
  9850. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  9851. /*!*******************************************************************!*\
  9852. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  9853. \*******************************************************************/
  9854. /*! no static exports found */
  9855. /***/ (function(module, exports, __webpack_require__) {
  9856. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  9857. /**
  9858. * The base implementation of `assignValue` and `assignMergeValue` without
  9859. * value checks.
  9860. *
  9861. * @private
  9862. * @param {Object} object The object to modify.
  9863. * @param {string} key The key of the property to assign.
  9864. * @param {*} value The value to assign.
  9865. */
  9866. function baseAssignValue(object, key, value) {
  9867. if (key == '__proto__' && defineProperty) {
  9868. defineProperty(object, key, {
  9869. 'configurable': true,
  9870. 'enumerable': true,
  9871. 'value': value,
  9872. 'writable': true
  9873. });
  9874. } else {
  9875. object[key] = value;
  9876. }
  9877. }
  9878. module.exports = baseAssignValue;
  9879. /***/ }),
  9880. /***/ "../../node_modules/lodash/_baseClone.js":
  9881. /*!*************************************************************!*\
  9882. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  9883. \*************************************************************/
  9884. /*! no static exports found */
  9885. /***/ (function(module, exports, __webpack_require__) {
  9886. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  9887. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  9888. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  9889. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  9890. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  9891. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  9892. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  9893. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  9894. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  9895. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  9896. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  9897. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  9898. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  9899. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  9900. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  9901. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9902. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9903. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  9904. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  9905. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  9906. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9907. /** Used to compose bitmasks for cloning. */
  9908. var CLONE_DEEP_FLAG = 1,
  9909. CLONE_FLAT_FLAG = 2,
  9910. CLONE_SYMBOLS_FLAG = 4;
  9911. /** `Object#toString` result references. */
  9912. var argsTag = '[object Arguments]',
  9913. arrayTag = '[object Array]',
  9914. boolTag = '[object Boolean]',
  9915. dateTag = '[object Date]',
  9916. errorTag = '[object Error]',
  9917. funcTag = '[object Function]',
  9918. genTag = '[object GeneratorFunction]',
  9919. mapTag = '[object Map]',
  9920. numberTag = '[object Number]',
  9921. objectTag = '[object Object]',
  9922. regexpTag = '[object RegExp]',
  9923. setTag = '[object Set]',
  9924. stringTag = '[object String]',
  9925. symbolTag = '[object Symbol]',
  9926. weakMapTag = '[object WeakMap]';
  9927. var arrayBufferTag = '[object ArrayBuffer]',
  9928. dataViewTag = '[object DataView]',
  9929. float32Tag = '[object Float32Array]',
  9930. float64Tag = '[object Float64Array]',
  9931. int8Tag = '[object Int8Array]',
  9932. int16Tag = '[object Int16Array]',
  9933. int32Tag = '[object Int32Array]',
  9934. uint8Tag = '[object Uint8Array]',
  9935. uint8ClampedTag = '[object Uint8ClampedArray]',
  9936. uint16Tag = '[object Uint16Array]',
  9937. uint32Tag = '[object Uint32Array]';
  9938. /** Used to identify `toStringTag` values supported by `_.clone`. */
  9939. var cloneableTags = {};
  9940. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  9941. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  9942. cloneableTags[boolTag] = cloneableTags[dateTag] =
  9943. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  9944. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  9945. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  9946. cloneableTags[numberTag] = cloneableTags[objectTag] =
  9947. cloneableTags[regexpTag] = cloneableTags[setTag] =
  9948. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  9949. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  9950. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  9951. cloneableTags[errorTag] = cloneableTags[funcTag] =
  9952. cloneableTags[weakMapTag] = false;
  9953. /**
  9954. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  9955. * traversed objects.
  9956. *
  9957. * @private
  9958. * @param {*} value The value to clone.
  9959. * @param {boolean} bitmask The bitmask flags.
  9960. * 1 - Deep clone
  9961. * 2 - Flatten inherited properties
  9962. * 4 - Clone symbols
  9963. * @param {Function} [customizer] The function to customize cloning.
  9964. * @param {string} [key] The key of `value`.
  9965. * @param {Object} [object] The parent object of `value`.
  9966. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  9967. * @returns {*} Returns the cloned value.
  9968. */
  9969. function baseClone(value, bitmask, customizer, key, object, stack) {
  9970. var result,
  9971. isDeep = bitmask & CLONE_DEEP_FLAG,
  9972. isFlat = bitmask & CLONE_FLAT_FLAG,
  9973. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  9974. if (customizer) {
  9975. result = object ? customizer(value, key, object, stack) : customizer(value);
  9976. }
  9977. if (result !== undefined) {
  9978. return result;
  9979. }
  9980. if (!isObject(value)) {
  9981. return value;
  9982. }
  9983. var isArr = isArray(value);
  9984. if (isArr) {
  9985. result = initCloneArray(value);
  9986. if (!isDeep) {
  9987. return copyArray(value, result);
  9988. }
  9989. } else {
  9990. var tag = getTag(value),
  9991. isFunc = tag == funcTag || tag == genTag;
  9992. if (isBuffer(value)) {
  9993. return cloneBuffer(value, isDeep);
  9994. }
  9995. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  9996. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  9997. if (!isDeep) {
  9998. return isFlat
  9999. ? copySymbolsIn(value, baseAssignIn(result, value))
  10000. : copySymbols(value, baseAssign(result, value));
  10001. }
  10002. } else {
  10003. if (!cloneableTags[tag]) {
  10004. return object ? value : {};
  10005. }
  10006. result = initCloneByTag(value, tag, isDeep);
  10007. }
  10008. }
  10009. // Check for circular references and return its corresponding clone.
  10010. stack || (stack = new Stack);
  10011. var stacked = stack.get(value);
  10012. if (stacked) {
  10013. return stacked;
  10014. }
  10015. stack.set(value, result);
  10016. if (isSet(value)) {
  10017. value.forEach(function(subValue) {
  10018. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  10019. });
  10020. } else if (isMap(value)) {
  10021. value.forEach(function(subValue, key) {
  10022. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10023. });
  10024. }
  10025. var keysFunc = isFull
  10026. ? (isFlat ? getAllKeysIn : getAllKeys)
  10027. : (isFlat ? keysIn : keys);
  10028. var props = isArr ? undefined : keysFunc(value);
  10029. arrayEach(props || value, function(subValue, key) {
  10030. if (props) {
  10031. key = subValue;
  10032. subValue = value[key];
  10033. }
  10034. // Recursively populate clone (susceptible to call stack limits).
  10035. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10036. });
  10037. return result;
  10038. }
  10039. module.exports = baseClone;
  10040. /***/ }),
  10041. /***/ "../../node_modules/lodash/_baseCreate.js":
  10042. /*!**************************************************************!*\
  10043. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  10044. \**************************************************************/
  10045. /*! no static exports found */
  10046. /***/ (function(module, exports, __webpack_require__) {
  10047. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  10048. /** Built-in value references. */
  10049. var objectCreate = Object.create;
  10050. /**
  10051. * The base implementation of `_.create` without support for assigning
  10052. * properties to the created object.
  10053. *
  10054. * @private
  10055. * @param {Object} proto The object to inherit from.
  10056. * @returns {Object} Returns the new object.
  10057. */
  10058. var baseCreate = (function() {
  10059. function object() {}
  10060. return function(proto) {
  10061. if (!isObject(proto)) {
  10062. return {};
  10063. }
  10064. if (objectCreate) {
  10065. return objectCreate(proto);
  10066. }
  10067. object.prototype = proto;
  10068. var result = new object;
  10069. object.prototype = undefined;
  10070. return result;
  10071. };
  10072. }());
  10073. module.exports = baseCreate;
  10074. /***/ }),
  10075. /***/ "../../node_modules/lodash/_baseEach.js":
  10076. /*!************************************************************!*\
  10077. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  10078. \************************************************************/
  10079. /*! no static exports found */
  10080. /***/ (function(module, exports, __webpack_require__) {
  10081. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  10082. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  10083. /**
  10084. * The base implementation of `_.forEach` without support for iteratee shorthands.
  10085. *
  10086. * @private
  10087. * @param {Array|Object} collection The collection to iterate over.
  10088. * @param {Function} iteratee The function invoked per iteration.
  10089. * @returns {Array|Object} Returns `collection`.
  10090. */
  10091. var baseEach = createBaseEach(baseForOwn);
  10092. module.exports = baseEach;
  10093. /***/ }),
  10094. /***/ "../../node_modules/lodash/_baseExtremum.js":
  10095. /*!****************************************************************!*\
  10096. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  10097. \****************************************************************/
  10098. /*! no static exports found */
  10099. /***/ (function(module, exports, __webpack_require__) {
  10100. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  10101. /**
  10102. * The base implementation of methods like `_.max` and `_.min` which accepts a
  10103. * `comparator` to determine the extremum value.
  10104. *
  10105. * @private
  10106. * @param {Array} array The array to iterate over.
  10107. * @param {Function} iteratee The iteratee invoked per iteration.
  10108. * @param {Function} comparator The comparator used to compare values.
  10109. * @returns {*} Returns the extremum value.
  10110. */
  10111. function baseExtremum(array, iteratee, comparator) {
  10112. var index = -1,
  10113. length = array.length;
  10114. while (++index < length) {
  10115. var value = array[index],
  10116. current = iteratee(value);
  10117. if (current != null && (computed === undefined
  10118. ? (current === current && !isSymbol(current))
  10119. : comparator(current, computed)
  10120. )) {
  10121. var computed = current,
  10122. result = value;
  10123. }
  10124. }
  10125. return result;
  10126. }
  10127. module.exports = baseExtremum;
  10128. /***/ }),
  10129. /***/ "../../node_modules/lodash/_baseFilter.js":
  10130. /*!**************************************************************!*\
  10131. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  10132. \**************************************************************/
  10133. /*! no static exports found */
  10134. /***/ (function(module, exports, __webpack_require__) {
  10135. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  10136. /**
  10137. * The base implementation of `_.filter` without support for iteratee shorthands.
  10138. *
  10139. * @private
  10140. * @param {Array|Object} collection The collection to iterate over.
  10141. * @param {Function} predicate The function invoked per iteration.
  10142. * @returns {Array} Returns the new filtered array.
  10143. */
  10144. function baseFilter(collection, predicate) {
  10145. var result = [];
  10146. baseEach(collection, function(value, index, collection) {
  10147. if (predicate(value, index, collection)) {
  10148. result.push(value);
  10149. }
  10150. });
  10151. return result;
  10152. }
  10153. module.exports = baseFilter;
  10154. /***/ }),
  10155. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  10156. /*!*****************************************************************!*\
  10157. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  10158. \*****************************************************************/
  10159. /*! no static exports found */
  10160. /***/ (function(module, exports) {
  10161. /**
  10162. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  10163. * support for iteratee shorthands.
  10164. *
  10165. * @private
  10166. * @param {Array} array The array to inspect.
  10167. * @param {Function} predicate The function invoked per iteration.
  10168. * @param {number} fromIndex The index to search from.
  10169. * @param {boolean} [fromRight] Specify iterating from right to left.
  10170. * @returns {number} Returns the index of the matched value, else `-1`.
  10171. */
  10172. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  10173. var length = array.length,
  10174. index = fromIndex + (fromRight ? 1 : -1);
  10175. while ((fromRight ? index-- : ++index < length)) {
  10176. if (predicate(array[index], index, array)) {
  10177. return index;
  10178. }
  10179. }
  10180. return -1;
  10181. }
  10182. module.exports = baseFindIndex;
  10183. /***/ }),
  10184. /***/ "../../node_modules/lodash/_baseFlatten.js":
  10185. /*!***************************************************************!*\
  10186. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  10187. \***************************************************************/
  10188. /*! no static exports found */
  10189. /***/ (function(module, exports, __webpack_require__) {
  10190. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10191. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  10192. /**
  10193. * The base implementation of `_.flatten` with support for restricting flattening.
  10194. *
  10195. * @private
  10196. * @param {Array} array The array to flatten.
  10197. * @param {number} depth The maximum recursion depth.
  10198. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  10199. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  10200. * @param {Array} [result=[]] The initial result value.
  10201. * @returns {Array} Returns the new flattened array.
  10202. */
  10203. function baseFlatten(array, depth, predicate, isStrict, result) {
  10204. var index = -1,
  10205. length = array.length;
  10206. predicate || (predicate = isFlattenable);
  10207. result || (result = []);
  10208. while (++index < length) {
  10209. var value = array[index];
  10210. if (depth > 0 && predicate(value)) {
  10211. if (depth > 1) {
  10212. // Recursively flatten arrays (susceptible to call stack limits).
  10213. baseFlatten(value, depth - 1, predicate, isStrict, result);
  10214. } else {
  10215. arrayPush(result, value);
  10216. }
  10217. } else if (!isStrict) {
  10218. result[result.length] = value;
  10219. }
  10220. }
  10221. return result;
  10222. }
  10223. module.exports = baseFlatten;
  10224. /***/ }),
  10225. /***/ "../../node_modules/lodash/_baseFor.js":
  10226. /*!***********************************************************!*\
  10227. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  10228. \***********************************************************/
  10229. /*! no static exports found */
  10230. /***/ (function(module, exports, __webpack_require__) {
  10231. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  10232. /**
  10233. * The base implementation of `baseForOwn` which iterates over `object`
  10234. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  10235. * Iteratee functions may exit iteration early by explicitly returning `false`.
  10236. *
  10237. * @private
  10238. * @param {Object} object The object to iterate over.
  10239. * @param {Function} iteratee The function invoked per iteration.
  10240. * @param {Function} keysFunc The function to get the keys of `object`.
  10241. * @returns {Object} Returns `object`.
  10242. */
  10243. var baseFor = createBaseFor();
  10244. module.exports = baseFor;
  10245. /***/ }),
  10246. /***/ "../../node_modules/lodash/_baseForOwn.js":
  10247. /*!**************************************************************!*\
  10248. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  10249. \**************************************************************/
  10250. /*! no static exports found */
  10251. /***/ (function(module, exports, __webpack_require__) {
  10252. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  10253. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  10254. /**
  10255. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  10256. *
  10257. * @private
  10258. * @param {Object} object The object to iterate over.
  10259. * @param {Function} iteratee The function invoked per iteration.
  10260. * @returns {Object} Returns `object`.
  10261. */
  10262. function baseForOwn(object, iteratee) {
  10263. return object && baseFor(object, iteratee, keys);
  10264. }
  10265. module.exports = baseForOwn;
  10266. /***/ }),
  10267. /***/ "../../node_modules/lodash/_baseGet.js":
  10268. /*!***********************************************************!*\
  10269. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  10270. \***********************************************************/
  10271. /*! no static exports found */
  10272. /***/ (function(module, exports, __webpack_require__) {
  10273. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  10274. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10275. /**
  10276. * The base implementation of `_.get` without support for default values.
  10277. *
  10278. * @private
  10279. * @param {Object} object The object to query.
  10280. * @param {Array|string} path The path of the property to get.
  10281. * @returns {*} Returns the resolved value.
  10282. */
  10283. function baseGet(object, path) {
  10284. path = castPath(path, object);
  10285. var index = 0,
  10286. length = path.length;
  10287. while (object != null && index < length) {
  10288. object = object[toKey(path[index++])];
  10289. }
  10290. return (index && index == length) ? object : undefined;
  10291. }
  10292. module.exports = baseGet;
  10293. /***/ }),
  10294. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  10295. /*!******************************************************************!*\
  10296. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  10297. \******************************************************************/
  10298. /*! no static exports found */
  10299. /***/ (function(module, exports, __webpack_require__) {
  10300. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10301. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  10302. /**
  10303. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  10304. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  10305. * symbols of `object`.
  10306. *
  10307. * @private
  10308. * @param {Object} object The object to query.
  10309. * @param {Function} keysFunc The function to get the keys of `object`.
  10310. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  10311. * @returns {Array} Returns the array of property names and symbols.
  10312. */
  10313. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  10314. var result = keysFunc(object);
  10315. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  10316. }
  10317. module.exports = baseGetAllKeys;
  10318. /***/ }),
  10319. /***/ "../../node_modules/lodash/_baseGetTag.js":
  10320. /*!**************************************************************!*\
  10321. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  10322. \**************************************************************/
  10323. /*! no static exports found */
  10324. /***/ (function(module, exports, __webpack_require__) {
  10325. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  10326. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  10327. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  10328. /** `Object#toString` result references. */
  10329. var nullTag = '[object Null]',
  10330. undefinedTag = '[object Undefined]';
  10331. /** Built-in value references. */
  10332. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  10333. /**
  10334. * The base implementation of `getTag` without fallbacks for buggy environments.
  10335. *
  10336. * @private
  10337. * @param {*} value The value to query.
  10338. * @returns {string} Returns the `toStringTag`.
  10339. */
  10340. function baseGetTag(value) {
  10341. if (value == null) {
  10342. return value === undefined ? undefinedTag : nullTag;
  10343. }
  10344. return (symToStringTag && symToStringTag in Object(value))
  10345. ? getRawTag(value)
  10346. : objectToString(value);
  10347. }
  10348. module.exports = baseGetTag;
  10349. /***/ }),
  10350. /***/ "../../node_modules/lodash/_baseGt.js":
  10351. /*!**********************************************************!*\
  10352. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  10353. \**********************************************************/
  10354. /*! no static exports found */
  10355. /***/ (function(module, exports) {
  10356. /**
  10357. * The base implementation of `_.gt` which doesn't coerce arguments.
  10358. *
  10359. * @private
  10360. * @param {*} value The value to compare.
  10361. * @param {*} other The other value to compare.
  10362. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  10363. * else `false`.
  10364. */
  10365. function baseGt(value, other) {
  10366. return value > other;
  10367. }
  10368. module.exports = baseGt;
  10369. /***/ }),
  10370. /***/ "../../node_modules/lodash/_baseHas.js":
  10371. /*!***********************************************************!*\
  10372. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  10373. \***********************************************************/
  10374. /*! no static exports found */
  10375. /***/ (function(module, exports) {
  10376. /** Used for built-in method references. */
  10377. var objectProto = Object.prototype;
  10378. /** Used to check objects for own properties. */
  10379. var hasOwnProperty = objectProto.hasOwnProperty;
  10380. /**
  10381. * The base implementation of `_.has` without support for deep paths.
  10382. *
  10383. * @private
  10384. * @param {Object} [object] The object to query.
  10385. * @param {Array|string} key The key to check.
  10386. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10387. */
  10388. function baseHas(object, key) {
  10389. return object != null && hasOwnProperty.call(object, key);
  10390. }
  10391. module.exports = baseHas;
  10392. /***/ }),
  10393. /***/ "../../node_modules/lodash/_baseHasIn.js":
  10394. /*!*************************************************************!*\
  10395. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  10396. \*************************************************************/
  10397. /*! no static exports found */
  10398. /***/ (function(module, exports) {
  10399. /**
  10400. * The base implementation of `_.hasIn` without support for deep paths.
  10401. *
  10402. * @private
  10403. * @param {Object} [object] The object to query.
  10404. * @param {Array|string} key The key to check.
  10405. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10406. */
  10407. function baseHasIn(object, key) {
  10408. return object != null && key in Object(object);
  10409. }
  10410. module.exports = baseHasIn;
  10411. /***/ }),
  10412. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  10413. /*!***************************************************************!*\
  10414. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  10415. \***************************************************************/
  10416. /*! no static exports found */
  10417. /***/ (function(module, exports, __webpack_require__) {
  10418. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  10419. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  10420. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  10421. /**
  10422. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  10423. *
  10424. * @private
  10425. * @param {Array} array The array to inspect.
  10426. * @param {*} value The value to search for.
  10427. * @param {number} fromIndex The index to search from.
  10428. * @returns {number} Returns the index of the matched value, else `-1`.
  10429. */
  10430. function baseIndexOf(array, value, fromIndex) {
  10431. return value === value
  10432. ? strictIndexOf(array, value, fromIndex)
  10433. : baseFindIndex(array, baseIsNaN, fromIndex);
  10434. }
  10435. module.exports = baseIndexOf;
  10436. /***/ }),
  10437. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  10438. /*!*******************************************************************!*\
  10439. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  10440. \*******************************************************************/
  10441. /*! no static exports found */
  10442. /***/ (function(module, exports, __webpack_require__) {
  10443. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10444. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10445. /** `Object#toString` result references. */
  10446. var argsTag = '[object Arguments]';
  10447. /**
  10448. * The base implementation of `_.isArguments`.
  10449. *
  10450. * @private
  10451. * @param {*} value The value to check.
  10452. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  10453. */
  10454. function baseIsArguments(value) {
  10455. return isObjectLike(value) && baseGetTag(value) == argsTag;
  10456. }
  10457. module.exports = baseIsArguments;
  10458. /***/ }),
  10459. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  10460. /*!***************************************************************!*\
  10461. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  10462. \***************************************************************/
  10463. /*! no static exports found */
  10464. /***/ (function(module, exports, __webpack_require__) {
  10465. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  10466. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10467. /**
  10468. * The base implementation of `_.isEqual` which supports partial comparisons
  10469. * and tracks traversed objects.
  10470. *
  10471. * @private
  10472. * @param {*} value The value to compare.
  10473. * @param {*} other The other value to compare.
  10474. * @param {boolean} bitmask The bitmask flags.
  10475. * 1 - Unordered comparison
  10476. * 2 - Partial comparison
  10477. * @param {Function} [customizer] The function to customize comparisons.
  10478. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  10479. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  10480. */
  10481. function baseIsEqual(value, other, bitmask, customizer, stack) {
  10482. if (value === other) {
  10483. return true;
  10484. }
  10485. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  10486. return value !== value && other !== other;
  10487. }
  10488. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  10489. }
  10490. module.exports = baseIsEqual;
  10491. /***/ }),
  10492. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  10493. /*!*******************************************************************!*\
  10494. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  10495. \*******************************************************************/
  10496. /*! no static exports found */
  10497. /***/ (function(module, exports, __webpack_require__) {
  10498. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10499. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  10500. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  10501. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  10502. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10503. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10504. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10505. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  10506. /** Used to compose bitmasks for value comparisons. */
  10507. var COMPARE_PARTIAL_FLAG = 1;
  10508. /** `Object#toString` result references. */
  10509. var argsTag = '[object Arguments]',
  10510. arrayTag = '[object Array]',
  10511. objectTag = '[object Object]';
  10512. /** Used for built-in method references. */
  10513. var objectProto = Object.prototype;
  10514. /** Used to check objects for own properties. */
  10515. var hasOwnProperty = objectProto.hasOwnProperty;
  10516. /**
  10517. * A specialized version of `baseIsEqual` for arrays and objects which performs
  10518. * deep comparisons and tracks traversed objects enabling objects with circular
  10519. * references to be compared.
  10520. *
  10521. * @private
  10522. * @param {Object} object The object to compare.
  10523. * @param {Object} other The other object to compare.
  10524. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10525. * @param {Function} customizer The function to customize comparisons.
  10526. * @param {Function} equalFunc The function to determine equivalents of values.
  10527. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  10528. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10529. */
  10530. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  10531. var objIsArr = isArray(object),
  10532. othIsArr = isArray(other),
  10533. objTag = objIsArr ? arrayTag : getTag(object),
  10534. othTag = othIsArr ? arrayTag : getTag(other);
  10535. objTag = objTag == argsTag ? objectTag : objTag;
  10536. othTag = othTag == argsTag ? objectTag : othTag;
  10537. var objIsObj = objTag == objectTag,
  10538. othIsObj = othTag == objectTag,
  10539. isSameTag = objTag == othTag;
  10540. if (isSameTag && isBuffer(object)) {
  10541. if (!isBuffer(other)) {
  10542. return false;
  10543. }
  10544. objIsArr = true;
  10545. objIsObj = false;
  10546. }
  10547. if (isSameTag && !objIsObj) {
  10548. stack || (stack = new Stack);
  10549. return (objIsArr || isTypedArray(object))
  10550. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  10551. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  10552. }
  10553. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  10554. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  10555. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  10556. if (objIsWrapped || othIsWrapped) {
  10557. var objUnwrapped = objIsWrapped ? object.value() : object,
  10558. othUnwrapped = othIsWrapped ? other.value() : other;
  10559. stack || (stack = new Stack);
  10560. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  10561. }
  10562. }
  10563. if (!isSameTag) {
  10564. return false;
  10565. }
  10566. stack || (stack = new Stack);
  10567. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  10568. }
  10569. module.exports = baseIsEqualDeep;
  10570. /***/ }),
  10571. /***/ "../../node_modules/lodash/_baseIsMap.js":
  10572. /*!*************************************************************!*\
  10573. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  10574. \*************************************************************/
  10575. /*! no static exports found */
  10576. /***/ (function(module, exports, __webpack_require__) {
  10577. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10578. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10579. /** `Object#toString` result references. */
  10580. var mapTag = '[object Map]';
  10581. /**
  10582. * The base implementation of `_.isMap` without Node.js optimizations.
  10583. *
  10584. * @private
  10585. * @param {*} value The value to check.
  10586. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  10587. */
  10588. function baseIsMap(value) {
  10589. return isObjectLike(value) && getTag(value) == mapTag;
  10590. }
  10591. module.exports = baseIsMap;
  10592. /***/ }),
  10593. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  10594. /*!***************************************************************!*\
  10595. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  10596. \***************************************************************/
  10597. /*! no static exports found */
  10598. /***/ (function(module, exports, __webpack_require__) {
  10599. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10600. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  10601. /** Used to compose bitmasks for value comparisons. */
  10602. var COMPARE_PARTIAL_FLAG = 1,
  10603. COMPARE_UNORDERED_FLAG = 2;
  10604. /**
  10605. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  10606. *
  10607. * @private
  10608. * @param {Object} object The object to inspect.
  10609. * @param {Object} source The object of property values to match.
  10610. * @param {Array} matchData The property names, values, and compare flags to match.
  10611. * @param {Function} [customizer] The function to customize comparisons.
  10612. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  10613. */
  10614. function baseIsMatch(object, source, matchData, customizer) {
  10615. var index = matchData.length,
  10616. length = index,
  10617. noCustomizer = !customizer;
  10618. if (object == null) {
  10619. return !length;
  10620. }
  10621. object = Object(object);
  10622. while (index--) {
  10623. var data = matchData[index];
  10624. if ((noCustomizer && data[2])
  10625. ? data[1] !== object[data[0]]
  10626. : !(data[0] in object)
  10627. ) {
  10628. return false;
  10629. }
  10630. }
  10631. while (++index < length) {
  10632. data = matchData[index];
  10633. var key = data[0],
  10634. objValue = object[key],
  10635. srcValue = data[1];
  10636. if (noCustomizer && data[2]) {
  10637. if (objValue === undefined && !(key in object)) {
  10638. return false;
  10639. }
  10640. } else {
  10641. var stack = new Stack;
  10642. if (customizer) {
  10643. var result = customizer(objValue, srcValue, key, object, source, stack);
  10644. }
  10645. if (!(result === undefined
  10646. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  10647. : result
  10648. )) {
  10649. return false;
  10650. }
  10651. }
  10652. }
  10653. return true;
  10654. }
  10655. module.exports = baseIsMatch;
  10656. /***/ }),
  10657. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  10658. /*!*************************************************************!*\
  10659. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  10660. \*************************************************************/
  10661. /*! no static exports found */
  10662. /***/ (function(module, exports) {
  10663. /**
  10664. * The base implementation of `_.isNaN` without support for number objects.
  10665. *
  10666. * @private
  10667. * @param {*} value The value to check.
  10668. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  10669. */
  10670. function baseIsNaN(value) {
  10671. return value !== value;
  10672. }
  10673. module.exports = baseIsNaN;
  10674. /***/ }),
  10675. /***/ "../../node_modules/lodash/_baseIsNative.js":
  10676. /*!****************************************************************!*\
  10677. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  10678. \****************************************************************/
  10679. /*! no static exports found */
  10680. /***/ (function(module, exports, __webpack_require__) {
  10681. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10682. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  10683. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10684. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  10685. /**
  10686. * Used to match `RegExp`
  10687. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  10688. */
  10689. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  10690. /** Used to detect host constructors (Safari). */
  10691. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  10692. /** Used for built-in method references. */
  10693. var funcProto = Function.prototype,
  10694. objectProto = Object.prototype;
  10695. /** Used to resolve the decompiled source of functions. */
  10696. var funcToString = funcProto.toString;
  10697. /** Used to check objects for own properties. */
  10698. var hasOwnProperty = objectProto.hasOwnProperty;
  10699. /** Used to detect if a method is native. */
  10700. var reIsNative = RegExp('^' +
  10701. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  10702. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  10703. );
  10704. /**
  10705. * The base implementation of `_.isNative` without bad shim checks.
  10706. *
  10707. * @private
  10708. * @param {*} value The value to check.
  10709. * @returns {boolean} Returns `true` if `value` is a native function,
  10710. * else `false`.
  10711. */
  10712. function baseIsNative(value) {
  10713. if (!isObject(value) || isMasked(value)) {
  10714. return false;
  10715. }
  10716. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  10717. return pattern.test(toSource(value));
  10718. }
  10719. module.exports = baseIsNative;
  10720. /***/ }),
  10721. /***/ "../../node_modules/lodash/_baseIsSet.js":
  10722. /*!*************************************************************!*\
  10723. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  10724. \*************************************************************/
  10725. /*! no static exports found */
  10726. /***/ (function(module, exports, __webpack_require__) {
  10727. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10728. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10729. /** `Object#toString` result references. */
  10730. var setTag = '[object Set]';
  10731. /**
  10732. * The base implementation of `_.isSet` without Node.js optimizations.
  10733. *
  10734. * @private
  10735. * @param {*} value The value to check.
  10736. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  10737. */
  10738. function baseIsSet(value) {
  10739. return isObjectLike(value) && getTag(value) == setTag;
  10740. }
  10741. module.exports = baseIsSet;
  10742. /***/ }),
  10743. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  10744. /*!********************************************************************!*\
  10745. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  10746. \********************************************************************/
  10747. /*! no static exports found */
  10748. /***/ (function(module, exports, __webpack_require__) {
  10749. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10750. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  10751. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10752. /** `Object#toString` result references. */
  10753. var argsTag = '[object Arguments]',
  10754. arrayTag = '[object Array]',
  10755. boolTag = '[object Boolean]',
  10756. dateTag = '[object Date]',
  10757. errorTag = '[object Error]',
  10758. funcTag = '[object Function]',
  10759. mapTag = '[object Map]',
  10760. numberTag = '[object Number]',
  10761. objectTag = '[object Object]',
  10762. regexpTag = '[object RegExp]',
  10763. setTag = '[object Set]',
  10764. stringTag = '[object String]',
  10765. weakMapTag = '[object WeakMap]';
  10766. var arrayBufferTag = '[object ArrayBuffer]',
  10767. dataViewTag = '[object DataView]',
  10768. float32Tag = '[object Float32Array]',
  10769. float64Tag = '[object Float64Array]',
  10770. int8Tag = '[object Int8Array]',
  10771. int16Tag = '[object Int16Array]',
  10772. int32Tag = '[object Int32Array]',
  10773. uint8Tag = '[object Uint8Array]',
  10774. uint8ClampedTag = '[object Uint8ClampedArray]',
  10775. uint16Tag = '[object Uint16Array]',
  10776. uint32Tag = '[object Uint32Array]';
  10777. /** Used to identify `toStringTag` values of typed arrays. */
  10778. var typedArrayTags = {};
  10779. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  10780. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  10781. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  10782. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  10783. typedArrayTags[uint32Tag] = true;
  10784. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  10785. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  10786. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  10787. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  10788. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  10789. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  10790. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  10791. typedArrayTags[weakMapTag] = false;
  10792. /**
  10793. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  10794. *
  10795. * @private
  10796. * @param {*} value The value to check.
  10797. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  10798. */
  10799. function baseIsTypedArray(value) {
  10800. return isObjectLike(value) &&
  10801. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  10802. }
  10803. module.exports = baseIsTypedArray;
  10804. /***/ }),
  10805. /***/ "../../node_modules/lodash/_baseIteratee.js":
  10806. /*!****************************************************************!*\
  10807. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  10808. \****************************************************************/
  10809. /*! no static exports found */
  10810. /***/ (function(module, exports, __webpack_require__) {
  10811. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  10812. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  10813. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10814. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10815. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  10816. /**
  10817. * The base implementation of `_.iteratee`.
  10818. *
  10819. * @private
  10820. * @param {*} [value=_.identity] The value to convert to an iteratee.
  10821. * @returns {Function} Returns the iteratee.
  10822. */
  10823. function baseIteratee(value) {
  10824. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  10825. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  10826. if (typeof value == 'function') {
  10827. return value;
  10828. }
  10829. if (value == null) {
  10830. return identity;
  10831. }
  10832. if (typeof value == 'object') {
  10833. return isArray(value)
  10834. ? baseMatchesProperty(value[0], value[1])
  10835. : baseMatches(value);
  10836. }
  10837. return property(value);
  10838. }
  10839. module.exports = baseIteratee;
  10840. /***/ }),
  10841. /***/ "../../node_modules/lodash/_baseKeys.js":
  10842. /*!************************************************************!*\
  10843. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  10844. \************************************************************/
  10845. /*! no static exports found */
  10846. /***/ (function(module, exports, __webpack_require__) {
  10847. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10848. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  10849. /** Used for built-in method references. */
  10850. var objectProto = Object.prototype;
  10851. /** Used to check objects for own properties. */
  10852. var hasOwnProperty = objectProto.hasOwnProperty;
  10853. /**
  10854. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  10855. *
  10856. * @private
  10857. * @param {Object} object The object to query.
  10858. * @returns {Array} Returns the array of property names.
  10859. */
  10860. function baseKeys(object) {
  10861. if (!isPrototype(object)) {
  10862. return nativeKeys(object);
  10863. }
  10864. var result = [];
  10865. for (var key in Object(object)) {
  10866. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  10867. result.push(key);
  10868. }
  10869. }
  10870. return result;
  10871. }
  10872. module.exports = baseKeys;
  10873. /***/ }),
  10874. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  10875. /*!**************************************************************!*\
  10876. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  10877. \**************************************************************/
  10878. /*! no static exports found */
  10879. /***/ (function(module, exports, __webpack_require__) {
  10880. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10881. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10882. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  10883. /** Used for built-in method references. */
  10884. var objectProto = Object.prototype;
  10885. /** Used to check objects for own properties. */
  10886. var hasOwnProperty = objectProto.hasOwnProperty;
  10887. /**
  10888. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  10889. *
  10890. * @private
  10891. * @param {Object} object The object to query.
  10892. * @returns {Array} Returns the array of property names.
  10893. */
  10894. function baseKeysIn(object) {
  10895. if (!isObject(object)) {
  10896. return nativeKeysIn(object);
  10897. }
  10898. var isProto = isPrototype(object),
  10899. result = [];
  10900. for (var key in object) {
  10901. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  10902. result.push(key);
  10903. }
  10904. }
  10905. return result;
  10906. }
  10907. module.exports = baseKeysIn;
  10908. /***/ }),
  10909. /***/ "../../node_modules/lodash/_baseLt.js":
  10910. /*!**********************************************************!*\
  10911. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  10912. \**********************************************************/
  10913. /*! no static exports found */
  10914. /***/ (function(module, exports) {
  10915. /**
  10916. * The base implementation of `_.lt` which doesn't coerce arguments.
  10917. *
  10918. * @private
  10919. * @param {*} value The value to compare.
  10920. * @param {*} other The other value to compare.
  10921. * @returns {boolean} Returns `true` if `value` is less than `other`,
  10922. * else `false`.
  10923. */
  10924. function baseLt(value, other) {
  10925. return value < other;
  10926. }
  10927. module.exports = baseLt;
  10928. /***/ }),
  10929. /***/ "../../node_modules/lodash/_baseMap.js":
  10930. /*!***********************************************************!*\
  10931. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  10932. \***********************************************************/
  10933. /*! no static exports found */
  10934. /***/ (function(module, exports, __webpack_require__) {
  10935. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  10936. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  10937. /**
  10938. * The base implementation of `_.map` without support for iteratee shorthands.
  10939. *
  10940. * @private
  10941. * @param {Array|Object} collection The collection to iterate over.
  10942. * @param {Function} iteratee The function invoked per iteration.
  10943. * @returns {Array} Returns the new mapped array.
  10944. */
  10945. function baseMap(collection, iteratee) {
  10946. var index = -1,
  10947. result = isArrayLike(collection) ? Array(collection.length) : [];
  10948. baseEach(collection, function(value, key, collection) {
  10949. result[++index] = iteratee(value, key, collection);
  10950. });
  10951. return result;
  10952. }
  10953. module.exports = baseMap;
  10954. /***/ }),
  10955. /***/ "../../node_modules/lodash/_baseMatches.js":
  10956. /*!***************************************************************!*\
  10957. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  10958. \***************************************************************/
  10959. /*! no static exports found */
  10960. /***/ (function(module, exports, __webpack_require__) {
  10961. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  10962. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  10963. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  10964. /**
  10965. * The base implementation of `_.matches` which doesn't clone `source`.
  10966. *
  10967. * @private
  10968. * @param {Object} source The object of property values to match.
  10969. * @returns {Function} Returns the new spec function.
  10970. */
  10971. function baseMatches(source) {
  10972. var matchData = getMatchData(source);
  10973. if (matchData.length == 1 && matchData[0][2]) {
  10974. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  10975. }
  10976. return function(object) {
  10977. return object === source || baseIsMatch(object, source, matchData);
  10978. };
  10979. }
  10980. module.exports = baseMatches;
  10981. /***/ }),
  10982. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  10983. /*!***********************************************************************!*\
  10984. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  10985. \***********************************************************************/
  10986. /*! no static exports found */
  10987. /***/ (function(module, exports, __webpack_require__) {
  10988. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  10989. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  10990. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  10991. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  10992. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  10993. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  10994. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10995. /** Used to compose bitmasks for value comparisons. */
  10996. var COMPARE_PARTIAL_FLAG = 1,
  10997. COMPARE_UNORDERED_FLAG = 2;
  10998. /**
  10999. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  11000. *
  11001. * @private
  11002. * @param {string} path The path of the property to get.
  11003. * @param {*} srcValue The value to match.
  11004. * @returns {Function} Returns the new spec function.
  11005. */
  11006. function baseMatchesProperty(path, srcValue) {
  11007. if (isKey(path) && isStrictComparable(srcValue)) {
  11008. return matchesStrictComparable(toKey(path), srcValue);
  11009. }
  11010. return function(object) {
  11011. var objValue = get(object, path);
  11012. return (objValue === undefined && objValue === srcValue)
  11013. ? hasIn(object, path)
  11014. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  11015. };
  11016. }
  11017. module.exports = baseMatchesProperty;
  11018. /***/ }),
  11019. /***/ "../../node_modules/lodash/_baseMerge.js":
  11020. /*!*************************************************************!*\
  11021. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  11022. \*************************************************************/
  11023. /*! no static exports found */
  11024. /***/ (function(module, exports, __webpack_require__) {
  11025. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  11026. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11027. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  11028. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  11029. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11030. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  11031. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  11032. /**
  11033. * The base implementation of `_.merge` without support for multiple sources.
  11034. *
  11035. * @private
  11036. * @param {Object} object The destination object.
  11037. * @param {Object} source The source object.
  11038. * @param {number} srcIndex The index of `source`.
  11039. * @param {Function} [customizer] The function to customize merged values.
  11040. * @param {Object} [stack] Tracks traversed source values and their merged
  11041. * counterparts.
  11042. */
  11043. function baseMerge(object, source, srcIndex, customizer, stack) {
  11044. if (object === source) {
  11045. return;
  11046. }
  11047. baseFor(source, function(srcValue, key) {
  11048. stack || (stack = new Stack);
  11049. if (isObject(srcValue)) {
  11050. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  11051. }
  11052. else {
  11053. var newValue = customizer
  11054. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  11055. : undefined;
  11056. if (newValue === undefined) {
  11057. newValue = srcValue;
  11058. }
  11059. assignMergeValue(object, key, newValue);
  11060. }
  11061. }, keysIn);
  11062. }
  11063. module.exports = baseMerge;
  11064. /***/ }),
  11065. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  11066. /*!*****************************************************************!*\
  11067. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  11068. \*****************************************************************/
  11069. /*! no static exports found */
  11070. /***/ (function(module, exports, __webpack_require__) {
  11071. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11072. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  11073. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  11074. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  11075. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  11076. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  11077. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11078. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  11079. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11080. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  11081. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11082. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  11083. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  11084. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  11085. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  11086. /**
  11087. * A specialized version of `baseMerge` for arrays and objects which performs
  11088. * deep merges and tracks traversed objects enabling objects with circular
  11089. * references to be merged.
  11090. *
  11091. * @private
  11092. * @param {Object} object The destination object.
  11093. * @param {Object} source The source object.
  11094. * @param {string} key The key of the value to merge.
  11095. * @param {number} srcIndex The index of `source`.
  11096. * @param {Function} mergeFunc The function to merge values.
  11097. * @param {Function} [customizer] The function to customize assigned values.
  11098. * @param {Object} [stack] Tracks traversed source values and their merged
  11099. * counterparts.
  11100. */
  11101. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  11102. var objValue = safeGet(object, key),
  11103. srcValue = safeGet(source, key),
  11104. stacked = stack.get(srcValue);
  11105. if (stacked) {
  11106. assignMergeValue(object, key, stacked);
  11107. return;
  11108. }
  11109. var newValue = customizer
  11110. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  11111. : undefined;
  11112. var isCommon = newValue === undefined;
  11113. if (isCommon) {
  11114. var isArr = isArray(srcValue),
  11115. isBuff = !isArr && isBuffer(srcValue),
  11116. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  11117. newValue = srcValue;
  11118. if (isArr || isBuff || isTyped) {
  11119. if (isArray(objValue)) {
  11120. newValue = objValue;
  11121. }
  11122. else if (isArrayLikeObject(objValue)) {
  11123. newValue = copyArray(objValue);
  11124. }
  11125. else if (isBuff) {
  11126. isCommon = false;
  11127. newValue = cloneBuffer(srcValue, true);
  11128. }
  11129. else if (isTyped) {
  11130. isCommon = false;
  11131. newValue = cloneTypedArray(srcValue, true);
  11132. }
  11133. else {
  11134. newValue = [];
  11135. }
  11136. }
  11137. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  11138. newValue = objValue;
  11139. if (isArguments(objValue)) {
  11140. newValue = toPlainObject(objValue);
  11141. }
  11142. else if (!isObject(objValue) || isFunction(objValue)) {
  11143. newValue = initCloneObject(srcValue);
  11144. }
  11145. }
  11146. else {
  11147. isCommon = false;
  11148. }
  11149. }
  11150. if (isCommon) {
  11151. // Recursively merge objects and arrays (susceptible to call stack limits).
  11152. stack.set(srcValue, newValue);
  11153. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  11154. stack['delete'](srcValue);
  11155. }
  11156. assignMergeValue(object, key, newValue);
  11157. }
  11158. module.exports = baseMergeDeep;
  11159. /***/ }),
  11160. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  11161. /*!***************************************************************!*\
  11162. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  11163. \***************************************************************/
  11164. /*! no static exports found */
  11165. /***/ (function(module, exports, __webpack_require__) {
  11166. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11167. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  11168. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  11169. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  11170. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  11171. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  11172. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11173. /**
  11174. * The base implementation of `_.orderBy` without param guards.
  11175. *
  11176. * @private
  11177. * @param {Array|Object} collection The collection to iterate over.
  11178. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  11179. * @param {string[]} orders The sort orders of `iteratees`.
  11180. * @returns {Array} Returns the new sorted array.
  11181. */
  11182. function baseOrderBy(collection, iteratees, orders) {
  11183. var index = -1;
  11184. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  11185. var result = baseMap(collection, function(value, key, collection) {
  11186. var criteria = arrayMap(iteratees, function(iteratee) {
  11187. return iteratee(value);
  11188. });
  11189. return { 'criteria': criteria, 'index': ++index, 'value': value };
  11190. });
  11191. return baseSortBy(result, function(object, other) {
  11192. return compareMultiple(object, other, orders);
  11193. });
  11194. }
  11195. module.exports = baseOrderBy;
  11196. /***/ }),
  11197. /***/ "../../node_modules/lodash/_basePick.js":
  11198. /*!************************************************************!*\
  11199. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  11200. \************************************************************/
  11201. /*! no static exports found */
  11202. /***/ (function(module, exports, __webpack_require__) {
  11203. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  11204. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  11205. /**
  11206. * The base implementation of `_.pick` without support for individual
  11207. * property identifiers.
  11208. *
  11209. * @private
  11210. * @param {Object} object The source object.
  11211. * @param {string[]} paths The property paths to pick.
  11212. * @returns {Object} Returns the new object.
  11213. */
  11214. function basePick(object, paths) {
  11215. return basePickBy(object, paths, function(value, path) {
  11216. return hasIn(object, path);
  11217. });
  11218. }
  11219. module.exports = basePick;
  11220. /***/ }),
  11221. /***/ "../../node_modules/lodash/_basePickBy.js":
  11222. /*!**************************************************************!*\
  11223. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  11224. \**************************************************************/
  11225. /*! no static exports found */
  11226. /***/ (function(module, exports, __webpack_require__) {
  11227. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  11228. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  11229. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  11230. /**
  11231. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  11232. *
  11233. * @private
  11234. * @param {Object} object The source object.
  11235. * @param {string[]} paths The property paths to pick.
  11236. * @param {Function} predicate The function invoked per property.
  11237. * @returns {Object} Returns the new object.
  11238. */
  11239. function basePickBy(object, paths, predicate) {
  11240. var index = -1,
  11241. length = paths.length,
  11242. result = {};
  11243. while (++index < length) {
  11244. var path = paths[index],
  11245. value = baseGet(object, path);
  11246. if (predicate(value, path)) {
  11247. baseSet(result, castPath(path, object), value);
  11248. }
  11249. }
  11250. return result;
  11251. }
  11252. module.exports = basePickBy;
  11253. /***/ }),
  11254. /***/ "../../node_modules/lodash/_baseProperty.js":
  11255. /*!****************************************************************!*\
  11256. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  11257. \****************************************************************/
  11258. /*! no static exports found */
  11259. /***/ (function(module, exports) {
  11260. /**
  11261. * The base implementation of `_.property` without support for deep paths.
  11262. *
  11263. * @private
  11264. * @param {string} key The key of the property to get.
  11265. * @returns {Function} Returns the new accessor function.
  11266. */
  11267. function baseProperty(key) {
  11268. return function(object) {
  11269. return object == null ? undefined : object[key];
  11270. };
  11271. }
  11272. module.exports = baseProperty;
  11273. /***/ }),
  11274. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  11275. /*!********************************************************************!*\
  11276. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  11277. \********************************************************************/
  11278. /*! no static exports found */
  11279. /***/ (function(module, exports, __webpack_require__) {
  11280. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  11281. /**
  11282. * A specialized version of `baseProperty` which supports deep paths.
  11283. *
  11284. * @private
  11285. * @param {Array|string} path The path of the property to get.
  11286. * @returns {Function} Returns the new accessor function.
  11287. */
  11288. function basePropertyDeep(path) {
  11289. return function(object) {
  11290. return baseGet(object, path);
  11291. };
  11292. }
  11293. module.exports = basePropertyDeep;
  11294. /***/ }),
  11295. /***/ "../../node_modules/lodash/_baseRange.js":
  11296. /*!*************************************************************!*\
  11297. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  11298. \*************************************************************/
  11299. /*! no static exports found */
  11300. /***/ (function(module, exports) {
  11301. /* Built-in method references for those with the same name as other `lodash` methods. */
  11302. var nativeCeil = Math.ceil,
  11303. nativeMax = Math.max;
  11304. /**
  11305. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  11306. * coerce arguments.
  11307. *
  11308. * @private
  11309. * @param {number} start The start of the range.
  11310. * @param {number} end The end of the range.
  11311. * @param {number} step The value to increment or decrement by.
  11312. * @param {boolean} [fromRight] Specify iterating from right to left.
  11313. * @returns {Array} Returns the range of numbers.
  11314. */
  11315. function baseRange(start, end, step, fromRight) {
  11316. var index = -1,
  11317. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  11318. result = Array(length);
  11319. while (length--) {
  11320. result[fromRight ? length : ++index] = start;
  11321. start += step;
  11322. }
  11323. return result;
  11324. }
  11325. module.exports = baseRange;
  11326. /***/ }),
  11327. /***/ "../../node_modules/lodash/_baseReduce.js":
  11328. /*!**************************************************************!*\
  11329. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  11330. \**************************************************************/
  11331. /*! no static exports found */
  11332. /***/ (function(module, exports) {
  11333. /**
  11334. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  11335. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  11336. *
  11337. * @private
  11338. * @param {Array|Object} collection The collection to iterate over.
  11339. * @param {Function} iteratee The function invoked per iteration.
  11340. * @param {*} accumulator The initial value.
  11341. * @param {boolean} initAccum Specify using the first or last element of
  11342. * `collection` as the initial value.
  11343. * @param {Function} eachFunc The function to iterate over `collection`.
  11344. * @returns {*} Returns the accumulated value.
  11345. */
  11346. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  11347. eachFunc(collection, function(value, index, collection) {
  11348. accumulator = initAccum
  11349. ? (initAccum = false, value)
  11350. : iteratee(accumulator, value, index, collection);
  11351. });
  11352. return accumulator;
  11353. }
  11354. module.exports = baseReduce;
  11355. /***/ }),
  11356. /***/ "../../node_modules/lodash/_baseRest.js":
  11357. /*!************************************************************!*\
  11358. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  11359. \************************************************************/
  11360. /*! no static exports found */
  11361. /***/ (function(module, exports, __webpack_require__) {
  11362. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  11363. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  11364. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  11365. /**
  11366. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  11367. *
  11368. * @private
  11369. * @param {Function} func The function to apply a rest parameter to.
  11370. * @param {number} [start=func.length-1] The start position of the rest parameter.
  11371. * @returns {Function} Returns the new function.
  11372. */
  11373. function baseRest(func, start) {
  11374. return setToString(overRest(func, start, identity), func + '');
  11375. }
  11376. module.exports = baseRest;
  11377. /***/ }),
  11378. /***/ "../../node_modules/lodash/_baseSet.js":
  11379. /*!***********************************************************!*\
  11380. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  11381. \***********************************************************/
  11382. /*! no static exports found */
  11383. /***/ (function(module, exports, __webpack_require__) {
  11384. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11385. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  11386. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  11387. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11388. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11389. /**
  11390. * The base implementation of `_.set`.
  11391. *
  11392. * @private
  11393. * @param {Object} object The object to modify.
  11394. * @param {Array|string} path The path of the property to set.
  11395. * @param {*} value The value to set.
  11396. * @param {Function} [customizer] The function to customize path creation.
  11397. * @returns {Object} Returns `object`.
  11398. */
  11399. function baseSet(object, path, value, customizer) {
  11400. if (!isObject(object)) {
  11401. return object;
  11402. }
  11403. path = castPath(path, object);
  11404. var index = -1,
  11405. length = path.length,
  11406. lastIndex = length - 1,
  11407. nested = object;
  11408. while (nested != null && ++index < length) {
  11409. var key = toKey(path[index]),
  11410. newValue = value;
  11411. if (index != lastIndex) {
  11412. var objValue = nested[key];
  11413. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  11414. if (newValue === undefined) {
  11415. newValue = isObject(objValue)
  11416. ? objValue
  11417. : (isIndex(path[index + 1]) ? [] : {});
  11418. }
  11419. }
  11420. assignValue(nested, key, newValue);
  11421. nested = nested[key];
  11422. }
  11423. return object;
  11424. }
  11425. module.exports = baseSet;
  11426. /***/ }),
  11427. /***/ "../../node_modules/lodash/_baseSetToString.js":
  11428. /*!*******************************************************************!*\
  11429. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  11430. \*******************************************************************/
  11431. /*! no static exports found */
  11432. /***/ (function(module, exports, __webpack_require__) {
  11433. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  11434. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  11435. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11436. /**
  11437. * The base implementation of `setToString` without support for hot loop shorting.
  11438. *
  11439. * @private
  11440. * @param {Function} func The function to modify.
  11441. * @param {Function} string The `toString` result.
  11442. * @returns {Function} Returns `func`.
  11443. */
  11444. var baseSetToString = !defineProperty ? identity : function(func, string) {
  11445. return defineProperty(func, 'toString', {
  11446. 'configurable': true,
  11447. 'enumerable': false,
  11448. 'value': constant(string),
  11449. 'writable': true
  11450. });
  11451. };
  11452. module.exports = baseSetToString;
  11453. /***/ }),
  11454. /***/ "../../node_modules/lodash/_baseSortBy.js":
  11455. /*!**************************************************************!*\
  11456. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  11457. \**************************************************************/
  11458. /*! no static exports found */
  11459. /***/ (function(module, exports) {
  11460. /**
  11461. * The base implementation of `_.sortBy` which uses `comparer` to define the
  11462. * sort order of `array` and replaces criteria objects with their corresponding
  11463. * values.
  11464. *
  11465. * @private
  11466. * @param {Array} array The array to sort.
  11467. * @param {Function} comparer The function to define sort order.
  11468. * @returns {Array} Returns `array`.
  11469. */
  11470. function baseSortBy(array, comparer) {
  11471. var length = array.length;
  11472. array.sort(comparer);
  11473. while (length--) {
  11474. array[length] = array[length].value;
  11475. }
  11476. return array;
  11477. }
  11478. module.exports = baseSortBy;
  11479. /***/ }),
  11480. /***/ "../../node_modules/lodash/_baseTimes.js":
  11481. /*!*************************************************************!*\
  11482. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  11483. \*************************************************************/
  11484. /*! no static exports found */
  11485. /***/ (function(module, exports) {
  11486. /**
  11487. * The base implementation of `_.times` without support for iteratee shorthands
  11488. * or max array length checks.
  11489. *
  11490. * @private
  11491. * @param {number} n The number of times to invoke `iteratee`.
  11492. * @param {Function} iteratee The function invoked per iteration.
  11493. * @returns {Array} Returns the array of results.
  11494. */
  11495. function baseTimes(n, iteratee) {
  11496. var index = -1,
  11497. result = Array(n);
  11498. while (++index < n) {
  11499. result[index] = iteratee(index);
  11500. }
  11501. return result;
  11502. }
  11503. module.exports = baseTimes;
  11504. /***/ }),
  11505. /***/ "../../node_modules/lodash/_baseToString.js":
  11506. /*!****************************************************************!*\
  11507. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  11508. \****************************************************************/
  11509. /*! no static exports found */
  11510. /***/ (function(module, exports, __webpack_require__) {
  11511. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11512. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11513. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11514. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11515. /** Used as references for various `Number` constants. */
  11516. var INFINITY = 1 / 0;
  11517. /** Used to convert symbols to primitives and strings. */
  11518. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11519. symbolToString = symbolProto ? symbolProto.toString : undefined;
  11520. /**
  11521. * The base implementation of `_.toString` which doesn't convert nullish
  11522. * values to empty strings.
  11523. *
  11524. * @private
  11525. * @param {*} value The value to process.
  11526. * @returns {string} Returns the string.
  11527. */
  11528. function baseToString(value) {
  11529. // Exit early for strings to avoid a performance hit in some environments.
  11530. if (typeof value == 'string') {
  11531. return value;
  11532. }
  11533. if (isArray(value)) {
  11534. // Recursively convert values (susceptible to call stack limits).
  11535. return arrayMap(value, baseToString) + '';
  11536. }
  11537. if (isSymbol(value)) {
  11538. return symbolToString ? symbolToString.call(value) : '';
  11539. }
  11540. var result = (value + '');
  11541. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11542. }
  11543. module.exports = baseToString;
  11544. /***/ }),
  11545. /***/ "../../node_modules/lodash/_baseUnary.js":
  11546. /*!*************************************************************!*\
  11547. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  11548. \*************************************************************/
  11549. /*! no static exports found */
  11550. /***/ (function(module, exports) {
  11551. /**
  11552. * The base implementation of `_.unary` without support for storing metadata.
  11553. *
  11554. * @private
  11555. * @param {Function} func The function to cap arguments for.
  11556. * @returns {Function} Returns the new capped function.
  11557. */
  11558. function baseUnary(func) {
  11559. return function(value) {
  11560. return func(value);
  11561. };
  11562. }
  11563. module.exports = baseUnary;
  11564. /***/ }),
  11565. /***/ "../../node_modules/lodash/_baseUniq.js":
  11566. /*!************************************************************!*\
  11567. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  11568. \************************************************************/
  11569. /*! no static exports found */
  11570. /***/ (function(module, exports, __webpack_require__) {
  11571. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11572. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  11573. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  11574. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  11575. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  11576. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11577. /** Used as the size to enable large array optimizations. */
  11578. var LARGE_ARRAY_SIZE = 200;
  11579. /**
  11580. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  11581. *
  11582. * @private
  11583. * @param {Array} array The array to inspect.
  11584. * @param {Function} [iteratee] The iteratee invoked per element.
  11585. * @param {Function} [comparator] The comparator invoked per element.
  11586. * @returns {Array} Returns the new duplicate free array.
  11587. */
  11588. function baseUniq(array, iteratee, comparator) {
  11589. var index = -1,
  11590. includes = arrayIncludes,
  11591. length = array.length,
  11592. isCommon = true,
  11593. result = [],
  11594. seen = result;
  11595. if (comparator) {
  11596. isCommon = false;
  11597. includes = arrayIncludesWith;
  11598. }
  11599. else if (length >= LARGE_ARRAY_SIZE) {
  11600. var set = iteratee ? null : createSet(array);
  11601. if (set) {
  11602. return setToArray(set);
  11603. }
  11604. isCommon = false;
  11605. includes = cacheHas;
  11606. seen = new SetCache;
  11607. }
  11608. else {
  11609. seen = iteratee ? [] : result;
  11610. }
  11611. outer:
  11612. while (++index < length) {
  11613. var value = array[index],
  11614. computed = iteratee ? iteratee(value) : value;
  11615. value = (comparator || value !== 0) ? value : 0;
  11616. if (isCommon && computed === computed) {
  11617. var seenIndex = seen.length;
  11618. while (seenIndex--) {
  11619. if (seen[seenIndex] === computed) {
  11620. continue outer;
  11621. }
  11622. }
  11623. if (iteratee) {
  11624. seen.push(computed);
  11625. }
  11626. result.push(value);
  11627. }
  11628. else if (!includes(seen, computed, comparator)) {
  11629. if (seen !== result) {
  11630. seen.push(computed);
  11631. }
  11632. result.push(value);
  11633. }
  11634. }
  11635. return result;
  11636. }
  11637. module.exports = baseUniq;
  11638. /***/ }),
  11639. /***/ "../../node_modules/lodash/_baseValues.js":
  11640. /*!**************************************************************!*\
  11641. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  11642. \**************************************************************/
  11643. /*! no static exports found */
  11644. /***/ (function(module, exports, __webpack_require__) {
  11645. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  11646. /**
  11647. * The base implementation of `_.values` and `_.valuesIn` which creates an
  11648. * array of `object` property values corresponding to the property names
  11649. * of `props`.
  11650. *
  11651. * @private
  11652. * @param {Object} object The object to query.
  11653. * @param {Array} props The property names to get values for.
  11654. * @returns {Object} Returns the array of property values.
  11655. */
  11656. function baseValues(object, props) {
  11657. return arrayMap(props, function(key) {
  11658. return object[key];
  11659. });
  11660. }
  11661. module.exports = baseValues;
  11662. /***/ }),
  11663. /***/ "../../node_modules/lodash/_baseZipObject.js":
  11664. /*!*****************************************************************!*\
  11665. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  11666. \*****************************************************************/
  11667. /*! no static exports found */
  11668. /***/ (function(module, exports) {
  11669. /**
  11670. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  11671. *
  11672. * @private
  11673. * @param {Array} props The property identifiers.
  11674. * @param {Array} values The property values.
  11675. * @param {Function} assignFunc The function to assign values.
  11676. * @returns {Object} Returns the new object.
  11677. */
  11678. function baseZipObject(props, values, assignFunc) {
  11679. var index = -1,
  11680. length = props.length,
  11681. valsLength = values.length,
  11682. result = {};
  11683. while (++index < length) {
  11684. var value = index < valsLength ? values[index] : undefined;
  11685. assignFunc(result, props[index], value);
  11686. }
  11687. return result;
  11688. }
  11689. module.exports = baseZipObject;
  11690. /***/ }),
  11691. /***/ "../../node_modules/lodash/_cacheHas.js":
  11692. /*!************************************************************!*\
  11693. !*** C:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  11694. \************************************************************/
  11695. /*! no static exports found */
  11696. /***/ (function(module, exports) {
  11697. /**
  11698. * Checks if a `cache` value for `key` exists.
  11699. *
  11700. * @private
  11701. * @param {Object} cache The cache to query.
  11702. * @param {string} key The key of the entry to check.
  11703. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11704. */
  11705. function cacheHas(cache, key) {
  11706. return cache.has(key);
  11707. }
  11708. module.exports = cacheHas;
  11709. /***/ }),
  11710. /***/ "../../node_modules/lodash/_castFunction.js":
  11711. /*!****************************************************************!*\
  11712. !*** C:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  11713. \****************************************************************/
  11714. /*! no static exports found */
  11715. /***/ (function(module, exports, __webpack_require__) {
  11716. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11717. /**
  11718. * Casts `value` to `identity` if it's not a function.
  11719. *
  11720. * @private
  11721. * @param {*} value The value to inspect.
  11722. * @returns {Function} Returns cast function.
  11723. */
  11724. function castFunction(value) {
  11725. return typeof value == 'function' ? value : identity;
  11726. }
  11727. module.exports = castFunction;
  11728. /***/ }),
  11729. /***/ "../../node_modules/lodash/_castPath.js":
  11730. /*!************************************************************!*\
  11731. !*** C:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  11732. \************************************************************/
  11733. /*! no static exports found */
  11734. /***/ (function(module, exports, __webpack_require__) {
  11735. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11736. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11737. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  11738. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  11739. /**
  11740. * Casts `value` to a path array if it's not one.
  11741. *
  11742. * @private
  11743. * @param {*} value The value to inspect.
  11744. * @param {Object} [object] The object to query keys on.
  11745. * @returns {Array} Returns the cast property path array.
  11746. */
  11747. function castPath(value, object) {
  11748. if (isArray(value)) {
  11749. return value;
  11750. }
  11751. return isKey(value, object) ? [value] : stringToPath(toString(value));
  11752. }
  11753. module.exports = castPath;
  11754. /***/ }),
  11755. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  11756. /*!********************************************************************!*\
  11757. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  11758. \********************************************************************/
  11759. /*! no static exports found */
  11760. /***/ (function(module, exports, __webpack_require__) {
  11761. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  11762. /**
  11763. * Creates a clone of `arrayBuffer`.
  11764. *
  11765. * @private
  11766. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11767. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11768. */
  11769. function cloneArrayBuffer(arrayBuffer) {
  11770. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11771. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11772. return result;
  11773. }
  11774. module.exports = cloneArrayBuffer;
  11775. /***/ }),
  11776. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  11777. /*!***************************************************************!*\
  11778. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  11779. \***************************************************************/
  11780. /*! no static exports found */
  11781. /***/ (function(module, exports, __webpack_require__) {
  11782. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11783. /** Detect free variable `exports`. */
  11784. var freeExports = true && exports && !exports.nodeType && exports;
  11785. /** Detect free variable `module`. */
  11786. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  11787. /** Detect the popular CommonJS extension `module.exports`. */
  11788. var moduleExports = freeModule && freeModule.exports === freeExports;
  11789. /** Built-in value references. */
  11790. var Buffer = moduleExports ? root.Buffer : undefined,
  11791. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  11792. /**
  11793. * Creates a clone of `buffer`.
  11794. *
  11795. * @private
  11796. * @param {Buffer} buffer The buffer to clone.
  11797. * @param {boolean} [isDeep] Specify a deep clone.
  11798. * @returns {Buffer} Returns the cloned buffer.
  11799. */
  11800. function cloneBuffer(buffer, isDeep) {
  11801. if (isDeep) {
  11802. return buffer.slice();
  11803. }
  11804. var length = buffer.length,
  11805. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  11806. buffer.copy(result);
  11807. return result;
  11808. }
  11809. module.exports = cloneBuffer;
  11810. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  11811. /***/ }),
  11812. /***/ "../../node_modules/lodash/_cloneDataView.js":
  11813. /*!*****************************************************************!*\
  11814. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  11815. \*****************************************************************/
  11816. /*! no static exports found */
  11817. /***/ (function(module, exports, __webpack_require__) {
  11818. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11819. /**
  11820. * Creates a clone of `dataView`.
  11821. *
  11822. * @private
  11823. * @param {Object} dataView The data view to clone.
  11824. * @param {boolean} [isDeep] Specify a deep clone.
  11825. * @returns {Object} Returns the cloned data view.
  11826. */
  11827. function cloneDataView(dataView, isDeep) {
  11828. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11829. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11830. }
  11831. module.exports = cloneDataView;
  11832. /***/ }),
  11833. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  11834. /*!***************************************************************!*\
  11835. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  11836. \***************************************************************/
  11837. /*! no static exports found */
  11838. /***/ (function(module, exports) {
  11839. /** Used to match `RegExp` flags from their coerced string values. */
  11840. var reFlags = /\w*$/;
  11841. /**
  11842. * Creates a clone of `regexp`.
  11843. *
  11844. * @private
  11845. * @param {Object} regexp The regexp to clone.
  11846. * @returns {Object} Returns the cloned regexp.
  11847. */
  11848. function cloneRegExp(regexp) {
  11849. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11850. result.lastIndex = regexp.lastIndex;
  11851. return result;
  11852. }
  11853. module.exports = cloneRegExp;
  11854. /***/ }),
  11855. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  11856. /*!***************************************************************!*\
  11857. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  11858. \***************************************************************/
  11859. /*! no static exports found */
  11860. /***/ (function(module, exports, __webpack_require__) {
  11861. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  11862. /** Used to convert symbols to primitives and strings. */
  11863. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11864. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11865. /**
  11866. * Creates a clone of the `symbol` object.
  11867. *
  11868. * @private
  11869. * @param {Object} symbol The symbol object to clone.
  11870. * @returns {Object} Returns the cloned symbol object.
  11871. */
  11872. function cloneSymbol(symbol) {
  11873. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11874. }
  11875. module.exports = cloneSymbol;
  11876. /***/ }),
  11877. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  11878. /*!*******************************************************************!*\
  11879. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  11880. \*******************************************************************/
  11881. /*! no static exports found */
  11882. /***/ (function(module, exports, __webpack_require__) {
  11883. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11884. /**
  11885. * Creates a clone of `typedArray`.
  11886. *
  11887. * @private
  11888. * @param {Object} typedArray The typed array to clone.
  11889. * @param {boolean} [isDeep] Specify a deep clone.
  11890. * @returns {Object} Returns the cloned typed array.
  11891. */
  11892. function cloneTypedArray(typedArray, isDeep) {
  11893. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11894. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11895. }
  11896. module.exports = cloneTypedArray;
  11897. /***/ }),
  11898. /***/ "../../node_modules/lodash/_compareAscending.js":
  11899. /*!********************************************************************!*\
  11900. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  11901. \********************************************************************/
  11902. /*! no static exports found */
  11903. /***/ (function(module, exports, __webpack_require__) {
  11904. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11905. /**
  11906. * Compares values to sort them in ascending order.
  11907. *
  11908. * @private
  11909. * @param {*} value The value to compare.
  11910. * @param {*} other The other value to compare.
  11911. * @returns {number} Returns the sort order indicator for `value`.
  11912. */
  11913. function compareAscending(value, other) {
  11914. if (value !== other) {
  11915. var valIsDefined = value !== undefined,
  11916. valIsNull = value === null,
  11917. valIsReflexive = value === value,
  11918. valIsSymbol = isSymbol(value);
  11919. var othIsDefined = other !== undefined,
  11920. othIsNull = other === null,
  11921. othIsReflexive = other === other,
  11922. othIsSymbol = isSymbol(other);
  11923. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  11924. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  11925. (valIsNull && othIsDefined && othIsReflexive) ||
  11926. (!valIsDefined && othIsReflexive) ||
  11927. !valIsReflexive) {
  11928. return 1;
  11929. }
  11930. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  11931. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  11932. (othIsNull && valIsDefined && valIsReflexive) ||
  11933. (!othIsDefined && valIsReflexive) ||
  11934. !othIsReflexive) {
  11935. return -1;
  11936. }
  11937. }
  11938. return 0;
  11939. }
  11940. module.exports = compareAscending;
  11941. /***/ }),
  11942. /***/ "../../node_modules/lodash/_compareMultiple.js":
  11943. /*!*******************************************************************!*\
  11944. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  11945. \*******************************************************************/
  11946. /*! no static exports found */
  11947. /***/ (function(module, exports, __webpack_require__) {
  11948. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  11949. /**
  11950. * Used by `_.orderBy` to compare multiple properties of a value to another
  11951. * and stable sort them.
  11952. *
  11953. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  11954. * specify an order of "desc" for descending or "asc" for ascending sort order
  11955. * of corresponding values.
  11956. *
  11957. * @private
  11958. * @param {Object} object The object to compare.
  11959. * @param {Object} other The other object to compare.
  11960. * @param {boolean[]|string[]} orders The order to sort by for each property.
  11961. * @returns {number} Returns the sort order indicator for `object`.
  11962. */
  11963. function compareMultiple(object, other, orders) {
  11964. var index = -1,
  11965. objCriteria = object.criteria,
  11966. othCriteria = other.criteria,
  11967. length = objCriteria.length,
  11968. ordersLength = orders.length;
  11969. while (++index < length) {
  11970. var result = compareAscending(objCriteria[index], othCriteria[index]);
  11971. if (result) {
  11972. if (index >= ordersLength) {
  11973. return result;
  11974. }
  11975. var order = orders[index];
  11976. return result * (order == 'desc' ? -1 : 1);
  11977. }
  11978. }
  11979. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  11980. // that causes it, under certain circumstances, to provide the same value for
  11981. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  11982. // for more details.
  11983. //
  11984. // This also ensures a stable sort in V8 and other engines.
  11985. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  11986. return object.index - other.index;
  11987. }
  11988. module.exports = compareMultiple;
  11989. /***/ }),
  11990. /***/ "../../node_modules/lodash/_copyArray.js":
  11991. /*!*************************************************************!*\
  11992. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  11993. \*************************************************************/
  11994. /*! no static exports found */
  11995. /***/ (function(module, exports) {
  11996. /**
  11997. * Copies the values of `source` to `array`.
  11998. *
  11999. * @private
  12000. * @param {Array} source The array to copy values from.
  12001. * @param {Array} [array=[]] The array to copy values to.
  12002. * @returns {Array} Returns `array`.
  12003. */
  12004. function copyArray(source, array) {
  12005. var index = -1,
  12006. length = source.length;
  12007. array || (array = Array(length));
  12008. while (++index < length) {
  12009. array[index] = source[index];
  12010. }
  12011. return array;
  12012. }
  12013. module.exports = copyArray;
  12014. /***/ }),
  12015. /***/ "../../node_modules/lodash/_copyObject.js":
  12016. /*!**************************************************************!*\
  12017. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  12018. \**************************************************************/
  12019. /*! no static exports found */
  12020. /***/ (function(module, exports, __webpack_require__) {
  12021. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  12022. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  12023. /**
  12024. * Copies properties of `source` to `object`.
  12025. *
  12026. * @private
  12027. * @param {Object} source The object to copy properties from.
  12028. * @param {Array} props The property identifiers to copy.
  12029. * @param {Object} [object={}] The object to copy properties to.
  12030. * @param {Function} [customizer] The function to customize copied values.
  12031. * @returns {Object} Returns `object`.
  12032. */
  12033. function copyObject(source, props, object, customizer) {
  12034. var isNew = !object;
  12035. object || (object = {});
  12036. var index = -1,
  12037. length = props.length;
  12038. while (++index < length) {
  12039. var key = props[index];
  12040. var newValue = customizer
  12041. ? customizer(object[key], source[key], key, object, source)
  12042. : undefined;
  12043. if (newValue === undefined) {
  12044. newValue = source[key];
  12045. }
  12046. if (isNew) {
  12047. baseAssignValue(object, key, newValue);
  12048. } else {
  12049. assignValue(object, key, newValue);
  12050. }
  12051. }
  12052. return object;
  12053. }
  12054. module.exports = copyObject;
  12055. /***/ }),
  12056. /***/ "../../node_modules/lodash/_copySymbols.js":
  12057. /*!***************************************************************!*\
  12058. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  12059. \***************************************************************/
  12060. /*! no static exports found */
  12061. /***/ (function(module, exports, __webpack_require__) {
  12062. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12063. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  12064. /**
  12065. * Copies own symbols of `source` to `object`.
  12066. *
  12067. * @private
  12068. * @param {Object} source The object to copy symbols from.
  12069. * @param {Object} [object={}] The object to copy symbols to.
  12070. * @returns {Object} Returns `object`.
  12071. */
  12072. function copySymbols(source, object) {
  12073. return copyObject(source, getSymbols(source), object);
  12074. }
  12075. module.exports = copySymbols;
  12076. /***/ }),
  12077. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  12078. /*!*****************************************************************!*\
  12079. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  12080. \*****************************************************************/
  12081. /*! no static exports found */
  12082. /***/ (function(module, exports, __webpack_require__) {
  12083. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12084. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  12085. /**
  12086. * Copies own and inherited symbols of `source` to `object`.
  12087. *
  12088. * @private
  12089. * @param {Object} source The object to copy symbols from.
  12090. * @param {Object} [object={}] The object to copy symbols to.
  12091. * @returns {Object} Returns `object`.
  12092. */
  12093. function copySymbolsIn(source, object) {
  12094. return copyObject(source, getSymbolsIn(source), object);
  12095. }
  12096. module.exports = copySymbolsIn;
  12097. /***/ }),
  12098. /***/ "../../node_modules/lodash/_coreJsData.js":
  12099. /*!**************************************************************!*\
  12100. !*** C:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  12101. \**************************************************************/
  12102. /*! no static exports found */
  12103. /***/ (function(module, exports, __webpack_require__) {
  12104. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  12105. /** Used to detect overreaching core-js shims. */
  12106. var coreJsData = root['__core-js_shared__'];
  12107. module.exports = coreJsData;
  12108. /***/ }),
  12109. /***/ "../../node_modules/lodash/_createAssigner.js":
  12110. /*!******************************************************************!*\
  12111. !*** C:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  12112. \******************************************************************/
  12113. /*! no static exports found */
  12114. /***/ (function(module, exports, __webpack_require__) {
  12115. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  12116. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  12117. /**
  12118. * Creates a function like `_.assign`.
  12119. *
  12120. * @private
  12121. * @param {Function} assigner The function to assign values.
  12122. * @returns {Function} Returns the new assigner function.
  12123. */
  12124. function createAssigner(assigner) {
  12125. return baseRest(function(object, sources) {
  12126. var index = -1,
  12127. length = sources.length,
  12128. customizer = length > 1 ? sources[length - 1] : undefined,
  12129. guard = length > 2 ? sources[2] : undefined;
  12130. customizer = (assigner.length > 3 && typeof customizer == 'function')
  12131. ? (length--, customizer)
  12132. : undefined;
  12133. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  12134. customizer = length < 3 ? undefined : customizer;
  12135. length = 1;
  12136. }
  12137. object = Object(object);
  12138. while (++index < length) {
  12139. var source = sources[index];
  12140. if (source) {
  12141. assigner(object, source, index, customizer);
  12142. }
  12143. }
  12144. return object;
  12145. });
  12146. }
  12147. module.exports = createAssigner;
  12148. /***/ }),
  12149. /***/ "../../node_modules/lodash/_createBaseEach.js":
  12150. /*!******************************************************************!*\
  12151. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  12152. \******************************************************************/
  12153. /*! no static exports found */
  12154. /***/ (function(module, exports, __webpack_require__) {
  12155. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  12156. /**
  12157. * Creates a `baseEach` or `baseEachRight` function.
  12158. *
  12159. * @private
  12160. * @param {Function} eachFunc The function to iterate over a collection.
  12161. * @param {boolean} [fromRight] Specify iterating from right to left.
  12162. * @returns {Function} Returns the new base function.
  12163. */
  12164. function createBaseEach(eachFunc, fromRight) {
  12165. return function(collection, iteratee) {
  12166. if (collection == null) {
  12167. return collection;
  12168. }
  12169. if (!isArrayLike(collection)) {
  12170. return eachFunc(collection, iteratee);
  12171. }
  12172. var length = collection.length,
  12173. index = fromRight ? length : -1,
  12174. iterable = Object(collection);
  12175. while ((fromRight ? index-- : ++index < length)) {
  12176. if (iteratee(iterable[index], index, iterable) === false) {
  12177. break;
  12178. }
  12179. }
  12180. return collection;
  12181. };
  12182. }
  12183. module.exports = createBaseEach;
  12184. /***/ }),
  12185. /***/ "../../node_modules/lodash/_createBaseFor.js":
  12186. /*!*****************************************************************!*\
  12187. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  12188. \*****************************************************************/
  12189. /*! no static exports found */
  12190. /***/ (function(module, exports) {
  12191. /**
  12192. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  12193. *
  12194. * @private
  12195. * @param {boolean} [fromRight] Specify iterating from right to left.
  12196. * @returns {Function} Returns the new base function.
  12197. */
  12198. function createBaseFor(fromRight) {
  12199. return function(object, iteratee, keysFunc) {
  12200. var index = -1,
  12201. iterable = Object(object),
  12202. props = keysFunc(object),
  12203. length = props.length;
  12204. while (length--) {
  12205. var key = props[fromRight ? length : ++index];
  12206. if (iteratee(iterable[key], key, iterable) === false) {
  12207. break;
  12208. }
  12209. }
  12210. return object;
  12211. };
  12212. }
  12213. module.exports = createBaseFor;
  12214. /***/ }),
  12215. /***/ "../../node_modules/lodash/_createFind.js":
  12216. /*!**************************************************************!*\
  12217. !*** C:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  12218. \**************************************************************/
  12219. /*! no static exports found */
  12220. /***/ (function(module, exports, __webpack_require__) {
  12221. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  12222. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  12223. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12224. /**
  12225. * Creates a `_.find` or `_.findLast` function.
  12226. *
  12227. * @private
  12228. * @param {Function} findIndexFunc The function to find the collection index.
  12229. * @returns {Function} Returns the new find function.
  12230. */
  12231. function createFind(findIndexFunc) {
  12232. return function(collection, predicate, fromIndex) {
  12233. var iterable = Object(collection);
  12234. if (!isArrayLike(collection)) {
  12235. var iteratee = baseIteratee(predicate, 3);
  12236. collection = keys(collection);
  12237. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  12238. }
  12239. var index = findIndexFunc(collection, predicate, fromIndex);
  12240. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  12241. };
  12242. }
  12243. module.exports = createFind;
  12244. /***/ }),
  12245. /***/ "../../node_modules/lodash/_createRange.js":
  12246. /*!***************************************************************!*\
  12247. !*** C:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  12248. \***************************************************************/
  12249. /*! no static exports found */
  12250. /***/ (function(module, exports, __webpack_require__) {
  12251. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  12252. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  12253. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  12254. /**
  12255. * Creates a `_.range` or `_.rangeRight` function.
  12256. *
  12257. * @private
  12258. * @param {boolean} [fromRight] Specify iterating from right to left.
  12259. * @returns {Function} Returns the new range function.
  12260. */
  12261. function createRange(fromRight) {
  12262. return function(start, end, step) {
  12263. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  12264. end = step = undefined;
  12265. }
  12266. // Ensure the sign of `-0` is preserved.
  12267. start = toFinite(start);
  12268. if (end === undefined) {
  12269. end = start;
  12270. start = 0;
  12271. } else {
  12272. end = toFinite(end);
  12273. }
  12274. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  12275. return baseRange(start, end, step, fromRight);
  12276. };
  12277. }
  12278. module.exports = createRange;
  12279. /***/ }),
  12280. /***/ "../../node_modules/lodash/_createSet.js":
  12281. /*!*************************************************************!*\
  12282. !*** C:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  12283. \*************************************************************/
  12284. /*! no static exports found */
  12285. /***/ (function(module, exports, __webpack_require__) {
  12286. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12287. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  12288. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12289. /** Used as references for various `Number` constants. */
  12290. var INFINITY = 1 / 0;
  12291. /**
  12292. * Creates a set object of `values`.
  12293. *
  12294. * @private
  12295. * @param {Array} values The values to add to the set.
  12296. * @returns {Object} Returns the new set.
  12297. */
  12298. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  12299. return new Set(values);
  12300. };
  12301. module.exports = createSet;
  12302. /***/ }),
  12303. /***/ "../../node_modules/lodash/_defineProperty.js":
  12304. /*!******************************************************************!*\
  12305. !*** C:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  12306. \******************************************************************/
  12307. /*! no static exports found */
  12308. /***/ (function(module, exports, __webpack_require__) {
  12309. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  12310. var defineProperty = (function() {
  12311. try {
  12312. var func = getNative(Object, 'defineProperty');
  12313. func({}, '', {});
  12314. return func;
  12315. } catch (e) {}
  12316. }());
  12317. module.exports = defineProperty;
  12318. /***/ }),
  12319. /***/ "../../node_modules/lodash/_equalArrays.js":
  12320. /*!***************************************************************!*\
  12321. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  12322. \***************************************************************/
  12323. /*! no static exports found */
  12324. /***/ (function(module, exports, __webpack_require__) {
  12325. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  12326. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  12327. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  12328. /** Used to compose bitmasks for value comparisons. */
  12329. var COMPARE_PARTIAL_FLAG = 1,
  12330. COMPARE_UNORDERED_FLAG = 2;
  12331. /**
  12332. * A specialized version of `baseIsEqualDeep` for arrays with support for
  12333. * partial deep comparisons.
  12334. *
  12335. * @private
  12336. * @param {Array} array The array to compare.
  12337. * @param {Array} other The other array to compare.
  12338. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12339. * @param {Function} customizer The function to customize comparisons.
  12340. * @param {Function} equalFunc The function to determine equivalents of values.
  12341. * @param {Object} stack Tracks traversed `array` and `other` objects.
  12342. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  12343. */
  12344. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  12345. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12346. arrLength = array.length,
  12347. othLength = other.length;
  12348. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  12349. return false;
  12350. }
  12351. // Assume cyclic values are equal.
  12352. var stacked = stack.get(array);
  12353. if (stacked && stack.get(other)) {
  12354. return stacked == other;
  12355. }
  12356. var index = -1,
  12357. result = true,
  12358. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  12359. stack.set(array, other);
  12360. stack.set(other, array);
  12361. // Ignore non-index properties.
  12362. while (++index < arrLength) {
  12363. var arrValue = array[index],
  12364. othValue = other[index];
  12365. if (customizer) {
  12366. var compared = isPartial
  12367. ? customizer(othValue, arrValue, index, other, array, stack)
  12368. : customizer(arrValue, othValue, index, array, other, stack);
  12369. }
  12370. if (compared !== undefined) {
  12371. if (compared) {
  12372. continue;
  12373. }
  12374. result = false;
  12375. break;
  12376. }
  12377. // Recursively compare arrays (susceptible to call stack limits).
  12378. if (seen) {
  12379. if (!arraySome(other, function(othValue, othIndex) {
  12380. if (!cacheHas(seen, othIndex) &&
  12381. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  12382. return seen.push(othIndex);
  12383. }
  12384. })) {
  12385. result = false;
  12386. break;
  12387. }
  12388. } else if (!(
  12389. arrValue === othValue ||
  12390. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  12391. )) {
  12392. result = false;
  12393. break;
  12394. }
  12395. }
  12396. stack['delete'](array);
  12397. stack['delete'](other);
  12398. return result;
  12399. }
  12400. module.exports = equalArrays;
  12401. /***/ }),
  12402. /***/ "../../node_modules/lodash/_equalByTag.js":
  12403. /*!**************************************************************!*\
  12404. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  12405. \**************************************************************/
  12406. /*! no static exports found */
  12407. /***/ (function(module, exports, __webpack_require__) {
  12408. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12409. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  12410. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12411. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12412. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  12413. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12414. /** Used to compose bitmasks for value comparisons. */
  12415. var COMPARE_PARTIAL_FLAG = 1,
  12416. COMPARE_UNORDERED_FLAG = 2;
  12417. /** `Object#toString` result references. */
  12418. var boolTag = '[object Boolean]',
  12419. dateTag = '[object Date]',
  12420. errorTag = '[object Error]',
  12421. mapTag = '[object Map]',
  12422. numberTag = '[object Number]',
  12423. regexpTag = '[object RegExp]',
  12424. setTag = '[object Set]',
  12425. stringTag = '[object String]',
  12426. symbolTag = '[object Symbol]';
  12427. var arrayBufferTag = '[object ArrayBuffer]',
  12428. dataViewTag = '[object DataView]';
  12429. /** Used to convert symbols to primitives and strings. */
  12430. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12431. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  12432. /**
  12433. * A specialized version of `baseIsEqualDeep` for comparing objects of
  12434. * the same `toStringTag`.
  12435. *
  12436. * **Note:** This function only supports comparing values with tags of
  12437. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12438. *
  12439. * @private
  12440. * @param {Object} object The object to compare.
  12441. * @param {Object} other The other object to compare.
  12442. * @param {string} tag The `toStringTag` of the objects to compare.
  12443. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12444. * @param {Function} customizer The function to customize comparisons.
  12445. * @param {Function} equalFunc The function to determine equivalents of values.
  12446. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12447. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12448. */
  12449. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  12450. switch (tag) {
  12451. case dataViewTag:
  12452. if ((object.byteLength != other.byteLength) ||
  12453. (object.byteOffset != other.byteOffset)) {
  12454. return false;
  12455. }
  12456. object = object.buffer;
  12457. other = other.buffer;
  12458. case arrayBufferTag:
  12459. if ((object.byteLength != other.byteLength) ||
  12460. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  12461. return false;
  12462. }
  12463. return true;
  12464. case boolTag:
  12465. case dateTag:
  12466. case numberTag:
  12467. // Coerce booleans to `1` or `0` and dates to milliseconds.
  12468. // Invalid dates are coerced to `NaN`.
  12469. return eq(+object, +other);
  12470. case errorTag:
  12471. return object.name == other.name && object.message == other.message;
  12472. case regexpTag:
  12473. case stringTag:
  12474. // Coerce regexes to strings and treat strings, primitives and objects,
  12475. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  12476. // for more details.
  12477. return object == (other + '');
  12478. case mapTag:
  12479. var convert = mapToArray;
  12480. case setTag:
  12481. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  12482. convert || (convert = setToArray);
  12483. if (object.size != other.size && !isPartial) {
  12484. return false;
  12485. }
  12486. // Assume cyclic values are equal.
  12487. var stacked = stack.get(object);
  12488. if (stacked) {
  12489. return stacked == other;
  12490. }
  12491. bitmask |= COMPARE_UNORDERED_FLAG;
  12492. // Recursively compare objects (susceptible to call stack limits).
  12493. stack.set(object, other);
  12494. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  12495. stack['delete'](object);
  12496. return result;
  12497. case symbolTag:
  12498. if (symbolValueOf) {
  12499. return symbolValueOf.call(object) == symbolValueOf.call(other);
  12500. }
  12501. }
  12502. return false;
  12503. }
  12504. module.exports = equalByTag;
  12505. /***/ }),
  12506. /***/ "../../node_modules/lodash/_equalObjects.js":
  12507. /*!****************************************************************!*\
  12508. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  12509. \****************************************************************/
  12510. /*! no static exports found */
  12511. /***/ (function(module, exports, __webpack_require__) {
  12512. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  12513. /** Used to compose bitmasks for value comparisons. */
  12514. var COMPARE_PARTIAL_FLAG = 1;
  12515. /** Used for built-in method references. */
  12516. var objectProto = Object.prototype;
  12517. /** Used to check objects for own properties. */
  12518. var hasOwnProperty = objectProto.hasOwnProperty;
  12519. /**
  12520. * A specialized version of `baseIsEqualDeep` for objects with support for
  12521. * partial deep comparisons.
  12522. *
  12523. * @private
  12524. * @param {Object} object The object to compare.
  12525. * @param {Object} other The other object to compare.
  12526. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12527. * @param {Function} customizer The function to customize comparisons.
  12528. * @param {Function} equalFunc The function to determine equivalents of values.
  12529. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12530. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12531. */
  12532. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  12533. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12534. objProps = getAllKeys(object),
  12535. objLength = objProps.length,
  12536. othProps = getAllKeys(other),
  12537. othLength = othProps.length;
  12538. if (objLength != othLength && !isPartial) {
  12539. return false;
  12540. }
  12541. var index = objLength;
  12542. while (index--) {
  12543. var key = objProps[index];
  12544. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  12545. return false;
  12546. }
  12547. }
  12548. // Assume cyclic values are equal.
  12549. var stacked = stack.get(object);
  12550. if (stacked && stack.get(other)) {
  12551. return stacked == other;
  12552. }
  12553. var result = true;
  12554. stack.set(object, other);
  12555. stack.set(other, object);
  12556. var skipCtor = isPartial;
  12557. while (++index < objLength) {
  12558. key = objProps[index];
  12559. var objValue = object[key],
  12560. othValue = other[key];
  12561. if (customizer) {
  12562. var compared = isPartial
  12563. ? customizer(othValue, objValue, key, other, object, stack)
  12564. : customizer(objValue, othValue, key, object, other, stack);
  12565. }
  12566. // Recursively compare objects (susceptible to call stack limits).
  12567. if (!(compared === undefined
  12568. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  12569. : compared
  12570. )) {
  12571. result = false;
  12572. break;
  12573. }
  12574. skipCtor || (skipCtor = key == 'constructor');
  12575. }
  12576. if (result && !skipCtor) {
  12577. var objCtor = object.constructor,
  12578. othCtor = other.constructor;
  12579. // Non `Object` object instances with different constructors are not equal.
  12580. if (objCtor != othCtor &&
  12581. ('constructor' in object && 'constructor' in other) &&
  12582. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  12583. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  12584. result = false;
  12585. }
  12586. }
  12587. stack['delete'](object);
  12588. stack['delete'](other);
  12589. return result;
  12590. }
  12591. module.exports = equalObjects;
  12592. /***/ }),
  12593. /***/ "../../node_modules/lodash/_flatRest.js":
  12594. /*!************************************************************!*\
  12595. !*** C:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  12596. \************************************************************/
  12597. /*! no static exports found */
  12598. /***/ (function(module, exports, __webpack_require__) {
  12599. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  12600. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12601. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12602. /**
  12603. * A specialized version of `baseRest` which flattens the rest array.
  12604. *
  12605. * @private
  12606. * @param {Function} func The function to apply a rest parameter to.
  12607. * @returns {Function} Returns the new function.
  12608. */
  12609. function flatRest(func) {
  12610. return setToString(overRest(func, undefined, flatten), func + '');
  12611. }
  12612. module.exports = flatRest;
  12613. /***/ }),
  12614. /***/ "../../node_modules/lodash/_freeGlobal.js":
  12615. /*!**************************************************************!*\
  12616. !*** C:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  12617. \**************************************************************/
  12618. /*! no static exports found */
  12619. /***/ (function(module, exports, __webpack_require__) {
  12620. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  12621. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12622. module.exports = freeGlobal;
  12623. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  12624. /***/ }),
  12625. /***/ "../../node_modules/lodash/_getAllKeys.js":
  12626. /*!**************************************************************!*\
  12627. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  12628. \**************************************************************/
  12629. /*! no static exports found */
  12630. /***/ (function(module, exports, __webpack_require__) {
  12631. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12632. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12633. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12634. /**
  12635. * Creates an array of own enumerable property names and symbols of `object`.
  12636. *
  12637. * @private
  12638. * @param {Object} object The object to query.
  12639. * @returns {Array} Returns the array of property names and symbols.
  12640. */
  12641. function getAllKeys(object) {
  12642. return baseGetAllKeys(object, keys, getSymbols);
  12643. }
  12644. module.exports = getAllKeys;
  12645. /***/ }),
  12646. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  12647. /*!****************************************************************!*\
  12648. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  12649. \****************************************************************/
  12650. /*! no static exports found */
  12651. /***/ (function(module, exports, __webpack_require__) {
  12652. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12653. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  12654. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  12655. /**
  12656. * Creates an array of own and inherited enumerable property names and
  12657. * symbols of `object`.
  12658. *
  12659. * @private
  12660. * @param {Object} object The object to query.
  12661. * @returns {Array} Returns the array of property names and symbols.
  12662. */
  12663. function getAllKeysIn(object) {
  12664. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  12665. }
  12666. module.exports = getAllKeysIn;
  12667. /***/ }),
  12668. /***/ "../../node_modules/lodash/_getMapData.js":
  12669. /*!**************************************************************!*\
  12670. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  12671. \**************************************************************/
  12672. /*! no static exports found */
  12673. /***/ (function(module, exports, __webpack_require__) {
  12674. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  12675. /**
  12676. * Gets the data for `map`.
  12677. *
  12678. * @private
  12679. * @param {Object} map The map to query.
  12680. * @param {string} key The reference key.
  12681. * @returns {*} Returns the map data.
  12682. */
  12683. function getMapData(map, key) {
  12684. var data = map.__data__;
  12685. return isKeyable(key)
  12686. ? data[typeof key == 'string' ? 'string' : 'hash']
  12687. : data.map;
  12688. }
  12689. module.exports = getMapData;
  12690. /***/ }),
  12691. /***/ "../../node_modules/lodash/_getMatchData.js":
  12692. /*!****************************************************************!*\
  12693. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  12694. \****************************************************************/
  12695. /*! no static exports found */
  12696. /***/ (function(module, exports, __webpack_require__) {
  12697. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12698. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12699. /**
  12700. * Gets the property names, values, and compare flags of `object`.
  12701. *
  12702. * @private
  12703. * @param {Object} object The object to query.
  12704. * @returns {Array} Returns the match data of `object`.
  12705. */
  12706. function getMatchData(object) {
  12707. var result = keys(object),
  12708. length = result.length;
  12709. while (length--) {
  12710. var key = result[length],
  12711. value = object[key];
  12712. result[length] = [key, value, isStrictComparable(value)];
  12713. }
  12714. return result;
  12715. }
  12716. module.exports = getMatchData;
  12717. /***/ }),
  12718. /***/ "../../node_modules/lodash/_getNative.js":
  12719. /*!*************************************************************!*\
  12720. !*** C:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  12721. \*************************************************************/
  12722. /*! no static exports found */
  12723. /***/ (function(module, exports, __webpack_require__) {
  12724. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  12725. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  12726. /**
  12727. * Gets the native function at `key` of `object`.
  12728. *
  12729. * @private
  12730. * @param {Object} object The object to query.
  12731. * @param {string} key The key of the method to get.
  12732. * @returns {*} Returns the function if it's native, else `undefined`.
  12733. */
  12734. function getNative(object, key) {
  12735. var value = getValue(object, key);
  12736. return baseIsNative(value) ? value : undefined;
  12737. }
  12738. module.exports = getNative;
  12739. /***/ }),
  12740. /***/ "../../node_modules/lodash/_getPrototype.js":
  12741. /*!****************************************************************!*\
  12742. !*** C:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  12743. \****************************************************************/
  12744. /*! no static exports found */
  12745. /***/ (function(module, exports, __webpack_require__) {
  12746. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  12747. /** Built-in value references. */
  12748. var getPrototype = overArg(Object.getPrototypeOf, Object);
  12749. module.exports = getPrototype;
  12750. /***/ }),
  12751. /***/ "../../node_modules/lodash/_getRawTag.js":
  12752. /*!*************************************************************!*\
  12753. !*** C:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  12754. \*************************************************************/
  12755. /*! no static exports found */
  12756. /***/ (function(module, exports, __webpack_require__) {
  12757. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  12758. /** Used for built-in method references. */
  12759. var objectProto = Object.prototype;
  12760. /** Used to check objects for own properties. */
  12761. var hasOwnProperty = objectProto.hasOwnProperty;
  12762. /**
  12763. * Used to resolve the
  12764. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12765. * of values.
  12766. */
  12767. var nativeObjectToString = objectProto.toString;
  12768. /** Built-in value references. */
  12769. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12770. /**
  12771. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  12772. *
  12773. * @private
  12774. * @param {*} value The value to query.
  12775. * @returns {string} Returns the raw `toStringTag`.
  12776. */
  12777. function getRawTag(value) {
  12778. var isOwn = hasOwnProperty.call(value, symToStringTag),
  12779. tag = value[symToStringTag];
  12780. try {
  12781. value[symToStringTag] = undefined;
  12782. var unmasked = true;
  12783. } catch (e) {}
  12784. var result = nativeObjectToString.call(value);
  12785. if (unmasked) {
  12786. if (isOwn) {
  12787. value[symToStringTag] = tag;
  12788. } else {
  12789. delete value[symToStringTag];
  12790. }
  12791. }
  12792. return result;
  12793. }
  12794. module.exports = getRawTag;
  12795. /***/ }),
  12796. /***/ "../../node_modules/lodash/_getSymbols.js":
  12797. /*!**************************************************************!*\
  12798. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  12799. \**************************************************************/
  12800. /*! no static exports found */
  12801. /***/ (function(module, exports, __webpack_require__) {
  12802. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  12803. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12804. /** Used for built-in method references. */
  12805. var objectProto = Object.prototype;
  12806. /** Built-in value references. */
  12807. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  12808. /* Built-in method references for those with the same name as other `lodash` methods. */
  12809. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12810. /**
  12811. * Creates an array of the own enumerable symbols of `object`.
  12812. *
  12813. * @private
  12814. * @param {Object} object The object to query.
  12815. * @returns {Array} Returns the array of symbols.
  12816. */
  12817. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  12818. if (object == null) {
  12819. return [];
  12820. }
  12821. object = Object(object);
  12822. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  12823. return propertyIsEnumerable.call(object, symbol);
  12824. });
  12825. };
  12826. module.exports = getSymbols;
  12827. /***/ }),
  12828. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  12829. /*!****************************************************************!*\
  12830. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  12831. \****************************************************************/
  12832. /*! no static exports found */
  12833. /***/ (function(module, exports, __webpack_require__) {
  12834. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  12835. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12836. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12837. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12838. /* Built-in method references for those with the same name as other `lodash` methods. */
  12839. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12840. /**
  12841. * Creates an array of the own and inherited enumerable symbols of `object`.
  12842. *
  12843. * @private
  12844. * @param {Object} object The object to query.
  12845. * @returns {Array} Returns the array of symbols.
  12846. */
  12847. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  12848. var result = [];
  12849. while (object) {
  12850. arrayPush(result, getSymbols(object));
  12851. object = getPrototype(object);
  12852. }
  12853. return result;
  12854. };
  12855. module.exports = getSymbolsIn;
  12856. /***/ }),
  12857. /***/ "../../node_modules/lodash/_getTag.js":
  12858. /*!**********************************************************!*\
  12859. !*** C:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  12860. \**********************************************************/
  12861. /*! no static exports found */
  12862. /***/ (function(module, exports, __webpack_require__) {
  12863. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  12864. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  12865. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  12866. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12867. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  12868. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12869. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12870. /** `Object#toString` result references. */
  12871. var mapTag = '[object Map]',
  12872. objectTag = '[object Object]',
  12873. promiseTag = '[object Promise]',
  12874. setTag = '[object Set]',
  12875. weakMapTag = '[object WeakMap]';
  12876. var dataViewTag = '[object DataView]';
  12877. /** Used to detect maps, sets, and weakmaps. */
  12878. var dataViewCtorString = toSource(DataView),
  12879. mapCtorString = toSource(Map),
  12880. promiseCtorString = toSource(Promise),
  12881. setCtorString = toSource(Set),
  12882. weakMapCtorString = toSource(WeakMap);
  12883. /**
  12884. * Gets the `toStringTag` of `value`.
  12885. *
  12886. * @private
  12887. * @param {*} value The value to query.
  12888. * @returns {string} Returns the `toStringTag`.
  12889. */
  12890. var getTag = baseGetTag;
  12891. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  12892. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12893. (Map && getTag(new Map) != mapTag) ||
  12894. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12895. (Set && getTag(new Set) != setTag) ||
  12896. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12897. getTag = function(value) {
  12898. var result = baseGetTag(value),
  12899. Ctor = result == objectTag ? value.constructor : undefined,
  12900. ctorString = Ctor ? toSource(Ctor) : '';
  12901. if (ctorString) {
  12902. switch (ctorString) {
  12903. case dataViewCtorString: return dataViewTag;
  12904. case mapCtorString: return mapTag;
  12905. case promiseCtorString: return promiseTag;
  12906. case setCtorString: return setTag;
  12907. case weakMapCtorString: return weakMapTag;
  12908. }
  12909. }
  12910. return result;
  12911. };
  12912. }
  12913. module.exports = getTag;
  12914. /***/ }),
  12915. /***/ "../../node_modules/lodash/_getValue.js":
  12916. /*!************************************************************!*\
  12917. !*** C:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  12918. \************************************************************/
  12919. /*! no static exports found */
  12920. /***/ (function(module, exports) {
  12921. /**
  12922. * Gets the value at `key` of `object`.
  12923. *
  12924. * @private
  12925. * @param {Object} [object] The object to query.
  12926. * @param {string} key The key of the property to get.
  12927. * @returns {*} Returns the property value.
  12928. */
  12929. function getValue(object, key) {
  12930. return object == null ? undefined : object[key];
  12931. }
  12932. module.exports = getValue;
  12933. /***/ }),
  12934. /***/ "../../node_modules/lodash/_hasPath.js":
  12935. /*!***********************************************************!*\
  12936. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  12937. \***********************************************************/
  12938. /*! no static exports found */
  12939. /***/ (function(module, exports, __webpack_require__) {
  12940. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  12941. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12942. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12943. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12944. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12945. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12946. /**
  12947. * Checks if `path` exists on `object`.
  12948. *
  12949. * @private
  12950. * @param {Object} object The object to query.
  12951. * @param {Array|string} path The path to check.
  12952. * @param {Function} hasFunc The function to check properties.
  12953. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  12954. */
  12955. function hasPath(object, path, hasFunc) {
  12956. path = castPath(path, object);
  12957. var index = -1,
  12958. length = path.length,
  12959. result = false;
  12960. while (++index < length) {
  12961. var key = toKey(path[index]);
  12962. if (!(result = object != null && hasFunc(object, key))) {
  12963. break;
  12964. }
  12965. object = object[key];
  12966. }
  12967. if (result || ++index != length) {
  12968. return result;
  12969. }
  12970. length = object == null ? 0 : object.length;
  12971. return !!length && isLength(length) && isIndex(key, length) &&
  12972. (isArray(object) || isArguments(object));
  12973. }
  12974. module.exports = hasPath;
  12975. /***/ }),
  12976. /***/ "../../node_modules/lodash/_hasUnicode.js":
  12977. /*!**************************************************************!*\
  12978. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  12979. \**************************************************************/
  12980. /*! no static exports found */
  12981. /***/ (function(module, exports) {
  12982. /** Used to compose unicode character classes. */
  12983. var rsAstralRange = '\\ud800-\\udfff',
  12984. rsComboMarksRange = '\\u0300-\\u036f',
  12985. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  12986. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  12987. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  12988. rsVarRange = '\\ufe0e\\ufe0f';
  12989. /** Used to compose unicode capture groups. */
  12990. var rsZWJ = '\\u200d';
  12991. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  12992. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  12993. /**
  12994. * Checks if `string` contains Unicode symbols.
  12995. *
  12996. * @private
  12997. * @param {string} string The string to inspect.
  12998. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  12999. */
  13000. function hasUnicode(string) {
  13001. return reHasUnicode.test(string);
  13002. }
  13003. module.exports = hasUnicode;
  13004. /***/ }),
  13005. /***/ "../../node_modules/lodash/_hashClear.js":
  13006. /*!*************************************************************!*\
  13007. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  13008. \*************************************************************/
  13009. /*! no static exports found */
  13010. /***/ (function(module, exports, __webpack_require__) {
  13011. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13012. /**
  13013. * Removes all key-value entries from the hash.
  13014. *
  13015. * @private
  13016. * @name clear
  13017. * @memberOf Hash
  13018. */
  13019. function hashClear() {
  13020. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  13021. this.size = 0;
  13022. }
  13023. module.exports = hashClear;
  13024. /***/ }),
  13025. /***/ "../../node_modules/lodash/_hashDelete.js":
  13026. /*!**************************************************************!*\
  13027. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  13028. \**************************************************************/
  13029. /*! no static exports found */
  13030. /***/ (function(module, exports) {
  13031. /**
  13032. * Removes `key` and its value from the hash.
  13033. *
  13034. * @private
  13035. * @name delete
  13036. * @memberOf Hash
  13037. * @param {Object} hash The hash to modify.
  13038. * @param {string} key The key of the value to remove.
  13039. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13040. */
  13041. function hashDelete(key) {
  13042. var result = this.has(key) && delete this.__data__[key];
  13043. this.size -= result ? 1 : 0;
  13044. return result;
  13045. }
  13046. module.exports = hashDelete;
  13047. /***/ }),
  13048. /***/ "../../node_modules/lodash/_hashGet.js":
  13049. /*!***********************************************************!*\
  13050. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  13051. \***********************************************************/
  13052. /*! no static exports found */
  13053. /***/ (function(module, exports, __webpack_require__) {
  13054. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13055. /** Used to stand-in for `undefined` hash values. */
  13056. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13057. /** Used for built-in method references. */
  13058. var objectProto = Object.prototype;
  13059. /** Used to check objects for own properties. */
  13060. var hasOwnProperty = objectProto.hasOwnProperty;
  13061. /**
  13062. * Gets the hash value for `key`.
  13063. *
  13064. * @private
  13065. * @name get
  13066. * @memberOf Hash
  13067. * @param {string} key The key of the value to get.
  13068. * @returns {*} Returns the entry value.
  13069. */
  13070. function hashGet(key) {
  13071. var data = this.__data__;
  13072. if (nativeCreate) {
  13073. var result = data[key];
  13074. return result === HASH_UNDEFINED ? undefined : result;
  13075. }
  13076. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  13077. }
  13078. module.exports = hashGet;
  13079. /***/ }),
  13080. /***/ "../../node_modules/lodash/_hashHas.js":
  13081. /*!***********************************************************!*\
  13082. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  13083. \***********************************************************/
  13084. /*! no static exports found */
  13085. /***/ (function(module, exports, __webpack_require__) {
  13086. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13087. /** Used for built-in method references. */
  13088. var objectProto = Object.prototype;
  13089. /** Used to check objects for own properties. */
  13090. var hasOwnProperty = objectProto.hasOwnProperty;
  13091. /**
  13092. * Checks if a hash value for `key` exists.
  13093. *
  13094. * @private
  13095. * @name has
  13096. * @memberOf Hash
  13097. * @param {string} key The key of the entry to check.
  13098. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13099. */
  13100. function hashHas(key) {
  13101. var data = this.__data__;
  13102. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  13103. }
  13104. module.exports = hashHas;
  13105. /***/ }),
  13106. /***/ "../../node_modules/lodash/_hashSet.js":
  13107. /*!***********************************************************!*\
  13108. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  13109. \***********************************************************/
  13110. /*! no static exports found */
  13111. /***/ (function(module, exports, __webpack_require__) {
  13112. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13113. /** Used to stand-in for `undefined` hash values. */
  13114. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13115. /**
  13116. * Sets the hash `key` to `value`.
  13117. *
  13118. * @private
  13119. * @name set
  13120. * @memberOf Hash
  13121. * @param {string} key The key of the value to set.
  13122. * @param {*} value The value to set.
  13123. * @returns {Object} Returns the hash instance.
  13124. */
  13125. function hashSet(key, value) {
  13126. var data = this.__data__;
  13127. this.size += this.has(key) ? 0 : 1;
  13128. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  13129. return this;
  13130. }
  13131. module.exports = hashSet;
  13132. /***/ }),
  13133. /***/ "../../node_modules/lodash/_initCloneArray.js":
  13134. /*!******************************************************************!*\
  13135. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  13136. \******************************************************************/
  13137. /*! no static exports found */
  13138. /***/ (function(module, exports) {
  13139. /** Used for built-in method references. */
  13140. var objectProto = Object.prototype;
  13141. /** Used to check objects for own properties. */
  13142. var hasOwnProperty = objectProto.hasOwnProperty;
  13143. /**
  13144. * Initializes an array clone.
  13145. *
  13146. * @private
  13147. * @param {Array} array The array to clone.
  13148. * @returns {Array} Returns the initialized clone.
  13149. */
  13150. function initCloneArray(array) {
  13151. var length = array.length,
  13152. result = new array.constructor(length);
  13153. // Add properties assigned by `RegExp#exec`.
  13154. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  13155. result.index = array.index;
  13156. result.input = array.input;
  13157. }
  13158. return result;
  13159. }
  13160. module.exports = initCloneArray;
  13161. /***/ }),
  13162. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  13163. /*!******************************************************************!*\
  13164. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  13165. \******************************************************************/
  13166. /*! no static exports found */
  13167. /***/ (function(module, exports, __webpack_require__) {
  13168. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  13169. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  13170. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  13171. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  13172. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  13173. /** `Object#toString` result references. */
  13174. var boolTag = '[object Boolean]',
  13175. dateTag = '[object Date]',
  13176. mapTag = '[object Map]',
  13177. numberTag = '[object Number]',
  13178. regexpTag = '[object RegExp]',
  13179. setTag = '[object Set]',
  13180. stringTag = '[object String]',
  13181. symbolTag = '[object Symbol]';
  13182. var arrayBufferTag = '[object ArrayBuffer]',
  13183. dataViewTag = '[object DataView]',
  13184. float32Tag = '[object Float32Array]',
  13185. float64Tag = '[object Float64Array]',
  13186. int8Tag = '[object Int8Array]',
  13187. int16Tag = '[object Int16Array]',
  13188. int32Tag = '[object Int32Array]',
  13189. uint8Tag = '[object Uint8Array]',
  13190. uint8ClampedTag = '[object Uint8ClampedArray]',
  13191. uint16Tag = '[object Uint16Array]',
  13192. uint32Tag = '[object Uint32Array]';
  13193. /**
  13194. * Initializes an object clone based on its `toStringTag`.
  13195. *
  13196. * **Note:** This function only supports cloning values with tags of
  13197. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  13198. *
  13199. * @private
  13200. * @param {Object} object The object to clone.
  13201. * @param {string} tag The `toStringTag` of the object to clone.
  13202. * @param {boolean} [isDeep] Specify a deep clone.
  13203. * @returns {Object} Returns the initialized clone.
  13204. */
  13205. function initCloneByTag(object, tag, isDeep) {
  13206. var Ctor = object.constructor;
  13207. switch (tag) {
  13208. case arrayBufferTag:
  13209. return cloneArrayBuffer(object);
  13210. case boolTag:
  13211. case dateTag:
  13212. return new Ctor(+object);
  13213. case dataViewTag:
  13214. return cloneDataView(object, isDeep);
  13215. case float32Tag: case float64Tag:
  13216. case int8Tag: case int16Tag: case int32Tag:
  13217. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  13218. return cloneTypedArray(object, isDeep);
  13219. case mapTag:
  13220. return new Ctor;
  13221. case numberTag:
  13222. case stringTag:
  13223. return new Ctor(object);
  13224. case regexpTag:
  13225. return cloneRegExp(object);
  13226. case setTag:
  13227. return new Ctor;
  13228. case symbolTag:
  13229. return cloneSymbol(object);
  13230. }
  13231. }
  13232. module.exports = initCloneByTag;
  13233. /***/ }),
  13234. /***/ "../../node_modules/lodash/_initCloneObject.js":
  13235. /*!*******************************************************************!*\
  13236. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  13237. \*******************************************************************/
  13238. /*! no static exports found */
  13239. /***/ (function(module, exports, __webpack_require__) {
  13240. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  13241. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  13242. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  13243. /**
  13244. * Initializes an object clone.
  13245. *
  13246. * @private
  13247. * @param {Object} object The object to clone.
  13248. * @returns {Object} Returns the initialized clone.
  13249. */
  13250. function initCloneObject(object) {
  13251. return (typeof object.constructor == 'function' && !isPrototype(object))
  13252. ? baseCreate(getPrototype(object))
  13253. : {};
  13254. }
  13255. module.exports = initCloneObject;
  13256. /***/ }),
  13257. /***/ "../../node_modules/lodash/_isFlattenable.js":
  13258. /*!*****************************************************************!*\
  13259. !*** C:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  13260. \*****************************************************************/
  13261. /*! no static exports found */
  13262. /***/ (function(module, exports, __webpack_require__) {
  13263. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  13264. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  13265. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  13266. /** Built-in value references. */
  13267. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  13268. /**
  13269. * Checks if `value` is a flattenable `arguments` object or array.
  13270. *
  13271. * @private
  13272. * @param {*} value The value to check.
  13273. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  13274. */
  13275. function isFlattenable(value) {
  13276. return isArray(value) || isArguments(value) ||
  13277. !!(spreadableSymbol && value && value[spreadableSymbol]);
  13278. }
  13279. module.exports = isFlattenable;
  13280. /***/ }),
  13281. /***/ "../../node_modules/lodash/_isIndex.js":
  13282. /*!***********************************************************!*\
  13283. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  13284. \***********************************************************/
  13285. /*! no static exports found */
  13286. /***/ (function(module, exports) {
  13287. /** Used as references for various `Number` constants. */
  13288. var MAX_SAFE_INTEGER = 9007199254740991;
  13289. /** Used to detect unsigned integer values. */
  13290. var reIsUint = /^(?:0|[1-9]\d*)$/;
  13291. /**
  13292. * Checks if `value` is a valid array-like index.
  13293. *
  13294. * @private
  13295. * @param {*} value The value to check.
  13296. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  13297. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  13298. */
  13299. function isIndex(value, length) {
  13300. var type = typeof value;
  13301. length = length == null ? MAX_SAFE_INTEGER : length;
  13302. return !!length &&
  13303. (type == 'number' ||
  13304. (type != 'symbol' && reIsUint.test(value))) &&
  13305. (value > -1 && value % 1 == 0 && value < length);
  13306. }
  13307. module.exports = isIndex;
  13308. /***/ }),
  13309. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  13310. /*!******************************************************************!*\
  13311. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  13312. \******************************************************************/
  13313. /*! no static exports found */
  13314. /***/ (function(module, exports, __webpack_require__) {
  13315. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  13316. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  13317. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  13318. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13319. /**
  13320. * Checks if the given arguments are from an iteratee call.
  13321. *
  13322. * @private
  13323. * @param {*} value The potential iteratee value argument.
  13324. * @param {*} index The potential iteratee index or key argument.
  13325. * @param {*} object The potential iteratee object argument.
  13326. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  13327. * else `false`.
  13328. */
  13329. function isIterateeCall(value, index, object) {
  13330. if (!isObject(object)) {
  13331. return false;
  13332. }
  13333. var type = typeof index;
  13334. if (type == 'number'
  13335. ? (isArrayLike(object) && isIndex(index, object.length))
  13336. : (type == 'string' && index in object)
  13337. ) {
  13338. return eq(object[index], value);
  13339. }
  13340. return false;
  13341. }
  13342. module.exports = isIterateeCall;
  13343. /***/ }),
  13344. /***/ "../../node_modules/lodash/_isKey.js":
  13345. /*!*********************************************************!*\
  13346. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  13347. \*********************************************************/
  13348. /*! no static exports found */
  13349. /***/ (function(module, exports, __webpack_require__) {
  13350. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  13351. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  13352. /** Used to match property names within property paths. */
  13353. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  13354. reIsPlainProp = /^\w*$/;
  13355. /**
  13356. * Checks if `value` is a property name and not a property path.
  13357. *
  13358. * @private
  13359. * @param {*} value The value to check.
  13360. * @param {Object} [object] The object to query keys on.
  13361. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  13362. */
  13363. function isKey(value, object) {
  13364. if (isArray(value)) {
  13365. return false;
  13366. }
  13367. var type = typeof value;
  13368. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  13369. value == null || isSymbol(value)) {
  13370. return true;
  13371. }
  13372. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  13373. (object != null && value in Object(object));
  13374. }
  13375. module.exports = isKey;
  13376. /***/ }),
  13377. /***/ "../../node_modules/lodash/_isKeyable.js":
  13378. /*!*************************************************************!*\
  13379. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  13380. \*************************************************************/
  13381. /*! no static exports found */
  13382. /***/ (function(module, exports) {
  13383. /**
  13384. * Checks if `value` is suitable for use as unique object key.
  13385. *
  13386. * @private
  13387. * @param {*} value The value to check.
  13388. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  13389. */
  13390. function isKeyable(value) {
  13391. var type = typeof value;
  13392. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  13393. ? (value !== '__proto__')
  13394. : (value === null);
  13395. }
  13396. module.exports = isKeyable;
  13397. /***/ }),
  13398. /***/ "../../node_modules/lodash/_isMasked.js":
  13399. /*!************************************************************!*\
  13400. !*** C:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  13401. \************************************************************/
  13402. /*! no static exports found */
  13403. /***/ (function(module, exports, __webpack_require__) {
  13404. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  13405. /** Used to detect methods masquerading as native. */
  13406. var maskSrcKey = (function() {
  13407. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  13408. return uid ? ('Symbol(src)_1.' + uid) : '';
  13409. }());
  13410. /**
  13411. * Checks if `func` has its source masked.
  13412. *
  13413. * @private
  13414. * @param {Function} func The function to check.
  13415. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13416. */
  13417. function isMasked(func) {
  13418. return !!maskSrcKey && (maskSrcKey in func);
  13419. }
  13420. module.exports = isMasked;
  13421. /***/ }),
  13422. /***/ "../../node_modules/lodash/_isPrototype.js":
  13423. /*!***************************************************************!*\
  13424. !*** C:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  13425. \***************************************************************/
  13426. /*! no static exports found */
  13427. /***/ (function(module, exports) {
  13428. /** Used for built-in method references. */
  13429. var objectProto = Object.prototype;
  13430. /**
  13431. * Checks if `value` is likely a prototype object.
  13432. *
  13433. * @private
  13434. * @param {*} value The value to check.
  13435. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13436. */
  13437. function isPrototype(value) {
  13438. var Ctor = value && value.constructor,
  13439. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13440. return value === proto;
  13441. }
  13442. module.exports = isPrototype;
  13443. /***/ }),
  13444. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  13445. /*!**********************************************************************!*\
  13446. !*** C:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  13447. \**********************************************************************/
  13448. /*! no static exports found */
  13449. /***/ (function(module, exports, __webpack_require__) {
  13450. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13451. /**
  13452. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  13453. *
  13454. * @private
  13455. * @param {*} value The value to check.
  13456. * @returns {boolean} Returns `true` if `value` if suitable for strict
  13457. * equality comparisons, else `false`.
  13458. */
  13459. function isStrictComparable(value) {
  13460. return value === value && !isObject(value);
  13461. }
  13462. module.exports = isStrictComparable;
  13463. /***/ }),
  13464. /***/ "../../node_modules/lodash/_listCacheClear.js":
  13465. /*!******************************************************************!*\
  13466. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  13467. \******************************************************************/
  13468. /*! no static exports found */
  13469. /***/ (function(module, exports) {
  13470. /**
  13471. * Removes all key-value entries from the list cache.
  13472. *
  13473. * @private
  13474. * @name clear
  13475. * @memberOf ListCache
  13476. */
  13477. function listCacheClear() {
  13478. this.__data__ = [];
  13479. this.size = 0;
  13480. }
  13481. module.exports = listCacheClear;
  13482. /***/ }),
  13483. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  13484. /*!*******************************************************************!*\
  13485. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  13486. \*******************************************************************/
  13487. /*! no static exports found */
  13488. /***/ (function(module, exports, __webpack_require__) {
  13489. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13490. /** Used for built-in method references. */
  13491. var arrayProto = Array.prototype;
  13492. /** Built-in value references. */
  13493. var splice = arrayProto.splice;
  13494. /**
  13495. * Removes `key` and its value from the list cache.
  13496. *
  13497. * @private
  13498. * @name delete
  13499. * @memberOf ListCache
  13500. * @param {string} key The key of the value to remove.
  13501. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13502. */
  13503. function listCacheDelete(key) {
  13504. var data = this.__data__,
  13505. index = assocIndexOf(data, key);
  13506. if (index < 0) {
  13507. return false;
  13508. }
  13509. var lastIndex = data.length - 1;
  13510. if (index == lastIndex) {
  13511. data.pop();
  13512. } else {
  13513. splice.call(data, index, 1);
  13514. }
  13515. --this.size;
  13516. return true;
  13517. }
  13518. module.exports = listCacheDelete;
  13519. /***/ }),
  13520. /***/ "../../node_modules/lodash/_listCacheGet.js":
  13521. /*!****************************************************************!*\
  13522. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  13523. \****************************************************************/
  13524. /*! no static exports found */
  13525. /***/ (function(module, exports, __webpack_require__) {
  13526. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13527. /**
  13528. * Gets the list cache value for `key`.
  13529. *
  13530. * @private
  13531. * @name get
  13532. * @memberOf ListCache
  13533. * @param {string} key The key of the value to get.
  13534. * @returns {*} Returns the entry value.
  13535. */
  13536. function listCacheGet(key) {
  13537. var data = this.__data__,
  13538. index = assocIndexOf(data, key);
  13539. return index < 0 ? undefined : data[index][1];
  13540. }
  13541. module.exports = listCacheGet;
  13542. /***/ }),
  13543. /***/ "../../node_modules/lodash/_listCacheHas.js":
  13544. /*!****************************************************************!*\
  13545. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  13546. \****************************************************************/
  13547. /*! no static exports found */
  13548. /***/ (function(module, exports, __webpack_require__) {
  13549. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13550. /**
  13551. * Checks if a list cache value for `key` exists.
  13552. *
  13553. * @private
  13554. * @name has
  13555. * @memberOf ListCache
  13556. * @param {string} key The key of the entry to check.
  13557. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13558. */
  13559. function listCacheHas(key) {
  13560. return assocIndexOf(this.__data__, key) > -1;
  13561. }
  13562. module.exports = listCacheHas;
  13563. /***/ }),
  13564. /***/ "../../node_modules/lodash/_listCacheSet.js":
  13565. /*!****************************************************************!*\
  13566. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  13567. \****************************************************************/
  13568. /*! no static exports found */
  13569. /***/ (function(module, exports, __webpack_require__) {
  13570. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13571. /**
  13572. * Sets the list cache `key` to `value`.
  13573. *
  13574. * @private
  13575. * @name set
  13576. * @memberOf ListCache
  13577. * @param {string} key The key of the value to set.
  13578. * @param {*} value The value to set.
  13579. * @returns {Object} Returns the list cache instance.
  13580. */
  13581. function listCacheSet(key, value) {
  13582. var data = this.__data__,
  13583. index = assocIndexOf(data, key);
  13584. if (index < 0) {
  13585. ++this.size;
  13586. data.push([key, value]);
  13587. } else {
  13588. data[index][1] = value;
  13589. }
  13590. return this;
  13591. }
  13592. module.exports = listCacheSet;
  13593. /***/ }),
  13594. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  13595. /*!*****************************************************************!*\
  13596. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  13597. \*****************************************************************/
  13598. /*! no static exports found */
  13599. /***/ (function(module, exports, __webpack_require__) {
  13600. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  13601. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13602. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  13603. /**
  13604. * Removes all key-value entries from the map.
  13605. *
  13606. * @private
  13607. * @name clear
  13608. * @memberOf MapCache
  13609. */
  13610. function mapCacheClear() {
  13611. this.size = 0;
  13612. this.__data__ = {
  13613. 'hash': new Hash,
  13614. 'map': new (Map || ListCache),
  13615. 'string': new Hash
  13616. };
  13617. }
  13618. module.exports = mapCacheClear;
  13619. /***/ }),
  13620. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  13621. /*!******************************************************************!*\
  13622. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  13623. \******************************************************************/
  13624. /*! no static exports found */
  13625. /***/ (function(module, exports, __webpack_require__) {
  13626. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13627. /**
  13628. * Removes `key` and its value from the map.
  13629. *
  13630. * @private
  13631. * @name delete
  13632. * @memberOf MapCache
  13633. * @param {string} key The key of the value to remove.
  13634. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13635. */
  13636. function mapCacheDelete(key) {
  13637. var result = getMapData(this, key)['delete'](key);
  13638. this.size -= result ? 1 : 0;
  13639. return result;
  13640. }
  13641. module.exports = mapCacheDelete;
  13642. /***/ }),
  13643. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  13644. /*!***************************************************************!*\
  13645. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  13646. \***************************************************************/
  13647. /*! no static exports found */
  13648. /***/ (function(module, exports, __webpack_require__) {
  13649. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13650. /**
  13651. * Gets the map value for `key`.
  13652. *
  13653. * @private
  13654. * @name get
  13655. * @memberOf MapCache
  13656. * @param {string} key The key of the value to get.
  13657. * @returns {*} Returns the entry value.
  13658. */
  13659. function mapCacheGet(key) {
  13660. return getMapData(this, key).get(key);
  13661. }
  13662. module.exports = mapCacheGet;
  13663. /***/ }),
  13664. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  13665. /*!***************************************************************!*\
  13666. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  13667. \***************************************************************/
  13668. /*! no static exports found */
  13669. /***/ (function(module, exports, __webpack_require__) {
  13670. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13671. /**
  13672. * Checks if a map value for `key` exists.
  13673. *
  13674. * @private
  13675. * @name has
  13676. * @memberOf MapCache
  13677. * @param {string} key The key of the entry to check.
  13678. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13679. */
  13680. function mapCacheHas(key) {
  13681. return getMapData(this, key).has(key);
  13682. }
  13683. module.exports = mapCacheHas;
  13684. /***/ }),
  13685. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  13686. /*!***************************************************************!*\
  13687. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  13688. \***************************************************************/
  13689. /*! no static exports found */
  13690. /***/ (function(module, exports, __webpack_require__) {
  13691. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13692. /**
  13693. * Sets the map `key` to `value`.
  13694. *
  13695. * @private
  13696. * @name set
  13697. * @memberOf MapCache
  13698. * @param {string} key The key of the value to set.
  13699. * @param {*} value The value to set.
  13700. * @returns {Object} Returns the map cache instance.
  13701. */
  13702. function mapCacheSet(key, value) {
  13703. var data = getMapData(this, key),
  13704. size = data.size;
  13705. data.set(key, value);
  13706. this.size += data.size == size ? 0 : 1;
  13707. return this;
  13708. }
  13709. module.exports = mapCacheSet;
  13710. /***/ }),
  13711. /***/ "../../node_modules/lodash/_mapToArray.js":
  13712. /*!**************************************************************!*\
  13713. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  13714. \**************************************************************/
  13715. /*! no static exports found */
  13716. /***/ (function(module, exports) {
  13717. /**
  13718. * Converts `map` to its key-value pairs.
  13719. *
  13720. * @private
  13721. * @param {Object} map The map to convert.
  13722. * @returns {Array} Returns the key-value pairs.
  13723. */
  13724. function mapToArray(map) {
  13725. var index = -1,
  13726. result = Array(map.size);
  13727. map.forEach(function(value, key) {
  13728. result[++index] = [key, value];
  13729. });
  13730. return result;
  13731. }
  13732. module.exports = mapToArray;
  13733. /***/ }),
  13734. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  13735. /*!***************************************************************************!*\
  13736. !*** C:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  13737. \***************************************************************************/
  13738. /*! no static exports found */
  13739. /***/ (function(module, exports) {
  13740. /**
  13741. * A specialized version of `matchesProperty` for source values suitable
  13742. * for strict equality comparisons, i.e. `===`.
  13743. *
  13744. * @private
  13745. * @param {string} key The key of the property to get.
  13746. * @param {*} srcValue The value to match.
  13747. * @returns {Function} Returns the new spec function.
  13748. */
  13749. function matchesStrictComparable(key, srcValue) {
  13750. return function(object) {
  13751. if (object == null) {
  13752. return false;
  13753. }
  13754. return object[key] === srcValue &&
  13755. (srcValue !== undefined || (key in Object(object)));
  13756. };
  13757. }
  13758. module.exports = matchesStrictComparable;
  13759. /***/ }),
  13760. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  13761. /*!*****************************************************************!*\
  13762. !*** C:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  13763. \*****************************************************************/
  13764. /*! no static exports found */
  13765. /***/ (function(module, exports, __webpack_require__) {
  13766. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  13767. /** Used as the maximum memoize cache size. */
  13768. var MAX_MEMOIZE_SIZE = 500;
  13769. /**
  13770. * A specialized version of `_.memoize` which clears the memoized function's
  13771. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  13772. *
  13773. * @private
  13774. * @param {Function} func The function to have its output memoized.
  13775. * @returns {Function} Returns the new memoized function.
  13776. */
  13777. function memoizeCapped(func) {
  13778. var result = memoize(func, function(key) {
  13779. if (cache.size === MAX_MEMOIZE_SIZE) {
  13780. cache.clear();
  13781. }
  13782. return key;
  13783. });
  13784. var cache = result.cache;
  13785. return result;
  13786. }
  13787. module.exports = memoizeCapped;
  13788. /***/ }),
  13789. /***/ "../../node_modules/lodash/_nativeCreate.js":
  13790. /*!****************************************************************!*\
  13791. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  13792. \****************************************************************/
  13793. /*! no static exports found */
  13794. /***/ (function(module, exports, __webpack_require__) {
  13795. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13796. /* Built-in method references that are verified to be native. */
  13797. var nativeCreate = getNative(Object, 'create');
  13798. module.exports = nativeCreate;
  13799. /***/ }),
  13800. /***/ "../../node_modules/lodash/_nativeKeys.js":
  13801. /*!**************************************************************!*\
  13802. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  13803. \**************************************************************/
  13804. /*! no static exports found */
  13805. /***/ (function(module, exports, __webpack_require__) {
  13806. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13807. /* Built-in method references for those with the same name as other `lodash` methods. */
  13808. var nativeKeys = overArg(Object.keys, Object);
  13809. module.exports = nativeKeys;
  13810. /***/ }),
  13811. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  13812. /*!****************************************************************!*\
  13813. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  13814. \****************************************************************/
  13815. /*! no static exports found */
  13816. /***/ (function(module, exports) {
  13817. /**
  13818. * This function is like
  13819. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13820. * except that it includes inherited enumerable properties.
  13821. *
  13822. * @private
  13823. * @param {Object} object The object to query.
  13824. * @returns {Array} Returns the array of property names.
  13825. */
  13826. function nativeKeysIn(object) {
  13827. var result = [];
  13828. if (object != null) {
  13829. for (var key in Object(object)) {
  13830. result.push(key);
  13831. }
  13832. }
  13833. return result;
  13834. }
  13835. module.exports = nativeKeysIn;
  13836. /***/ }),
  13837. /***/ "../../node_modules/lodash/_nodeUtil.js":
  13838. /*!************************************************************!*\
  13839. !*** C:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  13840. \************************************************************/
  13841. /*! no static exports found */
  13842. /***/ (function(module, exports, __webpack_require__) {
  13843. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13844. /** Detect free variable `exports`. */
  13845. var freeExports = true && exports && !exports.nodeType && exports;
  13846. /** Detect free variable `module`. */
  13847. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  13848. /** Detect the popular CommonJS extension `module.exports`. */
  13849. var moduleExports = freeModule && freeModule.exports === freeExports;
  13850. /** Detect free variable `process` from Node.js. */
  13851. var freeProcess = moduleExports && freeGlobal.process;
  13852. /** Used to access faster Node.js helpers. */
  13853. var nodeUtil = (function() {
  13854. try {
  13855. // Use `util.types` for Node.js 10+.
  13856. var types = freeModule && freeModule.require && freeModule.require('util').types;
  13857. if (types) {
  13858. return types;
  13859. }
  13860. // Legacy `process.binding('util')` for Node.js < 10.
  13861. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  13862. } catch (e) {}
  13863. }());
  13864. module.exports = nodeUtil;
  13865. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  13866. /***/ }),
  13867. /***/ "../../node_modules/lodash/_objectToString.js":
  13868. /*!******************************************************************!*\
  13869. !*** C:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  13870. \******************************************************************/
  13871. /*! no static exports found */
  13872. /***/ (function(module, exports) {
  13873. /** Used for built-in method references. */
  13874. var objectProto = Object.prototype;
  13875. /**
  13876. * Used to resolve the
  13877. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13878. * of values.
  13879. */
  13880. var nativeObjectToString = objectProto.toString;
  13881. /**
  13882. * Converts `value` to a string using `Object.prototype.toString`.
  13883. *
  13884. * @private
  13885. * @param {*} value The value to convert.
  13886. * @returns {string} Returns the converted string.
  13887. */
  13888. function objectToString(value) {
  13889. return nativeObjectToString.call(value);
  13890. }
  13891. module.exports = objectToString;
  13892. /***/ }),
  13893. /***/ "../../node_modules/lodash/_overArg.js":
  13894. /*!***********************************************************!*\
  13895. !*** C:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  13896. \***********************************************************/
  13897. /*! no static exports found */
  13898. /***/ (function(module, exports) {
  13899. /**
  13900. * Creates a unary function that invokes `func` with its argument transformed.
  13901. *
  13902. * @private
  13903. * @param {Function} func The function to wrap.
  13904. * @param {Function} transform The argument transform.
  13905. * @returns {Function} Returns the new function.
  13906. */
  13907. function overArg(func, transform) {
  13908. return function(arg) {
  13909. return func(transform(arg));
  13910. };
  13911. }
  13912. module.exports = overArg;
  13913. /***/ }),
  13914. /***/ "../../node_modules/lodash/_overRest.js":
  13915. /*!************************************************************!*\
  13916. !*** C:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  13917. \************************************************************/
  13918. /*! no static exports found */
  13919. /***/ (function(module, exports, __webpack_require__) {
  13920. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  13921. /* Built-in method references for those with the same name as other `lodash` methods. */
  13922. var nativeMax = Math.max;
  13923. /**
  13924. * A specialized version of `baseRest` which transforms the rest array.
  13925. *
  13926. * @private
  13927. * @param {Function} func The function to apply a rest parameter to.
  13928. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13929. * @param {Function} transform The rest array transform.
  13930. * @returns {Function} Returns the new function.
  13931. */
  13932. function overRest(func, start, transform) {
  13933. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13934. return function() {
  13935. var args = arguments,
  13936. index = -1,
  13937. length = nativeMax(args.length - start, 0),
  13938. array = Array(length);
  13939. while (++index < length) {
  13940. array[index] = args[start + index];
  13941. }
  13942. index = -1;
  13943. var otherArgs = Array(start + 1);
  13944. while (++index < start) {
  13945. otherArgs[index] = args[index];
  13946. }
  13947. otherArgs[start] = transform(array);
  13948. return apply(func, this, otherArgs);
  13949. };
  13950. }
  13951. module.exports = overRest;
  13952. /***/ }),
  13953. /***/ "../../node_modules/lodash/_root.js":
  13954. /*!********************************************************!*\
  13955. !*** C:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  13956. \********************************************************/
  13957. /*! no static exports found */
  13958. /***/ (function(module, exports, __webpack_require__) {
  13959. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13960. /** Detect free variable `self`. */
  13961. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  13962. /** Used as a reference to the global object. */
  13963. var root = freeGlobal || freeSelf || Function('return this')();
  13964. module.exports = root;
  13965. /***/ }),
  13966. /***/ "../../node_modules/lodash/_safeGet.js":
  13967. /*!***********************************************************!*\
  13968. !*** C:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  13969. \***********************************************************/
  13970. /*! no static exports found */
  13971. /***/ (function(module, exports) {
  13972. /**
  13973. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  13974. *
  13975. * @private
  13976. * @param {Object} object The object to query.
  13977. * @param {string} key The key of the property to get.
  13978. * @returns {*} Returns the property value.
  13979. */
  13980. function safeGet(object, key) {
  13981. if (key === 'constructor' && typeof object[key] === 'function') {
  13982. return;
  13983. }
  13984. if (key == '__proto__') {
  13985. return;
  13986. }
  13987. return object[key];
  13988. }
  13989. module.exports = safeGet;
  13990. /***/ }),
  13991. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  13992. /*!***************************************************************!*\
  13993. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  13994. \***************************************************************/
  13995. /*! no static exports found */
  13996. /***/ (function(module, exports) {
  13997. /** Used to stand-in for `undefined` hash values. */
  13998. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13999. /**
  14000. * Adds `value` to the array cache.
  14001. *
  14002. * @private
  14003. * @name add
  14004. * @memberOf SetCache
  14005. * @alias push
  14006. * @param {*} value The value to cache.
  14007. * @returns {Object} Returns the cache instance.
  14008. */
  14009. function setCacheAdd(value) {
  14010. this.__data__.set(value, HASH_UNDEFINED);
  14011. return this;
  14012. }
  14013. module.exports = setCacheAdd;
  14014. /***/ }),
  14015. /***/ "../../node_modules/lodash/_setCacheHas.js":
  14016. /*!***************************************************************!*\
  14017. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  14018. \***************************************************************/
  14019. /*! no static exports found */
  14020. /***/ (function(module, exports) {
  14021. /**
  14022. * Checks if `value` is in the array cache.
  14023. *
  14024. * @private
  14025. * @name has
  14026. * @memberOf SetCache
  14027. * @param {*} value The value to search for.
  14028. * @returns {number} Returns `true` if `value` is found, else `false`.
  14029. */
  14030. function setCacheHas(value) {
  14031. return this.__data__.has(value);
  14032. }
  14033. module.exports = setCacheHas;
  14034. /***/ }),
  14035. /***/ "../../node_modules/lodash/_setToArray.js":
  14036. /*!**************************************************************!*\
  14037. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  14038. \**************************************************************/
  14039. /*! no static exports found */
  14040. /***/ (function(module, exports) {
  14041. /**
  14042. * Converts `set` to an array of its values.
  14043. *
  14044. * @private
  14045. * @param {Object} set The set to convert.
  14046. * @returns {Array} Returns the values.
  14047. */
  14048. function setToArray(set) {
  14049. var index = -1,
  14050. result = Array(set.size);
  14051. set.forEach(function(value) {
  14052. result[++index] = value;
  14053. });
  14054. return result;
  14055. }
  14056. module.exports = setToArray;
  14057. /***/ }),
  14058. /***/ "../../node_modules/lodash/_setToString.js":
  14059. /*!***************************************************************!*\
  14060. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  14061. \***************************************************************/
  14062. /*! no static exports found */
  14063. /***/ (function(module, exports, __webpack_require__) {
  14064. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  14065. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  14066. /**
  14067. * Sets the `toString` method of `func` to return `string`.
  14068. *
  14069. * @private
  14070. * @param {Function} func The function to modify.
  14071. * @param {Function} string The `toString` result.
  14072. * @returns {Function} Returns `func`.
  14073. */
  14074. var setToString = shortOut(baseSetToString);
  14075. module.exports = setToString;
  14076. /***/ }),
  14077. /***/ "../../node_modules/lodash/_shortOut.js":
  14078. /*!************************************************************!*\
  14079. !*** C:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  14080. \************************************************************/
  14081. /*! no static exports found */
  14082. /***/ (function(module, exports) {
  14083. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  14084. var HOT_COUNT = 800,
  14085. HOT_SPAN = 16;
  14086. /* Built-in method references for those with the same name as other `lodash` methods. */
  14087. var nativeNow = Date.now;
  14088. /**
  14089. * Creates a function that'll short out and invoke `identity` instead
  14090. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  14091. * milliseconds.
  14092. *
  14093. * @private
  14094. * @param {Function} func The function to restrict.
  14095. * @returns {Function} Returns the new shortable function.
  14096. */
  14097. function shortOut(func) {
  14098. var count = 0,
  14099. lastCalled = 0;
  14100. return function() {
  14101. var stamp = nativeNow(),
  14102. remaining = HOT_SPAN - (stamp - lastCalled);
  14103. lastCalled = stamp;
  14104. if (remaining > 0) {
  14105. if (++count >= HOT_COUNT) {
  14106. return arguments[0];
  14107. }
  14108. } else {
  14109. count = 0;
  14110. }
  14111. return func.apply(undefined, arguments);
  14112. };
  14113. }
  14114. module.exports = shortOut;
  14115. /***/ }),
  14116. /***/ "../../node_modules/lodash/_stackClear.js":
  14117. /*!**************************************************************!*\
  14118. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  14119. \**************************************************************/
  14120. /*! no static exports found */
  14121. /***/ (function(module, exports, __webpack_require__) {
  14122. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  14123. /**
  14124. * Removes all key-value entries from the stack.
  14125. *
  14126. * @private
  14127. * @name clear
  14128. * @memberOf Stack
  14129. */
  14130. function stackClear() {
  14131. this.__data__ = new ListCache;
  14132. this.size = 0;
  14133. }
  14134. module.exports = stackClear;
  14135. /***/ }),
  14136. /***/ "../../node_modules/lodash/_stackDelete.js":
  14137. /*!***************************************************************!*\
  14138. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  14139. \***************************************************************/
  14140. /*! no static exports found */
  14141. /***/ (function(module, exports) {
  14142. /**
  14143. * Removes `key` and its value from the stack.
  14144. *
  14145. * @private
  14146. * @name delete
  14147. * @memberOf Stack
  14148. * @param {string} key The key of the value to remove.
  14149. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14150. */
  14151. function stackDelete(key) {
  14152. var data = this.__data__,
  14153. result = data['delete'](key);
  14154. this.size = data.size;
  14155. return result;
  14156. }
  14157. module.exports = stackDelete;
  14158. /***/ }),
  14159. /***/ "../../node_modules/lodash/_stackGet.js":
  14160. /*!************************************************************!*\
  14161. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  14162. \************************************************************/
  14163. /*! no static exports found */
  14164. /***/ (function(module, exports) {
  14165. /**
  14166. * Gets the stack value for `key`.
  14167. *
  14168. * @private
  14169. * @name get
  14170. * @memberOf Stack
  14171. * @param {string} key The key of the value to get.
  14172. * @returns {*} Returns the entry value.
  14173. */
  14174. function stackGet(key) {
  14175. return this.__data__.get(key);
  14176. }
  14177. module.exports = stackGet;
  14178. /***/ }),
  14179. /***/ "../../node_modules/lodash/_stackHas.js":
  14180. /*!************************************************************!*\
  14181. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  14182. \************************************************************/
  14183. /*! no static exports found */
  14184. /***/ (function(module, exports) {
  14185. /**
  14186. * Checks if a stack value for `key` exists.
  14187. *
  14188. * @private
  14189. * @name has
  14190. * @memberOf Stack
  14191. * @param {string} key The key of the entry to check.
  14192. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14193. */
  14194. function stackHas(key) {
  14195. return this.__data__.has(key);
  14196. }
  14197. module.exports = stackHas;
  14198. /***/ }),
  14199. /***/ "../../node_modules/lodash/_stackSet.js":
  14200. /*!************************************************************!*\
  14201. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  14202. \************************************************************/
  14203. /*! no static exports found */
  14204. /***/ (function(module, exports, __webpack_require__) {
  14205. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  14206. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  14207. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  14208. /** Used as the size to enable large array optimizations. */
  14209. var LARGE_ARRAY_SIZE = 200;
  14210. /**
  14211. * Sets the stack `key` to `value`.
  14212. *
  14213. * @private
  14214. * @name set
  14215. * @memberOf Stack
  14216. * @param {string} key The key of the value to set.
  14217. * @param {*} value The value to set.
  14218. * @returns {Object} Returns the stack cache instance.
  14219. */
  14220. function stackSet(key, value) {
  14221. var data = this.__data__;
  14222. if (data instanceof ListCache) {
  14223. var pairs = data.__data__;
  14224. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  14225. pairs.push([key, value]);
  14226. this.size = ++data.size;
  14227. return this;
  14228. }
  14229. data = this.__data__ = new MapCache(pairs);
  14230. }
  14231. data.set(key, value);
  14232. this.size = data.size;
  14233. return this;
  14234. }
  14235. module.exports = stackSet;
  14236. /***/ }),
  14237. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  14238. /*!*****************************************************************!*\
  14239. !*** C:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  14240. \*****************************************************************/
  14241. /*! no static exports found */
  14242. /***/ (function(module, exports) {
  14243. /**
  14244. * A specialized version of `_.indexOf` which performs strict equality
  14245. * comparisons of values, i.e. `===`.
  14246. *
  14247. * @private
  14248. * @param {Array} array The array to inspect.
  14249. * @param {*} value The value to search for.
  14250. * @param {number} fromIndex The index to search from.
  14251. * @returns {number} Returns the index of the matched value, else `-1`.
  14252. */
  14253. function strictIndexOf(array, value, fromIndex) {
  14254. var index = fromIndex - 1,
  14255. length = array.length;
  14256. while (++index < length) {
  14257. if (array[index] === value) {
  14258. return index;
  14259. }
  14260. }
  14261. return -1;
  14262. }
  14263. module.exports = strictIndexOf;
  14264. /***/ }),
  14265. /***/ "../../node_modules/lodash/_stringSize.js":
  14266. /*!**************************************************************!*\
  14267. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  14268. \**************************************************************/
  14269. /*! no static exports found */
  14270. /***/ (function(module, exports, __webpack_require__) {
  14271. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  14272. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  14273. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  14274. /**
  14275. * Gets the number of symbols in `string`.
  14276. *
  14277. * @private
  14278. * @param {string} string The string to inspect.
  14279. * @returns {number} Returns the string size.
  14280. */
  14281. function stringSize(string) {
  14282. return hasUnicode(string)
  14283. ? unicodeSize(string)
  14284. : asciiSize(string);
  14285. }
  14286. module.exports = stringSize;
  14287. /***/ }),
  14288. /***/ "../../node_modules/lodash/_stringToPath.js":
  14289. /*!****************************************************************!*\
  14290. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  14291. \****************************************************************/
  14292. /*! no static exports found */
  14293. /***/ (function(module, exports, __webpack_require__) {
  14294. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  14295. /** Used to match property names within property paths. */
  14296. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  14297. /** Used to match backslashes in property paths. */
  14298. var reEscapeChar = /\\(\\)?/g;
  14299. /**
  14300. * Converts `string` to a property path array.
  14301. *
  14302. * @private
  14303. * @param {string} string The string to convert.
  14304. * @returns {Array} Returns the property path array.
  14305. */
  14306. var stringToPath = memoizeCapped(function(string) {
  14307. var result = [];
  14308. if (string.charCodeAt(0) === 46 /* . */) {
  14309. result.push('');
  14310. }
  14311. string.replace(rePropName, function(match, number, quote, subString) {
  14312. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  14313. });
  14314. return result;
  14315. });
  14316. module.exports = stringToPath;
  14317. /***/ }),
  14318. /***/ "../../node_modules/lodash/_toKey.js":
  14319. /*!*********************************************************!*\
  14320. !*** C:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  14321. \*********************************************************/
  14322. /*! no static exports found */
  14323. /***/ (function(module, exports, __webpack_require__) {
  14324. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14325. /** Used as references for various `Number` constants. */
  14326. var INFINITY = 1 / 0;
  14327. /**
  14328. * Converts `value` to a string key if it's not a string or symbol.
  14329. *
  14330. * @private
  14331. * @param {*} value The value to inspect.
  14332. * @returns {string|symbol} Returns the key.
  14333. */
  14334. function toKey(value) {
  14335. if (typeof value == 'string' || isSymbol(value)) {
  14336. return value;
  14337. }
  14338. var result = (value + '');
  14339. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  14340. }
  14341. module.exports = toKey;
  14342. /***/ }),
  14343. /***/ "../../node_modules/lodash/_toSource.js":
  14344. /*!************************************************************!*\
  14345. !*** C:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  14346. \************************************************************/
  14347. /*! no static exports found */
  14348. /***/ (function(module, exports) {
  14349. /** Used for built-in method references. */
  14350. var funcProto = Function.prototype;
  14351. /** Used to resolve the decompiled source of functions. */
  14352. var funcToString = funcProto.toString;
  14353. /**
  14354. * Converts `func` to its source code.
  14355. *
  14356. * @private
  14357. * @param {Function} func The function to convert.
  14358. * @returns {string} Returns the source code.
  14359. */
  14360. function toSource(func) {
  14361. if (func != null) {
  14362. try {
  14363. return funcToString.call(func);
  14364. } catch (e) {}
  14365. try {
  14366. return (func + '');
  14367. } catch (e) {}
  14368. }
  14369. return '';
  14370. }
  14371. module.exports = toSource;
  14372. /***/ }),
  14373. /***/ "../../node_modules/lodash/_unicodeSize.js":
  14374. /*!***************************************************************!*\
  14375. !*** C:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  14376. \***************************************************************/
  14377. /*! no static exports found */
  14378. /***/ (function(module, exports) {
  14379. /** Used to compose unicode character classes. */
  14380. var rsAstralRange = '\\ud800-\\udfff',
  14381. rsComboMarksRange = '\\u0300-\\u036f',
  14382. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  14383. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  14384. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  14385. rsVarRange = '\\ufe0e\\ufe0f';
  14386. /** Used to compose unicode capture groups. */
  14387. var rsAstral = '[' + rsAstralRange + ']',
  14388. rsCombo = '[' + rsComboRange + ']',
  14389. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  14390. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  14391. rsNonAstral = '[^' + rsAstralRange + ']',
  14392. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  14393. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  14394. rsZWJ = '\\u200d';
  14395. /** Used to compose unicode regexes. */
  14396. var reOptMod = rsModifier + '?',
  14397. rsOptVar = '[' + rsVarRange + ']?',
  14398. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  14399. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  14400. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  14401. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  14402. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  14403. /**
  14404. * Gets the size of a Unicode `string`.
  14405. *
  14406. * @private
  14407. * @param {string} string The string inspect.
  14408. * @returns {number} Returns the string size.
  14409. */
  14410. function unicodeSize(string) {
  14411. var result = reUnicode.lastIndex = 0;
  14412. while (reUnicode.test(string)) {
  14413. ++result;
  14414. }
  14415. return result;
  14416. }
  14417. module.exports = unicodeSize;
  14418. /***/ }),
  14419. /***/ "../../node_modules/lodash/clone.js":
  14420. /*!********************************************************!*\
  14421. !*** C:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  14422. \********************************************************/
  14423. /*! no static exports found */
  14424. /***/ (function(module, exports, __webpack_require__) {
  14425. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14426. /** Used to compose bitmasks for cloning. */
  14427. var CLONE_SYMBOLS_FLAG = 4;
  14428. /**
  14429. * Creates a shallow clone of `value`.
  14430. *
  14431. * **Note:** This method is loosely based on the
  14432. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  14433. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  14434. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  14435. * arrays. The own enumerable properties of `arguments` objects are cloned
  14436. * as plain objects. An empty object is returned for uncloneable values such
  14437. * as error objects, functions, DOM nodes, and WeakMaps.
  14438. *
  14439. * @static
  14440. * @memberOf _
  14441. * @since 0.1.0
  14442. * @category Lang
  14443. * @param {*} value The value to clone.
  14444. * @returns {*} Returns the cloned value.
  14445. * @see _.cloneDeep
  14446. * @example
  14447. *
  14448. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14449. *
  14450. * var shallow = _.clone(objects);
  14451. * console.log(shallow[0] === objects[0]);
  14452. * // => true
  14453. */
  14454. function clone(value) {
  14455. return baseClone(value, CLONE_SYMBOLS_FLAG);
  14456. }
  14457. module.exports = clone;
  14458. /***/ }),
  14459. /***/ "../../node_modules/lodash/cloneDeep.js":
  14460. /*!************************************************************!*\
  14461. !*** C:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  14462. \************************************************************/
  14463. /*! no static exports found */
  14464. /***/ (function(module, exports, __webpack_require__) {
  14465. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14466. /** Used to compose bitmasks for cloning. */
  14467. var CLONE_DEEP_FLAG = 1,
  14468. CLONE_SYMBOLS_FLAG = 4;
  14469. /**
  14470. * This method is like `_.clone` except that it recursively clones `value`.
  14471. *
  14472. * @static
  14473. * @memberOf _
  14474. * @since 1.0.0
  14475. * @category Lang
  14476. * @param {*} value The value to recursively clone.
  14477. * @returns {*} Returns the deep cloned value.
  14478. * @see _.clone
  14479. * @example
  14480. *
  14481. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14482. *
  14483. * var deep = _.cloneDeep(objects);
  14484. * console.log(deep[0] === objects[0]);
  14485. * // => false
  14486. */
  14487. function cloneDeep(value) {
  14488. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  14489. }
  14490. module.exports = cloneDeep;
  14491. /***/ }),
  14492. /***/ "../../node_modules/lodash/constant.js":
  14493. /*!***********************************************************!*\
  14494. !*** C:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  14495. \***********************************************************/
  14496. /*! no static exports found */
  14497. /***/ (function(module, exports) {
  14498. /**
  14499. * Creates a function that returns `value`.
  14500. *
  14501. * @static
  14502. * @memberOf _
  14503. * @since 2.4.0
  14504. * @category Util
  14505. * @param {*} value The value to return from the new function.
  14506. * @returns {Function} Returns the new constant function.
  14507. * @example
  14508. *
  14509. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14510. *
  14511. * console.log(objects);
  14512. * // => [{ 'a': 1 }, { 'a': 1 }]
  14513. *
  14514. * console.log(objects[0] === objects[1]);
  14515. * // => true
  14516. */
  14517. function constant(value) {
  14518. return function() {
  14519. return value;
  14520. };
  14521. }
  14522. module.exports = constant;
  14523. /***/ }),
  14524. /***/ "../../node_modules/lodash/defaults.js":
  14525. /*!***********************************************************!*\
  14526. !*** C:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  14527. \***********************************************************/
  14528. /*! no static exports found */
  14529. /***/ (function(module, exports, __webpack_require__) {
  14530. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  14531. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14532. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  14533. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14534. /** Used for built-in method references. */
  14535. var objectProto = Object.prototype;
  14536. /** Used to check objects for own properties. */
  14537. var hasOwnProperty = objectProto.hasOwnProperty;
  14538. /**
  14539. * Assigns own and inherited enumerable string keyed properties of source
  14540. * objects to the destination object for all destination properties that
  14541. * resolve to `undefined`. Source objects are applied from left to right.
  14542. * Once a property is set, additional values of the same property are ignored.
  14543. *
  14544. * **Note:** This method mutates `object`.
  14545. *
  14546. * @static
  14547. * @since 0.1.0
  14548. * @memberOf _
  14549. * @category Object
  14550. * @param {Object} object The destination object.
  14551. * @param {...Object} [sources] The source objects.
  14552. * @returns {Object} Returns `object`.
  14553. * @see _.defaultsDeep
  14554. * @example
  14555. *
  14556. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  14557. * // => { 'a': 1, 'b': 2 }
  14558. */
  14559. var defaults = baseRest(function(object, sources) {
  14560. object = Object(object);
  14561. var index = -1;
  14562. var length = sources.length;
  14563. var guard = length > 2 ? sources[2] : undefined;
  14564. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  14565. length = 1;
  14566. }
  14567. while (++index < length) {
  14568. var source = sources[index];
  14569. var props = keysIn(source);
  14570. var propsIndex = -1;
  14571. var propsLength = props.length;
  14572. while (++propsIndex < propsLength) {
  14573. var key = props[propsIndex];
  14574. var value = object[key];
  14575. if (value === undefined ||
  14576. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  14577. object[key] = source[key];
  14578. }
  14579. }
  14580. }
  14581. return object;
  14582. });
  14583. module.exports = defaults;
  14584. /***/ }),
  14585. /***/ "../../node_modules/lodash/each.js":
  14586. /*!*******************************************************!*\
  14587. !*** C:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  14588. \*******************************************************/
  14589. /*! no static exports found */
  14590. /***/ (function(module, exports, __webpack_require__) {
  14591. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  14592. /***/ }),
  14593. /***/ "../../node_modules/lodash/eq.js":
  14594. /*!*****************************************************!*\
  14595. !*** C:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  14596. \*****************************************************/
  14597. /*! no static exports found */
  14598. /***/ (function(module, exports) {
  14599. /**
  14600. * Performs a
  14601. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14602. * comparison between two values to determine if they are equivalent.
  14603. *
  14604. * @static
  14605. * @memberOf _
  14606. * @since 4.0.0
  14607. * @category Lang
  14608. * @param {*} value The value to compare.
  14609. * @param {*} other The other value to compare.
  14610. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  14611. * @example
  14612. *
  14613. * var object = { 'a': 1 };
  14614. * var other = { 'a': 1 };
  14615. *
  14616. * _.eq(object, object);
  14617. * // => true
  14618. *
  14619. * _.eq(object, other);
  14620. * // => false
  14621. *
  14622. * _.eq('a', 'a');
  14623. * // => true
  14624. *
  14625. * _.eq('a', Object('a'));
  14626. * // => false
  14627. *
  14628. * _.eq(NaN, NaN);
  14629. * // => true
  14630. */
  14631. function eq(value, other) {
  14632. return value === other || (value !== value && other !== other);
  14633. }
  14634. module.exports = eq;
  14635. /***/ }),
  14636. /***/ "../../node_modules/lodash/filter.js":
  14637. /*!*********************************************************!*\
  14638. !*** C:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  14639. \*********************************************************/
  14640. /*! no static exports found */
  14641. /***/ (function(module, exports, __webpack_require__) {
  14642. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  14643. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  14644. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14645. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14646. /**
  14647. * Iterates over elements of `collection`, returning an array of all elements
  14648. * `predicate` returns truthy for. The predicate is invoked with three
  14649. * arguments: (value, index|key, collection).
  14650. *
  14651. * **Note:** Unlike `_.remove`, this method returns a new array.
  14652. *
  14653. * @static
  14654. * @memberOf _
  14655. * @since 0.1.0
  14656. * @category Collection
  14657. * @param {Array|Object} collection The collection to iterate over.
  14658. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14659. * @returns {Array} Returns the new filtered array.
  14660. * @see _.reject
  14661. * @example
  14662. *
  14663. * var users = [
  14664. * { 'user': 'barney', 'age': 36, 'active': true },
  14665. * { 'user': 'fred', 'age': 40, 'active': false }
  14666. * ];
  14667. *
  14668. * _.filter(users, function(o) { return !o.active; });
  14669. * // => objects for ['fred']
  14670. *
  14671. * // The `_.matches` iteratee shorthand.
  14672. * _.filter(users, { 'age': 36, 'active': true });
  14673. * // => objects for ['barney']
  14674. *
  14675. * // The `_.matchesProperty` iteratee shorthand.
  14676. * _.filter(users, ['active', false]);
  14677. * // => objects for ['fred']
  14678. *
  14679. * // The `_.property` iteratee shorthand.
  14680. * _.filter(users, 'active');
  14681. * // => objects for ['barney']
  14682. */
  14683. function filter(collection, predicate) {
  14684. var func = isArray(collection) ? arrayFilter : baseFilter;
  14685. return func(collection, baseIteratee(predicate, 3));
  14686. }
  14687. module.exports = filter;
  14688. /***/ }),
  14689. /***/ "../../node_modules/lodash/find.js":
  14690. /*!*******************************************************!*\
  14691. !*** C:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  14692. \*******************************************************/
  14693. /*! no static exports found */
  14694. /***/ (function(module, exports, __webpack_require__) {
  14695. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  14696. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  14697. /**
  14698. * Iterates over elements of `collection`, returning the first element
  14699. * `predicate` returns truthy for. The predicate is invoked with three
  14700. * arguments: (value, index|key, collection).
  14701. *
  14702. * @static
  14703. * @memberOf _
  14704. * @since 0.1.0
  14705. * @category Collection
  14706. * @param {Array|Object} collection The collection to inspect.
  14707. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14708. * @param {number} [fromIndex=0] The index to search from.
  14709. * @returns {*} Returns the matched element, else `undefined`.
  14710. * @example
  14711. *
  14712. * var users = [
  14713. * { 'user': 'barney', 'age': 36, 'active': true },
  14714. * { 'user': 'fred', 'age': 40, 'active': false },
  14715. * { 'user': 'pebbles', 'age': 1, 'active': true }
  14716. * ];
  14717. *
  14718. * _.find(users, function(o) { return o.age < 40; });
  14719. * // => object for 'barney'
  14720. *
  14721. * // The `_.matches` iteratee shorthand.
  14722. * _.find(users, { 'age': 1, 'active': true });
  14723. * // => object for 'pebbles'
  14724. *
  14725. * // The `_.matchesProperty` iteratee shorthand.
  14726. * _.find(users, ['active', false]);
  14727. * // => object for 'fred'
  14728. *
  14729. * // The `_.property` iteratee shorthand.
  14730. * _.find(users, 'active');
  14731. * // => object for 'barney'
  14732. */
  14733. var find = createFind(findIndex);
  14734. module.exports = find;
  14735. /***/ }),
  14736. /***/ "../../node_modules/lodash/findIndex.js":
  14737. /*!************************************************************!*\
  14738. !*** C:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  14739. \************************************************************/
  14740. /*! no static exports found */
  14741. /***/ (function(module, exports, __webpack_require__) {
  14742. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14743. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14744. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  14745. /* Built-in method references for those with the same name as other `lodash` methods. */
  14746. var nativeMax = Math.max;
  14747. /**
  14748. * This method is like `_.find` except that it returns the index of the first
  14749. * element `predicate` returns truthy for instead of the element itself.
  14750. *
  14751. * @static
  14752. * @memberOf _
  14753. * @since 1.1.0
  14754. * @category Array
  14755. * @param {Array} array The array to inspect.
  14756. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14757. * @param {number} [fromIndex=0] The index to search from.
  14758. * @returns {number} Returns the index of the found element, else `-1`.
  14759. * @example
  14760. *
  14761. * var users = [
  14762. * { 'user': 'barney', 'active': false },
  14763. * { 'user': 'fred', 'active': false },
  14764. * { 'user': 'pebbles', 'active': true }
  14765. * ];
  14766. *
  14767. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  14768. * // => 0
  14769. *
  14770. * // The `_.matches` iteratee shorthand.
  14771. * _.findIndex(users, { 'user': 'fred', 'active': false });
  14772. * // => 1
  14773. *
  14774. * // The `_.matchesProperty` iteratee shorthand.
  14775. * _.findIndex(users, ['active', false]);
  14776. * // => 0
  14777. *
  14778. * // The `_.property` iteratee shorthand.
  14779. * _.findIndex(users, 'active');
  14780. * // => 2
  14781. */
  14782. function findIndex(array, predicate, fromIndex) {
  14783. var length = array == null ? 0 : array.length;
  14784. if (!length) {
  14785. return -1;
  14786. }
  14787. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  14788. if (index < 0) {
  14789. index = nativeMax(length + index, 0);
  14790. }
  14791. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  14792. }
  14793. module.exports = findIndex;
  14794. /***/ }),
  14795. /***/ "../../node_modules/lodash/flatten.js":
  14796. /*!**********************************************************!*\
  14797. !*** C:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  14798. \**********************************************************/
  14799. /*! no static exports found */
  14800. /***/ (function(module, exports, __webpack_require__) {
  14801. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  14802. /**
  14803. * Flattens `array` a single level deep.
  14804. *
  14805. * @static
  14806. * @memberOf _
  14807. * @since 0.1.0
  14808. * @category Array
  14809. * @param {Array} array The array to flatten.
  14810. * @returns {Array} Returns the new flattened array.
  14811. * @example
  14812. *
  14813. * _.flatten([1, [2, [3, [4]], 5]]);
  14814. * // => [1, 2, [3, [4]], 5]
  14815. */
  14816. function flatten(array) {
  14817. var length = array == null ? 0 : array.length;
  14818. return length ? baseFlatten(array, 1) : [];
  14819. }
  14820. module.exports = flatten;
  14821. /***/ }),
  14822. /***/ "../../node_modules/lodash/forEach.js":
  14823. /*!**********************************************************!*\
  14824. !*** C:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  14825. \**********************************************************/
  14826. /*! no static exports found */
  14827. /***/ (function(module, exports, __webpack_require__) {
  14828. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14829. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  14830. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14831. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14832. /**
  14833. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  14834. * The iteratee is invoked with three arguments: (value, index|key, collection).
  14835. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14836. *
  14837. * **Note:** As with other "Collections" methods, objects with a "length"
  14838. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  14839. * or `_.forOwn` for object iteration.
  14840. *
  14841. * @static
  14842. * @memberOf _
  14843. * @since 0.1.0
  14844. * @alias each
  14845. * @category Collection
  14846. * @param {Array|Object} collection The collection to iterate over.
  14847. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14848. * @returns {Array|Object} Returns `collection`.
  14849. * @see _.forEachRight
  14850. * @example
  14851. *
  14852. * _.forEach([1, 2], function(value) {
  14853. * console.log(value);
  14854. * });
  14855. * // => Logs `1` then `2`.
  14856. *
  14857. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  14858. * console.log(key);
  14859. * });
  14860. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  14861. */
  14862. function forEach(collection, iteratee) {
  14863. var func = isArray(collection) ? arrayEach : baseEach;
  14864. return func(collection, castFunction(iteratee));
  14865. }
  14866. module.exports = forEach;
  14867. /***/ }),
  14868. /***/ "../../node_modules/lodash/forIn.js":
  14869. /*!********************************************************!*\
  14870. !*** C:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  14871. \********************************************************/
  14872. /*! no static exports found */
  14873. /***/ (function(module, exports, __webpack_require__) {
  14874. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14875. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14876. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14877. /**
  14878. * Iterates over own and inherited enumerable string keyed properties of an
  14879. * object and invokes `iteratee` for each property. The iteratee is invoked
  14880. * with three arguments: (value, key, object). Iteratee functions may exit
  14881. * iteration early by explicitly returning `false`.
  14882. *
  14883. * @static
  14884. * @memberOf _
  14885. * @since 0.3.0
  14886. * @category Object
  14887. * @param {Object} object The object to iterate over.
  14888. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14889. * @returns {Object} Returns `object`.
  14890. * @see _.forInRight
  14891. * @example
  14892. *
  14893. * function Foo() {
  14894. * this.a = 1;
  14895. * this.b = 2;
  14896. * }
  14897. *
  14898. * Foo.prototype.c = 3;
  14899. *
  14900. * _.forIn(new Foo, function(value, key) {
  14901. * console.log(key);
  14902. * });
  14903. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  14904. */
  14905. function forIn(object, iteratee) {
  14906. return object == null
  14907. ? object
  14908. : baseFor(object, castFunction(iteratee), keysIn);
  14909. }
  14910. module.exports = forIn;
  14911. /***/ }),
  14912. /***/ "../../node_modules/lodash/get.js":
  14913. /*!******************************************************!*\
  14914. !*** C:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  14915. \******************************************************/
  14916. /*! no static exports found */
  14917. /***/ (function(module, exports, __webpack_require__) {
  14918. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  14919. /**
  14920. * Gets the value at `path` of `object`. If the resolved value is
  14921. * `undefined`, the `defaultValue` is returned in its place.
  14922. *
  14923. * @static
  14924. * @memberOf _
  14925. * @since 3.7.0
  14926. * @category Object
  14927. * @param {Object} object The object to query.
  14928. * @param {Array|string} path The path of the property to get.
  14929. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  14930. * @returns {*} Returns the resolved value.
  14931. * @example
  14932. *
  14933. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  14934. *
  14935. * _.get(object, 'a[0].b.c');
  14936. * // => 3
  14937. *
  14938. * _.get(object, ['a', '0', 'b', 'c']);
  14939. * // => 3
  14940. *
  14941. * _.get(object, 'a.b.c', 'default');
  14942. * // => 'default'
  14943. */
  14944. function get(object, path, defaultValue) {
  14945. var result = object == null ? undefined : baseGet(object, path);
  14946. return result === undefined ? defaultValue : result;
  14947. }
  14948. module.exports = get;
  14949. /***/ }),
  14950. /***/ "../../node_modules/lodash/has.js":
  14951. /*!******************************************************!*\
  14952. !*** C:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  14953. \******************************************************/
  14954. /*! no static exports found */
  14955. /***/ (function(module, exports, __webpack_require__) {
  14956. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  14957. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14958. /**
  14959. * Checks if `path` is a direct property of `object`.
  14960. *
  14961. * @static
  14962. * @since 0.1.0
  14963. * @memberOf _
  14964. * @category Object
  14965. * @param {Object} object The object to query.
  14966. * @param {Array|string} path The path to check.
  14967. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14968. * @example
  14969. *
  14970. * var object = { 'a': { 'b': 2 } };
  14971. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  14972. *
  14973. * _.has(object, 'a');
  14974. * // => true
  14975. *
  14976. * _.has(object, 'a.b');
  14977. * // => true
  14978. *
  14979. * _.has(object, ['a', 'b']);
  14980. * // => true
  14981. *
  14982. * _.has(other, 'a');
  14983. * // => false
  14984. */
  14985. function has(object, path) {
  14986. return object != null && hasPath(object, path, baseHas);
  14987. }
  14988. module.exports = has;
  14989. /***/ }),
  14990. /***/ "../../node_modules/lodash/hasIn.js":
  14991. /*!********************************************************!*\
  14992. !*** C:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  14993. \********************************************************/
  14994. /*! no static exports found */
  14995. /***/ (function(module, exports, __webpack_require__) {
  14996. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  14997. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14998. /**
  14999. * Checks if `path` is a direct or inherited property of `object`.
  15000. *
  15001. * @static
  15002. * @memberOf _
  15003. * @since 4.0.0
  15004. * @category Object
  15005. * @param {Object} object The object to query.
  15006. * @param {Array|string} path The path to check.
  15007. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  15008. * @example
  15009. *
  15010. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  15011. *
  15012. * _.hasIn(object, 'a');
  15013. * // => true
  15014. *
  15015. * _.hasIn(object, 'a.b');
  15016. * // => true
  15017. *
  15018. * _.hasIn(object, ['a', 'b']);
  15019. * // => true
  15020. *
  15021. * _.hasIn(object, 'b');
  15022. * // => false
  15023. */
  15024. function hasIn(object, path) {
  15025. return object != null && hasPath(object, path, baseHasIn);
  15026. }
  15027. module.exports = hasIn;
  15028. /***/ }),
  15029. /***/ "../../node_modules/lodash/identity.js":
  15030. /*!***********************************************************!*\
  15031. !*** C:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  15032. \***********************************************************/
  15033. /*! no static exports found */
  15034. /***/ (function(module, exports) {
  15035. /**
  15036. * This method returns the first argument it receives.
  15037. *
  15038. * @static
  15039. * @since 0.1.0
  15040. * @memberOf _
  15041. * @category Util
  15042. * @param {*} value Any value.
  15043. * @returns {*} Returns `value`.
  15044. * @example
  15045. *
  15046. * var object = { 'a': 1 };
  15047. *
  15048. * console.log(_.identity(object) === object);
  15049. * // => true
  15050. */
  15051. function identity(value) {
  15052. return value;
  15053. }
  15054. module.exports = identity;
  15055. /***/ }),
  15056. /***/ "../../node_modules/lodash/isArguments.js":
  15057. /*!**************************************************************!*\
  15058. !*** C:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  15059. \**************************************************************/
  15060. /*! no static exports found */
  15061. /***/ (function(module, exports, __webpack_require__) {
  15062. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  15063. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15064. /** Used for built-in method references. */
  15065. var objectProto = Object.prototype;
  15066. /** Used to check objects for own properties. */
  15067. var hasOwnProperty = objectProto.hasOwnProperty;
  15068. /** Built-in value references. */
  15069. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  15070. /**
  15071. * Checks if `value` is likely an `arguments` object.
  15072. *
  15073. * @static
  15074. * @memberOf _
  15075. * @since 0.1.0
  15076. * @category Lang
  15077. * @param {*} value The value to check.
  15078. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15079. * else `false`.
  15080. * @example
  15081. *
  15082. * _.isArguments(function() { return arguments; }());
  15083. * // => true
  15084. *
  15085. * _.isArguments([1, 2, 3]);
  15086. * // => false
  15087. */
  15088. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15089. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15090. !propertyIsEnumerable.call(value, 'callee');
  15091. };
  15092. module.exports = isArguments;
  15093. /***/ }),
  15094. /***/ "../../node_modules/lodash/isArray.js":
  15095. /*!**********************************************************!*\
  15096. !*** C:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  15097. \**********************************************************/
  15098. /*! no static exports found */
  15099. /***/ (function(module, exports) {
  15100. /**
  15101. * Checks if `value` is classified as an `Array` object.
  15102. *
  15103. * @static
  15104. * @memberOf _
  15105. * @since 0.1.0
  15106. * @category Lang
  15107. * @param {*} value The value to check.
  15108. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15109. * @example
  15110. *
  15111. * _.isArray([1, 2, 3]);
  15112. * // => true
  15113. *
  15114. * _.isArray(document.body.children);
  15115. * // => false
  15116. *
  15117. * _.isArray('abc');
  15118. * // => false
  15119. *
  15120. * _.isArray(_.noop);
  15121. * // => false
  15122. */
  15123. var isArray = Array.isArray;
  15124. module.exports = isArray;
  15125. /***/ }),
  15126. /***/ "../../node_modules/lodash/isArrayLike.js":
  15127. /*!**************************************************************!*\
  15128. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  15129. \**************************************************************/
  15130. /*! no static exports found */
  15131. /***/ (function(module, exports, __webpack_require__) {
  15132. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15133. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  15134. /**
  15135. * Checks if `value` is array-like. A value is considered array-like if it's
  15136. * not a function and has a `value.length` that's an integer greater than or
  15137. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15138. *
  15139. * @static
  15140. * @memberOf _
  15141. * @since 4.0.0
  15142. * @category Lang
  15143. * @param {*} value The value to check.
  15144. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15145. * @example
  15146. *
  15147. * _.isArrayLike([1, 2, 3]);
  15148. * // => true
  15149. *
  15150. * _.isArrayLike(document.body.children);
  15151. * // => true
  15152. *
  15153. * _.isArrayLike('abc');
  15154. * // => true
  15155. *
  15156. * _.isArrayLike(_.noop);
  15157. * // => false
  15158. */
  15159. function isArrayLike(value) {
  15160. return value != null && isLength(value.length) && !isFunction(value);
  15161. }
  15162. module.exports = isArrayLike;
  15163. /***/ }),
  15164. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  15165. /*!********************************************************************!*\
  15166. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  15167. \********************************************************************/
  15168. /*! no static exports found */
  15169. /***/ (function(module, exports, __webpack_require__) {
  15170. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15171. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15172. /**
  15173. * This method is like `_.isArrayLike` except that it also checks if `value`
  15174. * is an object.
  15175. *
  15176. * @static
  15177. * @memberOf _
  15178. * @since 4.0.0
  15179. * @category Lang
  15180. * @param {*} value The value to check.
  15181. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15182. * else `false`.
  15183. * @example
  15184. *
  15185. * _.isArrayLikeObject([1, 2, 3]);
  15186. * // => true
  15187. *
  15188. * _.isArrayLikeObject(document.body.children);
  15189. * // => true
  15190. *
  15191. * _.isArrayLikeObject('abc');
  15192. * // => false
  15193. *
  15194. * _.isArrayLikeObject(_.noop);
  15195. * // => false
  15196. */
  15197. function isArrayLikeObject(value) {
  15198. return isObjectLike(value) && isArrayLike(value);
  15199. }
  15200. module.exports = isArrayLikeObject;
  15201. /***/ }),
  15202. /***/ "../../node_modules/lodash/isBuffer.js":
  15203. /*!***********************************************************!*\
  15204. !*** C:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  15205. \***********************************************************/
  15206. /*! no static exports found */
  15207. /***/ (function(module, exports, __webpack_require__) {
  15208. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  15209. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  15210. /** Detect free variable `exports`. */
  15211. var freeExports = true && exports && !exports.nodeType && exports;
  15212. /** Detect free variable `module`. */
  15213. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  15214. /** Detect the popular CommonJS extension `module.exports`. */
  15215. var moduleExports = freeModule && freeModule.exports === freeExports;
  15216. /** Built-in value references. */
  15217. var Buffer = moduleExports ? root.Buffer : undefined;
  15218. /* Built-in method references for those with the same name as other `lodash` methods. */
  15219. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  15220. /**
  15221. * Checks if `value` is a buffer.
  15222. *
  15223. * @static
  15224. * @memberOf _
  15225. * @since 4.3.0
  15226. * @category Lang
  15227. * @param {*} value The value to check.
  15228. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15229. * @example
  15230. *
  15231. * _.isBuffer(new Buffer(2));
  15232. * // => true
  15233. *
  15234. * _.isBuffer(new Uint8Array(2));
  15235. * // => false
  15236. */
  15237. var isBuffer = nativeIsBuffer || stubFalse;
  15238. module.exports = isBuffer;
  15239. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  15240. /***/ }),
  15241. /***/ "../../node_modules/lodash/isEmpty.js":
  15242. /*!**********************************************************!*\
  15243. !*** C:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  15244. \**********************************************************/
  15245. /*! no static exports found */
  15246. /***/ (function(module, exports, __webpack_require__) {
  15247. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15248. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15249. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15250. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15251. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15252. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15253. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15254. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15255. /** `Object#toString` result references. */
  15256. var mapTag = '[object Map]',
  15257. setTag = '[object Set]';
  15258. /** Used for built-in method references. */
  15259. var objectProto = Object.prototype;
  15260. /** Used to check objects for own properties. */
  15261. var hasOwnProperty = objectProto.hasOwnProperty;
  15262. /**
  15263. * Checks if `value` is an empty object, collection, map, or set.
  15264. *
  15265. * Objects are considered empty if they have no own enumerable string keyed
  15266. * properties.
  15267. *
  15268. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15269. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15270. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15271. *
  15272. * @static
  15273. * @memberOf _
  15274. * @since 0.1.0
  15275. * @category Lang
  15276. * @param {*} value The value to check.
  15277. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15278. * @example
  15279. *
  15280. * _.isEmpty(null);
  15281. * // => true
  15282. *
  15283. * _.isEmpty(true);
  15284. * // => true
  15285. *
  15286. * _.isEmpty(1);
  15287. * // => true
  15288. *
  15289. * _.isEmpty([1, 2, 3]);
  15290. * // => false
  15291. *
  15292. * _.isEmpty({ 'a': 1 });
  15293. * // => false
  15294. */
  15295. function isEmpty(value) {
  15296. if (value == null) {
  15297. return true;
  15298. }
  15299. if (isArrayLike(value) &&
  15300. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15301. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15302. return !value.length;
  15303. }
  15304. var tag = getTag(value);
  15305. if (tag == mapTag || tag == setTag) {
  15306. return !value.size;
  15307. }
  15308. if (isPrototype(value)) {
  15309. return !baseKeys(value).length;
  15310. }
  15311. for (var key in value) {
  15312. if (hasOwnProperty.call(value, key)) {
  15313. return false;
  15314. }
  15315. }
  15316. return true;
  15317. }
  15318. module.exports = isEmpty;
  15319. /***/ }),
  15320. /***/ "../../node_modules/lodash/isFunction.js":
  15321. /*!*************************************************************!*\
  15322. !*** C:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  15323. \*************************************************************/
  15324. /*! no static exports found */
  15325. /***/ (function(module, exports, __webpack_require__) {
  15326. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15327. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  15328. /** `Object#toString` result references. */
  15329. var asyncTag = '[object AsyncFunction]',
  15330. funcTag = '[object Function]',
  15331. genTag = '[object GeneratorFunction]',
  15332. proxyTag = '[object Proxy]';
  15333. /**
  15334. * Checks if `value` is classified as a `Function` object.
  15335. *
  15336. * @static
  15337. * @memberOf _
  15338. * @since 0.1.0
  15339. * @category Lang
  15340. * @param {*} value The value to check.
  15341. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15342. * @example
  15343. *
  15344. * _.isFunction(_);
  15345. * // => true
  15346. *
  15347. * _.isFunction(/abc/);
  15348. * // => false
  15349. */
  15350. function isFunction(value) {
  15351. if (!isObject(value)) {
  15352. return false;
  15353. }
  15354. // The use of `Object#toString` avoids issues with the `typeof` operator
  15355. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15356. var tag = baseGetTag(value);
  15357. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15358. }
  15359. module.exports = isFunction;
  15360. /***/ }),
  15361. /***/ "../../node_modules/lodash/isLength.js":
  15362. /*!***********************************************************!*\
  15363. !*** C:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  15364. \***********************************************************/
  15365. /*! no static exports found */
  15366. /***/ (function(module, exports) {
  15367. /** Used as references for various `Number` constants. */
  15368. var MAX_SAFE_INTEGER = 9007199254740991;
  15369. /**
  15370. * Checks if `value` is a valid array-like length.
  15371. *
  15372. * **Note:** This method is loosely based on
  15373. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15374. *
  15375. * @static
  15376. * @memberOf _
  15377. * @since 4.0.0
  15378. * @category Lang
  15379. * @param {*} value The value to check.
  15380. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15381. * @example
  15382. *
  15383. * _.isLength(3);
  15384. * // => true
  15385. *
  15386. * _.isLength(Number.MIN_VALUE);
  15387. * // => false
  15388. *
  15389. * _.isLength(Infinity);
  15390. * // => false
  15391. *
  15392. * _.isLength('3');
  15393. * // => false
  15394. */
  15395. function isLength(value) {
  15396. return typeof value == 'number' &&
  15397. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15398. }
  15399. module.exports = isLength;
  15400. /***/ }),
  15401. /***/ "../../node_modules/lodash/isMap.js":
  15402. /*!********************************************************!*\
  15403. !*** C:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  15404. \********************************************************/
  15405. /*! no static exports found */
  15406. /***/ (function(module, exports, __webpack_require__) {
  15407. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  15408. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15409. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15410. /* Node.js helper references. */
  15411. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  15412. /**
  15413. * Checks if `value` is classified as a `Map` object.
  15414. *
  15415. * @static
  15416. * @memberOf _
  15417. * @since 4.3.0
  15418. * @category Lang
  15419. * @param {*} value The value to check.
  15420. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15421. * @example
  15422. *
  15423. * _.isMap(new Map);
  15424. * // => true
  15425. *
  15426. * _.isMap(new WeakMap);
  15427. * // => false
  15428. */
  15429. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15430. module.exports = isMap;
  15431. /***/ }),
  15432. /***/ "../../node_modules/lodash/isObject.js":
  15433. /*!***********************************************************!*\
  15434. !*** C:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  15435. \***********************************************************/
  15436. /*! no static exports found */
  15437. /***/ (function(module, exports) {
  15438. /**
  15439. * Checks if `value` is the
  15440. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15441. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15442. *
  15443. * @static
  15444. * @memberOf _
  15445. * @since 0.1.0
  15446. * @category Lang
  15447. * @param {*} value The value to check.
  15448. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15449. * @example
  15450. *
  15451. * _.isObject({});
  15452. * // => true
  15453. *
  15454. * _.isObject([1, 2, 3]);
  15455. * // => true
  15456. *
  15457. * _.isObject(_.noop);
  15458. * // => true
  15459. *
  15460. * _.isObject(null);
  15461. * // => false
  15462. */
  15463. function isObject(value) {
  15464. var type = typeof value;
  15465. return value != null && (type == 'object' || type == 'function');
  15466. }
  15467. module.exports = isObject;
  15468. /***/ }),
  15469. /***/ "../../node_modules/lodash/isObjectLike.js":
  15470. /*!***************************************************************!*\
  15471. !*** C:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  15472. \***************************************************************/
  15473. /*! no static exports found */
  15474. /***/ (function(module, exports) {
  15475. /**
  15476. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15477. * and has a `typeof` result of "object".
  15478. *
  15479. * @static
  15480. * @memberOf _
  15481. * @since 4.0.0
  15482. * @category Lang
  15483. * @param {*} value The value to check.
  15484. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15485. * @example
  15486. *
  15487. * _.isObjectLike({});
  15488. * // => true
  15489. *
  15490. * _.isObjectLike([1, 2, 3]);
  15491. * // => true
  15492. *
  15493. * _.isObjectLike(_.noop);
  15494. * // => false
  15495. *
  15496. * _.isObjectLike(null);
  15497. * // => false
  15498. */
  15499. function isObjectLike(value) {
  15500. return value != null && typeof value == 'object';
  15501. }
  15502. module.exports = isObjectLike;
  15503. /***/ }),
  15504. /***/ "../../node_modules/lodash/isPlainObject.js":
  15505. /*!****************************************************************!*\
  15506. !*** C:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  15507. \****************************************************************/
  15508. /*! no static exports found */
  15509. /***/ (function(module, exports, __webpack_require__) {
  15510. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15511. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  15512. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15513. /** `Object#toString` result references. */
  15514. var objectTag = '[object Object]';
  15515. /** Used for built-in method references. */
  15516. var funcProto = Function.prototype,
  15517. objectProto = Object.prototype;
  15518. /** Used to resolve the decompiled source of functions. */
  15519. var funcToString = funcProto.toString;
  15520. /** Used to check objects for own properties. */
  15521. var hasOwnProperty = objectProto.hasOwnProperty;
  15522. /** Used to infer the `Object` constructor. */
  15523. var objectCtorString = funcToString.call(Object);
  15524. /**
  15525. * Checks if `value` is a plain object, that is, an object created by the
  15526. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  15527. *
  15528. * @static
  15529. * @memberOf _
  15530. * @since 0.8.0
  15531. * @category Lang
  15532. * @param {*} value The value to check.
  15533. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  15534. * @example
  15535. *
  15536. * function Foo() {
  15537. * this.a = 1;
  15538. * }
  15539. *
  15540. * _.isPlainObject(new Foo);
  15541. * // => false
  15542. *
  15543. * _.isPlainObject([1, 2, 3]);
  15544. * // => false
  15545. *
  15546. * _.isPlainObject({ 'x': 0, 'y': 0 });
  15547. * // => true
  15548. *
  15549. * _.isPlainObject(Object.create(null));
  15550. * // => true
  15551. */
  15552. function isPlainObject(value) {
  15553. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  15554. return false;
  15555. }
  15556. var proto = getPrototype(value);
  15557. if (proto === null) {
  15558. return true;
  15559. }
  15560. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  15561. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  15562. funcToString.call(Ctor) == objectCtorString;
  15563. }
  15564. module.exports = isPlainObject;
  15565. /***/ }),
  15566. /***/ "../../node_modules/lodash/isSet.js":
  15567. /*!********************************************************!*\
  15568. !*** C:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  15569. \********************************************************/
  15570. /*! no static exports found */
  15571. /***/ (function(module, exports, __webpack_require__) {
  15572. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  15573. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15574. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15575. /* Node.js helper references. */
  15576. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  15577. /**
  15578. * Checks if `value` is classified as a `Set` object.
  15579. *
  15580. * @static
  15581. * @memberOf _
  15582. * @since 4.3.0
  15583. * @category Lang
  15584. * @param {*} value The value to check.
  15585. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15586. * @example
  15587. *
  15588. * _.isSet(new Set);
  15589. * // => true
  15590. *
  15591. * _.isSet(new WeakSet);
  15592. * // => false
  15593. */
  15594. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  15595. module.exports = isSet;
  15596. /***/ }),
  15597. /***/ "../../node_modules/lodash/isString.js":
  15598. /*!***********************************************************!*\
  15599. !*** C:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  15600. \***********************************************************/
  15601. /*! no static exports found */
  15602. /***/ (function(module, exports, __webpack_require__) {
  15603. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15604. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15605. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15606. /** `Object#toString` result references. */
  15607. var stringTag = '[object String]';
  15608. /**
  15609. * Checks if `value` is classified as a `String` primitive or object.
  15610. *
  15611. * @static
  15612. * @since 0.1.0
  15613. * @memberOf _
  15614. * @category Lang
  15615. * @param {*} value The value to check.
  15616. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  15617. * @example
  15618. *
  15619. * _.isString('abc');
  15620. * // => true
  15621. *
  15622. * _.isString(1);
  15623. * // => false
  15624. */
  15625. function isString(value) {
  15626. return typeof value == 'string' ||
  15627. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  15628. }
  15629. module.exports = isString;
  15630. /***/ }),
  15631. /***/ "../../node_modules/lodash/isSymbol.js":
  15632. /*!***********************************************************!*\
  15633. !*** C:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  15634. \***********************************************************/
  15635. /*! no static exports found */
  15636. /***/ (function(module, exports, __webpack_require__) {
  15637. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15638. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15639. /** `Object#toString` result references. */
  15640. var symbolTag = '[object Symbol]';
  15641. /**
  15642. * Checks if `value` is classified as a `Symbol` primitive or object.
  15643. *
  15644. * @static
  15645. * @memberOf _
  15646. * @since 4.0.0
  15647. * @category Lang
  15648. * @param {*} value The value to check.
  15649. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  15650. * @example
  15651. *
  15652. * _.isSymbol(Symbol.iterator);
  15653. * // => true
  15654. *
  15655. * _.isSymbol('abc');
  15656. * // => false
  15657. */
  15658. function isSymbol(value) {
  15659. return typeof value == 'symbol' ||
  15660. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  15661. }
  15662. module.exports = isSymbol;
  15663. /***/ }),
  15664. /***/ "../../node_modules/lodash/isTypedArray.js":
  15665. /*!***************************************************************!*\
  15666. !*** C:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  15667. \***************************************************************/
  15668. /*! no static exports found */
  15669. /***/ (function(module, exports, __webpack_require__) {
  15670. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  15671. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15672. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15673. /* Node.js helper references. */
  15674. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  15675. /**
  15676. * Checks if `value` is classified as a typed array.
  15677. *
  15678. * @static
  15679. * @memberOf _
  15680. * @since 3.0.0
  15681. * @category Lang
  15682. * @param {*} value The value to check.
  15683. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15684. * @example
  15685. *
  15686. * _.isTypedArray(new Uint8Array);
  15687. * // => true
  15688. *
  15689. * _.isTypedArray([]);
  15690. * // => false
  15691. */
  15692. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  15693. module.exports = isTypedArray;
  15694. /***/ }),
  15695. /***/ "../../node_modules/lodash/isUndefined.js":
  15696. /*!**************************************************************!*\
  15697. !*** C:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  15698. \**************************************************************/
  15699. /*! no static exports found */
  15700. /***/ (function(module, exports) {
  15701. /**
  15702. * Checks if `value` is `undefined`.
  15703. *
  15704. * @static
  15705. * @since 0.1.0
  15706. * @memberOf _
  15707. * @category Lang
  15708. * @param {*} value The value to check.
  15709. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  15710. * @example
  15711. *
  15712. * _.isUndefined(void 0);
  15713. * // => true
  15714. *
  15715. * _.isUndefined(null);
  15716. * // => false
  15717. */
  15718. function isUndefined(value) {
  15719. return value === undefined;
  15720. }
  15721. module.exports = isUndefined;
  15722. /***/ }),
  15723. /***/ "../../node_modules/lodash/keys.js":
  15724. /*!*******************************************************!*\
  15725. !*** C:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  15726. \*******************************************************/
  15727. /*! no static exports found */
  15728. /***/ (function(module, exports, __webpack_require__) {
  15729. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15730. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15731. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15732. /**
  15733. * Creates an array of the own enumerable property names of `object`.
  15734. *
  15735. * **Note:** Non-object values are coerced to objects. See the
  15736. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  15737. * for more details.
  15738. *
  15739. * @static
  15740. * @since 0.1.0
  15741. * @memberOf _
  15742. * @category Object
  15743. * @param {Object} object The object to query.
  15744. * @returns {Array} Returns the array of property names.
  15745. * @example
  15746. *
  15747. * function Foo() {
  15748. * this.a = 1;
  15749. * this.b = 2;
  15750. * }
  15751. *
  15752. * Foo.prototype.c = 3;
  15753. *
  15754. * _.keys(new Foo);
  15755. * // => ['a', 'b'] (iteration order is not guaranteed)
  15756. *
  15757. * _.keys('hi');
  15758. * // => ['0', '1']
  15759. */
  15760. function keys(object) {
  15761. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  15762. }
  15763. module.exports = keys;
  15764. /***/ }),
  15765. /***/ "../../node_modules/lodash/keysIn.js":
  15766. /*!*********************************************************!*\
  15767. !*** C:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  15768. \*********************************************************/
  15769. /*! no static exports found */
  15770. /***/ (function(module, exports, __webpack_require__) {
  15771. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15772. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  15773. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15774. /**
  15775. * Creates an array of the own and inherited enumerable property names of `object`.
  15776. *
  15777. * **Note:** Non-object values are coerced to objects.
  15778. *
  15779. * @static
  15780. * @memberOf _
  15781. * @since 3.0.0
  15782. * @category Object
  15783. * @param {Object} object The object to query.
  15784. * @returns {Array} Returns the array of property names.
  15785. * @example
  15786. *
  15787. * function Foo() {
  15788. * this.a = 1;
  15789. * this.b = 2;
  15790. * }
  15791. *
  15792. * Foo.prototype.c = 3;
  15793. *
  15794. * _.keysIn(new Foo);
  15795. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  15796. */
  15797. function keysIn(object) {
  15798. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  15799. }
  15800. module.exports = keysIn;
  15801. /***/ }),
  15802. /***/ "../../node_modules/lodash/last.js":
  15803. /*!*******************************************************!*\
  15804. !*** C:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  15805. \*******************************************************/
  15806. /*! no static exports found */
  15807. /***/ (function(module, exports) {
  15808. /**
  15809. * Gets the last element of `array`.
  15810. *
  15811. * @static
  15812. * @memberOf _
  15813. * @since 0.1.0
  15814. * @category Array
  15815. * @param {Array} array The array to query.
  15816. * @returns {*} Returns the last element of `array`.
  15817. * @example
  15818. *
  15819. * _.last([1, 2, 3]);
  15820. * // => 3
  15821. */
  15822. function last(array) {
  15823. var length = array == null ? 0 : array.length;
  15824. return length ? array[length - 1] : undefined;
  15825. }
  15826. module.exports = last;
  15827. /***/ }),
  15828. /***/ "../../node_modules/lodash/lodash.js":
  15829. /*!*********************************************************!*\
  15830. !*** C:/Repos/Babylon.js/node_modules/lodash/lodash.js ***!
  15831. \*********************************************************/
  15832. /*! no static exports found */
  15833. /***/ (function(module, exports, __webpack_require__) {
  15834. /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
  15835. * @license
  15836. * Lodash <https://lodash.com/>
  15837. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  15838. * Released under MIT license <https://lodash.com/license>
  15839. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  15840. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  15841. */
  15842. ;(function() {
  15843. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  15844. var undefined;
  15845. /** Used as the semantic version number. */
  15846. var VERSION = '4.17.14';
  15847. /** Used as the size to enable large array optimizations. */
  15848. var LARGE_ARRAY_SIZE = 200;
  15849. /** Error message constants. */
  15850. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  15851. FUNC_ERROR_TEXT = 'Expected a function';
  15852. /** Used to stand-in for `undefined` hash values. */
  15853. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  15854. /** Used as the maximum memoize cache size. */
  15855. var MAX_MEMOIZE_SIZE = 500;
  15856. /** Used as the internal argument placeholder. */
  15857. var PLACEHOLDER = '__lodash_placeholder__';
  15858. /** Used to compose bitmasks for cloning. */
  15859. var CLONE_DEEP_FLAG = 1,
  15860. CLONE_FLAT_FLAG = 2,
  15861. CLONE_SYMBOLS_FLAG = 4;
  15862. /** Used to compose bitmasks for value comparisons. */
  15863. var COMPARE_PARTIAL_FLAG = 1,
  15864. COMPARE_UNORDERED_FLAG = 2;
  15865. /** Used to compose bitmasks for function metadata. */
  15866. var WRAP_BIND_FLAG = 1,
  15867. WRAP_BIND_KEY_FLAG = 2,
  15868. WRAP_CURRY_BOUND_FLAG = 4,
  15869. WRAP_CURRY_FLAG = 8,
  15870. WRAP_CURRY_RIGHT_FLAG = 16,
  15871. WRAP_PARTIAL_FLAG = 32,
  15872. WRAP_PARTIAL_RIGHT_FLAG = 64,
  15873. WRAP_ARY_FLAG = 128,
  15874. WRAP_REARG_FLAG = 256,
  15875. WRAP_FLIP_FLAG = 512;
  15876. /** Used as default options for `_.truncate`. */
  15877. var DEFAULT_TRUNC_LENGTH = 30,
  15878. DEFAULT_TRUNC_OMISSION = '...';
  15879. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  15880. var HOT_COUNT = 800,
  15881. HOT_SPAN = 16;
  15882. /** Used to indicate the type of lazy iteratees. */
  15883. var LAZY_FILTER_FLAG = 1,
  15884. LAZY_MAP_FLAG = 2,
  15885. LAZY_WHILE_FLAG = 3;
  15886. /** Used as references for various `Number` constants. */
  15887. var INFINITY = 1 / 0,
  15888. MAX_SAFE_INTEGER = 9007199254740991,
  15889. MAX_INTEGER = 1.7976931348623157e+308,
  15890. NAN = 0 / 0;
  15891. /** Used as references for the maximum length and index of an array. */
  15892. var MAX_ARRAY_LENGTH = 4294967295,
  15893. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  15894. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  15895. /** Used to associate wrap methods with their bit flags. */
  15896. var wrapFlags = [
  15897. ['ary', WRAP_ARY_FLAG],
  15898. ['bind', WRAP_BIND_FLAG],
  15899. ['bindKey', WRAP_BIND_KEY_FLAG],
  15900. ['curry', WRAP_CURRY_FLAG],
  15901. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  15902. ['flip', WRAP_FLIP_FLAG],
  15903. ['partial', WRAP_PARTIAL_FLAG],
  15904. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  15905. ['rearg', WRAP_REARG_FLAG]
  15906. ];
  15907. /** `Object#toString` result references. */
  15908. var argsTag = '[object Arguments]',
  15909. arrayTag = '[object Array]',
  15910. asyncTag = '[object AsyncFunction]',
  15911. boolTag = '[object Boolean]',
  15912. dateTag = '[object Date]',
  15913. domExcTag = '[object DOMException]',
  15914. errorTag = '[object Error]',
  15915. funcTag = '[object Function]',
  15916. genTag = '[object GeneratorFunction]',
  15917. mapTag = '[object Map]',
  15918. numberTag = '[object Number]',
  15919. nullTag = '[object Null]',
  15920. objectTag = '[object Object]',
  15921. promiseTag = '[object Promise]',
  15922. proxyTag = '[object Proxy]',
  15923. regexpTag = '[object RegExp]',
  15924. setTag = '[object Set]',
  15925. stringTag = '[object String]',
  15926. symbolTag = '[object Symbol]',
  15927. undefinedTag = '[object Undefined]',
  15928. weakMapTag = '[object WeakMap]',
  15929. weakSetTag = '[object WeakSet]';
  15930. var arrayBufferTag = '[object ArrayBuffer]',
  15931. dataViewTag = '[object DataView]',
  15932. float32Tag = '[object Float32Array]',
  15933. float64Tag = '[object Float64Array]',
  15934. int8Tag = '[object Int8Array]',
  15935. int16Tag = '[object Int16Array]',
  15936. int32Tag = '[object Int32Array]',
  15937. uint8Tag = '[object Uint8Array]',
  15938. uint8ClampedTag = '[object Uint8ClampedArray]',
  15939. uint16Tag = '[object Uint16Array]',
  15940. uint32Tag = '[object Uint32Array]';
  15941. /** Used to match empty string literals in compiled template source. */
  15942. var reEmptyStringLeading = /\b__p \+= '';/g,
  15943. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  15944. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  15945. /** Used to match HTML entities and HTML characters. */
  15946. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  15947. reUnescapedHtml = /[&<>"']/g,
  15948. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  15949. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  15950. /** Used to match template delimiters. */
  15951. var reEscape = /<%-([\s\S]+?)%>/g,
  15952. reEvaluate = /<%([\s\S]+?)%>/g,
  15953. reInterpolate = /<%=([\s\S]+?)%>/g;
  15954. /** Used to match property names within property paths. */
  15955. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  15956. reIsPlainProp = /^\w*$/,
  15957. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  15958. /**
  15959. * Used to match `RegExp`
  15960. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  15961. */
  15962. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  15963. reHasRegExpChar = RegExp(reRegExpChar.source);
  15964. /** Used to match leading and trailing whitespace. */
  15965. var reTrim = /^\s+|\s+$/g,
  15966. reTrimStart = /^\s+/,
  15967. reTrimEnd = /\s+$/;
  15968. /** Used to match wrap detail comments. */
  15969. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  15970. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  15971. reSplitDetails = /,? & /;
  15972. /** Used to match words composed of alphanumeric characters. */
  15973. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  15974. /** Used to match backslashes in property paths. */
  15975. var reEscapeChar = /\\(\\)?/g;
  15976. /**
  15977. * Used to match
  15978. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  15979. */
  15980. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  15981. /** Used to match `RegExp` flags from their coerced string values. */
  15982. var reFlags = /\w*$/;
  15983. /** Used to detect bad signed hexadecimal string values. */
  15984. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  15985. /** Used to detect binary string values. */
  15986. var reIsBinary = /^0b[01]+$/i;
  15987. /** Used to detect host constructors (Safari). */
  15988. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  15989. /** Used to detect octal string values. */
  15990. var reIsOctal = /^0o[0-7]+$/i;
  15991. /** Used to detect unsigned integer values. */
  15992. var reIsUint = /^(?:0|[1-9]\d*)$/;
  15993. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  15994. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  15995. /** Used to ensure capturing order of template delimiters. */
  15996. var reNoMatch = /($^)/;
  15997. /** Used to match unescaped characters in compiled string literals. */
  15998. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  15999. /** Used to compose unicode character classes. */
  16000. var rsAstralRange = '\\ud800-\\udfff',
  16001. rsComboMarksRange = '\\u0300-\\u036f',
  16002. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  16003. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  16004. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  16005. rsDingbatRange = '\\u2700-\\u27bf',
  16006. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  16007. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  16008. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  16009. rsPunctuationRange = '\\u2000-\\u206f',
  16010. rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  16011. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  16012. rsVarRange = '\\ufe0e\\ufe0f',
  16013. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  16014. /** Used to compose unicode capture groups. */
  16015. var rsApos = "['\u2019]",
  16016. rsAstral = '[' + rsAstralRange + ']',
  16017. rsBreak = '[' + rsBreakRange + ']',
  16018. rsCombo = '[' + rsComboRange + ']',
  16019. rsDigits = '\\d+',
  16020. rsDingbat = '[' + rsDingbatRange + ']',
  16021. rsLower = '[' + rsLowerRange + ']',
  16022. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  16023. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  16024. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  16025. rsNonAstral = '[^' + rsAstralRange + ']',
  16026. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  16027. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  16028. rsUpper = '[' + rsUpperRange + ']',
  16029. rsZWJ = '\\u200d';
  16030. /** Used to compose unicode regexes. */
  16031. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  16032. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  16033. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  16034. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  16035. reOptMod = rsModifier + '?',
  16036. rsOptVar = '[' + rsVarRange + ']?',
  16037. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  16038. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  16039. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  16040. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  16041. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  16042. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  16043. /** Used to match apostrophes. */
  16044. var reApos = RegExp(rsApos, 'g');
  16045. /**
  16046. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  16047. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  16048. */
  16049. var reComboMark = RegExp(rsCombo, 'g');
  16050. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  16051. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  16052. /** Used to match complex or compound words. */
  16053. var reUnicodeWord = RegExp([
  16054. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  16055. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  16056. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  16057. rsUpper + '+' + rsOptContrUpper,
  16058. rsOrdUpper,
  16059. rsOrdLower,
  16060. rsDigits,
  16061. rsEmoji
  16062. ].join('|'), 'g');
  16063. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  16064. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  16065. /** Used to detect strings that need a more robust regexp to match words. */
  16066. var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  16067. /** Used to assign default `context` object properties. */
  16068. var contextProps = [
  16069. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  16070. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  16071. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  16072. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  16073. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  16074. ];
  16075. /** Used to make template sourceURLs easier to identify. */
  16076. var templateCounter = -1;
  16077. /** Used to identify `toStringTag` values of typed arrays. */
  16078. var typedArrayTags = {};
  16079. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  16080. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  16081. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  16082. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  16083. typedArrayTags[uint32Tag] = true;
  16084. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  16085. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  16086. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  16087. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  16088. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  16089. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  16090. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  16091. typedArrayTags[weakMapTag] = false;
  16092. /** Used to identify `toStringTag` values supported by `_.clone`. */
  16093. var cloneableTags = {};
  16094. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  16095. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  16096. cloneableTags[boolTag] = cloneableTags[dateTag] =
  16097. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  16098. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  16099. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  16100. cloneableTags[numberTag] = cloneableTags[objectTag] =
  16101. cloneableTags[regexpTag] = cloneableTags[setTag] =
  16102. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  16103. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  16104. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  16105. cloneableTags[errorTag] = cloneableTags[funcTag] =
  16106. cloneableTags[weakMapTag] = false;
  16107. /** Used to map Latin Unicode letters to basic Latin letters. */
  16108. var deburredLetters = {
  16109. // Latin-1 Supplement block.
  16110. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  16111. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  16112. '\xc7': 'C', '\xe7': 'c',
  16113. '\xd0': 'D', '\xf0': 'd',
  16114. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  16115. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  16116. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  16117. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  16118. '\xd1': 'N', '\xf1': 'n',
  16119. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  16120. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  16121. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  16122. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  16123. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  16124. '\xc6': 'Ae', '\xe6': 'ae',
  16125. '\xde': 'Th', '\xfe': 'th',
  16126. '\xdf': 'ss',
  16127. // Latin Extended-A block.
  16128. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  16129. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  16130. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  16131. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  16132. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  16133. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  16134. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  16135. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  16136. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  16137. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  16138. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  16139. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  16140. '\u0134': 'J', '\u0135': 'j',
  16141. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  16142. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  16143. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  16144. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  16145. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  16146. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  16147. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  16148. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  16149. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  16150. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  16151. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  16152. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  16153. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  16154. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  16155. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  16156. '\u0174': 'W', '\u0175': 'w',
  16157. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  16158. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  16159. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  16160. '\u0132': 'IJ', '\u0133': 'ij',
  16161. '\u0152': 'Oe', '\u0153': 'oe',
  16162. '\u0149': "'n", '\u017f': 's'
  16163. };
  16164. /** Used to map characters to HTML entities. */
  16165. var htmlEscapes = {
  16166. '&': '&amp;',
  16167. '<': '&lt;',
  16168. '>': '&gt;',
  16169. '"': '&quot;',
  16170. "'": '&#39;'
  16171. };
  16172. /** Used to map HTML entities to characters. */
  16173. var htmlUnescapes = {
  16174. '&amp;': '&',
  16175. '&lt;': '<',
  16176. '&gt;': '>',
  16177. '&quot;': '"',
  16178. '&#39;': "'"
  16179. };
  16180. /** Used to escape characters for inclusion in compiled string literals. */
  16181. var stringEscapes = {
  16182. '\\': '\\',
  16183. "'": "'",
  16184. '\n': 'n',
  16185. '\r': 'r',
  16186. '\u2028': 'u2028',
  16187. '\u2029': 'u2029'
  16188. };
  16189. /** Built-in method references without a dependency on `root`. */
  16190. var freeParseFloat = parseFloat,
  16191. freeParseInt = parseInt;
  16192. /** Detect free variable `global` from Node.js. */
  16193. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  16194. /** Detect free variable `self`. */
  16195. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  16196. /** Used as a reference to the global object. */
  16197. var root = freeGlobal || freeSelf || Function('return this')();
  16198. /** Detect free variable `exports`. */
  16199. var freeExports = true && exports && !exports.nodeType && exports;
  16200. /** Detect free variable `module`. */
  16201. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  16202. /** Detect the popular CommonJS extension `module.exports`. */
  16203. var moduleExports = freeModule && freeModule.exports === freeExports;
  16204. /** Detect free variable `process` from Node.js. */
  16205. var freeProcess = moduleExports && freeGlobal.process;
  16206. /** Used to access faster Node.js helpers. */
  16207. var nodeUtil = (function() {
  16208. try {
  16209. // Use `util.types` for Node.js 10+.
  16210. var types = freeModule && freeModule.require && freeModule.require('util').types;
  16211. if (types) {
  16212. return types;
  16213. }
  16214. // Legacy `process.binding('util')` for Node.js < 10.
  16215. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  16216. } catch (e) {}
  16217. }());
  16218. /* Node.js helper references. */
  16219. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  16220. nodeIsDate = nodeUtil && nodeUtil.isDate,
  16221. nodeIsMap = nodeUtil && nodeUtil.isMap,
  16222. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  16223. nodeIsSet = nodeUtil && nodeUtil.isSet,
  16224. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  16225. /*--------------------------------------------------------------------------*/
  16226. /**
  16227. * A faster alternative to `Function#apply`, this function invokes `func`
  16228. * with the `this` binding of `thisArg` and the arguments of `args`.
  16229. *
  16230. * @private
  16231. * @param {Function} func The function to invoke.
  16232. * @param {*} thisArg The `this` binding of `func`.
  16233. * @param {Array} args The arguments to invoke `func` with.
  16234. * @returns {*} Returns the result of `func`.
  16235. */
  16236. function apply(func, thisArg, args) {
  16237. switch (args.length) {
  16238. case 0: return func.call(thisArg);
  16239. case 1: return func.call(thisArg, args[0]);
  16240. case 2: return func.call(thisArg, args[0], args[1]);
  16241. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  16242. }
  16243. return func.apply(thisArg, args);
  16244. }
  16245. /**
  16246. * A specialized version of `baseAggregator` for arrays.
  16247. *
  16248. * @private
  16249. * @param {Array} [array] The array to iterate over.
  16250. * @param {Function} setter The function to set `accumulator` values.
  16251. * @param {Function} iteratee The iteratee to transform keys.
  16252. * @param {Object} accumulator The initial aggregated object.
  16253. * @returns {Function} Returns `accumulator`.
  16254. */
  16255. function arrayAggregator(array, setter, iteratee, accumulator) {
  16256. var index = -1,
  16257. length = array == null ? 0 : array.length;
  16258. while (++index < length) {
  16259. var value = array[index];
  16260. setter(accumulator, value, iteratee(value), array);
  16261. }
  16262. return accumulator;
  16263. }
  16264. /**
  16265. * A specialized version of `_.forEach` for arrays without support for
  16266. * iteratee shorthands.
  16267. *
  16268. * @private
  16269. * @param {Array} [array] The array to iterate over.
  16270. * @param {Function} iteratee The function invoked per iteration.
  16271. * @returns {Array} Returns `array`.
  16272. */
  16273. function arrayEach(array, iteratee) {
  16274. var index = -1,
  16275. length = array == null ? 0 : array.length;
  16276. while (++index < length) {
  16277. if (iteratee(array[index], index, array) === false) {
  16278. break;
  16279. }
  16280. }
  16281. return array;
  16282. }
  16283. /**
  16284. * A specialized version of `_.forEachRight` for arrays without support for
  16285. * iteratee shorthands.
  16286. *
  16287. * @private
  16288. * @param {Array} [array] The array to iterate over.
  16289. * @param {Function} iteratee The function invoked per iteration.
  16290. * @returns {Array} Returns `array`.
  16291. */
  16292. function arrayEachRight(array, iteratee) {
  16293. var length = array == null ? 0 : array.length;
  16294. while (length--) {
  16295. if (iteratee(array[length], length, array) === false) {
  16296. break;
  16297. }
  16298. }
  16299. return array;
  16300. }
  16301. /**
  16302. * A specialized version of `_.every` for arrays without support for
  16303. * iteratee shorthands.
  16304. *
  16305. * @private
  16306. * @param {Array} [array] The array to iterate over.
  16307. * @param {Function} predicate The function invoked per iteration.
  16308. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  16309. * else `false`.
  16310. */
  16311. function arrayEvery(array, predicate) {
  16312. var index = -1,
  16313. length = array == null ? 0 : array.length;
  16314. while (++index < length) {
  16315. if (!predicate(array[index], index, array)) {
  16316. return false;
  16317. }
  16318. }
  16319. return true;
  16320. }
  16321. /**
  16322. * A specialized version of `_.filter` for arrays without support for
  16323. * iteratee shorthands.
  16324. *
  16325. * @private
  16326. * @param {Array} [array] The array to iterate over.
  16327. * @param {Function} predicate The function invoked per iteration.
  16328. * @returns {Array} Returns the new filtered array.
  16329. */
  16330. function arrayFilter(array, predicate) {
  16331. var index = -1,
  16332. length = array == null ? 0 : array.length,
  16333. resIndex = 0,
  16334. result = [];
  16335. while (++index < length) {
  16336. var value = array[index];
  16337. if (predicate(value, index, array)) {
  16338. result[resIndex++] = value;
  16339. }
  16340. }
  16341. return result;
  16342. }
  16343. /**
  16344. * A specialized version of `_.includes` for arrays without support for
  16345. * specifying an index to search from.
  16346. *
  16347. * @private
  16348. * @param {Array} [array] The array to inspect.
  16349. * @param {*} target The value to search for.
  16350. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16351. */
  16352. function arrayIncludes(array, value) {
  16353. var length = array == null ? 0 : array.length;
  16354. return !!length && baseIndexOf(array, value, 0) > -1;
  16355. }
  16356. /**
  16357. * This function is like `arrayIncludes` except that it accepts a comparator.
  16358. *
  16359. * @private
  16360. * @param {Array} [array] The array to inspect.
  16361. * @param {*} target The value to search for.
  16362. * @param {Function} comparator The comparator invoked per element.
  16363. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16364. */
  16365. function arrayIncludesWith(array, value, comparator) {
  16366. var index = -1,
  16367. length = array == null ? 0 : array.length;
  16368. while (++index < length) {
  16369. if (comparator(value, array[index])) {
  16370. return true;
  16371. }
  16372. }
  16373. return false;
  16374. }
  16375. /**
  16376. * A specialized version of `_.map` for arrays without support for iteratee
  16377. * shorthands.
  16378. *
  16379. * @private
  16380. * @param {Array} [array] The array to iterate over.
  16381. * @param {Function} iteratee The function invoked per iteration.
  16382. * @returns {Array} Returns the new mapped array.
  16383. */
  16384. function arrayMap(array, iteratee) {
  16385. var index = -1,
  16386. length = array == null ? 0 : array.length,
  16387. result = Array(length);
  16388. while (++index < length) {
  16389. result[index] = iteratee(array[index], index, array);
  16390. }
  16391. return result;
  16392. }
  16393. /**
  16394. * Appends the elements of `values` to `array`.
  16395. *
  16396. * @private
  16397. * @param {Array} array The array to modify.
  16398. * @param {Array} values The values to append.
  16399. * @returns {Array} Returns `array`.
  16400. */
  16401. function arrayPush(array, values) {
  16402. var index = -1,
  16403. length = values.length,
  16404. offset = array.length;
  16405. while (++index < length) {
  16406. array[offset + index] = values[index];
  16407. }
  16408. return array;
  16409. }
  16410. /**
  16411. * A specialized version of `_.reduce` for arrays without support for
  16412. * iteratee shorthands.
  16413. *
  16414. * @private
  16415. * @param {Array} [array] The array to iterate over.
  16416. * @param {Function} iteratee The function invoked per iteration.
  16417. * @param {*} [accumulator] The initial value.
  16418. * @param {boolean} [initAccum] Specify using the first element of `array` as
  16419. * the initial value.
  16420. * @returns {*} Returns the accumulated value.
  16421. */
  16422. function arrayReduce(array, iteratee, accumulator, initAccum) {
  16423. var index = -1,
  16424. length = array == null ? 0 : array.length;
  16425. if (initAccum && length) {
  16426. accumulator = array[++index];
  16427. }
  16428. while (++index < length) {
  16429. accumulator = iteratee(accumulator, array[index], index, array);
  16430. }
  16431. return accumulator;
  16432. }
  16433. /**
  16434. * A specialized version of `_.reduceRight` for arrays without support for
  16435. * iteratee shorthands.
  16436. *
  16437. * @private
  16438. * @param {Array} [array] The array to iterate over.
  16439. * @param {Function} iteratee The function invoked per iteration.
  16440. * @param {*} [accumulator] The initial value.
  16441. * @param {boolean} [initAccum] Specify using the last element of `array` as
  16442. * the initial value.
  16443. * @returns {*} Returns the accumulated value.
  16444. */
  16445. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  16446. var length = array == null ? 0 : array.length;
  16447. if (initAccum && length) {
  16448. accumulator = array[--length];
  16449. }
  16450. while (length--) {
  16451. accumulator = iteratee(accumulator, array[length], length, array);
  16452. }
  16453. return accumulator;
  16454. }
  16455. /**
  16456. * A specialized version of `_.some` for arrays without support for iteratee
  16457. * shorthands.
  16458. *
  16459. * @private
  16460. * @param {Array} [array] The array to iterate over.
  16461. * @param {Function} predicate The function invoked per iteration.
  16462. * @returns {boolean} Returns `true` if any element passes the predicate check,
  16463. * else `false`.
  16464. */
  16465. function arraySome(array, predicate) {
  16466. var index = -1,
  16467. length = array == null ? 0 : array.length;
  16468. while (++index < length) {
  16469. if (predicate(array[index], index, array)) {
  16470. return true;
  16471. }
  16472. }
  16473. return false;
  16474. }
  16475. /**
  16476. * Gets the size of an ASCII `string`.
  16477. *
  16478. * @private
  16479. * @param {string} string The string inspect.
  16480. * @returns {number} Returns the string size.
  16481. */
  16482. var asciiSize = baseProperty('length');
  16483. /**
  16484. * Converts an ASCII `string` to an array.
  16485. *
  16486. * @private
  16487. * @param {string} string The string to convert.
  16488. * @returns {Array} Returns the converted array.
  16489. */
  16490. function asciiToArray(string) {
  16491. return string.split('');
  16492. }
  16493. /**
  16494. * Splits an ASCII `string` into an array of its words.
  16495. *
  16496. * @private
  16497. * @param {string} The string to inspect.
  16498. * @returns {Array} Returns the words of `string`.
  16499. */
  16500. function asciiWords(string) {
  16501. return string.match(reAsciiWord) || [];
  16502. }
  16503. /**
  16504. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  16505. * without support for iteratee shorthands, which iterates over `collection`
  16506. * using `eachFunc`.
  16507. *
  16508. * @private
  16509. * @param {Array|Object} collection The collection to inspect.
  16510. * @param {Function} predicate The function invoked per iteration.
  16511. * @param {Function} eachFunc The function to iterate over `collection`.
  16512. * @returns {*} Returns the found element or its key, else `undefined`.
  16513. */
  16514. function baseFindKey(collection, predicate, eachFunc) {
  16515. var result;
  16516. eachFunc(collection, function(value, key, collection) {
  16517. if (predicate(value, key, collection)) {
  16518. result = key;
  16519. return false;
  16520. }
  16521. });
  16522. return result;
  16523. }
  16524. /**
  16525. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  16526. * support for iteratee shorthands.
  16527. *
  16528. * @private
  16529. * @param {Array} array The array to inspect.
  16530. * @param {Function} predicate The function invoked per iteration.
  16531. * @param {number} fromIndex The index to search from.
  16532. * @param {boolean} [fromRight] Specify iterating from right to left.
  16533. * @returns {number} Returns the index of the matched value, else `-1`.
  16534. */
  16535. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  16536. var length = array.length,
  16537. index = fromIndex + (fromRight ? 1 : -1);
  16538. while ((fromRight ? index-- : ++index < length)) {
  16539. if (predicate(array[index], index, array)) {
  16540. return index;
  16541. }
  16542. }
  16543. return -1;
  16544. }
  16545. /**
  16546. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  16547. *
  16548. * @private
  16549. * @param {Array} array The array to inspect.
  16550. * @param {*} value The value to search for.
  16551. * @param {number} fromIndex The index to search from.
  16552. * @returns {number} Returns the index of the matched value, else `-1`.
  16553. */
  16554. function baseIndexOf(array, value, fromIndex) {
  16555. return value === value
  16556. ? strictIndexOf(array, value, fromIndex)
  16557. : baseFindIndex(array, baseIsNaN, fromIndex);
  16558. }
  16559. /**
  16560. * This function is like `baseIndexOf` except that it accepts a comparator.
  16561. *
  16562. * @private
  16563. * @param {Array} array The array to inspect.
  16564. * @param {*} value The value to search for.
  16565. * @param {number} fromIndex The index to search from.
  16566. * @param {Function} comparator The comparator invoked per element.
  16567. * @returns {number} Returns the index of the matched value, else `-1`.
  16568. */
  16569. function baseIndexOfWith(array, value, fromIndex, comparator) {
  16570. var index = fromIndex - 1,
  16571. length = array.length;
  16572. while (++index < length) {
  16573. if (comparator(array[index], value)) {
  16574. return index;
  16575. }
  16576. }
  16577. return -1;
  16578. }
  16579. /**
  16580. * The base implementation of `_.isNaN` without support for number objects.
  16581. *
  16582. * @private
  16583. * @param {*} value The value to check.
  16584. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  16585. */
  16586. function baseIsNaN(value) {
  16587. return value !== value;
  16588. }
  16589. /**
  16590. * The base implementation of `_.mean` and `_.meanBy` without support for
  16591. * iteratee shorthands.
  16592. *
  16593. * @private
  16594. * @param {Array} array The array to iterate over.
  16595. * @param {Function} iteratee The function invoked per iteration.
  16596. * @returns {number} Returns the mean.
  16597. */
  16598. function baseMean(array, iteratee) {
  16599. var length = array == null ? 0 : array.length;
  16600. return length ? (baseSum(array, iteratee) / length) : NAN;
  16601. }
  16602. /**
  16603. * The base implementation of `_.property` without support for deep paths.
  16604. *
  16605. * @private
  16606. * @param {string} key The key of the property to get.
  16607. * @returns {Function} Returns the new accessor function.
  16608. */
  16609. function baseProperty(key) {
  16610. return function(object) {
  16611. return object == null ? undefined : object[key];
  16612. };
  16613. }
  16614. /**
  16615. * The base implementation of `_.propertyOf` without support for deep paths.
  16616. *
  16617. * @private
  16618. * @param {Object} object The object to query.
  16619. * @returns {Function} Returns the new accessor function.
  16620. */
  16621. function basePropertyOf(object) {
  16622. return function(key) {
  16623. return object == null ? undefined : object[key];
  16624. };
  16625. }
  16626. /**
  16627. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  16628. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  16629. *
  16630. * @private
  16631. * @param {Array|Object} collection The collection to iterate over.
  16632. * @param {Function} iteratee The function invoked per iteration.
  16633. * @param {*} accumulator The initial value.
  16634. * @param {boolean} initAccum Specify using the first or last element of
  16635. * `collection` as the initial value.
  16636. * @param {Function} eachFunc The function to iterate over `collection`.
  16637. * @returns {*} Returns the accumulated value.
  16638. */
  16639. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  16640. eachFunc(collection, function(value, index, collection) {
  16641. accumulator = initAccum
  16642. ? (initAccum = false, value)
  16643. : iteratee(accumulator, value, index, collection);
  16644. });
  16645. return accumulator;
  16646. }
  16647. /**
  16648. * The base implementation of `_.sortBy` which uses `comparer` to define the
  16649. * sort order of `array` and replaces criteria objects with their corresponding
  16650. * values.
  16651. *
  16652. * @private
  16653. * @param {Array} array The array to sort.
  16654. * @param {Function} comparer The function to define sort order.
  16655. * @returns {Array} Returns `array`.
  16656. */
  16657. function baseSortBy(array, comparer) {
  16658. var length = array.length;
  16659. array.sort(comparer);
  16660. while (length--) {
  16661. array[length] = array[length].value;
  16662. }
  16663. return array;
  16664. }
  16665. /**
  16666. * The base implementation of `_.sum` and `_.sumBy` without support for
  16667. * iteratee shorthands.
  16668. *
  16669. * @private
  16670. * @param {Array} array The array to iterate over.
  16671. * @param {Function} iteratee The function invoked per iteration.
  16672. * @returns {number} Returns the sum.
  16673. */
  16674. function baseSum(array, iteratee) {
  16675. var result,
  16676. index = -1,
  16677. length = array.length;
  16678. while (++index < length) {
  16679. var current = iteratee(array[index]);
  16680. if (current !== undefined) {
  16681. result = result === undefined ? current : (result + current);
  16682. }
  16683. }
  16684. return result;
  16685. }
  16686. /**
  16687. * The base implementation of `_.times` without support for iteratee shorthands
  16688. * or max array length checks.
  16689. *
  16690. * @private
  16691. * @param {number} n The number of times to invoke `iteratee`.
  16692. * @param {Function} iteratee The function invoked per iteration.
  16693. * @returns {Array} Returns the array of results.
  16694. */
  16695. function baseTimes(n, iteratee) {
  16696. var index = -1,
  16697. result = Array(n);
  16698. while (++index < n) {
  16699. result[index] = iteratee(index);
  16700. }
  16701. return result;
  16702. }
  16703. /**
  16704. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  16705. * of key-value pairs for `object` corresponding to the property names of `props`.
  16706. *
  16707. * @private
  16708. * @param {Object} object The object to query.
  16709. * @param {Array} props The property names to get values for.
  16710. * @returns {Object} Returns the key-value pairs.
  16711. */
  16712. function baseToPairs(object, props) {
  16713. return arrayMap(props, function(key) {
  16714. return [key, object[key]];
  16715. });
  16716. }
  16717. /**
  16718. * The base implementation of `_.unary` without support for storing metadata.
  16719. *
  16720. * @private
  16721. * @param {Function} func The function to cap arguments for.
  16722. * @returns {Function} Returns the new capped function.
  16723. */
  16724. function baseUnary(func) {
  16725. return function(value) {
  16726. return func(value);
  16727. };
  16728. }
  16729. /**
  16730. * The base implementation of `_.values` and `_.valuesIn` which creates an
  16731. * array of `object` property values corresponding to the property names
  16732. * of `props`.
  16733. *
  16734. * @private
  16735. * @param {Object} object The object to query.
  16736. * @param {Array} props The property names to get values for.
  16737. * @returns {Object} Returns the array of property values.
  16738. */
  16739. function baseValues(object, props) {
  16740. return arrayMap(props, function(key) {
  16741. return object[key];
  16742. });
  16743. }
  16744. /**
  16745. * Checks if a `cache` value for `key` exists.
  16746. *
  16747. * @private
  16748. * @param {Object} cache The cache to query.
  16749. * @param {string} key The key of the entry to check.
  16750. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  16751. */
  16752. function cacheHas(cache, key) {
  16753. return cache.has(key);
  16754. }
  16755. /**
  16756. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  16757. * that is not found in the character symbols.
  16758. *
  16759. * @private
  16760. * @param {Array} strSymbols The string symbols to inspect.
  16761. * @param {Array} chrSymbols The character symbols to find.
  16762. * @returns {number} Returns the index of the first unmatched string symbol.
  16763. */
  16764. function charsStartIndex(strSymbols, chrSymbols) {
  16765. var index = -1,
  16766. length = strSymbols.length;
  16767. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16768. return index;
  16769. }
  16770. /**
  16771. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  16772. * that is not found in the character symbols.
  16773. *
  16774. * @private
  16775. * @param {Array} strSymbols The string symbols to inspect.
  16776. * @param {Array} chrSymbols The character symbols to find.
  16777. * @returns {number} Returns the index of the last unmatched string symbol.
  16778. */
  16779. function charsEndIndex(strSymbols, chrSymbols) {
  16780. var index = strSymbols.length;
  16781. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16782. return index;
  16783. }
  16784. /**
  16785. * Gets the number of `placeholder` occurrences in `array`.
  16786. *
  16787. * @private
  16788. * @param {Array} array The array to inspect.
  16789. * @param {*} placeholder The placeholder to search for.
  16790. * @returns {number} Returns the placeholder count.
  16791. */
  16792. function countHolders(array, placeholder) {
  16793. var length = array.length,
  16794. result = 0;
  16795. while (length--) {
  16796. if (array[length] === placeholder) {
  16797. ++result;
  16798. }
  16799. }
  16800. return result;
  16801. }
  16802. /**
  16803. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  16804. * letters to basic Latin letters.
  16805. *
  16806. * @private
  16807. * @param {string} letter The matched letter to deburr.
  16808. * @returns {string} Returns the deburred letter.
  16809. */
  16810. var deburrLetter = basePropertyOf(deburredLetters);
  16811. /**
  16812. * Used by `_.escape` to convert characters to HTML entities.
  16813. *
  16814. * @private
  16815. * @param {string} chr The matched character to escape.
  16816. * @returns {string} Returns the escaped character.
  16817. */
  16818. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  16819. /**
  16820. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  16821. *
  16822. * @private
  16823. * @param {string} chr The matched character to escape.
  16824. * @returns {string} Returns the escaped character.
  16825. */
  16826. function escapeStringChar(chr) {
  16827. return '\\' + stringEscapes[chr];
  16828. }
  16829. /**
  16830. * Gets the value at `key` of `object`.
  16831. *
  16832. * @private
  16833. * @param {Object} [object] The object to query.
  16834. * @param {string} key The key of the property to get.
  16835. * @returns {*} Returns the property value.
  16836. */
  16837. function getValue(object, key) {
  16838. return object == null ? undefined : object[key];
  16839. }
  16840. /**
  16841. * Checks if `string` contains Unicode symbols.
  16842. *
  16843. * @private
  16844. * @param {string} string The string to inspect.
  16845. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  16846. */
  16847. function hasUnicode(string) {
  16848. return reHasUnicode.test(string);
  16849. }
  16850. /**
  16851. * Checks if `string` contains a word composed of Unicode symbols.
  16852. *
  16853. * @private
  16854. * @param {string} string The string to inspect.
  16855. * @returns {boolean} Returns `true` if a word is found, else `false`.
  16856. */
  16857. function hasUnicodeWord(string) {
  16858. return reHasUnicodeWord.test(string);
  16859. }
  16860. /**
  16861. * Converts `iterator` to an array.
  16862. *
  16863. * @private
  16864. * @param {Object} iterator The iterator to convert.
  16865. * @returns {Array} Returns the converted array.
  16866. */
  16867. function iteratorToArray(iterator) {
  16868. var data,
  16869. result = [];
  16870. while (!(data = iterator.next()).done) {
  16871. result.push(data.value);
  16872. }
  16873. return result;
  16874. }
  16875. /**
  16876. * Converts `map` to its key-value pairs.
  16877. *
  16878. * @private
  16879. * @param {Object} map The map to convert.
  16880. * @returns {Array} Returns the key-value pairs.
  16881. */
  16882. function mapToArray(map) {
  16883. var index = -1,
  16884. result = Array(map.size);
  16885. map.forEach(function(value, key) {
  16886. result[++index] = [key, value];
  16887. });
  16888. return result;
  16889. }
  16890. /**
  16891. * Creates a unary function that invokes `func` with its argument transformed.
  16892. *
  16893. * @private
  16894. * @param {Function} func The function to wrap.
  16895. * @param {Function} transform The argument transform.
  16896. * @returns {Function} Returns the new function.
  16897. */
  16898. function overArg(func, transform) {
  16899. return function(arg) {
  16900. return func(transform(arg));
  16901. };
  16902. }
  16903. /**
  16904. * Replaces all `placeholder` elements in `array` with an internal placeholder
  16905. * and returns an array of their indexes.
  16906. *
  16907. * @private
  16908. * @param {Array} array The array to modify.
  16909. * @param {*} placeholder The placeholder to replace.
  16910. * @returns {Array} Returns the new array of placeholder indexes.
  16911. */
  16912. function replaceHolders(array, placeholder) {
  16913. var index = -1,
  16914. length = array.length,
  16915. resIndex = 0,
  16916. result = [];
  16917. while (++index < length) {
  16918. var value = array[index];
  16919. if (value === placeholder || value === PLACEHOLDER) {
  16920. array[index] = PLACEHOLDER;
  16921. result[resIndex++] = index;
  16922. }
  16923. }
  16924. return result;
  16925. }
  16926. /**
  16927. * Converts `set` to an array of its values.
  16928. *
  16929. * @private
  16930. * @param {Object} set The set to convert.
  16931. * @returns {Array} Returns the values.
  16932. */
  16933. function setToArray(set) {
  16934. var index = -1,
  16935. result = Array(set.size);
  16936. set.forEach(function(value) {
  16937. result[++index] = value;
  16938. });
  16939. return result;
  16940. }
  16941. /**
  16942. * Converts `set` to its value-value pairs.
  16943. *
  16944. * @private
  16945. * @param {Object} set The set to convert.
  16946. * @returns {Array} Returns the value-value pairs.
  16947. */
  16948. function setToPairs(set) {
  16949. var index = -1,
  16950. result = Array(set.size);
  16951. set.forEach(function(value) {
  16952. result[++index] = [value, value];
  16953. });
  16954. return result;
  16955. }
  16956. /**
  16957. * A specialized version of `_.indexOf` which performs strict equality
  16958. * comparisons of values, i.e. `===`.
  16959. *
  16960. * @private
  16961. * @param {Array} array The array to inspect.
  16962. * @param {*} value The value to search for.
  16963. * @param {number} fromIndex The index to search from.
  16964. * @returns {number} Returns the index of the matched value, else `-1`.
  16965. */
  16966. function strictIndexOf(array, value, fromIndex) {
  16967. var index = fromIndex - 1,
  16968. length = array.length;
  16969. while (++index < length) {
  16970. if (array[index] === value) {
  16971. return index;
  16972. }
  16973. }
  16974. return -1;
  16975. }
  16976. /**
  16977. * A specialized version of `_.lastIndexOf` which performs strict equality
  16978. * comparisons of values, i.e. `===`.
  16979. *
  16980. * @private
  16981. * @param {Array} array The array to inspect.
  16982. * @param {*} value The value to search for.
  16983. * @param {number} fromIndex The index to search from.
  16984. * @returns {number} Returns the index of the matched value, else `-1`.
  16985. */
  16986. function strictLastIndexOf(array, value, fromIndex) {
  16987. var index = fromIndex + 1;
  16988. while (index--) {
  16989. if (array[index] === value) {
  16990. return index;
  16991. }
  16992. }
  16993. return index;
  16994. }
  16995. /**
  16996. * Gets the number of symbols in `string`.
  16997. *
  16998. * @private
  16999. * @param {string} string The string to inspect.
  17000. * @returns {number} Returns the string size.
  17001. */
  17002. function stringSize(string) {
  17003. return hasUnicode(string)
  17004. ? unicodeSize(string)
  17005. : asciiSize(string);
  17006. }
  17007. /**
  17008. * Converts `string` to an array.
  17009. *
  17010. * @private
  17011. * @param {string} string The string to convert.
  17012. * @returns {Array} Returns the converted array.
  17013. */
  17014. function stringToArray(string) {
  17015. return hasUnicode(string)
  17016. ? unicodeToArray(string)
  17017. : asciiToArray(string);
  17018. }
  17019. /**
  17020. * Used by `_.unescape` to convert HTML entities to characters.
  17021. *
  17022. * @private
  17023. * @param {string} chr The matched character to unescape.
  17024. * @returns {string} Returns the unescaped character.
  17025. */
  17026. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  17027. /**
  17028. * Gets the size of a Unicode `string`.
  17029. *
  17030. * @private
  17031. * @param {string} string The string inspect.
  17032. * @returns {number} Returns the string size.
  17033. */
  17034. function unicodeSize(string) {
  17035. var result = reUnicode.lastIndex = 0;
  17036. while (reUnicode.test(string)) {
  17037. ++result;
  17038. }
  17039. return result;
  17040. }
  17041. /**
  17042. * Converts a Unicode `string` to an array.
  17043. *
  17044. * @private
  17045. * @param {string} string The string to convert.
  17046. * @returns {Array} Returns the converted array.
  17047. */
  17048. function unicodeToArray(string) {
  17049. return string.match(reUnicode) || [];
  17050. }
  17051. /**
  17052. * Splits a Unicode `string` into an array of its words.
  17053. *
  17054. * @private
  17055. * @param {string} The string to inspect.
  17056. * @returns {Array} Returns the words of `string`.
  17057. */
  17058. function unicodeWords(string) {
  17059. return string.match(reUnicodeWord) || [];
  17060. }
  17061. /*--------------------------------------------------------------------------*/
  17062. /**
  17063. * Create a new pristine `lodash` function using the `context` object.
  17064. *
  17065. * @static
  17066. * @memberOf _
  17067. * @since 1.1.0
  17068. * @category Util
  17069. * @param {Object} [context=root] The context object.
  17070. * @returns {Function} Returns a new `lodash` function.
  17071. * @example
  17072. *
  17073. * _.mixin({ 'foo': _.constant('foo') });
  17074. *
  17075. * var lodash = _.runInContext();
  17076. * lodash.mixin({ 'bar': lodash.constant('bar') });
  17077. *
  17078. * _.isFunction(_.foo);
  17079. * // => true
  17080. * _.isFunction(_.bar);
  17081. * // => false
  17082. *
  17083. * lodash.isFunction(lodash.foo);
  17084. * // => false
  17085. * lodash.isFunction(lodash.bar);
  17086. * // => true
  17087. *
  17088. * // Create a suped-up `defer` in Node.js.
  17089. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  17090. */
  17091. var runInContext = (function runInContext(context) {
  17092. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  17093. /** Built-in constructor references. */
  17094. var Array = context.Array,
  17095. Date = context.Date,
  17096. Error = context.Error,
  17097. Function = context.Function,
  17098. Math = context.Math,
  17099. Object = context.Object,
  17100. RegExp = context.RegExp,
  17101. String = context.String,
  17102. TypeError = context.TypeError;
  17103. /** Used for built-in method references. */
  17104. var arrayProto = Array.prototype,
  17105. funcProto = Function.prototype,
  17106. objectProto = Object.prototype;
  17107. /** Used to detect overreaching core-js shims. */
  17108. var coreJsData = context['__core-js_shared__'];
  17109. /** Used to resolve the decompiled source of functions. */
  17110. var funcToString = funcProto.toString;
  17111. /** Used to check objects for own properties. */
  17112. var hasOwnProperty = objectProto.hasOwnProperty;
  17113. /** Used to generate unique IDs. */
  17114. var idCounter = 0;
  17115. /** Used to detect methods masquerading as native. */
  17116. var maskSrcKey = (function() {
  17117. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  17118. return uid ? ('Symbol(src)_1.' + uid) : '';
  17119. }());
  17120. /**
  17121. * Used to resolve the
  17122. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  17123. * of values.
  17124. */
  17125. var nativeObjectToString = objectProto.toString;
  17126. /** Used to infer the `Object` constructor. */
  17127. var objectCtorString = funcToString.call(Object);
  17128. /** Used to restore the original `_` reference in `_.noConflict`. */
  17129. var oldDash = root._;
  17130. /** Used to detect if a method is native. */
  17131. var reIsNative = RegExp('^' +
  17132. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  17133. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  17134. );
  17135. /** Built-in value references. */
  17136. var Buffer = moduleExports ? context.Buffer : undefined,
  17137. Symbol = context.Symbol,
  17138. Uint8Array = context.Uint8Array,
  17139. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  17140. getPrototype = overArg(Object.getPrototypeOf, Object),
  17141. objectCreate = Object.create,
  17142. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  17143. splice = arrayProto.splice,
  17144. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  17145. symIterator = Symbol ? Symbol.iterator : undefined,
  17146. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  17147. var defineProperty = (function() {
  17148. try {
  17149. var func = getNative(Object, 'defineProperty');
  17150. func({}, '', {});
  17151. return func;
  17152. } catch (e) {}
  17153. }());
  17154. /** Mocked built-ins. */
  17155. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  17156. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  17157. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  17158. /* Built-in method references for those with the same name as other `lodash` methods. */
  17159. var nativeCeil = Math.ceil,
  17160. nativeFloor = Math.floor,
  17161. nativeGetSymbols = Object.getOwnPropertySymbols,
  17162. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  17163. nativeIsFinite = context.isFinite,
  17164. nativeJoin = arrayProto.join,
  17165. nativeKeys = overArg(Object.keys, Object),
  17166. nativeMax = Math.max,
  17167. nativeMin = Math.min,
  17168. nativeNow = Date.now,
  17169. nativeParseInt = context.parseInt,
  17170. nativeRandom = Math.random,
  17171. nativeReverse = arrayProto.reverse;
  17172. /* Built-in method references that are verified to be native. */
  17173. var DataView = getNative(context, 'DataView'),
  17174. Map = getNative(context, 'Map'),
  17175. Promise = getNative(context, 'Promise'),
  17176. Set = getNative(context, 'Set'),
  17177. WeakMap = getNative(context, 'WeakMap'),
  17178. nativeCreate = getNative(Object, 'create');
  17179. /** Used to store function metadata. */
  17180. var metaMap = WeakMap && new WeakMap;
  17181. /** Used to lookup unminified function names. */
  17182. var realNames = {};
  17183. /** Used to detect maps, sets, and weakmaps. */
  17184. var dataViewCtorString = toSource(DataView),
  17185. mapCtorString = toSource(Map),
  17186. promiseCtorString = toSource(Promise),
  17187. setCtorString = toSource(Set),
  17188. weakMapCtorString = toSource(WeakMap);
  17189. /** Used to convert symbols to primitives and strings. */
  17190. var symbolProto = Symbol ? Symbol.prototype : undefined,
  17191. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  17192. symbolToString = symbolProto ? symbolProto.toString : undefined;
  17193. /*------------------------------------------------------------------------*/
  17194. /**
  17195. * Creates a `lodash` object which wraps `value` to enable implicit method
  17196. * chain sequences. Methods that operate on and return arrays, collections,
  17197. * and functions can be chained together. Methods that retrieve a single value
  17198. * or may return a primitive value will automatically end the chain sequence
  17199. * and return the unwrapped value. Otherwise, the value must be unwrapped
  17200. * with `_#value`.
  17201. *
  17202. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  17203. * enabled using `_.chain`.
  17204. *
  17205. * The execution of chained methods is lazy, that is, it's deferred until
  17206. * `_#value` is implicitly or explicitly called.
  17207. *
  17208. * Lazy evaluation allows several methods to support shortcut fusion.
  17209. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  17210. * the creation of intermediate arrays and can greatly reduce the number of
  17211. * iteratee executions. Sections of a chain sequence qualify for shortcut
  17212. * fusion if the section is applied to an array and iteratees accept only
  17213. * one argument. The heuristic for whether a section qualifies for shortcut
  17214. * fusion is subject to change.
  17215. *
  17216. * Chaining is supported in custom builds as long as the `_#value` method is
  17217. * directly or indirectly included in the build.
  17218. *
  17219. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  17220. *
  17221. * The wrapper `Array` methods are:
  17222. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  17223. *
  17224. * The wrapper `String` methods are:
  17225. * `replace` and `split`
  17226. *
  17227. * The wrapper methods that support shortcut fusion are:
  17228. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  17229. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  17230. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  17231. *
  17232. * The chainable wrapper methods are:
  17233. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  17234. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  17235. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  17236. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  17237. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  17238. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  17239. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  17240. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  17241. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  17242. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  17243. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  17244. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  17245. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  17246. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  17247. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  17248. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  17249. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  17250. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  17251. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  17252. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  17253. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  17254. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  17255. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  17256. * `zipObject`, `zipObjectDeep`, and `zipWith`
  17257. *
  17258. * The wrapper methods that are **not** chainable by default are:
  17259. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  17260. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  17261. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  17262. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  17263. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  17264. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  17265. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  17266. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  17267. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  17268. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  17269. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  17270. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  17271. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  17272. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  17273. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  17274. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  17275. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  17276. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  17277. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  17278. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  17279. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  17280. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  17281. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  17282. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  17283. * `upperFirst`, `value`, and `words`
  17284. *
  17285. * @name _
  17286. * @constructor
  17287. * @category Seq
  17288. * @param {*} value The value to wrap in a `lodash` instance.
  17289. * @returns {Object} Returns the new `lodash` wrapper instance.
  17290. * @example
  17291. *
  17292. * function square(n) {
  17293. * return n * n;
  17294. * }
  17295. *
  17296. * var wrapped = _([1, 2, 3]);
  17297. *
  17298. * // Returns an unwrapped value.
  17299. * wrapped.reduce(_.add);
  17300. * // => 6
  17301. *
  17302. * // Returns a wrapped value.
  17303. * var squares = wrapped.map(square);
  17304. *
  17305. * _.isArray(squares);
  17306. * // => false
  17307. *
  17308. * _.isArray(squares.value());
  17309. * // => true
  17310. */
  17311. function lodash(value) {
  17312. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  17313. if (value instanceof LodashWrapper) {
  17314. return value;
  17315. }
  17316. if (hasOwnProperty.call(value, '__wrapped__')) {
  17317. return wrapperClone(value);
  17318. }
  17319. }
  17320. return new LodashWrapper(value);
  17321. }
  17322. /**
  17323. * The base implementation of `_.create` without support for assigning
  17324. * properties to the created object.
  17325. *
  17326. * @private
  17327. * @param {Object} proto The object to inherit from.
  17328. * @returns {Object} Returns the new object.
  17329. */
  17330. var baseCreate = (function() {
  17331. function object() {}
  17332. return function(proto) {
  17333. if (!isObject(proto)) {
  17334. return {};
  17335. }
  17336. if (objectCreate) {
  17337. return objectCreate(proto);
  17338. }
  17339. object.prototype = proto;
  17340. var result = new object;
  17341. object.prototype = undefined;
  17342. return result;
  17343. };
  17344. }());
  17345. /**
  17346. * The function whose prototype chain sequence wrappers inherit from.
  17347. *
  17348. * @private
  17349. */
  17350. function baseLodash() {
  17351. // No operation performed.
  17352. }
  17353. /**
  17354. * The base constructor for creating `lodash` wrapper objects.
  17355. *
  17356. * @private
  17357. * @param {*} value The value to wrap.
  17358. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  17359. */
  17360. function LodashWrapper(value, chainAll) {
  17361. this.__wrapped__ = value;
  17362. this.__actions__ = [];
  17363. this.__chain__ = !!chainAll;
  17364. this.__index__ = 0;
  17365. this.__values__ = undefined;
  17366. }
  17367. /**
  17368. * By default, the template delimiters used by lodash are like those in
  17369. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  17370. * following template settings to use alternative delimiters.
  17371. *
  17372. * @static
  17373. * @memberOf _
  17374. * @type {Object}
  17375. */
  17376. lodash.templateSettings = {
  17377. /**
  17378. * Used to detect `data` property values to be HTML-escaped.
  17379. *
  17380. * @memberOf _.templateSettings
  17381. * @type {RegExp}
  17382. */
  17383. 'escape': reEscape,
  17384. /**
  17385. * Used to detect code to be evaluated.
  17386. *
  17387. * @memberOf _.templateSettings
  17388. * @type {RegExp}
  17389. */
  17390. 'evaluate': reEvaluate,
  17391. /**
  17392. * Used to detect `data` property values to inject.
  17393. *
  17394. * @memberOf _.templateSettings
  17395. * @type {RegExp}
  17396. */
  17397. 'interpolate': reInterpolate,
  17398. /**
  17399. * Used to reference the data object in the template text.
  17400. *
  17401. * @memberOf _.templateSettings
  17402. * @type {string}
  17403. */
  17404. 'variable': '',
  17405. /**
  17406. * Used to import variables into the compiled template.
  17407. *
  17408. * @memberOf _.templateSettings
  17409. * @type {Object}
  17410. */
  17411. 'imports': {
  17412. /**
  17413. * A reference to the `lodash` function.
  17414. *
  17415. * @memberOf _.templateSettings.imports
  17416. * @type {Function}
  17417. */
  17418. '_': lodash
  17419. }
  17420. };
  17421. // Ensure wrappers are instances of `baseLodash`.
  17422. lodash.prototype = baseLodash.prototype;
  17423. lodash.prototype.constructor = lodash;
  17424. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  17425. LodashWrapper.prototype.constructor = LodashWrapper;
  17426. /*------------------------------------------------------------------------*/
  17427. /**
  17428. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  17429. *
  17430. * @private
  17431. * @constructor
  17432. * @param {*} value The value to wrap.
  17433. */
  17434. function LazyWrapper(value) {
  17435. this.__wrapped__ = value;
  17436. this.__actions__ = [];
  17437. this.__dir__ = 1;
  17438. this.__filtered__ = false;
  17439. this.__iteratees__ = [];
  17440. this.__takeCount__ = MAX_ARRAY_LENGTH;
  17441. this.__views__ = [];
  17442. }
  17443. /**
  17444. * Creates a clone of the lazy wrapper object.
  17445. *
  17446. * @private
  17447. * @name clone
  17448. * @memberOf LazyWrapper
  17449. * @returns {Object} Returns the cloned `LazyWrapper` object.
  17450. */
  17451. function lazyClone() {
  17452. var result = new LazyWrapper(this.__wrapped__);
  17453. result.__actions__ = copyArray(this.__actions__);
  17454. result.__dir__ = this.__dir__;
  17455. result.__filtered__ = this.__filtered__;
  17456. result.__iteratees__ = copyArray(this.__iteratees__);
  17457. result.__takeCount__ = this.__takeCount__;
  17458. result.__views__ = copyArray(this.__views__);
  17459. return result;
  17460. }
  17461. /**
  17462. * Reverses the direction of lazy iteration.
  17463. *
  17464. * @private
  17465. * @name reverse
  17466. * @memberOf LazyWrapper
  17467. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  17468. */
  17469. function lazyReverse() {
  17470. if (this.__filtered__) {
  17471. var result = new LazyWrapper(this);
  17472. result.__dir__ = -1;
  17473. result.__filtered__ = true;
  17474. } else {
  17475. result = this.clone();
  17476. result.__dir__ *= -1;
  17477. }
  17478. return result;
  17479. }
  17480. /**
  17481. * Extracts the unwrapped value from its lazy wrapper.
  17482. *
  17483. * @private
  17484. * @name value
  17485. * @memberOf LazyWrapper
  17486. * @returns {*} Returns the unwrapped value.
  17487. */
  17488. function lazyValue() {
  17489. var array = this.__wrapped__.value(),
  17490. dir = this.__dir__,
  17491. isArr = isArray(array),
  17492. isRight = dir < 0,
  17493. arrLength = isArr ? array.length : 0,
  17494. view = getView(0, arrLength, this.__views__),
  17495. start = view.start,
  17496. end = view.end,
  17497. length = end - start,
  17498. index = isRight ? end : (start - 1),
  17499. iteratees = this.__iteratees__,
  17500. iterLength = iteratees.length,
  17501. resIndex = 0,
  17502. takeCount = nativeMin(length, this.__takeCount__);
  17503. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  17504. return baseWrapperValue(array, this.__actions__);
  17505. }
  17506. var result = [];
  17507. outer:
  17508. while (length-- && resIndex < takeCount) {
  17509. index += dir;
  17510. var iterIndex = -1,
  17511. value = array[index];
  17512. while (++iterIndex < iterLength) {
  17513. var data = iteratees[iterIndex],
  17514. iteratee = data.iteratee,
  17515. type = data.type,
  17516. computed = iteratee(value);
  17517. if (type == LAZY_MAP_FLAG) {
  17518. value = computed;
  17519. } else if (!computed) {
  17520. if (type == LAZY_FILTER_FLAG) {
  17521. continue outer;
  17522. } else {
  17523. break outer;
  17524. }
  17525. }
  17526. }
  17527. result[resIndex++] = value;
  17528. }
  17529. return result;
  17530. }
  17531. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  17532. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  17533. LazyWrapper.prototype.constructor = LazyWrapper;
  17534. /*------------------------------------------------------------------------*/
  17535. /**
  17536. * Creates a hash object.
  17537. *
  17538. * @private
  17539. * @constructor
  17540. * @param {Array} [entries] The key-value pairs to cache.
  17541. */
  17542. function Hash(entries) {
  17543. var index = -1,
  17544. length = entries == null ? 0 : entries.length;
  17545. this.clear();
  17546. while (++index < length) {
  17547. var entry = entries[index];
  17548. this.set(entry[0], entry[1]);
  17549. }
  17550. }
  17551. /**
  17552. * Removes all key-value entries from the hash.
  17553. *
  17554. * @private
  17555. * @name clear
  17556. * @memberOf Hash
  17557. */
  17558. function hashClear() {
  17559. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  17560. this.size = 0;
  17561. }
  17562. /**
  17563. * Removes `key` and its value from the hash.
  17564. *
  17565. * @private
  17566. * @name delete
  17567. * @memberOf Hash
  17568. * @param {Object} hash The hash to modify.
  17569. * @param {string} key The key of the value to remove.
  17570. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17571. */
  17572. function hashDelete(key) {
  17573. var result = this.has(key) && delete this.__data__[key];
  17574. this.size -= result ? 1 : 0;
  17575. return result;
  17576. }
  17577. /**
  17578. * Gets the hash value for `key`.
  17579. *
  17580. * @private
  17581. * @name get
  17582. * @memberOf Hash
  17583. * @param {string} key The key of the value to get.
  17584. * @returns {*} Returns the entry value.
  17585. */
  17586. function hashGet(key) {
  17587. var data = this.__data__;
  17588. if (nativeCreate) {
  17589. var result = data[key];
  17590. return result === HASH_UNDEFINED ? undefined : result;
  17591. }
  17592. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  17593. }
  17594. /**
  17595. * Checks if a hash value for `key` exists.
  17596. *
  17597. * @private
  17598. * @name has
  17599. * @memberOf Hash
  17600. * @param {string} key The key of the entry to check.
  17601. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17602. */
  17603. function hashHas(key) {
  17604. var data = this.__data__;
  17605. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  17606. }
  17607. /**
  17608. * Sets the hash `key` to `value`.
  17609. *
  17610. * @private
  17611. * @name set
  17612. * @memberOf Hash
  17613. * @param {string} key The key of the value to set.
  17614. * @param {*} value The value to set.
  17615. * @returns {Object} Returns the hash instance.
  17616. */
  17617. function hashSet(key, value) {
  17618. var data = this.__data__;
  17619. this.size += this.has(key) ? 0 : 1;
  17620. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  17621. return this;
  17622. }
  17623. // Add methods to `Hash`.
  17624. Hash.prototype.clear = hashClear;
  17625. Hash.prototype['delete'] = hashDelete;
  17626. Hash.prototype.get = hashGet;
  17627. Hash.prototype.has = hashHas;
  17628. Hash.prototype.set = hashSet;
  17629. /*------------------------------------------------------------------------*/
  17630. /**
  17631. * Creates an list cache object.
  17632. *
  17633. * @private
  17634. * @constructor
  17635. * @param {Array} [entries] The key-value pairs to cache.
  17636. */
  17637. function ListCache(entries) {
  17638. var index = -1,
  17639. length = entries == null ? 0 : entries.length;
  17640. this.clear();
  17641. while (++index < length) {
  17642. var entry = entries[index];
  17643. this.set(entry[0], entry[1]);
  17644. }
  17645. }
  17646. /**
  17647. * Removes all key-value entries from the list cache.
  17648. *
  17649. * @private
  17650. * @name clear
  17651. * @memberOf ListCache
  17652. */
  17653. function listCacheClear() {
  17654. this.__data__ = [];
  17655. this.size = 0;
  17656. }
  17657. /**
  17658. * Removes `key` and its value from the list cache.
  17659. *
  17660. * @private
  17661. * @name delete
  17662. * @memberOf ListCache
  17663. * @param {string} key The key of the value to remove.
  17664. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17665. */
  17666. function listCacheDelete(key) {
  17667. var data = this.__data__,
  17668. index = assocIndexOf(data, key);
  17669. if (index < 0) {
  17670. return false;
  17671. }
  17672. var lastIndex = data.length - 1;
  17673. if (index == lastIndex) {
  17674. data.pop();
  17675. } else {
  17676. splice.call(data, index, 1);
  17677. }
  17678. --this.size;
  17679. return true;
  17680. }
  17681. /**
  17682. * Gets the list cache value for `key`.
  17683. *
  17684. * @private
  17685. * @name get
  17686. * @memberOf ListCache
  17687. * @param {string} key The key of the value to get.
  17688. * @returns {*} Returns the entry value.
  17689. */
  17690. function listCacheGet(key) {
  17691. var data = this.__data__,
  17692. index = assocIndexOf(data, key);
  17693. return index < 0 ? undefined : data[index][1];
  17694. }
  17695. /**
  17696. * Checks if a list cache value for `key` exists.
  17697. *
  17698. * @private
  17699. * @name has
  17700. * @memberOf ListCache
  17701. * @param {string} key The key of the entry to check.
  17702. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17703. */
  17704. function listCacheHas(key) {
  17705. return assocIndexOf(this.__data__, key) > -1;
  17706. }
  17707. /**
  17708. * Sets the list cache `key` to `value`.
  17709. *
  17710. * @private
  17711. * @name set
  17712. * @memberOf ListCache
  17713. * @param {string} key The key of the value to set.
  17714. * @param {*} value The value to set.
  17715. * @returns {Object} Returns the list cache instance.
  17716. */
  17717. function listCacheSet(key, value) {
  17718. var data = this.__data__,
  17719. index = assocIndexOf(data, key);
  17720. if (index < 0) {
  17721. ++this.size;
  17722. data.push([key, value]);
  17723. } else {
  17724. data[index][1] = value;
  17725. }
  17726. return this;
  17727. }
  17728. // Add methods to `ListCache`.
  17729. ListCache.prototype.clear = listCacheClear;
  17730. ListCache.prototype['delete'] = listCacheDelete;
  17731. ListCache.prototype.get = listCacheGet;
  17732. ListCache.prototype.has = listCacheHas;
  17733. ListCache.prototype.set = listCacheSet;
  17734. /*------------------------------------------------------------------------*/
  17735. /**
  17736. * Creates a map cache object to store key-value pairs.
  17737. *
  17738. * @private
  17739. * @constructor
  17740. * @param {Array} [entries] The key-value pairs to cache.
  17741. */
  17742. function MapCache(entries) {
  17743. var index = -1,
  17744. length = entries == null ? 0 : entries.length;
  17745. this.clear();
  17746. while (++index < length) {
  17747. var entry = entries[index];
  17748. this.set(entry[0], entry[1]);
  17749. }
  17750. }
  17751. /**
  17752. * Removes all key-value entries from the map.
  17753. *
  17754. * @private
  17755. * @name clear
  17756. * @memberOf MapCache
  17757. */
  17758. function mapCacheClear() {
  17759. this.size = 0;
  17760. this.__data__ = {
  17761. 'hash': new Hash,
  17762. 'map': new (Map || ListCache),
  17763. 'string': new Hash
  17764. };
  17765. }
  17766. /**
  17767. * Removes `key` and its value from the map.
  17768. *
  17769. * @private
  17770. * @name delete
  17771. * @memberOf MapCache
  17772. * @param {string} key The key of the value to remove.
  17773. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17774. */
  17775. function mapCacheDelete(key) {
  17776. var result = getMapData(this, key)['delete'](key);
  17777. this.size -= result ? 1 : 0;
  17778. return result;
  17779. }
  17780. /**
  17781. * Gets the map value for `key`.
  17782. *
  17783. * @private
  17784. * @name get
  17785. * @memberOf MapCache
  17786. * @param {string} key The key of the value to get.
  17787. * @returns {*} Returns the entry value.
  17788. */
  17789. function mapCacheGet(key) {
  17790. return getMapData(this, key).get(key);
  17791. }
  17792. /**
  17793. * Checks if a map value for `key` exists.
  17794. *
  17795. * @private
  17796. * @name has
  17797. * @memberOf MapCache
  17798. * @param {string} key The key of the entry to check.
  17799. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17800. */
  17801. function mapCacheHas(key) {
  17802. return getMapData(this, key).has(key);
  17803. }
  17804. /**
  17805. * Sets the map `key` to `value`.
  17806. *
  17807. * @private
  17808. * @name set
  17809. * @memberOf MapCache
  17810. * @param {string} key The key of the value to set.
  17811. * @param {*} value The value to set.
  17812. * @returns {Object} Returns the map cache instance.
  17813. */
  17814. function mapCacheSet(key, value) {
  17815. var data = getMapData(this, key),
  17816. size = data.size;
  17817. data.set(key, value);
  17818. this.size += data.size == size ? 0 : 1;
  17819. return this;
  17820. }
  17821. // Add methods to `MapCache`.
  17822. MapCache.prototype.clear = mapCacheClear;
  17823. MapCache.prototype['delete'] = mapCacheDelete;
  17824. MapCache.prototype.get = mapCacheGet;
  17825. MapCache.prototype.has = mapCacheHas;
  17826. MapCache.prototype.set = mapCacheSet;
  17827. /*------------------------------------------------------------------------*/
  17828. /**
  17829. *
  17830. * Creates an array cache object to store unique values.
  17831. *
  17832. * @private
  17833. * @constructor
  17834. * @param {Array} [values] The values to cache.
  17835. */
  17836. function SetCache(values) {
  17837. var index = -1,
  17838. length = values == null ? 0 : values.length;
  17839. this.__data__ = new MapCache;
  17840. while (++index < length) {
  17841. this.add(values[index]);
  17842. }
  17843. }
  17844. /**
  17845. * Adds `value` to the array cache.
  17846. *
  17847. * @private
  17848. * @name add
  17849. * @memberOf SetCache
  17850. * @alias push
  17851. * @param {*} value The value to cache.
  17852. * @returns {Object} Returns the cache instance.
  17853. */
  17854. function setCacheAdd(value) {
  17855. this.__data__.set(value, HASH_UNDEFINED);
  17856. return this;
  17857. }
  17858. /**
  17859. * Checks if `value` is in the array cache.
  17860. *
  17861. * @private
  17862. * @name has
  17863. * @memberOf SetCache
  17864. * @param {*} value The value to search for.
  17865. * @returns {number} Returns `true` if `value` is found, else `false`.
  17866. */
  17867. function setCacheHas(value) {
  17868. return this.__data__.has(value);
  17869. }
  17870. // Add methods to `SetCache`.
  17871. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  17872. SetCache.prototype.has = setCacheHas;
  17873. /*------------------------------------------------------------------------*/
  17874. /**
  17875. * Creates a stack cache object to store key-value pairs.
  17876. *
  17877. * @private
  17878. * @constructor
  17879. * @param {Array} [entries] The key-value pairs to cache.
  17880. */
  17881. function Stack(entries) {
  17882. var data = this.__data__ = new ListCache(entries);
  17883. this.size = data.size;
  17884. }
  17885. /**
  17886. * Removes all key-value entries from the stack.
  17887. *
  17888. * @private
  17889. * @name clear
  17890. * @memberOf Stack
  17891. */
  17892. function stackClear() {
  17893. this.__data__ = new ListCache;
  17894. this.size = 0;
  17895. }
  17896. /**
  17897. * Removes `key` and its value from the stack.
  17898. *
  17899. * @private
  17900. * @name delete
  17901. * @memberOf Stack
  17902. * @param {string} key The key of the value to remove.
  17903. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17904. */
  17905. function stackDelete(key) {
  17906. var data = this.__data__,
  17907. result = data['delete'](key);
  17908. this.size = data.size;
  17909. return result;
  17910. }
  17911. /**
  17912. * Gets the stack value for `key`.
  17913. *
  17914. * @private
  17915. * @name get
  17916. * @memberOf Stack
  17917. * @param {string} key The key of the value to get.
  17918. * @returns {*} Returns the entry value.
  17919. */
  17920. function stackGet(key) {
  17921. return this.__data__.get(key);
  17922. }
  17923. /**
  17924. * Checks if a stack value for `key` exists.
  17925. *
  17926. * @private
  17927. * @name has
  17928. * @memberOf Stack
  17929. * @param {string} key The key of the entry to check.
  17930. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17931. */
  17932. function stackHas(key) {
  17933. return this.__data__.has(key);
  17934. }
  17935. /**
  17936. * Sets the stack `key` to `value`.
  17937. *
  17938. * @private
  17939. * @name set
  17940. * @memberOf Stack
  17941. * @param {string} key The key of the value to set.
  17942. * @param {*} value The value to set.
  17943. * @returns {Object} Returns the stack cache instance.
  17944. */
  17945. function stackSet(key, value) {
  17946. var data = this.__data__;
  17947. if (data instanceof ListCache) {
  17948. var pairs = data.__data__;
  17949. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  17950. pairs.push([key, value]);
  17951. this.size = ++data.size;
  17952. return this;
  17953. }
  17954. data = this.__data__ = new MapCache(pairs);
  17955. }
  17956. data.set(key, value);
  17957. this.size = data.size;
  17958. return this;
  17959. }
  17960. // Add methods to `Stack`.
  17961. Stack.prototype.clear = stackClear;
  17962. Stack.prototype['delete'] = stackDelete;
  17963. Stack.prototype.get = stackGet;
  17964. Stack.prototype.has = stackHas;
  17965. Stack.prototype.set = stackSet;
  17966. /*------------------------------------------------------------------------*/
  17967. /**
  17968. * Creates an array of the enumerable property names of the array-like `value`.
  17969. *
  17970. * @private
  17971. * @param {*} value The value to query.
  17972. * @param {boolean} inherited Specify returning inherited property names.
  17973. * @returns {Array} Returns the array of property names.
  17974. */
  17975. function arrayLikeKeys(value, inherited) {
  17976. var isArr = isArray(value),
  17977. isArg = !isArr && isArguments(value),
  17978. isBuff = !isArr && !isArg && isBuffer(value),
  17979. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  17980. skipIndexes = isArr || isArg || isBuff || isType,
  17981. result = skipIndexes ? baseTimes(value.length, String) : [],
  17982. length = result.length;
  17983. for (var key in value) {
  17984. if ((inherited || hasOwnProperty.call(value, key)) &&
  17985. !(skipIndexes && (
  17986. // Safari 9 has enumerable `arguments.length` in strict mode.
  17987. key == 'length' ||
  17988. // Node.js 0.10 has enumerable non-index properties on buffers.
  17989. (isBuff && (key == 'offset' || key == 'parent')) ||
  17990. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  17991. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  17992. // Skip index properties.
  17993. isIndex(key, length)
  17994. ))) {
  17995. result.push(key);
  17996. }
  17997. }
  17998. return result;
  17999. }
  18000. /**
  18001. * A specialized version of `_.sample` for arrays.
  18002. *
  18003. * @private
  18004. * @param {Array} array The array to sample.
  18005. * @returns {*} Returns the random element.
  18006. */
  18007. function arraySample(array) {
  18008. var length = array.length;
  18009. return length ? array[baseRandom(0, length - 1)] : undefined;
  18010. }
  18011. /**
  18012. * A specialized version of `_.sampleSize` for arrays.
  18013. *
  18014. * @private
  18015. * @param {Array} array The array to sample.
  18016. * @param {number} n The number of elements to sample.
  18017. * @returns {Array} Returns the random elements.
  18018. */
  18019. function arraySampleSize(array, n) {
  18020. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  18021. }
  18022. /**
  18023. * A specialized version of `_.shuffle` for arrays.
  18024. *
  18025. * @private
  18026. * @param {Array} array The array to shuffle.
  18027. * @returns {Array} Returns the new shuffled array.
  18028. */
  18029. function arrayShuffle(array) {
  18030. return shuffleSelf(copyArray(array));
  18031. }
  18032. /**
  18033. * This function is like `assignValue` except that it doesn't assign
  18034. * `undefined` values.
  18035. *
  18036. * @private
  18037. * @param {Object} object The object to modify.
  18038. * @param {string} key The key of the property to assign.
  18039. * @param {*} value The value to assign.
  18040. */
  18041. function assignMergeValue(object, key, value) {
  18042. if ((value !== undefined && !eq(object[key], value)) ||
  18043. (value === undefined && !(key in object))) {
  18044. baseAssignValue(object, key, value);
  18045. }
  18046. }
  18047. /**
  18048. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  18049. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  18050. * for equality comparisons.
  18051. *
  18052. * @private
  18053. * @param {Object} object The object to modify.
  18054. * @param {string} key The key of the property to assign.
  18055. * @param {*} value The value to assign.
  18056. */
  18057. function assignValue(object, key, value) {
  18058. var objValue = object[key];
  18059. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  18060. (value === undefined && !(key in object))) {
  18061. baseAssignValue(object, key, value);
  18062. }
  18063. }
  18064. /**
  18065. * Gets the index at which the `key` is found in `array` of key-value pairs.
  18066. *
  18067. * @private
  18068. * @param {Array} array The array to inspect.
  18069. * @param {*} key The key to search for.
  18070. * @returns {number} Returns the index of the matched value, else `-1`.
  18071. */
  18072. function assocIndexOf(array, key) {
  18073. var length = array.length;
  18074. while (length--) {
  18075. if (eq(array[length][0], key)) {
  18076. return length;
  18077. }
  18078. }
  18079. return -1;
  18080. }
  18081. /**
  18082. * Aggregates elements of `collection` on `accumulator` with keys transformed
  18083. * by `iteratee` and values set by `setter`.
  18084. *
  18085. * @private
  18086. * @param {Array|Object} collection The collection to iterate over.
  18087. * @param {Function} setter The function to set `accumulator` values.
  18088. * @param {Function} iteratee The iteratee to transform keys.
  18089. * @param {Object} accumulator The initial aggregated object.
  18090. * @returns {Function} Returns `accumulator`.
  18091. */
  18092. function baseAggregator(collection, setter, iteratee, accumulator) {
  18093. baseEach(collection, function(value, key, collection) {
  18094. setter(accumulator, value, iteratee(value), collection);
  18095. });
  18096. return accumulator;
  18097. }
  18098. /**
  18099. * The base implementation of `_.assign` without support for multiple sources
  18100. * or `customizer` functions.
  18101. *
  18102. * @private
  18103. * @param {Object} object The destination object.
  18104. * @param {Object} source The source object.
  18105. * @returns {Object} Returns `object`.
  18106. */
  18107. function baseAssign(object, source) {
  18108. return object && copyObject(source, keys(source), object);
  18109. }
  18110. /**
  18111. * The base implementation of `_.assignIn` without support for multiple sources
  18112. * or `customizer` functions.
  18113. *
  18114. * @private
  18115. * @param {Object} object The destination object.
  18116. * @param {Object} source The source object.
  18117. * @returns {Object} Returns `object`.
  18118. */
  18119. function baseAssignIn(object, source) {
  18120. return object && copyObject(source, keysIn(source), object);
  18121. }
  18122. /**
  18123. * The base implementation of `assignValue` and `assignMergeValue` without
  18124. * value checks.
  18125. *
  18126. * @private
  18127. * @param {Object} object The object to modify.
  18128. * @param {string} key The key of the property to assign.
  18129. * @param {*} value The value to assign.
  18130. */
  18131. function baseAssignValue(object, key, value) {
  18132. if (key == '__proto__' && defineProperty) {
  18133. defineProperty(object, key, {
  18134. 'configurable': true,
  18135. 'enumerable': true,
  18136. 'value': value,
  18137. 'writable': true
  18138. });
  18139. } else {
  18140. object[key] = value;
  18141. }
  18142. }
  18143. /**
  18144. * The base implementation of `_.at` without support for individual paths.
  18145. *
  18146. * @private
  18147. * @param {Object} object The object to iterate over.
  18148. * @param {string[]} paths The property paths to pick.
  18149. * @returns {Array} Returns the picked elements.
  18150. */
  18151. function baseAt(object, paths) {
  18152. var index = -1,
  18153. length = paths.length,
  18154. result = Array(length),
  18155. skip = object == null;
  18156. while (++index < length) {
  18157. result[index] = skip ? undefined : get(object, paths[index]);
  18158. }
  18159. return result;
  18160. }
  18161. /**
  18162. * The base implementation of `_.clamp` which doesn't coerce arguments.
  18163. *
  18164. * @private
  18165. * @param {number} number The number to clamp.
  18166. * @param {number} [lower] The lower bound.
  18167. * @param {number} upper The upper bound.
  18168. * @returns {number} Returns the clamped number.
  18169. */
  18170. function baseClamp(number, lower, upper) {
  18171. if (number === number) {
  18172. if (upper !== undefined) {
  18173. number = number <= upper ? number : upper;
  18174. }
  18175. if (lower !== undefined) {
  18176. number = number >= lower ? number : lower;
  18177. }
  18178. }
  18179. return number;
  18180. }
  18181. /**
  18182. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  18183. * traversed objects.
  18184. *
  18185. * @private
  18186. * @param {*} value The value to clone.
  18187. * @param {boolean} bitmask The bitmask flags.
  18188. * 1 - Deep clone
  18189. * 2 - Flatten inherited properties
  18190. * 4 - Clone symbols
  18191. * @param {Function} [customizer] The function to customize cloning.
  18192. * @param {string} [key] The key of `value`.
  18193. * @param {Object} [object] The parent object of `value`.
  18194. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  18195. * @returns {*} Returns the cloned value.
  18196. */
  18197. function baseClone(value, bitmask, customizer, key, object, stack) {
  18198. var result,
  18199. isDeep = bitmask & CLONE_DEEP_FLAG,
  18200. isFlat = bitmask & CLONE_FLAT_FLAG,
  18201. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  18202. if (customizer) {
  18203. result = object ? customizer(value, key, object, stack) : customizer(value);
  18204. }
  18205. if (result !== undefined) {
  18206. return result;
  18207. }
  18208. if (!isObject(value)) {
  18209. return value;
  18210. }
  18211. var isArr = isArray(value);
  18212. if (isArr) {
  18213. result = initCloneArray(value);
  18214. if (!isDeep) {
  18215. return copyArray(value, result);
  18216. }
  18217. } else {
  18218. var tag = getTag(value),
  18219. isFunc = tag == funcTag || tag == genTag;
  18220. if (isBuffer(value)) {
  18221. return cloneBuffer(value, isDeep);
  18222. }
  18223. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  18224. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  18225. if (!isDeep) {
  18226. return isFlat
  18227. ? copySymbolsIn(value, baseAssignIn(result, value))
  18228. : copySymbols(value, baseAssign(result, value));
  18229. }
  18230. } else {
  18231. if (!cloneableTags[tag]) {
  18232. return object ? value : {};
  18233. }
  18234. result = initCloneByTag(value, tag, isDeep);
  18235. }
  18236. }
  18237. // Check for circular references and return its corresponding clone.
  18238. stack || (stack = new Stack);
  18239. var stacked = stack.get(value);
  18240. if (stacked) {
  18241. return stacked;
  18242. }
  18243. stack.set(value, result);
  18244. if (isSet(value)) {
  18245. value.forEach(function(subValue) {
  18246. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  18247. });
  18248. } else if (isMap(value)) {
  18249. value.forEach(function(subValue, key) {
  18250. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18251. });
  18252. }
  18253. var keysFunc = isFull
  18254. ? (isFlat ? getAllKeysIn : getAllKeys)
  18255. : (isFlat ? keysIn : keys);
  18256. var props = isArr ? undefined : keysFunc(value);
  18257. arrayEach(props || value, function(subValue, key) {
  18258. if (props) {
  18259. key = subValue;
  18260. subValue = value[key];
  18261. }
  18262. // Recursively populate clone (susceptible to call stack limits).
  18263. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18264. });
  18265. return result;
  18266. }
  18267. /**
  18268. * The base implementation of `_.conforms` which doesn't clone `source`.
  18269. *
  18270. * @private
  18271. * @param {Object} source The object of property predicates to conform to.
  18272. * @returns {Function} Returns the new spec function.
  18273. */
  18274. function baseConforms(source) {
  18275. var props = keys(source);
  18276. return function(object) {
  18277. return baseConformsTo(object, source, props);
  18278. };
  18279. }
  18280. /**
  18281. * The base implementation of `_.conformsTo` which accepts `props` to check.
  18282. *
  18283. * @private
  18284. * @param {Object} object The object to inspect.
  18285. * @param {Object} source The object of property predicates to conform to.
  18286. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  18287. */
  18288. function baseConformsTo(object, source, props) {
  18289. var length = props.length;
  18290. if (object == null) {
  18291. return !length;
  18292. }
  18293. object = Object(object);
  18294. while (length--) {
  18295. var key = props[length],
  18296. predicate = source[key],
  18297. value = object[key];
  18298. if ((value === undefined && !(key in object)) || !predicate(value)) {
  18299. return false;
  18300. }
  18301. }
  18302. return true;
  18303. }
  18304. /**
  18305. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  18306. * to provide to `func`.
  18307. *
  18308. * @private
  18309. * @param {Function} func The function to delay.
  18310. * @param {number} wait The number of milliseconds to delay invocation.
  18311. * @param {Array} args The arguments to provide to `func`.
  18312. * @returns {number|Object} Returns the timer id or timeout object.
  18313. */
  18314. function baseDelay(func, wait, args) {
  18315. if (typeof func != 'function') {
  18316. throw new TypeError(FUNC_ERROR_TEXT);
  18317. }
  18318. return setTimeout(function() { func.apply(undefined, args); }, wait);
  18319. }
  18320. /**
  18321. * The base implementation of methods like `_.difference` without support
  18322. * for excluding multiple arrays or iteratee shorthands.
  18323. *
  18324. * @private
  18325. * @param {Array} array The array to inspect.
  18326. * @param {Array} values The values to exclude.
  18327. * @param {Function} [iteratee] The iteratee invoked per element.
  18328. * @param {Function} [comparator] The comparator invoked per element.
  18329. * @returns {Array} Returns the new array of filtered values.
  18330. */
  18331. function baseDifference(array, values, iteratee, comparator) {
  18332. var index = -1,
  18333. includes = arrayIncludes,
  18334. isCommon = true,
  18335. length = array.length,
  18336. result = [],
  18337. valuesLength = values.length;
  18338. if (!length) {
  18339. return result;
  18340. }
  18341. if (iteratee) {
  18342. values = arrayMap(values, baseUnary(iteratee));
  18343. }
  18344. if (comparator) {
  18345. includes = arrayIncludesWith;
  18346. isCommon = false;
  18347. }
  18348. else if (values.length >= LARGE_ARRAY_SIZE) {
  18349. includes = cacheHas;
  18350. isCommon = false;
  18351. values = new SetCache(values);
  18352. }
  18353. outer:
  18354. while (++index < length) {
  18355. var value = array[index],
  18356. computed = iteratee == null ? value : iteratee(value);
  18357. value = (comparator || value !== 0) ? value : 0;
  18358. if (isCommon && computed === computed) {
  18359. var valuesIndex = valuesLength;
  18360. while (valuesIndex--) {
  18361. if (values[valuesIndex] === computed) {
  18362. continue outer;
  18363. }
  18364. }
  18365. result.push(value);
  18366. }
  18367. else if (!includes(values, computed, comparator)) {
  18368. result.push(value);
  18369. }
  18370. }
  18371. return result;
  18372. }
  18373. /**
  18374. * The base implementation of `_.forEach` without support for iteratee shorthands.
  18375. *
  18376. * @private
  18377. * @param {Array|Object} collection The collection to iterate over.
  18378. * @param {Function} iteratee The function invoked per iteration.
  18379. * @returns {Array|Object} Returns `collection`.
  18380. */
  18381. var baseEach = createBaseEach(baseForOwn);
  18382. /**
  18383. * The base implementation of `_.forEachRight` without support for iteratee shorthands.
  18384. *
  18385. * @private
  18386. * @param {Array|Object} collection The collection to iterate over.
  18387. * @param {Function} iteratee The function invoked per iteration.
  18388. * @returns {Array|Object} Returns `collection`.
  18389. */
  18390. var baseEachRight = createBaseEach(baseForOwnRight, true);
  18391. /**
  18392. * The base implementation of `_.every` without support for iteratee shorthands.
  18393. *
  18394. * @private
  18395. * @param {Array|Object} collection The collection to iterate over.
  18396. * @param {Function} predicate The function invoked per iteration.
  18397. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  18398. * else `false`
  18399. */
  18400. function baseEvery(collection, predicate) {
  18401. var result = true;
  18402. baseEach(collection, function(value, index, collection) {
  18403. result = !!predicate(value, index, collection);
  18404. return result;
  18405. });
  18406. return result;
  18407. }
  18408. /**
  18409. * The base implementation of methods like `_.max` and `_.min` which accepts a
  18410. * `comparator` to determine the extremum value.
  18411. *
  18412. * @private
  18413. * @param {Array} array The array to iterate over.
  18414. * @param {Function} iteratee The iteratee invoked per iteration.
  18415. * @param {Function} comparator The comparator used to compare values.
  18416. * @returns {*} Returns the extremum value.
  18417. */
  18418. function baseExtremum(array, iteratee, comparator) {
  18419. var index = -1,
  18420. length = array.length;
  18421. while (++index < length) {
  18422. var value = array[index],
  18423. current = iteratee(value);
  18424. if (current != null && (computed === undefined
  18425. ? (current === current && !isSymbol(current))
  18426. : comparator(current, computed)
  18427. )) {
  18428. var computed = current,
  18429. result = value;
  18430. }
  18431. }
  18432. return result;
  18433. }
  18434. /**
  18435. * The base implementation of `_.fill` without an iteratee call guard.
  18436. *
  18437. * @private
  18438. * @param {Array} array The array to fill.
  18439. * @param {*} value The value to fill `array` with.
  18440. * @param {number} [start=0] The start position.
  18441. * @param {number} [end=array.length] The end position.
  18442. * @returns {Array} Returns `array`.
  18443. */
  18444. function baseFill(array, value, start, end) {
  18445. var length = array.length;
  18446. start = toInteger(start);
  18447. if (start < 0) {
  18448. start = -start > length ? 0 : (length + start);
  18449. }
  18450. end = (end === undefined || end > length) ? length : toInteger(end);
  18451. if (end < 0) {
  18452. end += length;
  18453. }
  18454. end = start > end ? 0 : toLength(end);
  18455. while (start < end) {
  18456. array[start++] = value;
  18457. }
  18458. return array;
  18459. }
  18460. /**
  18461. * The base implementation of `_.filter` without support for iteratee shorthands.
  18462. *
  18463. * @private
  18464. * @param {Array|Object} collection The collection to iterate over.
  18465. * @param {Function} predicate The function invoked per iteration.
  18466. * @returns {Array} Returns the new filtered array.
  18467. */
  18468. function baseFilter(collection, predicate) {
  18469. var result = [];
  18470. baseEach(collection, function(value, index, collection) {
  18471. if (predicate(value, index, collection)) {
  18472. result.push(value);
  18473. }
  18474. });
  18475. return result;
  18476. }
  18477. /**
  18478. * The base implementation of `_.flatten` with support for restricting flattening.
  18479. *
  18480. * @private
  18481. * @param {Array} array The array to flatten.
  18482. * @param {number} depth The maximum recursion depth.
  18483. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  18484. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  18485. * @param {Array} [result=[]] The initial result value.
  18486. * @returns {Array} Returns the new flattened array.
  18487. */
  18488. function baseFlatten(array, depth, predicate, isStrict, result) {
  18489. var index = -1,
  18490. length = array.length;
  18491. predicate || (predicate = isFlattenable);
  18492. result || (result = []);
  18493. while (++index < length) {
  18494. var value = array[index];
  18495. if (depth > 0 && predicate(value)) {
  18496. if (depth > 1) {
  18497. // Recursively flatten arrays (susceptible to call stack limits).
  18498. baseFlatten(value, depth - 1, predicate, isStrict, result);
  18499. } else {
  18500. arrayPush(result, value);
  18501. }
  18502. } else if (!isStrict) {
  18503. result[result.length] = value;
  18504. }
  18505. }
  18506. return result;
  18507. }
  18508. /**
  18509. * The base implementation of `baseForOwn` which iterates over `object`
  18510. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  18511. * Iteratee functions may exit iteration early by explicitly returning `false`.
  18512. *
  18513. * @private
  18514. * @param {Object} object The object to iterate over.
  18515. * @param {Function} iteratee The function invoked per iteration.
  18516. * @param {Function} keysFunc The function to get the keys of `object`.
  18517. * @returns {Object} Returns `object`.
  18518. */
  18519. var baseFor = createBaseFor();
  18520. /**
  18521. * This function is like `baseFor` except that it iterates over properties
  18522. * in the opposite order.
  18523. *
  18524. * @private
  18525. * @param {Object} object The object to iterate over.
  18526. * @param {Function} iteratee The function invoked per iteration.
  18527. * @param {Function} keysFunc The function to get the keys of `object`.
  18528. * @returns {Object} Returns `object`.
  18529. */
  18530. var baseForRight = createBaseFor(true);
  18531. /**
  18532. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  18533. *
  18534. * @private
  18535. * @param {Object} object The object to iterate over.
  18536. * @param {Function} iteratee The function invoked per iteration.
  18537. * @returns {Object} Returns `object`.
  18538. */
  18539. function baseForOwn(object, iteratee) {
  18540. return object && baseFor(object, iteratee, keys);
  18541. }
  18542. /**
  18543. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  18544. *
  18545. * @private
  18546. * @param {Object} object The object to iterate over.
  18547. * @param {Function} iteratee The function invoked per iteration.
  18548. * @returns {Object} Returns `object`.
  18549. */
  18550. function baseForOwnRight(object, iteratee) {
  18551. return object && baseForRight(object, iteratee, keys);
  18552. }
  18553. /**
  18554. * The base implementation of `_.functions` which creates an array of
  18555. * `object` function property names filtered from `props`.
  18556. *
  18557. * @private
  18558. * @param {Object} object The object to inspect.
  18559. * @param {Array} props The property names to filter.
  18560. * @returns {Array} Returns the function names.
  18561. */
  18562. function baseFunctions(object, props) {
  18563. return arrayFilter(props, function(key) {
  18564. return isFunction(object[key]);
  18565. });
  18566. }
  18567. /**
  18568. * The base implementation of `_.get` without support for default values.
  18569. *
  18570. * @private
  18571. * @param {Object} object The object to query.
  18572. * @param {Array|string} path The path of the property to get.
  18573. * @returns {*} Returns the resolved value.
  18574. */
  18575. function baseGet(object, path) {
  18576. path = castPath(path, object);
  18577. var index = 0,
  18578. length = path.length;
  18579. while (object != null && index < length) {
  18580. object = object[toKey(path[index++])];
  18581. }
  18582. return (index && index == length) ? object : undefined;
  18583. }
  18584. /**
  18585. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  18586. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  18587. * symbols of `object`.
  18588. *
  18589. * @private
  18590. * @param {Object} object The object to query.
  18591. * @param {Function} keysFunc The function to get the keys of `object`.
  18592. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  18593. * @returns {Array} Returns the array of property names and symbols.
  18594. */
  18595. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  18596. var result = keysFunc(object);
  18597. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  18598. }
  18599. /**
  18600. * The base implementation of `getTag` without fallbacks for buggy environments.
  18601. *
  18602. * @private
  18603. * @param {*} value The value to query.
  18604. * @returns {string} Returns the `toStringTag`.
  18605. */
  18606. function baseGetTag(value) {
  18607. if (value == null) {
  18608. return value === undefined ? undefinedTag : nullTag;
  18609. }
  18610. return (symToStringTag && symToStringTag in Object(value))
  18611. ? getRawTag(value)
  18612. : objectToString(value);
  18613. }
  18614. /**
  18615. * The base implementation of `_.gt` which doesn't coerce arguments.
  18616. *
  18617. * @private
  18618. * @param {*} value The value to compare.
  18619. * @param {*} other The other value to compare.
  18620. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  18621. * else `false`.
  18622. */
  18623. function baseGt(value, other) {
  18624. return value > other;
  18625. }
  18626. /**
  18627. * The base implementation of `_.has` without support for deep paths.
  18628. *
  18629. * @private
  18630. * @param {Object} [object] The object to query.
  18631. * @param {Array|string} key The key to check.
  18632. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18633. */
  18634. function baseHas(object, key) {
  18635. return object != null && hasOwnProperty.call(object, key);
  18636. }
  18637. /**
  18638. * The base implementation of `_.hasIn` without support for deep paths.
  18639. *
  18640. * @private
  18641. * @param {Object} [object] The object to query.
  18642. * @param {Array|string} key The key to check.
  18643. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18644. */
  18645. function baseHasIn(object, key) {
  18646. return object != null && key in Object(object);
  18647. }
  18648. /**
  18649. * The base implementation of `_.inRange` which doesn't coerce arguments.
  18650. *
  18651. * @private
  18652. * @param {number} number The number to check.
  18653. * @param {number} start The start of the range.
  18654. * @param {number} end The end of the range.
  18655. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  18656. */
  18657. function baseInRange(number, start, end) {
  18658. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  18659. }
  18660. /**
  18661. * The base implementation of methods like `_.intersection`, without support
  18662. * for iteratee shorthands, that accepts an array of arrays to inspect.
  18663. *
  18664. * @private
  18665. * @param {Array} arrays The arrays to inspect.
  18666. * @param {Function} [iteratee] The iteratee invoked per element.
  18667. * @param {Function} [comparator] The comparator invoked per element.
  18668. * @returns {Array} Returns the new array of shared values.
  18669. */
  18670. function baseIntersection(arrays, iteratee, comparator) {
  18671. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  18672. length = arrays[0].length,
  18673. othLength = arrays.length,
  18674. othIndex = othLength,
  18675. caches = Array(othLength),
  18676. maxLength = Infinity,
  18677. result = [];
  18678. while (othIndex--) {
  18679. var array = arrays[othIndex];
  18680. if (othIndex && iteratee) {
  18681. array = arrayMap(array, baseUnary(iteratee));
  18682. }
  18683. maxLength = nativeMin(array.length, maxLength);
  18684. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  18685. ? new SetCache(othIndex && array)
  18686. : undefined;
  18687. }
  18688. array = arrays[0];
  18689. var index = -1,
  18690. seen = caches[0];
  18691. outer:
  18692. while (++index < length && result.length < maxLength) {
  18693. var value = array[index],
  18694. computed = iteratee ? iteratee(value) : value;
  18695. value = (comparator || value !== 0) ? value : 0;
  18696. if (!(seen
  18697. ? cacheHas(seen, computed)
  18698. : includes(result, computed, comparator)
  18699. )) {
  18700. othIndex = othLength;
  18701. while (--othIndex) {
  18702. var cache = caches[othIndex];
  18703. if (!(cache
  18704. ? cacheHas(cache, computed)
  18705. : includes(arrays[othIndex], computed, comparator))
  18706. ) {
  18707. continue outer;
  18708. }
  18709. }
  18710. if (seen) {
  18711. seen.push(computed);
  18712. }
  18713. result.push(value);
  18714. }
  18715. }
  18716. return result;
  18717. }
  18718. /**
  18719. * The base implementation of `_.invert` and `_.invertBy` which inverts
  18720. * `object` with values transformed by `iteratee` and set by `setter`.
  18721. *
  18722. * @private
  18723. * @param {Object} object The object to iterate over.
  18724. * @param {Function} setter The function to set `accumulator` values.
  18725. * @param {Function} iteratee The iteratee to transform values.
  18726. * @param {Object} accumulator The initial inverted object.
  18727. * @returns {Function} Returns `accumulator`.
  18728. */
  18729. function baseInverter(object, setter, iteratee, accumulator) {
  18730. baseForOwn(object, function(value, key, object) {
  18731. setter(accumulator, iteratee(value), key, object);
  18732. });
  18733. return accumulator;
  18734. }
  18735. /**
  18736. * The base implementation of `_.invoke` without support for individual
  18737. * method arguments.
  18738. *
  18739. * @private
  18740. * @param {Object} object The object to query.
  18741. * @param {Array|string} path The path of the method to invoke.
  18742. * @param {Array} args The arguments to invoke the method with.
  18743. * @returns {*} Returns the result of the invoked method.
  18744. */
  18745. function baseInvoke(object, path, args) {
  18746. path = castPath(path, object);
  18747. object = parent(object, path);
  18748. var func = object == null ? object : object[toKey(last(path))];
  18749. return func == null ? undefined : apply(func, object, args);
  18750. }
  18751. /**
  18752. * The base implementation of `_.isArguments`.
  18753. *
  18754. * @private
  18755. * @param {*} value The value to check.
  18756. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  18757. */
  18758. function baseIsArguments(value) {
  18759. return isObjectLike(value) && baseGetTag(value) == argsTag;
  18760. }
  18761. /**
  18762. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  18763. *
  18764. * @private
  18765. * @param {*} value The value to check.
  18766. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  18767. */
  18768. function baseIsArrayBuffer(value) {
  18769. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  18770. }
  18771. /**
  18772. * The base implementation of `_.isDate` without Node.js optimizations.
  18773. *
  18774. * @private
  18775. * @param {*} value The value to check.
  18776. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  18777. */
  18778. function baseIsDate(value) {
  18779. return isObjectLike(value) && baseGetTag(value) == dateTag;
  18780. }
  18781. /**
  18782. * The base implementation of `_.isEqual` which supports partial comparisons
  18783. * and tracks traversed objects.
  18784. *
  18785. * @private
  18786. * @param {*} value The value to compare.
  18787. * @param {*} other The other value to compare.
  18788. * @param {boolean} bitmask The bitmask flags.
  18789. * 1 - Unordered comparison
  18790. * 2 - Partial comparison
  18791. * @param {Function} [customizer] The function to customize comparisons.
  18792. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  18793. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  18794. */
  18795. function baseIsEqual(value, other, bitmask, customizer, stack) {
  18796. if (value === other) {
  18797. return true;
  18798. }
  18799. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  18800. return value !== value && other !== other;
  18801. }
  18802. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  18803. }
  18804. /**
  18805. * A specialized version of `baseIsEqual` for arrays and objects which performs
  18806. * deep comparisons and tracks traversed objects enabling objects with circular
  18807. * references to be compared.
  18808. *
  18809. * @private
  18810. * @param {Object} object The object to compare.
  18811. * @param {Object} other The other object to compare.
  18812. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  18813. * @param {Function} customizer The function to customize comparisons.
  18814. * @param {Function} equalFunc The function to determine equivalents of values.
  18815. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  18816. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  18817. */
  18818. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  18819. var objIsArr = isArray(object),
  18820. othIsArr = isArray(other),
  18821. objTag = objIsArr ? arrayTag : getTag(object),
  18822. othTag = othIsArr ? arrayTag : getTag(other);
  18823. objTag = objTag == argsTag ? objectTag : objTag;
  18824. othTag = othTag == argsTag ? objectTag : othTag;
  18825. var objIsObj = objTag == objectTag,
  18826. othIsObj = othTag == objectTag,
  18827. isSameTag = objTag == othTag;
  18828. if (isSameTag && isBuffer(object)) {
  18829. if (!isBuffer(other)) {
  18830. return false;
  18831. }
  18832. objIsArr = true;
  18833. objIsObj = false;
  18834. }
  18835. if (isSameTag && !objIsObj) {
  18836. stack || (stack = new Stack);
  18837. return (objIsArr || isTypedArray(object))
  18838. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  18839. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  18840. }
  18841. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  18842. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  18843. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  18844. if (objIsWrapped || othIsWrapped) {
  18845. var objUnwrapped = objIsWrapped ? object.value() : object,
  18846. othUnwrapped = othIsWrapped ? other.value() : other;
  18847. stack || (stack = new Stack);
  18848. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  18849. }
  18850. }
  18851. if (!isSameTag) {
  18852. return false;
  18853. }
  18854. stack || (stack = new Stack);
  18855. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  18856. }
  18857. /**
  18858. * The base implementation of `_.isMap` without Node.js optimizations.
  18859. *
  18860. * @private
  18861. * @param {*} value The value to check.
  18862. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  18863. */
  18864. function baseIsMap(value) {
  18865. return isObjectLike(value) && getTag(value) == mapTag;
  18866. }
  18867. /**
  18868. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  18869. *
  18870. * @private
  18871. * @param {Object} object The object to inspect.
  18872. * @param {Object} source The object of property values to match.
  18873. * @param {Array} matchData The property names, values, and compare flags to match.
  18874. * @param {Function} [customizer] The function to customize comparisons.
  18875. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  18876. */
  18877. function baseIsMatch(object, source, matchData, customizer) {
  18878. var index = matchData.length,
  18879. length = index,
  18880. noCustomizer = !customizer;
  18881. if (object == null) {
  18882. return !length;
  18883. }
  18884. object = Object(object);
  18885. while (index--) {
  18886. var data = matchData[index];
  18887. if ((noCustomizer && data[2])
  18888. ? data[1] !== object[data[0]]
  18889. : !(data[0] in object)
  18890. ) {
  18891. return false;
  18892. }
  18893. }
  18894. while (++index < length) {
  18895. data = matchData[index];
  18896. var key = data[0],
  18897. objValue = object[key],
  18898. srcValue = data[1];
  18899. if (noCustomizer && data[2]) {
  18900. if (objValue === undefined && !(key in object)) {
  18901. return false;
  18902. }
  18903. } else {
  18904. var stack = new Stack;
  18905. if (customizer) {
  18906. var result = customizer(objValue, srcValue, key, object, source, stack);
  18907. }
  18908. if (!(result === undefined
  18909. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  18910. : result
  18911. )) {
  18912. return false;
  18913. }
  18914. }
  18915. }
  18916. return true;
  18917. }
  18918. /**
  18919. * The base implementation of `_.isNative` without bad shim checks.
  18920. *
  18921. * @private
  18922. * @param {*} value The value to check.
  18923. * @returns {boolean} Returns `true` if `value` is a native function,
  18924. * else `false`.
  18925. */
  18926. function baseIsNative(value) {
  18927. if (!isObject(value) || isMasked(value)) {
  18928. return false;
  18929. }
  18930. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  18931. return pattern.test(toSource(value));
  18932. }
  18933. /**
  18934. * The base implementation of `_.isRegExp` without Node.js optimizations.
  18935. *
  18936. * @private
  18937. * @param {*} value The value to check.
  18938. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  18939. */
  18940. function baseIsRegExp(value) {
  18941. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  18942. }
  18943. /**
  18944. * The base implementation of `_.isSet` without Node.js optimizations.
  18945. *
  18946. * @private
  18947. * @param {*} value The value to check.
  18948. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  18949. */
  18950. function baseIsSet(value) {
  18951. return isObjectLike(value) && getTag(value) == setTag;
  18952. }
  18953. /**
  18954. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  18955. *
  18956. * @private
  18957. * @param {*} value The value to check.
  18958. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  18959. */
  18960. function baseIsTypedArray(value) {
  18961. return isObjectLike(value) &&
  18962. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  18963. }
  18964. /**
  18965. * The base implementation of `_.iteratee`.
  18966. *
  18967. * @private
  18968. * @param {*} [value=_.identity] The value to convert to an iteratee.
  18969. * @returns {Function} Returns the iteratee.
  18970. */
  18971. function baseIteratee(value) {
  18972. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  18973. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  18974. if (typeof value == 'function') {
  18975. return value;
  18976. }
  18977. if (value == null) {
  18978. return identity;
  18979. }
  18980. if (typeof value == 'object') {
  18981. return isArray(value)
  18982. ? baseMatchesProperty(value[0], value[1])
  18983. : baseMatches(value);
  18984. }
  18985. return property(value);
  18986. }
  18987. /**
  18988. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  18989. *
  18990. * @private
  18991. * @param {Object} object The object to query.
  18992. * @returns {Array} Returns the array of property names.
  18993. */
  18994. function baseKeys(object) {
  18995. if (!isPrototype(object)) {
  18996. return nativeKeys(object);
  18997. }
  18998. var result = [];
  18999. for (var key in Object(object)) {
  19000. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  19001. result.push(key);
  19002. }
  19003. }
  19004. return result;
  19005. }
  19006. /**
  19007. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  19008. *
  19009. * @private
  19010. * @param {Object} object The object to query.
  19011. * @returns {Array} Returns the array of property names.
  19012. */
  19013. function baseKeysIn(object) {
  19014. if (!isObject(object)) {
  19015. return nativeKeysIn(object);
  19016. }
  19017. var isProto = isPrototype(object),
  19018. result = [];
  19019. for (var key in object) {
  19020. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  19021. result.push(key);
  19022. }
  19023. }
  19024. return result;
  19025. }
  19026. /**
  19027. * The base implementation of `_.lt` which doesn't coerce arguments.
  19028. *
  19029. * @private
  19030. * @param {*} value The value to compare.
  19031. * @param {*} other The other value to compare.
  19032. * @returns {boolean} Returns `true` if `value` is less than `other`,
  19033. * else `false`.
  19034. */
  19035. function baseLt(value, other) {
  19036. return value < other;
  19037. }
  19038. /**
  19039. * The base implementation of `_.map` without support for iteratee shorthands.
  19040. *
  19041. * @private
  19042. * @param {Array|Object} collection The collection to iterate over.
  19043. * @param {Function} iteratee The function invoked per iteration.
  19044. * @returns {Array} Returns the new mapped array.
  19045. */
  19046. function baseMap(collection, iteratee) {
  19047. var index = -1,
  19048. result = isArrayLike(collection) ? Array(collection.length) : [];
  19049. baseEach(collection, function(value, key, collection) {
  19050. result[++index] = iteratee(value, key, collection);
  19051. });
  19052. return result;
  19053. }
  19054. /**
  19055. * The base implementation of `_.matches` which doesn't clone `source`.
  19056. *
  19057. * @private
  19058. * @param {Object} source The object of property values to match.
  19059. * @returns {Function} Returns the new spec function.
  19060. */
  19061. function baseMatches(source) {
  19062. var matchData = getMatchData(source);
  19063. if (matchData.length == 1 && matchData[0][2]) {
  19064. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  19065. }
  19066. return function(object) {
  19067. return object === source || baseIsMatch(object, source, matchData);
  19068. };
  19069. }
  19070. /**
  19071. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  19072. *
  19073. * @private
  19074. * @param {string} path The path of the property to get.
  19075. * @param {*} srcValue The value to match.
  19076. * @returns {Function} Returns the new spec function.
  19077. */
  19078. function baseMatchesProperty(path, srcValue) {
  19079. if (isKey(path) && isStrictComparable(srcValue)) {
  19080. return matchesStrictComparable(toKey(path), srcValue);
  19081. }
  19082. return function(object) {
  19083. var objValue = get(object, path);
  19084. return (objValue === undefined && objValue === srcValue)
  19085. ? hasIn(object, path)
  19086. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  19087. };
  19088. }
  19089. /**
  19090. * The base implementation of `_.merge` without support for multiple sources.
  19091. *
  19092. * @private
  19093. * @param {Object} object The destination object.
  19094. * @param {Object} source The source object.
  19095. * @param {number} srcIndex The index of `source`.
  19096. * @param {Function} [customizer] The function to customize merged values.
  19097. * @param {Object} [stack] Tracks traversed source values and their merged
  19098. * counterparts.
  19099. */
  19100. function baseMerge(object, source, srcIndex, customizer, stack) {
  19101. if (object === source) {
  19102. return;
  19103. }
  19104. baseFor(source, function(srcValue, key) {
  19105. stack || (stack = new Stack);
  19106. if (isObject(srcValue)) {
  19107. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  19108. }
  19109. else {
  19110. var newValue = customizer
  19111. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  19112. : undefined;
  19113. if (newValue === undefined) {
  19114. newValue = srcValue;
  19115. }
  19116. assignMergeValue(object, key, newValue);
  19117. }
  19118. }, keysIn);
  19119. }
  19120. /**
  19121. * A specialized version of `baseMerge` for arrays and objects which performs
  19122. * deep merges and tracks traversed objects enabling objects with circular
  19123. * references to be merged.
  19124. *
  19125. * @private
  19126. * @param {Object} object The destination object.
  19127. * @param {Object} source The source object.
  19128. * @param {string} key The key of the value to merge.
  19129. * @param {number} srcIndex The index of `source`.
  19130. * @param {Function} mergeFunc The function to merge values.
  19131. * @param {Function} [customizer] The function to customize assigned values.
  19132. * @param {Object} [stack] Tracks traversed source values and their merged
  19133. * counterparts.
  19134. */
  19135. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  19136. var objValue = safeGet(object, key),
  19137. srcValue = safeGet(source, key),
  19138. stacked = stack.get(srcValue);
  19139. if (stacked) {
  19140. assignMergeValue(object, key, stacked);
  19141. return;
  19142. }
  19143. var newValue = customizer
  19144. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  19145. : undefined;
  19146. var isCommon = newValue === undefined;
  19147. if (isCommon) {
  19148. var isArr = isArray(srcValue),
  19149. isBuff = !isArr && isBuffer(srcValue),
  19150. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  19151. newValue = srcValue;
  19152. if (isArr || isBuff || isTyped) {
  19153. if (isArray(objValue)) {
  19154. newValue = objValue;
  19155. }
  19156. else if (isArrayLikeObject(objValue)) {
  19157. newValue = copyArray(objValue);
  19158. }
  19159. else if (isBuff) {
  19160. isCommon = false;
  19161. newValue = cloneBuffer(srcValue, true);
  19162. }
  19163. else if (isTyped) {
  19164. isCommon = false;
  19165. newValue = cloneTypedArray(srcValue, true);
  19166. }
  19167. else {
  19168. newValue = [];
  19169. }
  19170. }
  19171. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  19172. newValue = objValue;
  19173. if (isArguments(objValue)) {
  19174. newValue = toPlainObject(objValue);
  19175. }
  19176. else if (!isObject(objValue) || isFunction(objValue)) {
  19177. newValue = initCloneObject(srcValue);
  19178. }
  19179. }
  19180. else {
  19181. isCommon = false;
  19182. }
  19183. }
  19184. if (isCommon) {
  19185. // Recursively merge objects and arrays (susceptible to call stack limits).
  19186. stack.set(srcValue, newValue);
  19187. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  19188. stack['delete'](srcValue);
  19189. }
  19190. assignMergeValue(object, key, newValue);
  19191. }
  19192. /**
  19193. * The base implementation of `_.nth` which doesn't coerce arguments.
  19194. *
  19195. * @private
  19196. * @param {Array} array The array to query.
  19197. * @param {number} n The index of the element to return.
  19198. * @returns {*} Returns the nth element of `array`.
  19199. */
  19200. function baseNth(array, n) {
  19201. var length = array.length;
  19202. if (!length) {
  19203. return;
  19204. }
  19205. n += n < 0 ? length : 0;
  19206. return isIndex(n, length) ? array[n] : undefined;
  19207. }
  19208. /**
  19209. * The base implementation of `_.orderBy` without param guards.
  19210. *
  19211. * @private
  19212. * @param {Array|Object} collection The collection to iterate over.
  19213. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  19214. * @param {string[]} orders The sort orders of `iteratees`.
  19215. * @returns {Array} Returns the new sorted array.
  19216. */
  19217. function baseOrderBy(collection, iteratees, orders) {
  19218. var index = -1;
  19219. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  19220. var result = baseMap(collection, function(value, key, collection) {
  19221. var criteria = arrayMap(iteratees, function(iteratee) {
  19222. return iteratee(value);
  19223. });
  19224. return { 'criteria': criteria, 'index': ++index, 'value': value };
  19225. });
  19226. return baseSortBy(result, function(object, other) {
  19227. return compareMultiple(object, other, orders);
  19228. });
  19229. }
  19230. /**
  19231. * The base implementation of `_.pick` without support for individual
  19232. * property identifiers.
  19233. *
  19234. * @private
  19235. * @param {Object} object The source object.
  19236. * @param {string[]} paths The property paths to pick.
  19237. * @returns {Object} Returns the new object.
  19238. */
  19239. function basePick(object, paths) {
  19240. return basePickBy(object, paths, function(value, path) {
  19241. return hasIn(object, path);
  19242. });
  19243. }
  19244. /**
  19245. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  19246. *
  19247. * @private
  19248. * @param {Object} object The source object.
  19249. * @param {string[]} paths The property paths to pick.
  19250. * @param {Function} predicate The function invoked per property.
  19251. * @returns {Object} Returns the new object.
  19252. */
  19253. function basePickBy(object, paths, predicate) {
  19254. var index = -1,
  19255. length = paths.length,
  19256. result = {};
  19257. while (++index < length) {
  19258. var path = paths[index],
  19259. value = baseGet(object, path);
  19260. if (predicate(value, path)) {
  19261. baseSet(result, castPath(path, object), value);
  19262. }
  19263. }
  19264. return result;
  19265. }
  19266. /**
  19267. * A specialized version of `baseProperty` which supports deep paths.
  19268. *
  19269. * @private
  19270. * @param {Array|string} path The path of the property to get.
  19271. * @returns {Function} Returns the new accessor function.
  19272. */
  19273. function basePropertyDeep(path) {
  19274. return function(object) {
  19275. return baseGet(object, path);
  19276. };
  19277. }
  19278. /**
  19279. * The base implementation of `_.pullAllBy` without support for iteratee
  19280. * shorthands.
  19281. *
  19282. * @private
  19283. * @param {Array} array The array to modify.
  19284. * @param {Array} values The values to remove.
  19285. * @param {Function} [iteratee] The iteratee invoked per element.
  19286. * @param {Function} [comparator] The comparator invoked per element.
  19287. * @returns {Array} Returns `array`.
  19288. */
  19289. function basePullAll(array, values, iteratee, comparator) {
  19290. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  19291. index = -1,
  19292. length = values.length,
  19293. seen = array;
  19294. if (array === values) {
  19295. values = copyArray(values);
  19296. }
  19297. if (iteratee) {
  19298. seen = arrayMap(array, baseUnary(iteratee));
  19299. }
  19300. while (++index < length) {
  19301. var fromIndex = 0,
  19302. value = values[index],
  19303. computed = iteratee ? iteratee(value) : value;
  19304. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  19305. if (seen !== array) {
  19306. splice.call(seen, fromIndex, 1);
  19307. }
  19308. splice.call(array, fromIndex, 1);
  19309. }
  19310. }
  19311. return array;
  19312. }
  19313. /**
  19314. * The base implementation of `_.pullAt` without support for individual
  19315. * indexes or capturing the removed elements.
  19316. *
  19317. * @private
  19318. * @param {Array} array The array to modify.
  19319. * @param {number[]} indexes The indexes of elements to remove.
  19320. * @returns {Array} Returns `array`.
  19321. */
  19322. function basePullAt(array, indexes) {
  19323. var length = array ? indexes.length : 0,
  19324. lastIndex = length - 1;
  19325. while (length--) {
  19326. var index = indexes[length];
  19327. if (length == lastIndex || index !== previous) {
  19328. var previous = index;
  19329. if (isIndex(index)) {
  19330. splice.call(array, index, 1);
  19331. } else {
  19332. baseUnset(array, index);
  19333. }
  19334. }
  19335. }
  19336. return array;
  19337. }
  19338. /**
  19339. * The base implementation of `_.random` without support for returning
  19340. * floating-point numbers.
  19341. *
  19342. * @private
  19343. * @param {number} lower The lower bound.
  19344. * @param {number} upper The upper bound.
  19345. * @returns {number} Returns the random number.
  19346. */
  19347. function baseRandom(lower, upper) {
  19348. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  19349. }
  19350. /**
  19351. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  19352. * coerce arguments.
  19353. *
  19354. * @private
  19355. * @param {number} start The start of the range.
  19356. * @param {number} end The end of the range.
  19357. * @param {number} step The value to increment or decrement by.
  19358. * @param {boolean} [fromRight] Specify iterating from right to left.
  19359. * @returns {Array} Returns the range of numbers.
  19360. */
  19361. function baseRange(start, end, step, fromRight) {
  19362. var index = -1,
  19363. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  19364. result = Array(length);
  19365. while (length--) {
  19366. result[fromRight ? length : ++index] = start;
  19367. start += step;
  19368. }
  19369. return result;
  19370. }
  19371. /**
  19372. * The base implementation of `_.repeat` which doesn't coerce arguments.
  19373. *
  19374. * @private
  19375. * @param {string} string The string to repeat.
  19376. * @param {number} n The number of times to repeat the string.
  19377. * @returns {string} Returns the repeated string.
  19378. */
  19379. function baseRepeat(string, n) {
  19380. var result = '';
  19381. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  19382. return result;
  19383. }
  19384. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  19385. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  19386. do {
  19387. if (n % 2) {
  19388. result += string;
  19389. }
  19390. n = nativeFloor(n / 2);
  19391. if (n) {
  19392. string += string;
  19393. }
  19394. } while (n);
  19395. return result;
  19396. }
  19397. /**
  19398. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  19399. *
  19400. * @private
  19401. * @param {Function} func The function to apply a rest parameter to.
  19402. * @param {number} [start=func.length-1] The start position of the rest parameter.
  19403. * @returns {Function} Returns the new function.
  19404. */
  19405. function baseRest(func, start) {
  19406. return setToString(overRest(func, start, identity), func + '');
  19407. }
  19408. /**
  19409. * The base implementation of `_.sample`.
  19410. *
  19411. * @private
  19412. * @param {Array|Object} collection The collection to sample.
  19413. * @returns {*} Returns the random element.
  19414. */
  19415. function baseSample(collection) {
  19416. return arraySample(values(collection));
  19417. }
  19418. /**
  19419. * The base implementation of `_.sampleSize` without param guards.
  19420. *
  19421. * @private
  19422. * @param {Array|Object} collection The collection to sample.
  19423. * @param {number} n The number of elements to sample.
  19424. * @returns {Array} Returns the random elements.
  19425. */
  19426. function baseSampleSize(collection, n) {
  19427. var array = values(collection);
  19428. return shuffleSelf(array, baseClamp(n, 0, array.length));
  19429. }
  19430. /**
  19431. * The base implementation of `_.set`.
  19432. *
  19433. * @private
  19434. * @param {Object} object The object to modify.
  19435. * @param {Array|string} path The path of the property to set.
  19436. * @param {*} value The value to set.
  19437. * @param {Function} [customizer] The function to customize path creation.
  19438. * @returns {Object} Returns `object`.
  19439. */
  19440. function baseSet(object, path, value, customizer) {
  19441. if (!isObject(object)) {
  19442. return object;
  19443. }
  19444. path = castPath(path, object);
  19445. var index = -1,
  19446. length = path.length,
  19447. lastIndex = length - 1,
  19448. nested = object;
  19449. while (nested != null && ++index < length) {
  19450. var key = toKey(path[index]),
  19451. newValue = value;
  19452. if (index != lastIndex) {
  19453. var objValue = nested[key];
  19454. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  19455. if (newValue === undefined) {
  19456. newValue = isObject(objValue)
  19457. ? objValue
  19458. : (isIndex(path[index + 1]) ? [] : {});
  19459. }
  19460. }
  19461. assignValue(nested, key, newValue);
  19462. nested = nested[key];
  19463. }
  19464. return object;
  19465. }
  19466. /**
  19467. * The base implementation of `setData` without support for hot loop shorting.
  19468. *
  19469. * @private
  19470. * @param {Function} func The function to associate metadata with.
  19471. * @param {*} data The metadata.
  19472. * @returns {Function} Returns `func`.
  19473. */
  19474. var baseSetData = !metaMap ? identity : function(func, data) {
  19475. metaMap.set(func, data);
  19476. return func;
  19477. };
  19478. /**
  19479. * The base implementation of `setToString` without support for hot loop shorting.
  19480. *
  19481. * @private
  19482. * @param {Function} func The function to modify.
  19483. * @param {Function} string The `toString` result.
  19484. * @returns {Function} Returns `func`.
  19485. */
  19486. var baseSetToString = !defineProperty ? identity : function(func, string) {
  19487. return defineProperty(func, 'toString', {
  19488. 'configurable': true,
  19489. 'enumerable': false,
  19490. 'value': constant(string),
  19491. 'writable': true
  19492. });
  19493. };
  19494. /**
  19495. * The base implementation of `_.shuffle`.
  19496. *
  19497. * @private
  19498. * @param {Array|Object} collection The collection to shuffle.
  19499. * @returns {Array} Returns the new shuffled array.
  19500. */
  19501. function baseShuffle(collection) {
  19502. return shuffleSelf(values(collection));
  19503. }
  19504. /**
  19505. * The base implementation of `_.slice` without an iteratee call guard.
  19506. *
  19507. * @private
  19508. * @param {Array} array The array to slice.
  19509. * @param {number} [start=0] The start position.
  19510. * @param {number} [end=array.length] The end position.
  19511. * @returns {Array} Returns the slice of `array`.
  19512. */
  19513. function baseSlice(array, start, end) {
  19514. var index = -1,
  19515. length = array.length;
  19516. if (start < 0) {
  19517. start = -start > length ? 0 : (length + start);
  19518. }
  19519. end = end > length ? length : end;
  19520. if (end < 0) {
  19521. end += length;
  19522. }
  19523. length = start > end ? 0 : ((end - start) >>> 0);
  19524. start >>>= 0;
  19525. var result = Array(length);
  19526. while (++index < length) {
  19527. result[index] = array[index + start];
  19528. }
  19529. return result;
  19530. }
  19531. /**
  19532. * The base implementation of `_.some` without support for iteratee shorthands.
  19533. *
  19534. * @private
  19535. * @param {Array|Object} collection The collection to iterate over.
  19536. * @param {Function} predicate The function invoked per iteration.
  19537. * @returns {boolean} Returns `true` if any element passes the predicate check,
  19538. * else `false`.
  19539. */
  19540. function baseSome(collection, predicate) {
  19541. var result;
  19542. baseEach(collection, function(value, index, collection) {
  19543. result = predicate(value, index, collection);
  19544. return !result;
  19545. });
  19546. return !!result;
  19547. }
  19548. /**
  19549. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  19550. * performs a binary search of `array` to determine the index at which `value`
  19551. * should be inserted into `array` in order to maintain its sort order.
  19552. *
  19553. * @private
  19554. * @param {Array} array The sorted array to inspect.
  19555. * @param {*} value The value to evaluate.
  19556. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19557. * @returns {number} Returns the index at which `value` should be inserted
  19558. * into `array`.
  19559. */
  19560. function baseSortedIndex(array, value, retHighest) {
  19561. var low = 0,
  19562. high = array == null ? low : array.length;
  19563. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  19564. while (low < high) {
  19565. var mid = (low + high) >>> 1,
  19566. computed = array[mid];
  19567. if (computed !== null && !isSymbol(computed) &&
  19568. (retHighest ? (computed <= value) : (computed < value))) {
  19569. low = mid + 1;
  19570. } else {
  19571. high = mid;
  19572. }
  19573. }
  19574. return high;
  19575. }
  19576. return baseSortedIndexBy(array, value, identity, retHighest);
  19577. }
  19578. /**
  19579. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  19580. * which invokes `iteratee` for `value` and each element of `array` to compute
  19581. * their sort ranking. The iteratee is invoked with one argument; (value).
  19582. *
  19583. * @private
  19584. * @param {Array} array The sorted array to inspect.
  19585. * @param {*} value The value to evaluate.
  19586. * @param {Function} iteratee The iteratee invoked per element.
  19587. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19588. * @returns {number} Returns the index at which `value` should be inserted
  19589. * into `array`.
  19590. */
  19591. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  19592. value = iteratee(value);
  19593. var low = 0,
  19594. high = array == null ? 0 : array.length,
  19595. valIsNaN = value !== value,
  19596. valIsNull = value === null,
  19597. valIsSymbol = isSymbol(value),
  19598. valIsUndefined = value === undefined;
  19599. while (low < high) {
  19600. var mid = nativeFloor((low + high) / 2),
  19601. computed = iteratee(array[mid]),
  19602. othIsDefined = computed !== undefined,
  19603. othIsNull = computed === null,
  19604. othIsReflexive = computed === computed,
  19605. othIsSymbol = isSymbol(computed);
  19606. if (valIsNaN) {
  19607. var setLow = retHighest || othIsReflexive;
  19608. } else if (valIsUndefined) {
  19609. setLow = othIsReflexive && (retHighest || othIsDefined);
  19610. } else if (valIsNull) {
  19611. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  19612. } else if (valIsSymbol) {
  19613. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  19614. } else if (othIsNull || othIsSymbol) {
  19615. setLow = false;
  19616. } else {
  19617. setLow = retHighest ? (computed <= value) : (computed < value);
  19618. }
  19619. if (setLow) {
  19620. low = mid + 1;
  19621. } else {
  19622. high = mid;
  19623. }
  19624. }
  19625. return nativeMin(high, MAX_ARRAY_INDEX);
  19626. }
  19627. /**
  19628. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  19629. * support for iteratee shorthands.
  19630. *
  19631. * @private
  19632. * @param {Array} array The array to inspect.
  19633. * @param {Function} [iteratee] The iteratee invoked per element.
  19634. * @returns {Array} Returns the new duplicate free array.
  19635. */
  19636. function baseSortedUniq(array, iteratee) {
  19637. var index = -1,
  19638. length = array.length,
  19639. resIndex = 0,
  19640. result = [];
  19641. while (++index < length) {
  19642. var value = array[index],
  19643. computed = iteratee ? iteratee(value) : value;
  19644. if (!index || !eq(computed, seen)) {
  19645. var seen = computed;
  19646. result[resIndex++] = value === 0 ? 0 : value;
  19647. }
  19648. }
  19649. return result;
  19650. }
  19651. /**
  19652. * The base implementation of `_.toNumber` which doesn't ensure correct
  19653. * conversions of binary, hexadecimal, or octal string values.
  19654. *
  19655. * @private
  19656. * @param {*} value The value to process.
  19657. * @returns {number} Returns the number.
  19658. */
  19659. function baseToNumber(value) {
  19660. if (typeof value == 'number') {
  19661. return value;
  19662. }
  19663. if (isSymbol(value)) {
  19664. return NAN;
  19665. }
  19666. return +value;
  19667. }
  19668. /**
  19669. * The base implementation of `_.toString` which doesn't convert nullish
  19670. * values to empty strings.
  19671. *
  19672. * @private
  19673. * @param {*} value The value to process.
  19674. * @returns {string} Returns the string.
  19675. */
  19676. function baseToString(value) {
  19677. // Exit early for strings to avoid a performance hit in some environments.
  19678. if (typeof value == 'string') {
  19679. return value;
  19680. }
  19681. if (isArray(value)) {
  19682. // Recursively convert values (susceptible to call stack limits).
  19683. return arrayMap(value, baseToString) + '';
  19684. }
  19685. if (isSymbol(value)) {
  19686. return symbolToString ? symbolToString.call(value) : '';
  19687. }
  19688. var result = (value + '');
  19689. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  19690. }
  19691. /**
  19692. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  19693. *
  19694. * @private
  19695. * @param {Array} array The array to inspect.
  19696. * @param {Function} [iteratee] The iteratee invoked per element.
  19697. * @param {Function} [comparator] The comparator invoked per element.
  19698. * @returns {Array} Returns the new duplicate free array.
  19699. */
  19700. function baseUniq(array, iteratee, comparator) {
  19701. var index = -1,
  19702. includes = arrayIncludes,
  19703. length = array.length,
  19704. isCommon = true,
  19705. result = [],
  19706. seen = result;
  19707. if (comparator) {
  19708. isCommon = false;
  19709. includes = arrayIncludesWith;
  19710. }
  19711. else if (length >= LARGE_ARRAY_SIZE) {
  19712. var set = iteratee ? null : createSet(array);
  19713. if (set) {
  19714. return setToArray(set);
  19715. }
  19716. isCommon = false;
  19717. includes = cacheHas;
  19718. seen = new SetCache;
  19719. }
  19720. else {
  19721. seen = iteratee ? [] : result;
  19722. }
  19723. outer:
  19724. while (++index < length) {
  19725. var value = array[index],
  19726. computed = iteratee ? iteratee(value) : value;
  19727. value = (comparator || value !== 0) ? value : 0;
  19728. if (isCommon && computed === computed) {
  19729. var seenIndex = seen.length;
  19730. while (seenIndex--) {
  19731. if (seen[seenIndex] === computed) {
  19732. continue outer;
  19733. }
  19734. }
  19735. if (iteratee) {
  19736. seen.push(computed);
  19737. }
  19738. result.push(value);
  19739. }
  19740. else if (!includes(seen, computed, comparator)) {
  19741. if (seen !== result) {
  19742. seen.push(computed);
  19743. }
  19744. result.push(value);
  19745. }
  19746. }
  19747. return result;
  19748. }
  19749. /**
  19750. * The base implementation of `_.unset`.
  19751. *
  19752. * @private
  19753. * @param {Object} object The object to modify.
  19754. * @param {Array|string} path The property path to unset.
  19755. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  19756. */
  19757. function baseUnset(object, path) {
  19758. path = castPath(path, object);
  19759. object = parent(object, path);
  19760. return object == null || delete object[toKey(last(path))];
  19761. }
  19762. /**
  19763. * The base implementation of `_.update`.
  19764. *
  19765. * @private
  19766. * @param {Object} object The object to modify.
  19767. * @param {Array|string} path The path of the property to update.
  19768. * @param {Function} updater The function to produce the updated value.
  19769. * @param {Function} [customizer] The function to customize path creation.
  19770. * @returns {Object} Returns `object`.
  19771. */
  19772. function baseUpdate(object, path, updater, customizer) {
  19773. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  19774. }
  19775. /**
  19776. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  19777. * without support for iteratee shorthands.
  19778. *
  19779. * @private
  19780. * @param {Array} array The array to query.
  19781. * @param {Function} predicate The function invoked per iteration.
  19782. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  19783. * @param {boolean} [fromRight] Specify iterating from right to left.
  19784. * @returns {Array} Returns the slice of `array`.
  19785. */
  19786. function baseWhile(array, predicate, isDrop, fromRight) {
  19787. var length = array.length,
  19788. index = fromRight ? length : -1;
  19789. while ((fromRight ? index-- : ++index < length) &&
  19790. predicate(array[index], index, array)) {}
  19791. return isDrop
  19792. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  19793. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  19794. }
  19795. /**
  19796. * The base implementation of `wrapperValue` which returns the result of
  19797. * performing a sequence of actions on the unwrapped `value`, where each
  19798. * successive action is supplied the return value of the previous.
  19799. *
  19800. * @private
  19801. * @param {*} value The unwrapped value.
  19802. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  19803. * @returns {*} Returns the resolved value.
  19804. */
  19805. function baseWrapperValue(value, actions) {
  19806. var result = value;
  19807. if (result instanceof LazyWrapper) {
  19808. result = result.value();
  19809. }
  19810. return arrayReduce(actions, function(result, action) {
  19811. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  19812. }, result);
  19813. }
  19814. /**
  19815. * The base implementation of methods like `_.xor`, without support for
  19816. * iteratee shorthands, that accepts an array of arrays to inspect.
  19817. *
  19818. * @private
  19819. * @param {Array} arrays The arrays to inspect.
  19820. * @param {Function} [iteratee] The iteratee invoked per element.
  19821. * @param {Function} [comparator] The comparator invoked per element.
  19822. * @returns {Array} Returns the new array of values.
  19823. */
  19824. function baseXor(arrays, iteratee, comparator) {
  19825. var length = arrays.length;
  19826. if (length < 2) {
  19827. return length ? baseUniq(arrays[0]) : [];
  19828. }
  19829. var index = -1,
  19830. result = Array(length);
  19831. while (++index < length) {
  19832. var array = arrays[index],
  19833. othIndex = -1;
  19834. while (++othIndex < length) {
  19835. if (othIndex != index) {
  19836. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  19837. }
  19838. }
  19839. }
  19840. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  19841. }
  19842. /**
  19843. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  19844. *
  19845. * @private
  19846. * @param {Array} props The property identifiers.
  19847. * @param {Array} values The property values.
  19848. * @param {Function} assignFunc The function to assign values.
  19849. * @returns {Object} Returns the new object.
  19850. */
  19851. function baseZipObject(props, values, assignFunc) {
  19852. var index = -1,
  19853. length = props.length,
  19854. valsLength = values.length,
  19855. result = {};
  19856. while (++index < length) {
  19857. var value = index < valsLength ? values[index] : undefined;
  19858. assignFunc(result, props[index], value);
  19859. }
  19860. return result;
  19861. }
  19862. /**
  19863. * Casts `value` to an empty array if it's not an array like object.
  19864. *
  19865. * @private
  19866. * @param {*} value The value to inspect.
  19867. * @returns {Array|Object} Returns the cast array-like object.
  19868. */
  19869. function castArrayLikeObject(value) {
  19870. return isArrayLikeObject(value) ? value : [];
  19871. }
  19872. /**
  19873. * Casts `value` to `identity` if it's not a function.
  19874. *
  19875. * @private
  19876. * @param {*} value The value to inspect.
  19877. * @returns {Function} Returns cast function.
  19878. */
  19879. function castFunction(value) {
  19880. return typeof value == 'function' ? value : identity;
  19881. }
  19882. /**
  19883. * Casts `value` to a path array if it's not one.
  19884. *
  19885. * @private
  19886. * @param {*} value The value to inspect.
  19887. * @param {Object} [object] The object to query keys on.
  19888. * @returns {Array} Returns the cast property path array.
  19889. */
  19890. function castPath(value, object) {
  19891. if (isArray(value)) {
  19892. return value;
  19893. }
  19894. return isKey(value, object) ? [value] : stringToPath(toString(value));
  19895. }
  19896. /**
  19897. * A `baseRest` alias which can be replaced with `identity` by module
  19898. * replacement plugins.
  19899. *
  19900. * @private
  19901. * @type {Function}
  19902. * @param {Function} func The function to apply a rest parameter to.
  19903. * @returns {Function} Returns the new function.
  19904. */
  19905. var castRest = baseRest;
  19906. /**
  19907. * Casts `array` to a slice if it's needed.
  19908. *
  19909. * @private
  19910. * @param {Array} array The array to inspect.
  19911. * @param {number} start The start position.
  19912. * @param {number} [end=array.length] The end position.
  19913. * @returns {Array} Returns the cast slice.
  19914. */
  19915. function castSlice(array, start, end) {
  19916. var length = array.length;
  19917. end = end === undefined ? length : end;
  19918. return (!start && end >= length) ? array : baseSlice(array, start, end);
  19919. }
  19920. /**
  19921. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  19922. *
  19923. * @private
  19924. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  19925. */
  19926. var clearTimeout = ctxClearTimeout || function(id) {
  19927. return root.clearTimeout(id);
  19928. };
  19929. /**
  19930. * Creates a clone of `buffer`.
  19931. *
  19932. * @private
  19933. * @param {Buffer} buffer The buffer to clone.
  19934. * @param {boolean} [isDeep] Specify a deep clone.
  19935. * @returns {Buffer} Returns the cloned buffer.
  19936. */
  19937. function cloneBuffer(buffer, isDeep) {
  19938. if (isDeep) {
  19939. return buffer.slice();
  19940. }
  19941. var length = buffer.length,
  19942. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  19943. buffer.copy(result);
  19944. return result;
  19945. }
  19946. /**
  19947. * Creates a clone of `arrayBuffer`.
  19948. *
  19949. * @private
  19950. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  19951. * @returns {ArrayBuffer} Returns the cloned array buffer.
  19952. */
  19953. function cloneArrayBuffer(arrayBuffer) {
  19954. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  19955. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  19956. return result;
  19957. }
  19958. /**
  19959. * Creates a clone of `dataView`.
  19960. *
  19961. * @private
  19962. * @param {Object} dataView The data view to clone.
  19963. * @param {boolean} [isDeep] Specify a deep clone.
  19964. * @returns {Object} Returns the cloned data view.
  19965. */
  19966. function cloneDataView(dataView, isDeep) {
  19967. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  19968. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  19969. }
  19970. /**
  19971. * Creates a clone of `regexp`.
  19972. *
  19973. * @private
  19974. * @param {Object} regexp The regexp to clone.
  19975. * @returns {Object} Returns the cloned regexp.
  19976. */
  19977. function cloneRegExp(regexp) {
  19978. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  19979. result.lastIndex = regexp.lastIndex;
  19980. return result;
  19981. }
  19982. /**
  19983. * Creates a clone of the `symbol` object.
  19984. *
  19985. * @private
  19986. * @param {Object} symbol The symbol object to clone.
  19987. * @returns {Object} Returns the cloned symbol object.
  19988. */
  19989. function cloneSymbol(symbol) {
  19990. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  19991. }
  19992. /**
  19993. * Creates a clone of `typedArray`.
  19994. *
  19995. * @private
  19996. * @param {Object} typedArray The typed array to clone.
  19997. * @param {boolean} [isDeep] Specify a deep clone.
  19998. * @returns {Object} Returns the cloned typed array.
  19999. */
  20000. function cloneTypedArray(typedArray, isDeep) {
  20001. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  20002. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  20003. }
  20004. /**
  20005. * Compares values to sort them in ascending order.
  20006. *
  20007. * @private
  20008. * @param {*} value The value to compare.
  20009. * @param {*} other The other value to compare.
  20010. * @returns {number} Returns the sort order indicator for `value`.
  20011. */
  20012. function compareAscending(value, other) {
  20013. if (value !== other) {
  20014. var valIsDefined = value !== undefined,
  20015. valIsNull = value === null,
  20016. valIsReflexive = value === value,
  20017. valIsSymbol = isSymbol(value);
  20018. var othIsDefined = other !== undefined,
  20019. othIsNull = other === null,
  20020. othIsReflexive = other === other,
  20021. othIsSymbol = isSymbol(other);
  20022. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  20023. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  20024. (valIsNull && othIsDefined && othIsReflexive) ||
  20025. (!valIsDefined && othIsReflexive) ||
  20026. !valIsReflexive) {
  20027. return 1;
  20028. }
  20029. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  20030. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  20031. (othIsNull && valIsDefined && valIsReflexive) ||
  20032. (!othIsDefined && valIsReflexive) ||
  20033. !othIsReflexive) {
  20034. return -1;
  20035. }
  20036. }
  20037. return 0;
  20038. }
  20039. /**
  20040. * Used by `_.orderBy` to compare multiple properties of a value to another
  20041. * and stable sort them.
  20042. *
  20043. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  20044. * specify an order of "desc" for descending or "asc" for ascending sort order
  20045. * of corresponding values.
  20046. *
  20047. * @private
  20048. * @param {Object} object The object to compare.
  20049. * @param {Object} other The other object to compare.
  20050. * @param {boolean[]|string[]} orders The order to sort by for each property.
  20051. * @returns {number} Returns the sort order indicator for `object`.
  20052. */
  20053. function compareMultiple(object, other, orders) {
  20054. var index = -1,
  20055. objCriteria = object.criteria,
  20056. othCriteria = other.criteria,
  20057. length = objCriteria.length,
  20058. ordersLength = orders.length;
  20059. while (++index < length) {
  20060. var result = compareAscending(objCriteria[index], othCriteria[index]);
  20061. if (result) {
  20062. if (index >= ordersLength) {
  20063. return result;
  20064. }
  20065. var order = orders[index];
  20066. return result * (order == 'desc' ? -1 : 1);
  20067. }
  20068. }
  20069. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  20070. // that causes it, under certain circumstances, to provide the same value for
  20071. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  20072. // for more details.
  20073. //
  20074. // This also ensures a stable sort in V8 and other engines.
  20075. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  20076. return object.index - other.index;
  20077. }
  20078. /**
  20079. * Creates an array that is the composition of partially applied arguments,
  20080. * placeholders, and provided arguments into a single array of arguments.
  20081. *
  20082. * @private
  20083. * @param {Array} args The provided arguments.
  20084. * @param {Array} partials The arguments to prepend to those provided.
  20085. * @param {Array} holders The `partials` placeholder indexes.
  20086. * @params {boolean} [isCurried] Specify composing for a curried function.
  20087. * @returns {Array} Returns the new array of composed arguments.
  20088. */
  20089. function composeArgs(args, partials, holders, isCurried) {
  20090. var argsIndex = -1,
  20091. argsLength = args.length,
  20092. holdersLength = holders.length,
  20093. leftIndex = -1,
  20094. leftLength = partials.length,
  20095. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20096. result = Array(leftLength + rangeLength),
  20097. isUncurried = !isCurried;
  20098. while (++leftIndex < leftLength) {
  20099. result[leftIndex] = partials[leftIndex];
  20100. }
  20101. while (++argsIndex < holdersLength) {
  20102. if (isUncurried || argsIndex < argsLength) {
  20103. result[holders[argsIndex]] = args[argsIndex];
  20104. }
  20105. }
  20106. while (rangeLength--) {
  20107. result[leftIndex++] = args[argsIndex++];
  20108. }
  20109. return result;
  20110. }
  20111. /**
  20112. * This function is like `composeArgs` except that the arguments composition
  20113. * is tailored for `_.partialRight`.
  20114. *
  20115. * @private
  20116. * @param {Array} args The provided arguments.
  20117. * @param {Array} partials The arguments to append to those provided.
  20118. * @param {Array} holders The `partials` placeholder indexes.
  20119. * @params {boolean} [isCurried] Specify composing for a curried function.
  20120. * @returns {Array} Returns the new array of composed arguments.
  20121. */
  20122. function composeArgsRight(args, partials, holders, isCurried) {
  20123. var argsIndex = -1,
  20124. argsLength = args.length,
  20125. holdersIndex = -1,
  20126. holdersLength = holders.length,
  20127. rightIndex = -1,
  20128. rightLength = partials.length,
  20129. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20130. result = Array(rangeLength + rightLength),
  20131. isUncurried = !isCurried;
  20132. while (++argsIndex < rangeLength) {
  20133. result[argsIndex] = args[argsIndex];
  20134. }
  20135. var offset = argsIndex;
  20136. while (++rightIndex < rightLength) {
  20137. result[offset + rightIndex] = partials[rightIndex];
  20138. }
  20139. while (++holdersIndex < holdersLength) {
  20140. if (isUncurried || argsIndex < argsLength) {
  20141. result[offset + holders[holdersIndex]] = args[argsIndex++];
  20142. }
  20143. }
  20144. return result;
  20145. }
  20146. /**
  20147. * Copies the values of `source` to `array`.
  20148. *
  20149. * @private
  20150. * @param {Array} source The array to copy values from.
  20151. * @param {Array} [array=[]] The array to copy values to.
  20152. * @returns {Array} Returns `array`.
  20153. */
  20154. function copyArray(source, array) {
  20155. var index = -1,
  20156. length = source.length;
  20157. array || (array = Array(length));
  20158. while (++index < length) {
  20159. array[index] = source[index];
  20160. }
  20161. return array;
  20162. }
  20163. /**
  20164. * Copies properties of `source` to `object`.
  20165. *
  20166. * @private
  20167. * @param {Object} source The object to copy properties from.
  20168. * @param {Array} props The property identifiers to copy.
  20169. * @param {Object} [object={}] The object to copy properties to.
  20170. * @param {Function} [customizer] The function to customize copied values.
  20171. * @returns {Object} Returns `object`.
  20172. */
  20173. function copyObject(source, props, object, customizer) {
  20174. var isNew = !object;
  20175. object || (object = {});
  20176. var index = -1,
  20177. length = props.length;
  20178. while (++index < length) {
  20179. var key = props[index];
  20180. var newValue = customizer
  20181. ? customizer(object[key], source[key], key, object, source)
  20182. : undefined;
  20183. if (newValue === undefined) {
  20184. newValue = source[key];
  20185. }
  20186. if (isNew) {
  20187. baseAssignValue(object, key, newValue);
  20188. } else {
  20189. assignValue(object, key, newValue);
  20190. }
  20191. }
  20192. return object;
  20193. }
  20194. /**
  20195. * Copies own symbols of `source` to `object`.
  20196. *
  20197. * @private
  20198. * @param {Object} source The object to copy symbols from.
  20199. * @param {Object} [object={}] The object to copy symbols to.
  20200. * @returns {Object} Returns `object`.
  20201. */
  20202. function copySymbols(source, object) {
  20203. return copyObject(source, getSymbols(source), object);
  20204. }
  20205. /**
  20206. * Copies own and inherited symbols of `source` to `object`.
  20207. *
  20208. * @private
  20209. * @param {Object} source The object to copy symbols from.
  20210. * @param {Object} [object={}] The object to copy symbols to.
  20211. * @returns {Object} Returns `object`.
  20212. */
  20213. function copySymbolsIn(source, object) {
  20214. return copyObject(source, getSymbolsIn(source), object);
  20215. }
  20216. /**
  20217. * Creates a function like `_.groupBy`.
  20218. *
  20219. * @private
  20220. * @param {Function} setter The function to set accumulator values.
  20221. * @param {Function} [initializer] The accumulator object initializer.
  20222. * @returns {Function} Returns the new aggregator function.
  20223. */
  20224. function createAggregator(setter, initializer) {
  20225. return function(collection, iteratee) {
  20226. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  20227. accumulator = initializer ? initializer() : {};
  20228. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  20229. };
  20230. }
  20231. /**
  20232. * Creates a function like `_.assign`.
  20233. *
  20234. * @private
  20235. * @param {Function} assigner The function to assign values.
  20236. * @returns {Function} Returns the new assigner function.
  20237. */
  20238. function createAssigner(assigner) {
  20239. return baseRest(function(object, sources) {
  20240. var index = -1,
  20241. length = sources.length,
  20242. customizer = length > 1 ? sources[length - 1] : undefined,
  20243. guard = length > 2 ? sources[2] : undefined;
  20244. customizer = (assigner.length > 3 && typeof customizer == 'function')
  20245. ? (length--, customizer)
  20246. : undefined;
  20247. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  20248. customizer = length < 3 ? undefined : customizer;
  20249. length = 1;
  20250. }
  20251. object = Object(object);
  20252. while (++index < length) {
  20253. var source = sources[index];
  20254. if (source) {
  20255. assigner(object, source, index, customizer);
  20256. }
  20257. }
  20258. return object;
  20259. });
  20260. }
  20261. /**
  20262. * Creates a `baseEach` or `baseEachRight` function.
  20263. *
  20264. * @private
  20265. * @param {Function} eachFunc The function to iterate over a collection.
  20266. * @param {boolean} [fromRight] Specify iterating from right to left.
  20267. * @returns {Function} Returns the new base function.
  20268. */
  20269. function createBaseEach(eachFunc, fromRight) {
  20270. return function(collection, iteratee) {
  20271. if (collection == null) {
  20272. return collection;
  20273. }
  20274. if (!isArrayLike(collection)) {
  20275. return eachFunc(collection, iteratee);
  20276. }
  20277. var length = collection.length,
  20278. index = fromRight ? length : -1,
  20279. iterable = Object(collection);
  20280. while ((fromRight ? index-- : ++index < length)) {
  20281. if (iteratee(iterable[index], index, iterable) === false) {
  20282. break;
  20283. }
  20284. }
  20285. return collection;
  20286. };
  20287. }
  20288. /**
  20289. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  20290. *
  20291. * @private
  20292. * @param {boolean} [fromRight] Specify iterating from right to left.
  20293. * @returns {Function} Returns the new base function.
  20294. */
  20295. function createBaseFor(fromRight) {
  20296. return function(object, iteratee, keysFunc) {
  20297. var index = -1,
  20298. iterable = Object(object),
  20299. props = keysFunc(object),
  20300. length = props.length;
  20301. while (length--) {
  20302. var key = props[fromRight ? length : ++index];
  20303. if (iteratee(iterable[key], key, iterable) === false) {
  20304. break;
  20305. }
  20306. }
  20307. return object;
  20308. };
  20309. }
  20310. /**
  20311. * Creates a function that wraps `func` to invoke it with the optional `this`
  20312. * binding of `thisArg`.
  20313. *
  20314. * @private
  20315. * @param {Function} func The function to wrap.
  20316. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20317. * @param {*} [thisArg] The `this` binding of `func`.
  20318. * @returns {Function} Returns the new wrapped function.
  20319. */
  20320. function createBind(func, bitmask, thisArg) {
  20321. var isBind = bitmask & WRAP_BIND_FLAG,
  20322. Ctor = createCtor(func);
  20323. function wrapper() {
  20324. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20325. return fn.apply(isBind ? thisArg : this, arguments);
  20326. }
  20327. return wrapper;
  20328. }
  20329. /**
  20330. * Creates a function like `_.lowerFirst`.
  20331. *
  20332. * @private
  20333. * @param {string} methodName The name of the `String` case method to use.
  20334. * @returns {Function} Returns the new case function.
  20335. */
  20336. function createCaseFirst(methodName) {
  20337. return function(string) {
  20338. string = toString(string);
  20339. var strSymbols = hasUnicode(string)
  20340. ? stringToArray(string)
  20341. : undefined;
  20342. var chr = strSymbols
  20343. ? strSymbols[0]
  20344. : string.charAt(0);
  20345. var trailing = strSymbols
  20346. ? castSlice(strSymbols, 1).join('')
  20347. : string.slice(1);
  20348. return chr[methodName]() + trailing;
  20349. };
  20350. }
  20351. /**
  20352. * Creates a function like `_.camelCase`.
  20353. *
  20354. * @private
  20355. * @param {Function} callback The function to combine each word.
  20356. * @returns {Function} Returns the new compounder function.
  20357. */
  20358. function createCompounder(callback) {
  20359. return function(string) {
  20360. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  20361. };
  20362. }
  20363. /**
  20364. * Creates a function that produces an instance of `Ctor` regardless of
  20365. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  20366. *
  20367. * @private
  20368. * @param {Function} Ctor The constructor to wrap.
  20369. * @returns {Function} Returns the new wrapped function.
  20370. */
  20371. function createCtor(Ctor) {
  20372. return function() {
  20373. // Use a `switch` statement to work with class constructors. See
  20374. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  20375. // for more details.
  20376. var args = arguments;
  20377. switch (args.length) {
  20378. case 0: return new Ctor;
  20379. case 1: return new Ctor(args[0]);
  20380. case 2: return new Ctor(args[0], args[1]);
  20381. case 3: return new Ctor(args[0], args[1], args[2]);
  20382. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  20383. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  20384. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  20385. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  20386. }
  20387. var thisBinding = baseCreate(Ctor.prototype),
  20388. result = Ctor.apply(thisBinding, args);
  20389. // Mimic the constructor's `return` behavior.
  20390. // See https://es5.github.io/#x13.2.2 for more details.
  20391. return isObject(result) ? result : thisBinding;
  20392. };
  20393. }
  20394. /**
  20395. * Creates a function that wraps `func` to enable currying.
  20396. *
  20397. * @private
  20398. * @param {Function} func The function to wrap.
  20399. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20400. * @param {number} arity The arity of `func`.
  20401. * @returns {Function} Returns the new wrapped function.
  20402. */
  20403. function createCurry(func, bitmask, arity) {
  20404. var Ctor = createCtor(func);
  20405. function wrapper() {
  20406. var length = arguments.length,
  20407. args = Array(length),
  20408. index = length,
  20409. placeholder = getHolder(wrapper);
  20410. while (index--) {
  20411. args[index] = arguments[index];
  20412. }
  20413. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  20414. ? []
  20415. : replaceHolders(args, placeholder);
  20416. length -= holders.length;
  20417. if (length < arity) {
  20418. return createRecurry(
  20419. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  20420. args, holders, undefined, undefined, arity - length);
  20421. }
  20422. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20423. return apply(fn, this, args);
  20424. }
  20425. return wrapper;
  20426. }
  20427. /**
  20428. * Creates a `_.find` or `_.findLast` function.
  20429. *
  20430. * @private
  20431. * @param {Function} findIndexFunc The function to find the collection index.
  20432. * @returns {Function} Returns the new find function.
  20433. */
  20434. function createFind(findIndexFunc) {
  20435. return function(collection, predicate, fromIndex) {
  20436. var iterable = Object(collection);
  20437. if (!isArrayLike(collection)) {
  20438. var iteratee = getIteratee(predicate, 3);
  20439. collection = keys(collection);
  20440. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  20441. }
  20442. var index = findIndexFunc(collection, predicate, fromIndex);
  20443. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  20444. };
  20445. }
  20446. /**
  20447. * Creates a `_.flow` or `_.flowRight` function.
  20448. *
  20449. * @private
  20450. * @param {boolean} [fromRight] Specify iterating from right to left.
  20451. * @returns {Function} Returns the new flow function.
  20452. */
  20453. function createFlow(fromRight) {
  20454. return flatRest(function(funcs) {
  20455. var length = funcs.length,
  20456. index = length,
  20457. prereq = LodashWrapper.prototype.thru;
  20458. if (fromRight) {
  20459. funcs.reverse();
  20460. }
  20461. while (index--) {
  20462. var func = funcs[index];
  20463. if (typeof func != 'function') {
  20464. throw new TypeError(FUNC_ERROR_TEXT);
  20465. }
  20466. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  20467. var wrapper = new LodashWrapper([], true);
  20468. }
  20469. }
  20470. index = wrapper ? index : length;
  20471. while (++index < length) {
  20472. func = funcs[index];
  20473. var funcName = getFuncName(func),
  20474. data = funcName == 'wrapper' ? getData(func) : undefined;
  20475. if (data && isLaziable(data[0]) &&
  20476. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  20477. !data[4].length && data[9] == 1
  20478. ) {
  20479. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  20480. } else {
  20481. wrapper = (func.length == 1 && isLaziable(func))
  20482. ? wrapper[funcName]()
  20483. : wrapper.thru(func);
  20484. }
  20485. }
  20486. return function() {
  20487. var args = arguments,
  20488. value = args[0];
  20489. if (wrapper && args.length == 1 && isArray(value)) {
  20490. return wrapper.plant(value).value();
  20491. }
  20492. var index = 0,
  20493. result = length ? funcs[index].apply(this, args) : value;
  20494. while (++index < length) {
  20495. result = funcs[index].call(this, result);
  20496. }
  20497. return result;
  20498. };
  20499. });
  20500. }
  20501. /**
  20502. * Creates a function that wraps `func` to invoke it with optional `this`
  20503. * binding of `thisArg`, partial application, and currying.
  20504. *
  20505. * @private
  20506. * @param {Function|string} func The function or method name to wrap.
  20507. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20508. * @param {*} [thisArg] The `this` binding of `func`.
  20509. * @param {Array} [partials] The arguments to prepend to those provided to
  20510. * the new function.
  20511. * @param {Array} [holders] The `partials` placeholder indexes.
  20512. * @param {Array} [partialsRight] The arguments to append to those provided
  20513. * to the new function.
  20514. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  20515. * @param {Array} [argPos] The argument positions of the new function.
  20516. * @param {number} [ary] The arity cap of `func`.
  20517. * @param {number} [arity] The arity of `func`.
  20518. * @returns {Function} Returns the new wrapped function.
  20519. */
  20520. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  20521. var isAry = bitmask & WRAP_ARY_FLAG,
  20522. isBind = bitmask & WRAP_BIND_FLAG,
  20523. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  20524. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  20525. isFlip = bitmask & WRAP_FLIP_FLAG,
  20526. Ctor = isBindKey ? undefined : createCtor(func);
  20527. function wrapper() {
  20528. var length = arguments.length,
  20529. args = Array(length),
  20530. index = length;
  20531. while (index--) {
  20532. args[index] = arguments[index];
  20533. }
  20534. if (isCurried) {
  20535. var placeholder = getHolder(wrapper),
  20536. holdersCount = countHolders(args, placeholder);
  20537. }
  20538. if (partials) {
  20539. args = composeArgs(args, partials, holders, isCurried);
  20540. }
  20541. if (partialsRight) {
  20542. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  20543. }
  20544. length -= holdersCount;
  20545. if (isCurried && length < arity) {
  20546. var newHolders = replaceHolders(args, placeholder);
  20547. return createRecurry(
  20548. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  20549. args, newHolders, argPos, ary, arity - length
  20550. );
  20551. }
  20552. var thisBinding = isBind ? thisArg : this,
  20553. fn = isBindKey ? thisBinding[func] : func;
  20554. length = args.length;
  20555. if (argPos) {
  20556. args = reorder(args, argPos);
  20557. } else if (isFlip && length > 1) {
  20558. args.reverse();
  20559. }
  20560. if (isAry && ary < length) {
  20561. args.length = ary;
  20562. }
  20563. if (this && this !== root && this instanceof wrapper) {
  20564. fn = Ctor || createCtor(fn);
  20565. }
  20566. return fn.apply(thisBinding, args);
  20567. }
  20568. return wrapper;
  20569. }
  20570. /**
  20571. * Creates a function like `_.invertBy`.
  20572. *
  20573. * @private
  20574. * @param {Function} setter The function to set accumulator values.
  20575. * @param {Function} toIteratee The function to resolve iteratees.
  20576. * @returns {Function} Returns the new inverter function.
  20577. */
  20578. function createInverter(setter, toIteratee) {
  20579. return function(object, iteratee) {
  20580. return baseInverter(object, setter, toIteratee(iteratee), {});
  20581. };
  20582. }
  20583. /**
  20584. * Creates a function that performs a mathematical operation on two values.
  20585. *
  20586. * @private
  20587. * @param {Function} operator The function to perform the operation.
  20588. * @param {number} [defaultValue] The value used for `undefined` arguments.
  20589. * @returns {Function} Returns the new mathematical operation function.
  20590. */
  20591. function createMathOperation(operator, defaultValue) {
  20592. return function(value, other) {
  20593. var result;
  20594. if (value === undefined && other === undefined) {
  20595. return defaultValue;
  20596. }
  20597. if (value !== undefined) {
  20598. result = value;
  20599. }
  20600. if (other !== undefined) {
  20601. if (result === undefined) {
  20602. return other;
  20603. }
  20604. if (typeof value == 'string' || typeof other == 'string') {
  20605. value = baseToString(value);
  20606. other = baseToString(other);
  20607. } else {
  20608. value = baseToNumber(value);
  20609. other = baseToNumber(other);
  20610. }
  20611. result = operator(value, other);
  20612. }
  20613. return result;
  20614. };
  20615. }
  20616. /**
  20617. * Creates a function like `_.over`.
  20618. *
  20619. * @private
  20620. * @param {Function} arrayFunc The function to iterate over iteratees.
  20621. * @returns {Function} Returns the new over function.
  20622. */
  20623. function createOver(arrayFunc) {
  20624. return flatRest(function(iteratees) {
  20625. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  20626. return baseRest(function(args) {
  20627. var thisArg = this;
  20628. return arrayFunc(iteratees, function(iteratee) {
  20629. return apply(iteratee, thisArg, args);
  20630. });
  20631. });
  20632. });
  20633. }
  20634. /**
  20635. * Creates the padding for `string` based on `length`. The `chars` string
  20636. * is truncated if the number of characters exceeds `length`.
  20637. *
  20638. * @private
  20639. * @param {number} length The padding length.
  20640. * @param {string} [chars=' '] The string used as padding.
  20641. * @returns {string} Returns the padding for `string`.
  20642. */
  20643. function createPadding(length, chars) {
  20644. chars = chars === undefined ? ' ' : baseToString(chars);
  20645. var charsLength = chars.length;
  20646. if (charsLength < 2) {
  20647. return charsLength ? baseRepeat(chars, length) : chars;
  20648. }
  20649. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  20650. return hasUnicode(chars)
  20651. ? castSlice(stringToArray(result), 0, length).join('')
  20652. : result.slice(0, length);
  20653. }
  20654. /**
  20655. * Creates a function that wraps `func` to invoke it with the `this` binding
  20656. * of `thisArg` and `partials` prepended to the arguments it receives.
  20657. *
  20658. * @private
  20659. * @param {Function} func The function to wrap.
  20660. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20661. * @param {*} thisArg The `this` binding of `func`.
  20662. * @param {Array} partials The arguments to prepend to those provided to
  20663. * the new function.
  20664. * @returns {Function} Returns the new wrapped function.
  20665. */
  20666. function createPartial(func, bitmask, thisArg, partials) {
  20667. var isBind = bitmask & WRAP_BIND_FLAG,
  20668. Ctor = createCtor(func);
  20669. function wrapper() {
  20670. var argsIndex = -1,
  20671. argsLength = arguments.length,
  20672. leftIndex = -1,
  20673. leftLength = partials.length,
  20674. args = Array(leftLength + argsLength),
  20675. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20676. while (++leftIndex < leftLength) {
  20677. args[leftIndex] = partials[leftIndex];
  20678. }
  20679. while (argsLength--) {
  20680. args[leftIndex++] = arguments[++argsIndex];
  20681. }
  20682. return apply(fn, isBind ? thisArg : this, args);
  20683. }
  20684. return wrapper;
  20685. }
  20686. /**
  20687. * Creates a `_.range` or `_.rangeRight` function.
  20688. *
  20689. * @private
  20690. * @param {boolean} [fromRight] Specify iterating from right to left.
  20691. * @returns {Function} Returns the new range function.
  20692. */
  20693. function createRange(fromRight) {
  20694. return function(start, end, step) {
  20695. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  20696. end = step = undefined;
  20697. }
  20698. // Ensure the sign of `-0` is preserved.
  20699. start = toFinite(start);
  20700. if (end === undefined) {
  20701. end = start;
  20702. start = 0;
  20703. } else {
  20704. end = toFinite(end);
  20705. }
  20706. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  20707. return baseRange(start, end, step, fromRight);
  20708. };
  20709. }
  20710. /**
  20711. * Creates a function that performs a relational operation on two values.
  20712. *
  20713. * @private
  20714. * @param {Function} operator The function to perform the operation.
  20715. * @returns {Function} Returns the new relational operation function.
  20716. */
  20717. function createRelationalOperation(operator) {
  20718. return function(value, other) {
  20719. if (!(typeof value == 'string' && typeof other == 'string')) {
  20720. value = toNumber(value);
  20721. other = toNumber(other);
  20722. }
  20723. return operator(value, other);
  20724. };
  20725. }
  20726. /**
  20727. * Creates a function that wraps `func` to continue currying.
  20728. *
  20729. * @private
  20730. * @param {Function} func The function to wrap.
  20731. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20732. * @param {Function} wrapFunc The function to create the `func` wrapper.
  20733. * @param {*} placeholder The placeholder value.
  20734. * @param {*} [thisArg] The `this` binding of `func`.
  20735. * @param {Array} [partials] The arguments to prepend to those provided to
  20736. * the new function.
  20737. * @param {Array} [holders] The `partials` placeholder indexes.
  20738. * @param {Array} [argPos] The argument positions of the new function.
  20739. * @param {number} [ary] The arity cap of `func`.
  20740. * @param {number} [arity] The arity of `func`.
  20741. * @returns {Function} Returns the new wrapped function.
  20742. */
  20743. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  20744. var isCurry = bitmask & WRAP_CURRY_FLAG,
  20745. newHolders = isCurry ? holders : undefined,
  20746. newHoldersRight = isCurry ? undefined : holders,
  20747. newPartials = isCurry ? partials : undefined,
  20748. newPartialsRight = isCurry ? undefined : partials;
  20749. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  20750. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  20751. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  20752. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  20753. }
  20754. var newData = [
  20755. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  20756. newHoldersRight, argPos, ary, arity
  20757. ];
  20758. var result = wrapFunc.apply(undefined, newData);
  20759. if (isLaziable(func)) {
  20760. setData(result, newData);
  20761. }
  20762. result.placeholder = placeholder;
  20763. return setWrapToString(result, func, bitmask);
  20764. }
  20765. /**
  20766. * Creates a function like `_.round`.
  20767. *
  20768. * @private
  20769. * @param {string} methodName The name of the `Math` method to use when rounding.
  20770. * @returns {Function} Returns the new round function.
  20771. */
  20772. function createRound(methodName) {
  20773. var func = Math[methodName];
  20774. return function(number, precision) {
  20775. number = toNumber(number);
  20776. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  20777. if (precision && nativeIsFinite(number)) {
  20778. // Shift with exponential notation to avoid floating-point issues.
  20779. // See [MDN](https://mdn.io/round#Examples) for more details.
  20780. var pair = (toString(number) + 'e').split('e'),
  20781. value = func(pair[0] + 'e' + (+pair[1] + precision));
  20782. pair = (toString(value) + 'e').split('e');
  20783. return +(pair[0] + 'e' + (+pair[1] - precision));
  20784. }
  20785. return func(number);
  20786. };
  20787. }
  20788. /**
  20789. * Creates a set object of `values`.
  20790. *
  20791. * @private
  20792. * @param {Array} values The values to add to the set.
  20793. * @returns {Object} Returns the new set.
  20794. */
  20795. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  20796. return new Set(values);
  20797. };
  20798. /**
  20799. * Creates a `_.toPairs` or `_.toPairsIn` function.
  20800. *
  20801. * @private
  20802. * @param {Function} keysFunc The function to get the keys of a given object.
  20803. * @returns {Function} Returns the new pairs function.
  20804. */
  20805. function createToPairs(keysFunc) {
  20806. return function(object) {
  20807. var tag = getTag(object);
  20808. if (tag == mapTag) {
  20809. return mapToArray(object);
  20810. }
  20811. if (tag == setTag) {
  20812. return setToPairs(object);
  20813. }
  20814. return baseToPairs(object, keysFunc(object));
  20815. };
  20816. }
  20817. /**
  20818. * Creates a function that either curries or invokes `func` with optional
  20819. * `this` binding and partially applied arguments.
  20820. *
  20821. * @private
  20822. * @param {Function|string} func The function or method name to wrap.
  20823. * @param {number} bitmask The bitmask flags.
  20824. * 1 - `_.bind`
  20825. * 2 - `_.bindKey`
  20826. * 4 - `_.curry` or `_.curryRight` of a bound function
  20827. * 8 - `_.curry`
  20828. * 16 - `_.curryRight`
  20829. * 32 - `_.partial`
  20830. * 64 - `_.partialRight`
  20831. * 128 - `_.rearg`
  20832. * 256 - `_.ary`
  20833. * 512 - `_.flip`
  20834. * @param {*} [thisArg] The `this` binding of `func`.
  20835. * @param {Array} [partials] The arguments to be partially applied.
  20836. * @param {Array} [holders] The `partials` placeholder indexes.
  20837. * @param {Array} [argPos] The argument positions of the new function.
  20838. * @param {number} [ary] The arity cap of `func`.
  20839. * @param {number} [arity] The arity of `func`.
  20840. * @returns {Function} Returns the new wrapped function.
  20841. */
  20842. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  20843. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  20844. if (!isBindKey && typeof func != 'function') {
  20845. throw new TypeError(FUNC_ERROR_TEXT);
  20846. }
  20847. var length = partials ? partials.length : 0;
  20848. if (!length) {
  20849. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  20850. partials = holders = undefined;
  20851. }
  20852. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  20853. arity = arity === undefined ? arity : toInteger(arity);
  20854. length -= holders ? holders.length : 0;
  20855. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  20856. var partialsRight = partials,
  20857. holdersRight = holders;
  20858. partials = holders = undefined;
  20859. }
  20860. var data = isBindKey ? undefined : getData(func);
  20861. var newData = [
  20862. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  20863. argPos, ary, arity
  20864. ];
  20865. if (data) {
  20866. mergeData(newData, data);
  20867. }
  20868. func = newData[0];
  20869. bitmask = newData[1];
  20870. thisArg = newData[2];
  20871. partials = newData[3];
  20872. holders = newData[4];
  20873. arity = newData[9] = newData[9] === undefined
  20874. ? (isBindKey ? 0 : func.length)
  20875. : nativeMax(newData[9] - length, 0);
  20876. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  20877. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  20878. }
  20879. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  20880. var result = createBind(func, bitmask, thisArg);
  20881. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  20882. result = createCurry(func, bitmask, arity);
  20883. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  20884. result = createPartial(func, bitmask, thisArg, partials);
  20885. } else {
  20886. result = createHybrid.apply(undefined, newData);
  20887. }
  20888. var setter = data ? baseSetData : setData;
  20889. return setWrapToString(setter(result, newData), func, bitmask);
  20890. }
  20891. /**
  20892. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  20893. * of source objects to the destination object for all destination properties
  20894. * that resolve to `undefined`.
  20895. *
  20896. * @private
  20897. * @param {*} objValue The destination value.
  20898. * @param {*} srcValue The source value.
  20899. * @param {string} key The key of the property to assign.
  20900. * @param {Object} object The parent object of `objValue`.
  20901. * @returns {*} Returns the value to assign.
  20902. */
  20903. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  20904. if (objValue === undefined ||
  20905. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  20906. return srcValue;
  20907. }
  20908. return objValue;
  20909. }
  20910. /**
  20911. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  20912. * objects into destination objects that are passed thru.
  20913. *
  20914. * @private
  20915. * @param {*} objValue The destination value.
  20916. * @param {*} srcValue The source value.
  20917. * @param {string} key The key of the property to merge.
  20918. * @param {Object} object The parent object of `objValue`.
  20919. * @param {Object} source The parent object of `srcValue`.
  20920. * @param {Object} [stack] Tracks traversed source values and their merged
  20921. * counterparts.
  20922. * @returns {*} Returns the value to assign.
  20923. */
  20924. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  20925. if (isObject(objValue) && isObject(srcValue)) {
  20926. // Recursively merge objects and arrays (susceptible to call stack limits).
  20927. stack.set(srcValue, objValue);
  20928. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  20929. stack['delete'](srcValue);
  20930. }
  20931. return objValue;
  20932. }
  20933. /**
  20934. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  20935. * objects.
  20936. *
  20937. * @private
  20938. * @param {*} value The value to inspect.
  20939. * @param {string} key The key of the property to inspect.
  20940. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  20941. */
  20942. function customOmitClone(value) {
  20943. return isPlainObject(value) ? undefined : value;
  20944. }
  20945. /**
  20946. * A specialized version of `baseIsEqualDeep` for arrays with support for
  20947. * partial deep comparisons.
  20948. *
  20949. * @private
  20950. * @param {Array} array The array to compare.
  20951. * @param {Array} other The other array to compare.
  20952. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  20953. * @param {Function} customizer The function to customize comparisons.
  20954. * @param {Function} equalFunc The function to determine equivalents of values.
  20955. * @param {Object} stack Tracks traversed `array` and `other` objects.
  20956. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  20957. */
  20958. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  20959. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  20960. arrLength = array.length,
  20961. othLength = other.length;
  20962. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  20963. return false;
  20964. }
  20965. // Assume cyclic values are equal.
  20966. var stacked = stack.get(array);
  20967. if (stacked && stack.get(other)) {
  20968. return stacked == other;
  20969. }
  20970. var index = -1,
  20971. result = true,
  20972. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  20973. stack.set(array, other);
  20974. stack.set(other, array);
  20975. // Ignore non-index properties.
  20976. while (++index < arrLength) {
  20977. var arrValue = array[index],
  20978. othValue = other[index];
  20979. if (customizer) {
  20980. var compared = isPartial
  20981. ? customizer(othValue, arrValue, index, other, array, stack)
  20982. : customizer(arrValue, othValue, index, array, other, stack);
  20983. }
  20984. if (compared !== undefined) {
  20985. if (compared) {
  20986. continue;
  20987. }
  20988. result = false;
  20989. break;
  20990. }
  20991. // Recursively compare arrays (susceptible to call stack limits).
  20992. if (seen) {
  20993. if (!arraySome(other, function(othValue, othIndex) {
  20994. if (!cacheHas(seen, othIndex) &&
  20995. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  20996. return seen.push(othIndex);
  20997. }
  20998. })) {
  20999. result = false;
  21000. break;
  21001. }
  21002. } else if (!(
  21003. arrValue === othValue ||
  21004. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  21005. )) {
  21006. result = false;
  21007. break;
  21008. }
  21009. }
  21010. stack['delete'](array);
  21011. stack['delete'](other);
  21012. return result;
  21013. }
  21014. /**
  21015. * A specialized version of `baseIsEqualDeep` for comparing objects of
  21016. * the same `toStringTag`.
  21017. *
  21018. * **Note:** This function only supports comparing values with tags of
  21019. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  21020. *
  21021. * @private
  21022. * @param {Object} object The object to compare.
  21023. * @param {Object} other The other object to compare.
  21024. * @param {string} tag The `toStringTag` of the objects to compare.
  21025. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21026. * @param {Function} customizer The function to customize comparisons.
  21027. * @param {Function} equalFunc The function to determine equivalents of values.
  21028. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21029. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21030. */
  21031. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  21032. switch (tag) {
  21033. case dataViewTag:
  21034. if ((object.byteLength != other.byteLength) ||
  21035. (object.byteOffset != other.byteOffset)) {
  21036. return false;
  21037. }
  21038. object = object.buffer;
  21039. other = other.buffer;
  21040. case arrayBufferTag:
  21041. if ((object.byteLength != other.byteLength) ||
  21042. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  21043. return false;
  21044. }
  21045. return true;
  21046. case boolTag:
  21047. case dateTag:
  21048. case numberTag:
  21049. // Coerce booleans to `1` or `0` and dates to milliseconds.
  21050. // Invalid dates are coerced to `NaN`.
  21051. return eq(+object, +other);
  21052. case errorTag:
  21053. return object.name == other.name && object.message == other.message;
  21054. case regexpTag:
  21055. case stringTag:
  21056. // Coerce regexes to strings and treat strings, primitives and objects,
  21057. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  21058. // for more details.
  21059. return object == (other + '');
  21060. case mapTag:
  21061. var convert = mapToArray;
  21062. case setTag:
  21063. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  21064. convert || (convert = setToArray);
  21065. if (object.size != other.size && !isPartial) {
  21066. return false;
  21067. }
  21068. // Assume cyclic values are equal.
  21069. var stacked = stack.get(object);
  21070. if (stacked) {
  21071. return stacked == other;
  21072. }
  21073. bitmask |= COMPARE_UNORDERED_FLAG;
  21074. // Recursively compare objects (susceptible to call stack limits).
  21075. stack.set(object, other);
  21076. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  21077. stack['delete'](object);
  21078. return result;
  21079. case symbolTag:
  21080. if (symbolValueOf) {
  21081. return symbolValueOf.call(object) == symbolValueOf.call(other);
  21082. }
  21083. }
  21084. return false;
  21085. }
  21086. /**
  21087. * A specialized version of `baseIsEqualDeep` for objects with support for
  21088. * partial deep comparisons.
  21089. *
  21090. * @private
  21091. * @param {Object} object The object to compare.
  21092. * @param {Object} other The other object to compare.
  21093. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21094. * @param {Function} customizer The function to customize comparisons.
  21095. * @param {Function} equalFunc The function to determine equivalents of values.
  21096. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21097. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21098. */
  21099. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  21100. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  21101. objProps = getAllKeys(object),
  21102. objLength = objProps.length,
  21103. othProps = getAllKeys(other),
  21104. othLength = othProps.length;
  21105. if (objLength != othLength && !isPartial) {
  21106. return false;
  21107. }
  21108. var index = objLength;
  21109. while (index--) {
  21110. var key = objProps[index];
  21111. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  21112. return false;
  21113. }
  21114. }
  21115. // Assume cyclic values are equal.
  21116. var stacked = stack.get(object);
  21117. if (stacked && stack.get(other)) {
  21118. return stacked == other;
  21119. }
  21120. var result = true;
  21121. stack.set(object, other);
  21122. stack.set(other, object);
  21123. var skipCtor = isPartial;
  21124. while (++index < objLength) {
  21125. key = objProps[index];
  21126. var objValue = object[key],
  21127. othValue = other[key];
  21128. if (customizer) {
  21129. var compared = isPartial
  21130. ? customizer(othValue, objValue, key, other, object, stack)
  21131. : customizer(objValue, othValue, key, object, other, stack);
  21132. }
  21133. // Recursively compare objects (susceptible to call stack limits).
  21134. if (!(compared === undefined
  21135. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  21136. : compared
  21137. )) {
  21138. result = false;
  21139. break;
  21140. }
  21141. skipCtor || (skipCtor = key == 'constructor');
  21142. }
  21143. if (result && !skipCtor) {
  21144. var objCtor = object.constructor,
  21145. othCtor = other.constructor;
  21146. // Non `Object` object instances with different constructors are not equal.
  21147. if (objCtor != othCtor &&
  21148. ('constructor' in object && 'constructor' in other) &&
  21149. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  21150. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  21151. result = false;
  21152. }
  21153. }
  21154. stack['delete'](object);
  21155. stack['delete'](other);
  21156. return result;
  21157. }
  21158. /**
  21159. * A specialized version of `baseRest` which flattens the rest array.
  21160. *
  21161. * @private
  21162. * @param {Function} func The function to apply a rest parameter to.
  21163. * @returns {Function} Returns the new function.
  21164. */
  21165. function flatRest(func) {
  21166. return setToString(overRest(func, undefined, flatten), func + '');
  21167. }
  21168. /**
  21169. * Creates an array of own enumerable property names and symbols of `object`.
  21170. *
  21171. * @private
  21172. * @param {Object} object The object to query.
  21173. * @returns {Array} Returns the array of property names and symbols.
  21174. */
  21175. function getAllKeys(object) {
  21176. return baseGetAllKeys(object, keys, getSymbols);
  21177. }
  21178. /**
  21179. * Creates an array of own and inherited enumerable property names and
  21180. * symbols of `object`.
  21181. *
  21182. * @private
  21183. * @param {Object} object The object to query.
  21184. * @returns {Array} Returns the array of property names and symbols.
  21185. */
  21186. function getAllKeysIn(object) {
  21187. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  21188. }
  21189. /**
  21190. * Gets metadata for `func`.
  21191. *
  21192. * @private
  21193. * @param {Function} func The function to query.
  21194. * @returns {*} Returns the metadata for `func`.
  21195. */
  21196. var getData = !metaMap ? noop : function(func) {
  21197. return metaMap.get(func);
  21198. };
  21199. /**
  21200. * Gets the name of `func`.
  21201. *
  21202. * @private
  21203. * @param {Function} func The function to query.
  21204. * @returns {string} Returns the function name.
  21205. */
  21206. function getFuncName(func) {
  21207. var result = (func.name + ''),
  21208. array = realNames[result],
  21209. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  21210. while (length--) {
  21211. var data = array[length],
  21212. otherFunc = data.func;
  21213. if (otherFunc == null || otherFunc == func) {
  21214. return data.name;
  21215. }
  21216. }
  21217. return result;
  21218. }
  21219. /**
  21220. * Gets the argument placeholder value for `func`.
  21221. *
  21222. * @private
  21223. * @param {Function} func The function to inspect.
  21224. * @returns {*} Returns the placeholder value.
  21225. */
  21226. function getHolder(func) {
  21227. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  21228. return object.placeholder;
  21229. }
  21230. /**
  21231. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  21232. * this function returns the custom method, otherwise it returns `baseIteratee`.
  21233. * If arguments are provided, the chosen function is invoked with them and
  21234. * its result is returned.
  21235. *
  21236. * @private
  21237. * @param {*} [value] The value to convert to an iteratee.
  21238. * @param {number} [arity] The arity of the created iteratee.
  21239. * @returns {Function} Returns the chosen function or its result.
  21240. */
  21241. function getIteratee() {
  21242. var result = lodash.iteratee || iteratee;
  21243. result = result === iteratee ? baseIteratee : result;
  21244. return arguments.length ? result(arguments[0], arguments[1]) : result;
  21245. }
  21246. /**
  21247. * Gets the data for `map`.
  21248. *
  21249. * @private
  21250. * @param {Object} map The map to query.
  21251. * @param {string} key The reference key.
  21252. * @returns {*} Returns the map data.
  21253. */
  21254. function getMapData(map, key) {
  21255. var data = map.__data__;
  21256. return isKeyable(key)
  21257. ? data[typeof key == 'string' ? 'string' : 'hash']
  21258. : data.map;
  21259. }
  21260. /**
  21261. * Gets the property names, values, and compare flags of `object`.
  21262. *
  21263. * @private
  21264. * @param {Object} object The object to query.
  21265. * @returns {Array} Returns the match data of `object`.
  21266. */
  21267. function getMatchData(object) {
  21268. var result = keys(object),
  21269. length = result.length;
  21270. while (length--) {
  21271. var key = result[length],
  21272. value = object[key];
  21273. result[length] = [key, value, isStrictComparable(value)];
  21274. }
  21275. return result;
  21276. }
  21277. /**
  21278. * Gets the native function at `key` of `object`.
  21279. *
  21280. * @private
  21281. * @param {Object} object The object to query.
  21282. * @param {string} key The key of the method to get.
  21283. * @returns {*} Returns the function if it's native, else `undefined`.
  21284. */
  21285. function getNative(object, key) {
  21286. var value = getValue(object, key);
  21287. return baseIsNative(value) ? value : undefined;
  21288. }
  21289. /**
  21290. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  21291. *
  21292. * @private
  21293. * @param {*} value The value to query.
  21294. * @returns {string} Returns the raw `toStringTag`.
  21295. */
  21296. function getRawTag(value) {
  21297. var isOwn = hasOwnProperty.call(value, symToStringTag),
  21298. tag = value[symToStringTag];
  21299. try {
  21300. value[symToStringTag] = undefined;
  21301. var unmasked = true;
  21302. } catch (e) {}
  21303. var result = nativeObjectToString.call(value);
  21304. if (unmasked) {
  21305. if (isOwn) {
  21306. value[symToStringTag] = tag;
  21307. } else {
  21308. delete value[symToStringTag];
  21309. }
  21310. }
  21311. return result;
  21312. }
  21313. /**
  21314. * Creates an array of the own enumerable symbols of `object`.
  21315. *
  21316. * @private
  21317. * @param {Object} object The object to query.
  21318. * @returns {Array} Returns the array of symbols.
  21319. */
  21320. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  21321. if (object == null) {
  21322. return [];
  21323. }
  21324. object = Object(object);
  21325. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  21326. return propertyIsEnumerable.call(object, symbol);
  21327. });
  21328. };
  21329. /**
  21330. * Creates an array of the own and inherited enumerable symbols of `object`.
  21331. *
  21332. * @private
  21333. * @param {Object} object The object to query.
  21334. * @returns {Array} Returns the array of symbols.
  21335. */
  21336. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  21337. var result = [];
  21338. while (object) {
  21339. arrayPush(result, getSymbols(object));
  21340. object = getPrototype(object);
  21341. }
  21342. return result;
  21343. };
  21344. /**
  21345. * Gets the `toStringTag` of `value`.
  21346. *
  21347. * @private
  21348. * @param {*} value The value to query.
  21349. * @returns {string} Returns the `toStringTag`.
  21350. */
  21351. var getTag = baseGetTag;
  21352. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  21353. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  21354. (Map && getTag(new Map) != mapTag) ||
  21355. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  21356. (Set && getTag(new Set) != setTag) ||
  21357. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  21358. getTag = function(value) {
  21359. var result = baseGetTag(value),
  21360. Ctor = result == objectTag ? value.constructor : undefined,
  21361. ctorString = Ctor ? toSource(Ctor) : '';
  21362. if (ctorString) {
  21363. switch (ctorString) {
  21364. case dataViewCtorString: return dataViewTag;
  21365. case mapCtorString: return mapTag;
  21366. case promiseCtorString: return promiseTag;
  21367. case setCtorString: return setTag;
  21368. case weakMapCtorString: return weakMapTag;
  21369. }
  21370. }
  21371. return result;
  21372. };
  21373. }
  21374. /**
  21375. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  21376. *
  21377. * @private
  21378. * @param {number} start The start of the view.
  21379. * @param {number} end The end of the view.
  21380. * @param {Array} transforms The transformations to apply to the view.
  21381. * @returns {Object} Returns an object containing the `start` and `end`
  21382. * positions of the view.
  21383. */
  21384. function getView(start, end, transforms) {
  21385. var index = -1,
  21386. length = transforms.length;
  21387. while (++index < length) {
  21388. var data = transforms[index],
  21389. size = data.size;
  21390. switch (data.type) {
  21391. case 'drop': start += size; break;
  21392. case 'dropRight': end -= size; break;
  21393. case 'take': end = nativeMin(end, start + size); break;
  21394. case 'takeRight': start = nativeMax(start, end - size); break;
  21395. }
  21396. }
  21397. return { 'start': start, 'end': end };
  21398. }
  21399. /**
  21400. * Extracts wrapper details from the `source` body comment.
  21401. *
  21402. * @private
  21403. * @param {string} source The source to inspect.
  21404. * @returns {Array} Returns the wrapper details.
  21405. */
  21406. function getWrapDetails(source) {
  21407. var match = source.match(reWrapDetails);
  21408. return match ? match[1].split(reSplitDetails) : [];
  21409. }
  21410. /**
  21411. * Checks if `path` exists on `object`.
  21412. *
  21413. * @private
  21414. * @param {Object} object The object to query.
  21415. * @param {Array|string} path The path to check.
  21416. * @param {Function} hasFunc The function to check properties.
  21417. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  21418. */
  21419. function hasPath(object, path, hasFunc) {
  21420. path = castPath(path, object);
  21421. var index = -1,
  21422. length = path.length,
  21423. result = false;
  21424. while (++index < length) {
  21425. var key = toKey(path[index]);
  21426. if (!(result = object != null && hasFunc(object, key))) {
  21427. break;
  21428. }
  21429. object = object[key];
  21430. }
  21431. if (result || ++index != length) {
  21432. return result;
  21433. }
  21434. length = object == null ? 0 : object.length;
  21435. return !!length && isLength(length) && isIndex(key, length) &&
  21436. (isArray(object) || isArguments(object));
  21437. }
  21438. /**
  21439. * Initializes an array clone.
  21440. *
  21441. * @private
  21442. * @param {Array} array The array to clone.
  21443. * @returns {Array} Returns the initialized clone.
  21444. */
  21445. function initCloneArray(array) {
  21446. var length = array.length,
  21447. result = new array.constructor(length);
  21448. // Add properties assigned by `RegExp#exec`.
  21449. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  21450. result.index = array.index;
  21451. result.input = array.input;
  21452. }
  21453. return result;
  21454. }
  21455. /**
  21456. * Initializes an object clone.
  21457. *
  21458. * @private
  21459. * @param {Object} object The object to clone.
  21460. * @returns {Object} Returns the initialized clone.
  21461. */
  21462. function initCloneObject(object) {
  21463. return (typeof object.constructor == 'function' && !isPrototype(object))
  21464. ? baseCreate(getPrototype(object))
  21465. : {};
  21466. }
  21467. /**
  21468. * Initializes an object clone based on its `toStringTag`.
  21469. *
  21470. * **Note:** This function only supports cloning values with tags of
  21471. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  21472. *
  21473. * @private
  21474. * @param {Object} object The object to clone.
  21475. * @param {string} tag The `toStringTag` of the object to clone.
  21476. * @param {boolean} [isDeep] Specify a deep clone.
  21477. * @returns {Object} Returns the initialized clone.
  21478. */
  21479. function initCloneByTag(object, tag, isDeep) {
  21480. var Ctor = object.constructor;
  21481. switch (tag) {
  21482. case arrayBufferTag:
  21483. return cloneArrayBuffer(object);
  21484. case boolTag:
  21485. case dateTag:
  21486. return new Ctor(+object);
  21487. case dataViewTag:
  21488. return cloneDataView(object, isDeep);
  21489. case float32Tag: case float64Tag:
  21490. case int8Tag: case int16Tag: case int32Tag:
  21491. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  21492. return cloneTypedArray(object, isDeep);
  21493. case mapTag:
  21494. return new Ctor;
  21495. case numberTag:
  21496. case stringTag:
  21497. return new Ctor(object);
  21498. case regexpTag:
  21499. return cloneRegExp(object);
  21500. case setTag:
  21501. return new Ctor;
  21502. case symbolTag:
  21503. return cloneSymbol(object);
  21504. }
  21505. }
  21506. /**
  21507. * Inserts wrapper `details` in a comment at the top of the `source` body.
  21508. *
  21509. * @private
  21510. * @param {string} source The source to modify.
  21511. * @returns {Array} details The details to insert.
  21512. * @returns {string} Returns the modified source.
  21513. */
  21514. function insertWrapDetails(source, details) {
  21515. var length = details.length;
  21516. if (!length) {
  21517. return source;
  21518. }
  21519. var lastIndex = length - 1;
  21520. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  21521. details = details.join(length > 2 ? ', ' : ' ');
  21522. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  21523. }
  21524. /**
  21525. * Checks if `value` is a flattenable `arguments` object or array.
  21526. *
  21527. * @private
  21528. * @param {*} value The value to check.
  21529. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  21530. */
  21531. function isFlattenable(value) {
  21532. return isArray(value) || isArguments(value) ||
  21533. !!(spreadableSymbol && value && value[spreadableSymbol]);
  21534. }
  21535. /**
  21536. * Checks if `value` is a valid array-like index.
  21537. *
  21538. * @private
  21539. * @param {*} value The value to check.
  21540. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  21541. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  21542. */
  21543. function isIndex(value, length) {
  21544. var type = typeof value;
  21545. length = length == null ? MAX_SAFE_INTEGER : length;
  21546. return !!length &&
  21547. (type == 'number' ||
  21548. (type != 'symbol' && reIsUint.test(value))) &&
  21549. (value > -1 && value % 1 == 0 && value < length);
  21550. }
  21551. /**
  21552. * Checks if the given arguments are from an iteratee call.
  21553. *
  21554. * @private
  21555. * @param {*} value The potential iteratee value argument.
  21556. * @param {*} index The potential iteratee index or key argument.
  21557. * @param {*} object The potential iteratee object argument.
  21558. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  21559. * else `false`.
  21560. */
  21561. function isIterateeCall(value, index, object) {
  21562. if (!isObject(object)) {
  21563. return false;
  21564. }
  21565. var type = typeof index;
  21566. if (type == 'number'
  21567. ? (isArrayLike(object) && isIndex(index, object.length))
  21568. : (type == 'string' && index in object)
  21569. ) {
  21570. return eq(object[index], value);
  21571. }
  21572. return false;
  21573. }
  21574. /**
  21575. * Checks if `value` is a property name and not a property path.
  21576. *
  21577. * @private
  21578. * @param {*} value The value to check.
  21579. * @param {Object} [object] The object to query keys on.
  21580. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  21581. */
  21582. function isKey(value, object) {
  21583. if (isArray(value)) {
  21584. return false;
  21585. }
  21586. var type = typeof value;
  21587. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  21588. value == null || isSymbol(value)) {
  21589. return true;
  21590. }
  21591. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  21592. (object != null && value in Object(object));
  21593. }
  21594. /**
  21595. * Checks if `value` is suitable for use as unique object key.
  21596. *
  21597. * @private
  21598. * @param {*} value The value to check.
  21599. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  21600. */
  21601. function isKeyable(value) {
  21602. var type = typeof value;
  21603. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  21604. ? (value !== '__proto__')
  21605. : (value === null);
  21606. }
  21607. /**
  21608. * Checks if `func` has a lazy counterpart.
  21609. *
  21610. * @private
  21611. * @param {Function} func The function to check.
  21612. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  21613. * else `false`.
  21614. */
  21615. function isLaziable(func) {
  21616. var funcName = getFuncName(func),
  21617. other = lodash[funcName];
  21618. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  21619. return false;
  21620. }
  21621. if (func === other) {
  21622. return true;
  21623. }
  21624. var data = getData(other);
  21625. return !!data && func === data[0];
  21626. }
  21627. /**
  21628. * Checks if `func` has its source masked.
  21629. *
  21630. * @private
  21631. * @param {Function} func The function to check.
  21632. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  21633. */
  21634. function isMasked(func) {
  21635. return !!maskSrcKey && (maskSrcKey in func);
  21636. }
  21637. /**
  21638. * Checks if `func` is capable of being masked.
  21639. *
  21640. * @private
  21641. * @param {*} value The value to check.
  21642. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  21643. */
  21644. var isMaskable = coreJsData ? isFunction : stubFalse;
  21645. /**
  21646. * Checks if `value` is likely a prototype object.
  21647. *
  21648. * @private
  21649. * @param {*} value The value to check.
  21650. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  21651. */
  21652. function isPrototype(value) {
  21653. var Ctor = value && value.constructor,
  21654. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  21655. return value === proto;
  21656. }
  21657. /**
  21658. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  21659. *
  21660. * @private
  21661. * @param {*} value The value to check.
  21662. * @returns {boolean} Returns `true` if `value` if suitable for strict
  21663. * equality comparisons, else `false`.
  21664. */
  21665. function isStrictComparable(value) {
  21666. return value === value && !isObject(value);
  21667. }
  21668. /**
  21669. * A specialized version of `matchesProperty` for source values suitable
  21670. * for strict equality comparisons, i.e. `===`.
  21671. *
  21672. * @private
  21673. * @param {string} key The key of the property to get.
  21674. * @param {*} srcValue The value to match.
  21675. * @returns {Function} Returns the new spec function.
  21676. */
  21677. function matchesStrictComparable(key, srcValue) {
  21678. return function(object) {
  21679. if (object == null) {
  21680. return false;
  21681. }
  21682. return object[key] === srcValue &&
  21683. (srcValue !== undefined || (key in Object(object)));
  21684. };
  21685. }
  21686. /**
  21687. * A specialized version of `_.memoize` which clears the memoized function's
  21688. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  21689. *
  21690. * @private
  21691. * @param {Function} func The function to have its output memoized.
  21692. * @returns {Function} Returns the new memoized function.
  21693. */
  21694. function memoizeCapped(func) {
  21695. var result = memoize(func, function(key) {
  21696. if (cache.size === MAX_MEMOIZE_SIZE) {
  21697. cache.clear();
  21698. }
  21699. return key;
  21700. });
  21701. var cache = result.cache;
  21702. return result;
  21703. }
  21704. /**
  21705. * Merges the function metadata of `source` into `data`.
  21706. *
  21707. * Merging metadata reduces the number of wrappers used to invoke a function.
  21708. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  21709. * may be applied regardless of execution order. Methods like `_.ary` and
  21710. * `_.rearg` modify function arguments, making the order in which they are
  21711. * executed important, preventing the merging of metadata. However, we make
  21712. * an exception for a safe combined case where curried functions have `_.ary`
  21713. * and or `_.rearg` applied.
  21714. *
  21715. * @private
  21716. * @param {Array} data The destination metadata.
  21717. * @param {Array} source The source metadata.
  21718. * @returns {Array} Returns `data`.
  21719. */
  21720. function mergeData(data, source) {
  21721. var bitmask = data[1],
  21722. srcBitmask = source[1],
  21723. newBitmask = bitmask | srcBitmask,
  21724. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  21725. var isCombo =
  21726. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  21727. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  21728. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  21729. // Exit early if metadata can't be merged.
  21730. if (!(isCommon || isCombo)) {
  21731. return data;
  21732. }
  21733. // Use source `thisArg` if available.
  21734. if (srcBitmask & WRAP_BIND_FLAG) {
  21735. data[2] = source[2];
  21736. // Set when currying a bound function.
  21737. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  21738. }
  21739. // Compose partial arguments.
  21740. var value = source[3];
  21741. if (value) {
  21742. var partials = data[3];
  21743. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  21744. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  21745. }
  21746. // Compose partial right arguments.
  21747. value = source[5];
  21748. if (value) {
  21749. partials = data[5];
  21750. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  21751. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  21752. }
  21753. // Use source `argPos` if available.
  21754. value = source[7];
  21755. if (value) {
  21756. data[7] = value;
  21757. }
  21758. // Use source `ary` if it's smaller.
  21759. if (srcBitmask & WRAP_ARY_FLAG) {
  21760. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  21761. }
  21762. // Use source `arity` if one is not provided.
  21763. if (data[9] == null) {
  21764. data[9] = source[9];
  21765. }
  21766. // Use source `func` and merge bitmasks.
  21767. data[0] = source[0];
  21768. data[1] = newBitmask;
  21769. return data;
  21770. }
  21771. /**
  21772. * This function is like
  21773. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  21774. * except that it includes inherited enumerable properties.
  21775. *
  21776. * @private
  21777. * @param {Object} object The object to query.
  21778. * @returns {Array} Returns the array of property names.
  21779. */
  21780. function nativeKeysIn(object) {
  21781. var result = [];
  21782. if (object != null) {
  21783. for (var key in Object(object)) {
  21784. result.push(key);
  21785. }
  21786. }
  21787. return result;
  21788. }
  21789. /**
  21790. * Converts `value` to a string using `Object.prototype.toString`.
  21791. *
  21792. * @private
  21793. * @param {*} value The value to convert.
  21794. * @returns {string} Returns the converted string.
  21795. */
  21796. function objectToString(value) {
  21797. return nativeObjectToString.call(value);
  21798. }
  21799. /**
  21800. * A specialized version of `baseRest` which transforms the rest array.
  21801. *
  21802. * @private
  21803. * @param {Function} func The function to apply a rest parameter to.
  21804. * @param {number} [start=func.length-1] The start position of the rest parameter.
  21805. * @param {Function} transform The rest array transform.
  21806. * @returns {Function} Returns the new function.
  21807. */
  21808. function overRest(func, start, transform) {
  21809. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  21810. return function() {
  21811. var args = arguments,
  21812. index = -1,
  21813. length = nativeMax(args.length - start, 0),
  21814. array = Array(length);
  21815. while (++index < length) {
  21816. array[index] = args[start + index];
  21817. }
  21818. index = -1;
  21819. var otherArgs = Array(start + 1);
  21820. while (++index < start) {
  21821. otherArgs[index] = args[index];
  21822. }
  21823. otherArgs[start] = transform(array);
  21824. return apply(func, this, otherArgs);
  21825. };
  21826. }
  21827. /**
  21828. * Gets the parent value at `path` of `object`.
  21829. *
  21830. * @private
  21831. * @param {Object} object The object to query.
  21832. * @param {Array} path The path to get the parent value of.
  21833. * @returns {*} Returns the parent value.
  21834. */
  21835. function parent(object, path) {
  21836. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  21837. }
  21838. /**
  21839. * Reorder `array` according to the specified indexes where the element at
  21840. * the first index is assigned as the first element, the element at
  21841. * the second index is assigned as the second element, and so on.
  21842. *
  21843. * @private
  21844. * @param {Array} array The array to reorder.
  21845. * @param {Array} indexes The arranged array indexes.
  21846. * @returns {Array} Returns `array`.
  21847. */
  21848. function reorder(array, indexes) {
  21849. var arrLength = array.length,
  21850. length = nativeMin(indexes.length, arrLength),
  21851. oldArray = copyArray(array);
  21852. while (length--) {
  21853. var index = indexes[length];
  21854. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  21855. }
  21856. return array;
  21857. }
  21858. /**
  21859. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  21860. *
  21861. * @private
  21862. * @param {Object} object The object to query.
  21863. * @param {string} key The key of the property to get.
  21864. * @returns {*} Returns the property value.
  21865. */
  21866. function safeGet(object, key) {
  21867. if (key === 'constructor' && typeof object[key] === 'function') {
  21868. return;
  21869. }
  21870. if (key == '__proto__') {
  21871. return;
  21872. }
  21873. return object[key];
  21874. }
  21875. /**
  21876. * Sets metadata for `func`.
  21877. *
  21878. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  21879. * period of time, it will trip its breaker and transition to an identity
  21880. * function to avoid garbage collection pauses in V8. See
  21881. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  21882. * for more details.
  21883. *
  21884. * @private
  21885. * @param {Function} func The function to associate metadata with.
  21886. * @param {*} data The metadata.
  21887. * @returns {Function} Returns `func`.
  21888. */
  21889. var setData = shortOut(baseSetData);
  21890. /**
  21891. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  21892. *
  21893. * @private
  21894. * @param {Function} func The function to delay.
  21895. * @param {number} wait The number of milliseconds to delay invocation.
  21896. * @returns {number|Object} Returns the timer id or timeout object.
  21897. */
  21898. var setTimeout = ctxSetTimeout || function(func, wait) {
  21899. return root.setTimeout(func, wait);
  21900. };
  21901. /**
  21902. * Sets the `toString` method of `func` to return `string`.
  21903. *
  21904. * @private
  21905. * @param {Function} func The function to modify.
  21906. * @param {Function} string The `toString` result.
  21907. * @returns {Function} Returns `func`.
  21908. */
  21909. var setToString = shortOut(baseSetToString);
  21910. /**
  21911. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  21912. * with wrapper details in a comment at the top of the source body.
  21913. *
  21914. * @private
  21915. * @param {Function} wrapper The function to modify.
  21916. * @param {Function} reference The reference function.
  21917. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  21918. * @returns {Function} Returns `wrapper`.
  21919. */
  21920. function setWrapToString(wrapper, reference, bitmask) {
  21921. var source = (reference + '');
  21922. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  21923. }
  21924. /**
  21925. * Creates a function that'll short out and invoke `identity` instead
  21926. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  21927. * milliseconds.
  21928. *
  21929. * @private
  21930. * @param {Function} func The function to restrict.
  21931. * @returns {Function} Returns the new shortable function.
  21932. */
  21933. function shortOut(func) {
  21934. var count = 0,
  21935. lastCalled = 0;
  21936. return function() {
  21937. var stamp = nativeNow(),
  21938. remaining = HOT_SPAN - (stamp - lastCalled);
  21939. lastCalled = stamp;
  21940. if (remaining > 0) {
  21941. if (++count >= HOT_COUNT) {
  21942. return arguments[0];
  21943. }
  21944. } else {
  21945. count = 0;
  21946. }
  21947. return func.apply(undefined, arguments);
  21948. };
  21949. }
  21950. /**
  21951. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  21952. *
  21953. * @private
  21954. * @param {Array} array The array to shuffle.
  21955. * @param {number} [size=array.length] The size of `array`.
  21956. * @returns {Array} Returns `array`.
  21957. */
  21958. function shuffleSelf(array, size) {
  21959. var index = -1,
  21960. length = array.length,
  21961. lastIndex = length - 1;
  21962. size = size === undefined ? length : size;
  21963. while (++index < size) {
  21964. var rand = baseRandom(index, lastIndex),
  21965. value = array[rand];
  21966. array[rand] = array[index];
  21967. array[index] = value;
  21968. }
  21969. array.length = size;
  21970. return array;
  21971. }
  21972. /**
  21973. * Converts `string` to a property path array.
  21974. *
  21975. * @private
  21976. * @param {string} string The string to convert.
  21977. * @returns {Array} Returns the property path array.
  21978. */
  21979. var stringToPath = memoizeCapped(function(string) {
  21980. var result = [];
  21981. if (string.charCodeAt(0) === 46 /* . */) {
  21982. result.push('');
  21983. }
  21984. string.replace(rePropName, function(match, number, quote, subString) {
  21985. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  21986. });
  21987. return result;
  21988. });
  21989. /**
  21990. * Converts `value` to a string key if it's not a string or symbol.
  21991. *
  21992. * @private
  21993. * @param {*} value The value to inspect.
  21994. * @returns {string|symbol} Returns the key.
  21995. */
  21996. function toKey(value) {
  21997. if (typeof value == 'string' || isSymbol(value)) {
  21998. return value;
  21999. }
  22000. var result = (value + '');
  22001. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  22002. }
  22003. /**
  22004. * Converts `func` to its source code.
  22005. *
  22006. * @private
  22007. * @param {Function} func The function to convert.
  22008. * @returns {string} Returns the source code.
  22009. */
  22010. function toSource(func) {
  22011. if (func != null) {
  22012. try {
  22013. return funcToString.call(func);
  22014. } catch (e) {}
  22015. try {
  22016. return (func + '');
  22017. } catch (e) {}
  22018. }
  22019. return '';
  22020. }
  22021. /**
  22022. * Updates wrapper `details` based on `bitmask` flags.
  22023. *
  22024. * @private
  22025. * @returns {Array} details The details to modify.
  22026. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  22027. * @returns {Array} Returns `details`.
  22028. */
  22029. function updateWrapDetails(details, bitmask) {
  22030. arrayEach(wrapFlags, function(pair) {
  22031. var value = '_.' + pair[0];
  22032. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  22033. details.push(value);
  22034. }
  22035. });
  22036. return details.sort();
  22037. }
  22038. /**
  22039. * Creates a clone of `wrapper`.
  22040. *
  22041. * @private
  22042. * @param {Object} wrapper The wrapper to clone.
  22043. * @returns {Object} Returns the cloned wrapper.
  22044. */
  22045. function wrapperClone(wrapper) {
  22046. if (wrapper instanceof LazyWrapper) {
  22047. return wrapper.clone();
  22048. }
  22049. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  22050. result.__actions__ = copyArray(wrapper.__actions__);
  22051. result.__index__ = wrapper.__index__;
  22052. result.__values__ = wrapper.__values__;
  22053. return result;
  22054. }
  22055. /*------------------------------------------------------------------------*/
  22056. /**
  22057. * Creates an array of elements split into groups the length of `size`.
  22058. * If `array` can't be split evenly, the final chunk will be the remaining
  22059. * elements.
  22060. *
  22061. * @static
  22062. * @memberOf _
  22063. * @since 3.0.0
  22064. * @category Array
  22065. * @param {Array} array The array to process.
  22066. * @param {number} [size=1] The length of each chunk
  22067. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22068. * @returns {Array} Returns the new array of chunks.
  22069. * @example
  22070. *
  22071. * _.chunk(['a', 'b', 'c', 'd'], 2);
  22072. * // => [['a', 'b'], ['c', 'd']]
  22073. *
  22074. * _.chunk(['a', 'b', 'c', 'd'], 3);
  22075. * // => [['a', 'b', 'c'], ['d']]
  22076. */
  22077. function chunk(array, size, guard) {
  22078. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  22079. size = 1;
  22080. } else {
  22081. size = nativeMax(toInteger(size), 0);
  22082. }
  22083. var length = array == null ? 0 : array.length;
  22084. if (!length || size < 1) {
  22085. return [];
  22086. }
  22087. var index = 0,
  22088. resIndex = 0,
  22089. result = Array(nativeCeil(length / size));
  22090. while (index < length) {
  22091. result[resIndex++] = baseSlice(array, index, (index += size));
  22092. }
  22093. return result;
  22094. }
  22095. /**
  22096. * Creates an array with all falsey values removed. The values `false`, `null`,
  22097. * `0`, `""`, `undefined`, and `NaN` are falsey.
  22098. *
  22099. * @static
  22100. * @memberOf _
  22101. * @since 0.1.0
  22102. * @category Array
  22103. * @param {Array} array The array to compact.
  22104. * @returns {Array} Returns the new array of filtered values.
  22105. * @example
  22106. *
  22107. * _.compact([0, 1, false, 2, '', 3]);
  22108. * // => [1, 2, 3]
  22109. */
  22110. function compact(array) {
  22111. var index = -1,
  22112. length = array == null ? 0 : array.length,
  22113. resIndex = 0,
  22114. result = [];
  22115. while (++index < length) {
  22116. var value = array[index];
  22117. if (value) {
  22118. result[resIndex++] = value;
  22119. }
  22120. }
  22121. return result;
  22122. }
  22123. /**
  22124. * Creates a new array concatenating `array` with any additional arrays
  22125. * and/or values.
  22126. *
  22127. * @static
  22128. * @memberOf _
  22129. * @since 4.0.0
  22130. * @category Array
  22131. * @param {Array} array The array to concatenate.
  22132. * @param {...*} [values] The values to concatenate.
  22133. * @returns {Array} Returns the new concatenated array.
  22134. * @example
  22135. *
  22136. * var array = [1];
  22137. * var other = _.concat(array, 2, [3], [[4]]);
  22138. *
  22139. * console.log(other);
  22140. * // => [1, 2, 3, [4]]
  22141. *
  22142. * console.log(array);
  22143. * // => [1]
  22144. */
  22145. function concat() {
  22146. var length = arguments.length;
  22147. if (!length) {
  22148. return [];
  22149. }
  22150. var args = Array(length - 1),
  22151. array = arguments[0],
  22152. index = length;
  22153. while (index--) {
  22154. args[index - 1] = arguments[index];
  22155. }
  22156. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  22157. }
  22158. /**
  22159. * Creates an array of `array` values not included in the other given arrays
  22160. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22161. * for equality comparisons. The order and references of result values are
  22162. * determined by the first array.
  22163. *
  22164. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  22165. *
  22166. * @static
  22167. * @memberOf _
  22168. * @since 0.1.0
  22169. * @category Array
  22170. * @param {Array} array The array to inspect.
  22171. * @param {...Array} [values] The values to exclude.
  22172. * @returns {Array} Returns the new array of filtered values.
  22173. * @see _.without, _.xor
  22174. * @example
  22175. *
  22176. * _.difference([2, 1], [2, 3]);
  22177. * // => [1]
  22178. */
  22179. var difference = baseRest(function(array, values) {
  22180. return isArrayLikeObject(array)
  22181. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  22182. : [];
  22183. });
  22184. /**
  22185. * This method is like `_.difference` except that it accepts `iteratee` which
  22186. * is invoked for each element of `array` and `values` to generate the criterion
  22187. * by which they're compared. The order and references of result values are
  22188. * determined by the first array. The iteratee is invoked with one argument:
  22189. * (value).
  22190. *
  22191. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  22192. *
  22193. * @static
  22194. * @memberOf _
  22195. * @since 4.0.0
  22196. * @category Array
  22197. * @param {Array} array The array to inspect.
  22198. * @param {...Array} [values] The values to exclude.
  22199. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22200. * @returns {Array} Returns the new array of filtered values.
  22201. * @example
  22202. *
  22203. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22204. * // => [1.2]
  22205. *
  22206. * // The `_.property` iteratee shorthand.
  22207. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  22208. * // => [{ 'x': 2 }]
  22209. */
  22210. var differenceBy = baseRest(function(array, values) {
  22211. var iteratee = last(values);
  22212. if (isArrayLikeObject(iteratee)) {
  22213. iteratee = undefined;
  22214. }
  22215. return isArrayLikeObject(array)
  22216. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  22217. : [];
  22218. });
  22219. /**
  22220. * This method is like `_.difference` except that it accepts `comparator`
  22221. * which is invoked to compare elements of `array` to `values`. The order and
  22222. * references of result values are determined by the first array. The comparator
  22223. * is invoked with two arguments: (arrVal, othVal).
  22224. *
  22225. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  22226. *
  22227. * @static
  22228. * @memberOf _
  22229. * @since 4.0.0
  22230. * @category Array
  22231. * @param {Array} array The array to inspect.
  22232. * @param {...Array} [values] The values to exclude.
  22233. * @param {Function} [comparator] The comparator invoked per element.
  22234. * @returns {Array} Returns the new array of filtered values.
  22235. * @example
  22236. *
  22237. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22238. *
  22239. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  22240. * // => [{ 'x': 2, 'y': 1 }]
  22241. */
  22242. var differenceWith = baseRest(function(array, values) {
  22243. var comparator = last(values);
  22244. if (isArrayLikeObject(comparator)) {
  22245. comparator = undefined;
  22246. }
  22247. return isArrayLikeObject(array)
  22248. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  22249. : [];
  22250. });
  22251. /**
  22252. * Creates a slice of `array` with `n` elements dropped from the beginning.
  22253. *
  22254. * @static
  22255. * @memberOf _
  22256. * @since 0.5.0
  22257. * @category Array
  22258. * @param {Array} array The array to query.
  22259. * @param {number} [n=1] The number of elements to drop.
  22260. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22261. * @returns {Array} Returns the slice of `array`.
  22262. * @example
  22263. *
  22264. * _.drop([1, 2, 3]);
  22265. * // => [2, 3]
  22266. *
  22267. * _.drop([1, 2, 3], 2);
  22268. * // => [3]
  22269. *
  22270. * _.drop([1, 2, 3], 5);
  22271. * // => []
  22272. *
  22273. * _.drop([1, 2, 3], 0);
  22274. * // => [1, 2, 3]
  22275. */
  22276. function drop(array, n, guard) {
  22277. var length = array == null ? 0 : array.length;
  22278. if (!length) {
  22279. return [];
  22280. }
  22281. n = (guard || n === undefined) ? 1 : toInteger(n);
  22282. return baseSlice(array, n < 0 ? 0 : n, length);
  22283. }
  22284. /**
  22285. * Creates a slice of `array` with `n` elements dropped from the end.
  22286. *
  22287. * @static
  22288. * @memberOf _
  22289. * @since 3.0.0
  22290. * @category Array
  22291. * @param {Array} array The array to query.
  22292. * @param {number} [n=1] The number of elements to drop.
  22293. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22294. * @returns {Array} Returns the slice of `array`.
  22295. * @example
  22296. *
  22297. * _.dropRight([1, 2, 3]);
  22298. * // => [1, 2]
  22299. *
  22300. * _.dropRight([1, 2, 3], 2);
  22301. * // => [1]
  22302. *
  22303. * _.dropRight([1, 2, 3], 5);
  22304. * // => []
  22305. *
  22306. * _.dropRight([1, 2, 3], 0);
  22307. * // => [1, 2, 3]
  22308. */
  22309. function dropRight(array, n, guard) {
  22310. var length = array == null ? 0 : array.length;
  22311. if (!length) {
  22312. return [];
  22313. }
  22314. n = (guard || n === undefined) ? 1 : toInteger(n);
  22315. n = length - n;
  22316. return baseSlice(array, 0, n < 0 ? 0 : n);
  22317. }
  22318. /**
  22319. * Creates a slice of `array` excluding elements dropped from the end.
  22320. * Elements are dropped until `predicate` returns falsey. The predicate is
  22321. * invoked with three arguments: (value, index, array).
  22322. *
  22323. * @static
  22324. * @memberOf _
  22325. * @since 3.0.0
  22326. * @category Array
  22327. * @param {Array} array The array to query.
  22328. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22329. * @returns {Array} Returns the slice of `array`.
  22330. * @example
  22331. *
  22332. * var users = [
  22333. * { 'user': 'barney', 'active': true },
  22334. * { 'user': 'fred', 'active': false },
  22335. * { 'user': 'pebbles', 'active': false }
  22336. * ];
  22337. *
  22338. * _.dropRightWhile(users, function(o) { return !o.active; });
  22339. * // => objects for ['barney']
  22340. *
  22341. * // The `_.matches` iteratee shorthand.
  22342. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  22343. * // => objects for ['barney', 'fred']
  22344. *
  22345. * // The `_.matchesProperty` iteratee shorthand.
  22346. * _.dropRightWhile(users, ['active', false]);
  22347. * // => objects for ['barney']
  22348. *
  22349. * // The `_.property` iteratee shorthand.
  22350. * _.dropRightWhile(users, 'active');
  22351. * // => objects for ['barney', 'fred', 'pebbles']
  22352. */
  22353. function dropRightWhile(array, predicate) {
  22354. return (array && array.length)
  22355. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  22356. : [];
  22357. }
  22358. /**
  22359. * Creates a slice of `array` excluding elements dropped from the beginning.
  22360. * Elements are dropped until `predicate` returns falsey. The predicate is
  22361. * invoked with three arguments: (value, index, array).
  22362. *
  22363. * @static
  22364. * @memberOf _
  22365. * @since 3.0.0
  22366. * @category Array
  22367. * @param {Array} array The array to query.
  22368. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22369. * @returns {Array} Returns the slice of `array`.
  22370. * @example
  22371. *
  22372. * var users = [
  22373. * { 'user': 'barney', 'active': false },
  22374. * { 'user': 'fred', 'active': false },
  22375. * { 'user': 'pebbles', 'active': true }
  22376. * ];
  22377. *
  22378. * _.dropWhile(users, function(o) { return !o.active; });
  22379. * // => objects for ['pebbles']
  22380. *
  22381. * // The `_.matches` iteratee shorthand.
  22382. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  22383. * // => objects for ['fred', 'pebbles']
  22384. *
  22385. * // The `_.matchesProperty` iteratee shorthand.
  22386. * _.dropWhile(users, ['active', false]);
  22387. * // => objects for ['pebbles']
  22388. *
  22389. * // The `_.property` iteratee shorthand.
  22390. * _.dropWhile(users, 'active');
  22391. * // => objects for ['barney', 'fred', 'pebbles']
  22392. */
  22393. function dropWhile(array, predicate) {
  22394. return (array && array.length)
  22395. ? baseWhile(array, getIteratee(predicate, 3), true)
  22396. : [];
  22397. }
  22398. /**
  22399. * Fills elements of `array` with `value` from `start` up to, but not
  22400. * including, `end`.
  22401. *
  22402. * **Note:** This method mutates `array`.
  22403. *
  22404. * @static
  22405. * @memberOf _
  22406. * @since 3.2.0
  22407. * @category Array
  22408. * @param {Array} array The array to fill.
  22409. * @param {*} value The value to fill `array` with.
  22410. * @param {number} [start=0] The start position.
  22411. * @param {number} [end=array.length] The end position.
  22412. * @returns {Array} Returns `array`.
  22413. * @example
  22414. *
  22415. * var array = [1, 2, 3];
  22416. *
  22417. * _.fill(array, 'a');
  22418. * console.log(array);
  22419. * // => ['a', 'a', 'a']
  22420. *
  22421. * _.fill(Array(3), 2);
  22422. * // => [2, 2, 2]
  22423. *
  22424. * _.fill([4, 6, 8, 10], '*', 1, 3);
  22425. * // => [4, '*', '*', 10]
  22426. */
  22427. function fill(array, value, start, end) {
  22428. var length = array == null ? 0 : array.length;
  22429. if (!length) {
  22430. return [];
  22431. }
  22432. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  22433. start = 0;
  22434. end = length;
  22435. }
  22436. return baseFill(array, value, start, end);
  22437. }
  22438. /**
  22439. * This method is like `_.find` except that it returns the index of the first
  22440. * element `predicate` returns truthy for instead of the element itself.
  22441. *
  22442. * @static
  22443. * @memberOf _
  22444. * @since 1.1.0
  22445. * @category Array
  22446. * @param {Array} array The array to inspect.
  22447. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22448. * @param {number} [fromIndex=0] The index to search from.
  22449. * @returns {number} Returns the index of the found element, else `-1`.
  22450. * @example
  22451. *
  22452. * var users = [
  22453. * { 'user': 'barney', 'active': false },
  22454. * { 'user': 'fred', 'active': false },
  22455. * { 'user': 'pebbles', 'active': true }
  22456. * ];
  22457. *
  22458. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  22459. * // => 0
  22460. *
  22461. * // The `_.matches` iteratee shorthand.
  22462. * _.findIndex(users, { 'user': 'fred', 'active': false });
  22463. * // => 1
  22464. *
  22465. * // The `_.matchesProperty` iteratee shorthand.
  22466. * _.findIndex(users, ['active', false]);
  22467. * // => 0
  22468. *
  22469. * // The `_.property` iteratee shorthand.
  22470. * _.findIndex(users, 'active');
  22471. * // => 2
  22472. */
  22473. function findIndex(array, predicate, fromIndex) {
  22474. var length = array == null ? 0 : array.length;
  22475. if (!length) {
  22476. return -1;
  22477. }
  22478. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22479. if (index < 0) {
  22480. index = nativeMax(length + index, 0);
  22481. }
  22482. return baseFindIndex(array, getIteratee(predicate, 3), index);
  22483. }
  22484. /**
  22485. * This method is like `_.findIndex` except that it iterates over elements
  22486. * of `collection` from right to left.
  22487. *
  22488. * @static
  22489. * @memberOf _
  22490. * @since 2.0.0
  22491. * @category Array
  22492. * @param {Array} array The array to inspect.
  22493. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22494. * @param {number} [fromIndex=array.length-1] The index to search from.
  22495. * @returns {number} Returns the index of the found element, else `-1`.
  22496. * @example
  22497. *
  22498. * var users = [
  22499. * { 'user': 'barney', 'active': true },
  22500. * { 'user': 'fred', 'active': false },
  22501. * { 'user': 'pebbles', 'active': false }
  22502. * ];
  22503. *
  22504. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  22505. * // => 2
  22506. *
  22507. * // The `_.matches` iteratee shorthand.
  22508. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  22509. * // => 0
  22510. *
  22511. * // The `_.matchesProperty` iteratee shorthand.
  22512. * _.findLastIndex(users, ['active', false]);
  22513. * // => 2
  22514. *
  22515. * // The `_.property` iteratee shorthand.
  22516. * _.findLastIndex(users, 'active');
  22517. * // => 0
  22518. */
  22519. function findLastIndex(array, predicate, fromIndex) {
  22520. var length = array == null ? 0 : array.length;
  22521. if (!length) {
  22522. return -1;
  22523. }
  22524. var index = length - 1;
  22525. if (fromIndex !== undefined) {
  22526. index = toInteger(fromIndex);
  22527. index = fromIndex < 0
  22528. ? nativeMax(length + index, 0)
  22529. : nativeMin(index, length - 1);
  22530. }
  22531. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  22532. }
  22533. /**
  22534. * Flattens `array` a single level deep.
  22535. *
  22536. * @static
  22537. * @memberOf _
  22538. * @since 0.1.0
  22539. * @category Array
  22540. * @param {Array} array The array to flatten.
  22541. * @returns {Array} Returns the new flattened array.
  22542. * @example
  22543. *
  22544. * _.flatten([1, [2, [3, [4]], 5]]);
  22545. * // => [1, 2, [3, [4]], 5]
  22546. */
  22547. function flatten(array) {
  22548. var length = array == null ? 0 : array.length;
  22549. return length ? baseFlatten(array, 1) : [];
  22550. }
  22551. /**
  22552. * Recursively flattens `array`.
  22553. *
  22554. * @static
  22555. * @memberOf _
  22556. * @since 3.0.0
  22557. * @category Array
  22558. * @param {Array} array The array to flatten.
  22559. * @returns {Array} Returns the new flattened array.
  22560. * @example
  22561. *
  22562. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  22563. * // => [1, 2, 3, 4, 5]
  22564. */
  22565. function flattenDeep(array) {
  22566. var length = array == null ? 0 : array.length;
  22567. return length ? baseFlatten(array, INFINITY) : [];
  22568. }
  22569. /**
  22570. * Recursively flatten `array` up to `depth` times.
  22571. *
  22572. * @static
  22573. * @memberOf _
  22574. * @since 4.4.0
  22575. * @category Array
  22576. * @param {Array} array The array to flatten.
  22577. * @param {number} [depth=1] The maximum recursion depth.
  22578. * @returns {Array} Returns the new flattened array.
  22579. * @example
  22580. *
  22581. * var array = [1, [2, [3, [4]], 5]];
  22582. *
  22583. * _.flattenDepth(array, 1);
  22584. * // => [1, 2, [3, [4]], 5]
  22585. *
  22586. * _.flattenDepth(array, 2);
  22587. * // => [1, 2, 3, [4], 5]
  22588. */
  22589. function flattenDepth(array, depth) {
  22590. var length = array == null ? 0 : array.length;
  22591. if (!length) {
  22592. return [];
  22593. }
  22594. depth = depth === undefined ? 1 : toInteger(depth);
  22595. return baseFlatten(array, depth);
  22596. }
  22597. /**
  22598. * The inverse of `_.toPairs`; this method returns an object composed
  22599. * from key-value `pairs`.
  22600. *
  22601. * @static
  22602. * @memberOf _
  22603. * @since 4.0.0
  22604. * @category Array
  22605. * @param {Array} pairs The key-value pairs.
  22606. * @returns {Object} Returns the new object.
  22607. * @example
  22608. *
  22609. * _.fromPairs([['a', 1], ['b', 2]]);
  22610. * // => { 'a': 1, 'b': 2 }
  22611. */
  22612. function fromPairs(pairs) {
  22613. var index = -1,
  22614. length = pairs == null ? 0 : pairs.length,
  22615. result = {};
  22616. while (++index < length) {
  22617. var pair = pairs[index];
  22618. result[pair[0]] = pair[1];
  22619. }
  22620. return result;
  22621. }
  22622. /**
  22623. * Gets the first element of `array`.
  22624. *
  22625. * @static
  22626. * @memberOf _
  22627. * @since 0.1.0
  22628. * @alias first
  22629. * @category Array
  22630. * @param {Array} array The array to query.
  22631. * @returns {*} Returns the first element of `array`.
  22632. * @example
  22633. *
  22634. * _.head([1, 2, 3]);
  22635. * // => 1
  22636. *
  22637. * _.head([]);
  22638. * // => undefined
  22639. */
  22640. function head(array) {
  22641. return (array && array.length) ? array[0] : undefined;
  22642. }
  22643. /**
  22644. * Gets the index at which the first occurrence of `value` is found in `array`
  22645. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22646. * for equality comparisons. If `fromIndex` is negative, it's used as the
  22647. * offset from the end of `array`.
  22648. *
  22649. * @static
  22650. * @memberOf _
  22651. * @since 0.1.0
  22652. * @category Array
  22653. * @param {Array} array The array to inspect.
  22654. * @param {*} value The value to search for.
  22655. * @param {number} [fromIndex=0] The index to search from.
  22656. * @returns {number} Returns the index of the matched value, else `-1`.
  22657. * @example
  22658. *
  22659. * _.indexOf([1, 2, 1, 2], 2);
  22660. * // => 1
  22661. *
  22662. * // Search from the `fromIndex`.
  22663. * _.indexOf([1, 2, 1, 2], 2, 2);
  22664. * // => 3
  22665. */
  22666. function indexOf(array, value, fromIndex) {
  22667. var length = array == null ? 0 : array.length;
  22668. if (!length) {
  22669. return -1;
  22670. }
  22671. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22672. if (index < 0) {
  22673. index = nativeMax(length + index, 0);
  22674. }
  22675. return baseIndexOf(array, value, index);
  22676. }
  22677. /**
  22678. * Gets all but the last element of `array`.
  22679. *
  22680. * @static
  22681. * @memberOf _
  22682. * @since 0.1.0
  22683. * @category Array
  22684. * @param {Array} array The array to query.
  22685. * @returns {Array} Returns the slice of `array`.
  22686. * @example
  22687. *
  22688. * _.initial([1, 2, 3]);
  22689. * // => [1, 2]
  22690. */
  22691. function initial(array) {
  22692. var length = array == null ? 0 : array.length;
  22693. return length ? baseSlice(array, 0, -1) : [];
  22694. }
  22695. /**
  22696. * Creates an array of unique values that are included in all given arrays
  22697. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22698. * for equality comparisons. The order and references of result values are
  22699. * determined by the first array.
  22700. *
  22701. * @static
  22702. * @memberOf _
  22703. * @since 0.1.0
  22704. * @category Array
  22705. * @param {...Array} [arrays] The arrays to inspect.
  22706. * @returns {Array} Returns the new array of intersecting values.
  22707. * @example
  22708. *
  22709. * _.intersection([2, 1], [2, 3]);
  22710. * // => [2]
  22711. */
  22712. var intersection = baseRest(function(arrays) {
  22713. var mapped = arrayMap(arrays, castArrayLikeObject);
  22714. return (mapped.length && mapped[0] === arrays[0])
  22715. ? baseIntersection(mapped)
  22716. : [];
  22717. });
  22718. /**
  22719. * This method is like `_.intersection` except that it accepts `iteratee`
  22720. * which is invoked for each element of each `arrays` to generate the criterion
  22721. * by which they're compared. The order and references of result values are
  22722. * determined by the first array. The iteratee is invoked with one argument:
  22723. * (value).
  22724. *
  22725. * @static
  22726. * @memberOf _
  22727. * @since 4.0.0
  22728. * @category Array
  22729. * @param {...Array} [arrays] The arrays to inspect.
  22730. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22731. * @returns {Array} Returns the new array of intersecting values.
  22732. * @example
  22733. *
  22734. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22735. * // => [2.1]
  22736. *
  22737. * // The `_.property` iteratee shorthand.
  22738. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  22739. * // => [{ 'x': 1 }]
  22740. */
  22741. var intersectionBy = baseRest(function(arrays) {
  22742. var iteratee = last(arrays),
  22743. mapped = arrayMap(arrays, castArrayLikeObject);
  22744. if (iteratee === last(mapped)) {
  22745. iteratee = undefined;
  22746. } else {
  22747. mapped.pop();
  22748. }
  22749. return (mapped.length && mapped[0] === arrays[0])
  22750. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  22751. : [];
  22752. });
  22753. /**
  22754. * This method is like `_.intersection` except that it accepts `comparator`
  22755. * which is invoked to compare elements of `arrays`. The order and references
  22756. * of result values are determined by the first array. The comparator is
  22757. * invoked with two arguments: (arrVal, othVal).
  22758. *
  22759. * @static
  22760. * @memberOf _
  22761. * @since 4.0.0
  22762. * @category Array
  22763. * @param {...Array} [arrays] The arrays to inspect.
  22764. * @param {Function} [comparator] The comparator invoked per element.
  22765. * @returns {Array} Returns the new array of intersecting values.
  22766. * @example
  22767. *
  22768. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22769. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  22770. *
  22771. * _.intersectionWith(objects, others, _.isEqual);
  22772. * // => [{ 'x': 1, 'y': 2 }]
  22773. */
  22774. var intersectionWith = baseRest(function(arrays) {
  22775. var comparator = last(arrays),
  22776. mapped = arrayMap(arrays, castArrayLikeObject);
  22777. comparator = typeof comparator == 'function' ? comparator : undefined;
  22778. if (comparator) {
  22779. mapped.pop();
  22780. }
  22781. return (mapped.length && mapped[0] === arrays[0])
  22782. ? baseIntersection(mapped, undefined, comparator)
  22783. : [];
  22784. });
  22785. /**
  22786. * Converts all elements in `array` into a string separated by `separator`.
  22787. *
  22788. * @static
  22789. * @memberOf _
  22790. * @since 4.0.0
  22791. * @category Array
  22792. * @param {Array} array The array to convert.
  22793. * @param {string} [separator=','] The element separator.
  22794. * @returns {string} Returns the joined string.
  22795. * @example
  22796. *
  22797. * _.join(['a', 'b', 'c'], '~');
  22798. * // => 'a~b~c'
  22799. */
  22800. function join(array, separator) {
  22801. return array == null ? '' : nativeJoin.call(array, separator);
  22802. }
  22803. /**
  22804. * Gets the last element of `array`.
  22805. *
  22806. * @static
  22807. * @memberOf _
  22808. * @since 0.1.0
  22809. * @category Array
  22810. * @param {Array} array The array to query.
  22811. * @returns {*} Returns the last element of `array`.
  22812. * @example
  22813. *
  22814. * _.last([1, 2, 3]);
  22815. * // => 3
  22816. */
  22817. function last(array) {
  22818. var length = array == null ? 0 : array.length;
  22819. return length ? array[length - 1] : undefined;
  22820. }
  22821. /**
  22822. * This method is like `_.indexOf` except that it iterates over elements of
  22823. * `array` from right to left.
  22824. *
  22825. * @static
  22826. * @memberOf _
  22827. * @since 0.1.0
  22828. * @category Array
  22829. * @param {Array} array The array to inspect.
  22830. * @param {*} value The value to search for.
  22831. * @param {number} [fromIndex=array.length-1] The index to search from.
  22832. * @returns {number} Returns the index of the matched value, else `-1`.
  22833. * @example
  22834. *
  22835. * _.lastIndexOf([1, 2, 1, 2], 2);
  22836. * // => 3
  22837. *
  22838. * // Search from the `fromIndex`.
  22839. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  22840. * // => 1
  22841. */
  22842. function lastIndexOf(array, value, fromIndex) {
  22843. var length = array == null ? 0 : array.length;
  22844. if (!length) {
  22845. return -1;
  22846. }
  22847. var index = length;
  22848. if (fromIndex !== undefined) {
  22849. index = toInteger(fromIndex);
  22850. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  22851. }
  22852. return value === value
  22853. ? strictLastIndexOf(array, value, index)
  22854. : baseFindIndex(array, baseIsNaN, index, true);
  22855. }
  22856. /**
  22857. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  22858. * element from the end is returned.
  22859. *
  22860. * @static
  22861. * @memberOf _
  22862. * @since 4.11.0
  22863. * @category Array
  22864. * @param {Array} array The array to query.
  22865. * @param {number} [n=0] The index of the element to return.
  22866. * @returns {*} Returns the nth element of `array`.
  22867. * @example
  22868. *
  22869. * var array = ['a', 'b', 'c', 'd'];
  22870. *
  22871. * _.nth(array, 1);
  22872. * // => 'b'
  22873. *
  22874. * _.nth(array, -2);
  22875. * // => 'c';
  22876. */
  22877. function nth(array, n) {
  22878. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  22879. }
  22880. /**
  22881. * Removes all given values from `array` using
  22882. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22883. * for equality comparisons.
  22884. *
  22885. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  22886. * to remove elements from an array by predicate.
  22887. *
  22888. * @static
  22889. * @memberOf _
  22890. * @since 2.0.0
  22891. * @category Array
  22892. * @param {Array} array The array to modify.
  22893. * @param {...*} [values] The values to remove.
  22894. * @returns {Array} Returns `array`.
  22895. * @example
  22896. *
  22897. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22898. *
  22899. * _.pull(array, 'a', 'c');
  22900. * console.log(array);
  22901. * // => ['b', 'b']
  22902. */
  22903. var pull = baseRest(pullAll);
  22904. /**
  22905. * This method is like `_.pull` except that it accepts an array of values to remove.
  22906. *
  22907. * **Note:** Unlike `_.difference`, this method mutates `array`.
  22908. *
  22909. * @static
  22910. * @memberOf _
  22911. * @since 4.0.0
  22912. * @category Array
  22913. * @param {Array} array The array to modify.
  22914. * @param {Array} values The values to remove.
  22915. * @returns {Array} Returns `array`.
  22916. * @example
  22917. *
  22918. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22919. *
  22920. * _.pullAll(array, ['a', 'c']);
  22921. * console.log(array);
  22922. * // => ['b', 'b']
  22923. */
  22924. function pullAll(array, values) {
  22925. return (array && array.length && values && values.length)
  22926. ? basePullAll(array, values)
  22927. : array;
  22928. }
  22929. /**
  22930. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  22931. * invoked for each element of `array` and `values` to generate the criterion
  22932. * by which they're compared. The iteratee is invoked with one argument: (value).
  22933. *
  22934. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  22935. *
  22936. * @static
  22937. * @memberOf _
  22938. * @since 4.0.0
  22939. * @category Array
  22940. * @param {Array} array The array to modify.
  22941. * @param {Array} values The values to remove.
  22942. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22943. * @returns {Array} Returns `array`.
  22944. * @example
  22945. *
  22946. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  22947. *
  22948. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  22949. * console.log(array);
  22950. * // => [{ 'x': 2 }]
  22951. */
  22952. function pullAllBy(array, values, iteratee) {
  22953. return (array && array.length && values && values.length)
  22954. ? basePullAll(array, values, getIteratee(iteratee, 2))
  22955. : array;
  22956. }
  22957. /**
  22958. * This method is like `_.pullAll` except that it accepts `comparator` which
  22959. * is invoked to compare elements of `array` to `values`. The comparator is
  22960. * invoked with two arguments: (arrVal, othVal).
  22961. *
  22962. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  22963. *
  22964. * @static
  22965. * @memberOf _
  22966. * @since 4.6.0
  22967. * @category Array
  22968. * @param {Array} array The array to modify.
  22969. * @param {Array} values The values to remove.
  22970. * @param {Function} [comparator] The comparator invoked per element.
  22971. * @returns {Array} Returns `array`.
  22972. * @example
  22973. *
  22974. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  22975. *
  22976. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  22977. * console.log(array);
  22978. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  22979. */
  22980. function pullAllWith(array, values, comparator) {
  22981. return (array && array.length && values && values.length)
  22982. ? basePullAll(array, values, undefined, comparator)
  22983. : array;
  22984. }
  22985. /**
  22986. * Removes elements from `array` corresponding to `indexes` and returns an
  22987. * array of removed elements.
  22988. *
  22989. * **Note:** Unlike `_.at`, this method mutates `array`.
  22990. *
  22991. * @static
  22992. * @memberOf _
  22993. * @since 3.0.0
  22994. * @category Array
  22995. * @param {Array} array The array to modify.
  22996. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  22997. * @returns {Array} Returns the new array of removed elements.
  22998. * @example
  22999. *
  23000. * var array = ['a', 'b', 'c', 'd'];
  23001. * var pulled = _.pullAt(array, [1, 3]);
  23002. *
  23003. * console.log(array);
  23004. * // => ['a', 'c']
  23005. *
  23006. * console.log(pulled);
  23007. * // => ['b', 'd']
  23008. */
  23009. var pullAt = flatRest(function(array, indexes) {
  23010. var length = array == null ? 0 : array.length,
  23011. result = baseAt(array, indexes);
  23012. basePullAt(array, arrayMap(indexes, function(index) {
  23013. return isIndex(index, length) ? +index : index;
  23014. }).sort(compareAscending));
  23015. return result;
  23016. });
  23017. /**
  23018. * Removes all elements from `array` that `predicate` returns truthy for
  23019. * and returns an array of the removed elements. The predicate is invoked
  23020. * with three arguments: (value, index, array).
  23021. *
  23022. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  23023. * to pull elements from an array by value.
  23024. *
  23025. * @static
  23026. * @memberOf _
  23027. * @since 2.0.0
  23028. * @category Array
  23029. * @param {Array} array The array to modify.
  23030. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23031. * @returns {Array} Returns the new array of removed elements.
  23032. * @example
  23033. *
  23034. * var array = [1, 2, 3, 4];
  23035. * var evens = _.remove(array, function(n) {
  23036. * return n % 2 == 0;
  23037. * });
  23038. *
  23039. * console.log(array);
  23040. * // => [1, 3]
  23041. *
  23042. * console.log(evens);
  23043. * // => [2, 4]
  23044. */
  23045. function remove(array, predicate) {
  23046. var result = [];
  23047. if (!(array && array.length)) {
  23048. return result;
  23049. }
  23050. var index = -1,
  23051. indexes = [],
  23052. length = array.length;
  23053. predicate = getIteratee(predicate, 3);
  23054. while (++index < length) {
  23055. var value = array[index];
  23056. if (predicate(value, index, array)) {
  23057. result.push(value);
  23058. indexes.push(index);
  23059. }
  23060. }
  23061. basePullAt(array, indexes);
  23062. return result;
  23063. }
  23064. /**
  23065. * Reverses `array` so that the first element becomes the last, the second
  23066. * element becomes the second to last, and so on.
  23067. *
  23068. * **Note:** This method mutates `array` and is based on
  23069. * [`Array#reverse`](https://mdn.io/Array/reverse).
  23070. *
  23071. * @static
  23072. * @memberOf _
  23073. * @since 4.0.0
  23074. * @category Array
  23075. * @param {Array} array The array to modify.
  23076. * @returns {Array} Returns `array`.
  23077. * @example
  23078. *
  23079. * var array = [1, 2, 3];
  23080. *
  23081. * _.reverse(array);
  23082. * // => [3, 2, 1]
  23083. *
  23084. * console.log(array);
  23085. * // => [3, 2, 1]
  23086. */
  23087. function reverse(array) {
  23088. return array == null ? array : nativeReverse.call(array);
  23089. }
  23090. /**
  23091. * Creates a slice of `array` from `start` up to, but not including, `end`.
  23092. *
  23093. * **Note:** This method is used instead of
  23094. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  23095. * returned.
  23096. *
  23097. * @static
  23098. * @memberOf _
  23099. * @since 3.0.0
  23100. * @category Array
  23101. * @param {Array} array The array to slice.
  23102. * @param {number} [start=0] The start position.
  23103. * @param {number} [end=array.length] The end position.
  23104. * @returns {Array} Returns the slice of `array`.
  23105. */
  23106. function slice(array, start, end) {
  23107. var length = array == null ? 0 : array.length;
  23108. if (!length) {
  23109. return [];
  23110. }
  23111. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  23112. start = 0;
  23113. end = length;
  23114. }
  23115. else {
  23116. start = start == null ? 0 : toInteger(start);
  23117. end = end === undefined ? length : toInteger(end);
  23118. }
  23119. return baseSlice(array, start, end);
  23120. }
  23121. /**
  23122. * Uses a binary search to determine the lowest index at which `value`
  23123. * should be inserted into `array` in order to maintain its sort order.
  23124. *
  23125. * @static
  23126. * @memberOf _
  23127. * @since 0.1.0
  23128. * @category Array
  23129. * @param {Array} array The sorted array to inspect.
  23130. * @param {*} value The value to evaluate.
  23131. * @returns {number} Returns the index at which `value` should be inserted
  23132. * into `array`.
  23133. * @example
  23134. *
  23135. * _.sortedIndex([30, 50], 40);
  23136. * // => 1
  23137. */
  23138. function sortedIndex(array, value) {
  23139. return baseSortedIndex(array, value);
  23140. }
  23141. /**
  23142. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  23143. * which is invoked for `value` and each element of `array` to compute their
  23144. * sort ranking. The iteratee is invoked with one argument: (value).
  23145. *
  23146. * @static
  23147. * @memberOf _
  23148. * @since 4.0.0
  23149. * @category Array
  23150. * @param {Array} array The sorted array to inspect.
  23151. * @param {*} value The value to evaluate.
  23152. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23153. * @returns {number} Returns the index at which `value` should be inserted
  23154. * into `array`.
  23155. * @example
  23156. *
  23157. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23158. *
  23159. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23160. * // => 0
  23161. *
  23162. * // The `_.property` iteratee shorthand.
  23163. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  23164. * // => 0
  23165. */
  23166. function sortedIndexBy(array, value, iteratee) {
  23167. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  23168. }
  23169. /**
  23170. * This method is like `_.indexOf` except that it performs a binary
  23171. * search on a sorted `array`.
  23172. *
  23173. * @static
  23174. * @memberOf _
  23175. * @since 4.0.0
  23176. * @category Array
  23177. * @param {Array} array The array to inspect.
  23178. * @param {*} value The value to search for.
  23179. * @returns {number} Returns the index of the matched value, else `-1`.
  23180. * @example
  23181. *
  23182. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  23183. * // => 1
  23184. */
  23185. function sortedIndexOf(array, value) {
  23186. var length = array == null ? 0 : array.length;
  23187. if (length) {
  23188. var index = baseSortedIndex(array, value);
  23189. if (index < length && eq(array[index], value)) {
  23190. return index;
  23191. }
  23192. }
  23193. return -1;
  23194. }
  23195. /**
  23196. * This method is like `_.sortedIndex` except that it returns the highest
  23197. * index at which `value` should be inserted into `array` in order to
  23198. * maintain its sort order.
  23199. *
  23200. * @static
  23201. * @memberOf _
  23202. * @since 3.0.0
  23203. * @category Array
  23204. * @param {Array} array The sorted array to inspect.
  23205. * @param {*} value The value to evaluate.
  23206. * @returns {number} Returns the index at which `value` should be inserted
  23207. * into `array`.
  23208. * @example
  23209. *
  23210. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  23211. * // => 4
  23212. */
  23213. function sortedLastIndex(array, value) {
  23214. return baseSortedIndex(array, value, true);
  23215. }
  23216. /**
  23217. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  23218. * which is invoked for `value` and each element of `array` to compute their
  23219. * sort ranking. The iteratee is invoked with one argument: (value).
  23220. *
  23221. * @static
  23222. * @memberOf _
  23223. * @since 4.0.0
  23224. * @category Array
  23225. * @param {Array} array The sorted array to inspect.
  23226. * @param {*} value The value to evaluate.
  23227. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23228. * @returns {number} Returns the index at which `value` should be inserted
  23229. * into `array`.
  23230. * @example
  23231. *
  23232. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23233. *
  23234. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23235. * // => 1
  23236. *
  23237. * // The `_.property` iteratee shorthand.
  23238. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  23239. * // => 1
  23240. */
  23241. function sortedLastIndexBy(array, value, iteratee) {
  23242. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  23243. }
  23244. /**
  23245. * This method is like `_.lastIndexOf` except that it performs a binary
  23246. * search on a sorted `array`.
  23247. *
  23248. * @static
  23249. * @memberOf _
  23250. * @since 4.0.0
  23251. * @category Array
  23252. * @param {Array} array The array to inspect.
  23253. * @param {*} value The value to search for.
  23254. * @returns {number} Returns the index of the matched value, else `-1`.
  23255. * @example
  23256. *
  23257. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  23258. * // => 3
  23259. */
  23260. function sortedLastIndexOf(array, value) {
  23261. var length = array == null ? 0 : array.length;
  23262. if (length) {
  23263. var index = baseSortedIndex(array, value, true) - 1;
  23264. if (eq(array[index], value)) {
  23265. return index;
  23266. }
  23267. }
  23268. return -1;
  23269. }
  23270. /**
  23271. * This method is like `_.uniq` except that it's designed and optimized
  23272. * for sorted arrays.
  23273. *
  23274. * @static
  23275. * @memberOf _
  23276. * @since 4.0.0
  23277. * @category Array
  23278. * @param {Array} array The array to inspect.
  23279. * @returns {Array} Returns the new duplicate free array.
  23280. * @example
  23281. *
  23282. * _.sortedUniq([1, 1, 2]);
  23283. * // => [1, 2]
  23284. */
  23285. function sortedUniq(array) {
  23286. return (array && array.length)
  23287. ? baseSortedUniq(array)
  23288. : [];
  23289. }
  23290. /**
  23291. * This method is like `_.uniqBy` except that it's designed and optimized
  23292. * for sorted arrays.
  23293. *
  23294. * @static
  23295. * @memberOf _
  23296. * @since 4.0.0
  23297. * @category Array
  23298. * @param {Array} array The array to inspect.
  23299. * @param {Function} [iteratee] The iteratee invoked per element.
  23300. * @returns {Array} Returns the new duplicate free array.
  23301. * @example
  23302. *
  23303. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  23304. * // => [1.1, 2.3]
  23305. */
  23306. function sortedUniqBy(array, iteratee) {
  23307. return (array && array.length)
  23308. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  23309. : [];
  23310. }
  23311. /**
  23312. * Gets all but the first element of `array`.
  23313. *
  23314. * @static
  23315. * @memberOf _
  23316. * @since 4.0.0
  23317. * @category Array
  23318. * @param {Array} array The array to query.
  23319. * @returns {Array} Returns the slice of `array`.
  23320. * @example
  23321. *
  23322. * _.tail([1, 2, 3]);
  23323. * // => [2, 3]
  23324. */
  23325. function tail(array) {
  23326. var length = array == null ? 0 : array.length;
  23327. return length ? baseSlice(array, 1, length) : [];
  23328. }
  23329. /**
  23330. * Creates a slice of `array` with `n` elements taken from the beginning.
  23331. *
  23332. * @static
  23333. * @memberOf _
  23334. * @since 0.1.0
  23335. * @category Array
  23336. * @param {Array} array The array to query.
  23337. * @param {number} [n=1] The number of elements to take.
  23338. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23339. * @returns {Array} Returns the slice of `array`.
  23340. * @example
  23341. *
  23342. * _.take([1, 2, 3]);
  23343. * // => [1]
  23344. *
  23345. * _.take([1, 2, 3], 2);
  23346. * // => [1, 2]
  23347. *
  23348. * _.take([1, 2, 3], 5);
  23349. * // => [1, 2, 3]
  23350. *
  23351. * _.take([1, 2, 3], 0);
  23352. * // => []
  23353. */
  23354. function take(array, n, guard) {
  23355. if (!(array && array.length)) {
  23356. return [];
  23357. }
  23358. n = (guard || n === undefined) ? 1 : toInteger(n);
  23359. return baseSlice(array, 0, n < 0 ? 0 : n);
  23360. }
  23361. /**
  23362. * Creates a slice of `array` with `n` elements taken from the end.
  23363. *
  23364. * @static
  23365. * @memberOf _
  23366. * @since 3.0.0
  23367. * @category Array
  23368. * @param {Array} array The array to query.
  23369. * @param {number} [n=1] The number of elements to take.
  23370. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23371. * @returns {Array} Returns the slice of `array`.
  23372. * @example
  23373. *
  23374. * _.takeRight([1, 2, 3]);
  23375. * // => [3]
  23376. *
  23377. * _.takeRight([1, 2, 3], 2);
  23378. * // => [2, 3]
  23379. *
  23380. * _.takeRight([1, 2, 3], 5);
  23381. * // => [1, 2, 3]
  23382. *
  23383. * _.takeRight([1, 2, 3], 0);
  23384. * // => []
  23385. */
  23386. function takeRight(array, n, guard) {
  23387. var length = array == null ? 0 : array.length;
  23388. if (!length) {
  23389. return [];
  23390. }
  23391. n = (guard || n === undefined) ? 1 : toInteger(n);
  23392. n = length - n;
  23393. return baseSlice(array, n < 0 ? 0 : n, length);
  23394. }
  23395. /**
  23396. * Creates a slice of `array` with elements taken from the end. Elements are
  23397. * taken until `predicate` returns falsey. The predicate is invoked with
  23398. * three arguments: (value, index, array).
  23399. *
  23400. * @static
  23401. * @memberOf _
  23402. * @since 3.0.0
  23403. * @category Array
  23404. * @param {Array} array The array to query.
  23405. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23406. * @returns {Array} Returns the slice of `array`.
  23407. * @example
  23408. *
  23409. * var users = [
  23410. * { 'user': 'barney', 'active': true },
  23411. * { 'user': 'fred', 'active': false },
  23412. * { 'user': 'pebbles', 'active': false }
  23413. * ];
  23414. *
  23415. * _.takeRightWhile(users, function(o) { return !o.active; });
  23416. * // => objects for ['fred', 'pebbles']
  23417. *
  23418. * // The `_.matches` iteratee shorthand.
  23419. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  23420. * // => objects for ['pebbles']
  23421. *
  23422. * // The `_.matchesProperty` iteratee shorthand.
  23423. * _.takeRightWhile(users, ['active', false]);
  23424. * // => objects for ['fred', 'pebbles']
  23425. *
  23426. * // The `_.property` iteratee shorthand.
  23427. * _.takeRightWhile(users, 'active');
  23428. * // => []
  23429. */
  23430. function takeRightWhile(array, predicate) {
  23431. return (array && array.length)
  23432. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  23433. : [];
  23434. }
  23435. /**
  23436. * Creates a slice of `array` with elements taken from the beginning. Elements
  23437. * are taken until `predicate` returns falsey. The predicate is invoked with
  23438. * three arguments: (value, index, array).
  23439. *
  23440. * @static
  23441. * @memberOf _
  23442. * @since 3.0.0
  23443. * @category Array
  23444. * @param {Array} array The array to query.
  23445. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23446. * @returns {Array} Returns the slice of `array`.
  23447. * @example
  23448. *
  23449. * var users = [
  23450. * { 'user': 'barney', 'active': false },
  23451. * { 'user': 'fred', 'active': false },
  23452. * { 'user': 'pebbles', 'active': true }
  23453. * ];
  23454. *
  23455. * _.takeWhile(users, function(o) { return !o.active; });
  23456. * // => objects for ['barney', 'fred']
  23457. *
  23458. * // The `_.matches` iteratee shorthand.
  23459. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  23460. * // => objects for ['barney']
  23461. *
  23462. * // The `_.matchesProperty` iteratee shorthand.
  23463. * _.takeWhile(users, ['active', false]);
  23464. * // => objects for ['barney', 'fred']
  23465. *
  23466. * // The `_.property` iteratee shorthand.
  23467. * _.takeWhile(users, 'active');
  23468. * // => []
  23469. */
  23470. function takeWhile(array, predicate) {
  23471. return (array && array.length)
  23472. ? baseWhile(array, getIteratee(predicate, 3))
  23473. : [];
  23474. }
  23475. /**
  23476. * Creates an array of unique values, in order, from all given arrays using
  23477. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23478. * for equality comparisons.
  23479. *
  23480. * @static
  23481. * @memberOf _
  23482. * @since 0.1.0
  23483. * @category Array
  23484. * @param {...Array} [arrays] The arrays to inspect.
  23485. * @returns {Array} Returns the new array of combined values.
  23486. * @example
  23487. *
  23488. * _.union([2], [1, 2]);
  23489. * // => [2, 1]
  23490. */
  23491. var union = baseRest(function(arrays) {
  23492. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  23493. });
  23494. /**
  23495. * This method is like `_.union` except that it accepts `iteratee` which is
  23496. * invoked for each element of each `arrays` to generate the criterion by
  23497. * which uniqueness is computed. Result values are chosen from the first
  23498. * array in which the value occurs. The iteratee is invoked with one argument:
  23499. * (value).
  23500. *
  23501. * @static
  23502. * @memberOf _
  23503. * @since 4.0.0
  23504. * @category Array
  23505. * @param {...Array} [arrays] The arrays to inspect.
  23506. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23507. * @returns {Array} Returns the new array of combined values.
  23508. * @example
  23509. *
  23510. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  23511. * // => [2.1, 1.2]
  23512. *
  23513. * // The `_.property` iteratee shorthand.
  23514. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23515. * // => [{ 'x': 1 }, { 'x': 2 }]
  23516. */
  23517. var unionBy = baseRest(function(arrays) {
  23518. var iteratee = last(arrays);
  23519. if (isArrayLikeObject(iteratee)) {
  23520. iteratee = undefined;
  23521. }
  23522. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  23523. });
  23524. /**
  23525. * This method is like `_.union` except that it accepts `comparator` which
  23526. * is invoked to compare elements of `arrays`. Result values are chosen from
  23527. * the first array in which the value occurs. The comparator is invoked
  23528. * with two arguments: (arrVal, othVal).
  23529. *
  23530. * @static
  23531. * @memberOf _
  23532. * @since 4.0.0
  23533. * @category Array
  23534. * @param {...Array} [arrays] The arrays to inspect.
  23535. * @param {Function} [comparator] The comparator invoked per element.
  23536. * @returns {Array} Returns the new array of combined values.
  23537. * @example
  23538. *
  23539. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23540. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23541. *
  23542. * _.unionWith(objects, others, _.isEqual);
  23543. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23544. */
  23545. var unionWith = baseRest(function(arrays) {
  23546. var comparator = last(arrays);
  23547. comparator = typeof comparator == 'function' ? comparator : undefined;
  23548. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  23549. });
  23550. /**
  23551. * Creates a duplicate-free version of an array, using
  23552. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23553. * for equality comparisons, in which only the first occurrence of each element
  23554. * is kept. The order of result values is determined by the order they occur
  23555. * in the array.
  23556. *
  23557. * @static
  23558. * @memberOf _
  23559. * @since 0.1.0
  23560. * @category Array
  23561. * @param {Array} array The array to inspect.
  23562. * @returns {Array} Returns the new duplicate free array.
  23563. * @example
  23564. *
  23565. * _.uniq([2, 1, 2]);
  23566. * // => [2, 1]
  23567. */
  23568. function uniq(array) {
  23569. return (array && array.length) ? baseUniq(array) : [];
  23570. }
  23571. /**
  23572. * This method is like `_.uniq` except that it accepts `iteratee` which is
  23573. * invoked for each element in `array` to generate the criterion by which
  23574. * uniqueness is computed. The order of result values is determined by the
  23575. * order they occur in the array. The iteratee is invoked with one argument:
  23576. * (value).
  23577. *
  23578. * @static
  23579. * @memberOf _
  23580. * @since 4.0.0
  23581. * @category Array
  23582. * @param {Array} array The array to inspect.
  23583. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23584. * @returns {Array} Returns the new duplicate free array.
  23585. * @example
  23586. *
  23587. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  23588. * // => [2.1, 1.2]
  23589. *
  23590. * // The `_.property` iteratee shorthand.
  23591. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  23592. * // => [{ 'x': 1 }, { 'x': 2 }]
  23593. */
  23594. function uniqBy(array, iteratee) {
  23595. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  23596. }
  23597. /**
  23598. * This method is like `_.uniq` except that it accepts `comparator` which
  23599. * is invoked to compare elements of `array`. The order of result values is
  23600. * determined by the order they occur in the array.The comparator is invoked
  23601. * with two arguments: (arrVal, othVal).
  23602. *
  23603. * @static
  23604. * @memberOf _
  23605. * @since 4.0.0
  23606. * @category Array
  23607. * @param {Array} array The array to inspect.
  23608. * @param {Function} [comparator] The comparator invoked per element.
  23609. * @returns {Array} Returns the new duplicate free array.
  23610. * @example
  23611. *
  23612. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23613. *
  23614. * _.uniqWith(objects, _.isEqual);
  23615. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  23616. */
  23617. function uniqWith(array, comparator) {
  23618. comparator = typeof comparator == 'function' ? comparator : undefined;
  23619. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  23620. }
  23621. /**
  23622. * This method is like `_.zip` except that it accepts an array of grouped
  23623. * elements and creates an array regrouping the elements to their pre-zip
  23624. * configuration.
  23625. *
  23626. * @static
  23627. * @memberOf _
  23628. * @since 1.2.0
  23629. * @category Array
  23630. * @param {Array} array The array of grouped elements to process.
  23631. * @returns {Array} Returns the new array of regrouped elements.
  23632. * @example
  23633. *
  23634. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  23635. * // => [['a', 1, true], ['b', 2, false]]
  23636. *
  23637. * _.unzip(zipped);
  23638. * // => [['a', 'b'], [1, 2], [true, false]]
  23639. */
  23640. function unzip(array) {
  23641. if (!(array && array.length)) {
  23642. return [];
  23643. }
  23644. var length = 0;
  23645. array = arrayFilter(array, function(group) {
  23646. if (isArrayLikeObject(group)) {
  23647. length = nativeMax(group.length, length);
  23648. return true;
  23649. }
  23650. });
  23651. return baseTimes(length, function(index) {
  23652. return arrayMap(array, baseProperty(index));
  23653. });
  23654. }
  23655. /**
  23656. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  23657. * how regrouped values should be combined. The iteratee is invoked with the
  23658. * elements of each group: (...group).
  23659. *
  23660. * @static
  23661. * @memberOf _
  23662. * @since 3.8.0
  23663. * @category Array
  23664. * @param {Array} array The array of grouped elements to process.
  23665. * @param {Function} [iteratee=_.identity] The function to combine
  23666. * regrouped values.
  23667. * @returns {Array} Returns the new array of regrouped elements.
  23668. * @example
  23669. *
  23670. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  23671. * // => [[1, 10, 100], [2, 20, 200]]
  23672. *
  23673. * _.unzipWith(zipped, _.add);
  23674. * // => [3, 30, 300]
  23675. */
  23676. function unzipWith(array, iteratee) {
  23677. if (!(array && array.length)) {
  23678. return [];
  23679. }
  23680. var result = unzip(array);
  23681. if (iteratee == null) {
  23682. return result;
  23683. }
  23684. return arrayMap(result, function(group) {
  23685. return apply(iteratee, undefined, group);
  23686. });
  23687. }
  23688. /**
  23689. * Creates an array excluding all given values using
  23690. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23691. * for equality comparisons.
  23692. *
  23693. * **Note:** Unlike `_.pull`, this method returns a new array.
  23694. *
  23695. * @static
  23696. * @memberOf _
  23697. * @since 0.1.0
  23698. * @category Array
  23699. * @param {Array} array The array to inspect.
  23700. * @param {...*} [values] The values to exclude.
  23701. * @returns {Array} Returns the new array of filtered values.
  23702. * @see _.difference, _.xor
  23703. * @example
  23704. *
  23705. * _.without([2, 1, 2, 3], 1, 2);
  23706. * // => [3]
  23707. */
  23708. var without = baseRest(function(array, values) {
  23709. return isArrayLikeObject(array)
  23710. ? baseDifference(array, values)
  23711. : [];
  23712. });
  23713. /**
  23714. * Creates an array of unique values that is the
  23715. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  23716. * of the given arrays. The order of result values is determined by the order
  23717. * they occur in the arrays.
  23718. *
  23719. * @static
  23720. * @memberOf _
  23721. * @since 2.4.0
  23722. * @category Array
  23723. * @param {...Array} [arrays] The arrays to inspect.
  23724. * @returns {Array} Returns the new array of filtered values.
  23725. * @see _.difference, _.without
  23726. * @example
  23727. *
  23728. * _.xor([2, 1], [2, 3]);
  23729. * // => [1, 3]
  23730. */
  23731. var xor = baseRest(function(arrays) {
  23732. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  23733. });
  23734. /**
  23735. * This method is like `_.xor` except that it accepts `iteratee` which is
  23736. * invoked for each element of each `arrays` to generate the criterion by
  23737. * which by which they're compared. The order of result values is determined
  23738. * by the order they occur in the arrays. The iteratee is invoked with one
  23739. * argument: (value).
  23740. *
  23741. * @static
  23742. * @memberOf _
  23743. * @since 4.0.0
  23744. * @category Array
  23745. * @param {...Array} [arrays] The arrays to inspect.
  23746. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23747. * @returns {Array} Returns the new array of filtered values.
  23748. * @example
  23749. *
  23750. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  23751. * // => [1.2, 3.4]
  23752. *
  23753. * // The `_.property` iteratee shorthand.
  23754. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23755. * // => [{ 'x': 2 }]
  23756. */
  23757. var xorBy = baseRest(function(arrays) {
  23758. var iteratee = last(arrays);
  23759. if (isArrayLikeObject(iteratee)) {
  23760. iteratee = undefined;
  23761. }
  23762. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  23763. });
  23764. /**
  23765. * This method is like `_.xor` except that it accepts `comparator` which is
  23766. * invoked to compare elements of `arrays`. The order of result values is
  23767. * determined by the order they occur in the arrays. The comparator is invoked
  23768. * with two arguments: (arrVal, othVal).
  23769. *
  23770. * @static
  23771. * @memberOf _
  23772. * @since 4.0.0
  23773. * @category Array
  23774. * @param {...Array} [arrays] The arrays to inspect.
  23775. * @param {Function} [comparator] The comparator invoked per element.
  23776. * @returns {Array} Returns the new array of filtered values.
  23777. * @example
  23778. *
  23779. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23780. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23781. *
  23782. * _.xorWith(objects, others, _.isEqual);
  23783. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23784. */
  23785. var xorWith = baseRest(function(arrays) {
  23786. var comparator = last(arrays);
  23787. comparator = typeof comparator == 'function' ? comparator : undefined;
  23788. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  23789. });
  23790. /**
  23791. * Creates an array of grouped elements, the first of which contains the
  23792. * first elements of the given arrays, the second of which contains the
  23793. * second elements of the given arrays, and so on.
  23794. *
  23795. * @static
  23796. * @memberOf _
  23797. * @since 0.1.0
  23798. * @category Array
  23799. * @param {...Array} [arrays] The arrays to process.
  23800. * @returns {Array} Returns the new array of grouped elements.
  23801. * @example
  23802. *
  23803. * _.zip(['a', 'b'], [1, 2], [true, false]);
  23804. * // => [['a', 1, true], ['b', 2, false]]
  23805. */
  23806. var zip = baseRest(unzip);
  23807. /**
  23808. * This method is like `_.fromPairs` except that it accepts two arrays,
  23809. * one of property identifiers and one of corresponding values.
  23810. *
  23811. * @static
  23812. * @memberOf _
  23813. * @since 0.4.0
  23814. * @category Array
  23815. * @param {Array} [props=[]] The property identifiers.
  23816. * @param {Array} [values=[]] The property values.
  23817. * @returns {Object} Returns the new object.
  23818. * @example
  23819. *
  23820. * _.zipObject(['a', 'b'], [1, 2]);
  23821. * // => { 'a': 1, 'b': 2 }
  23822. */
  23823. function zipObject(props, values) {
  23824. return baseZipObject(props || [], values || [], assignValue);
  23825. }
  23826. /**
  23827. * This method is like `_.zipObject` except that it supports property paths.
  23828. *
  23829. * @static
  23830. * @memberOf _
  23831. * @since 4.1.0
  23832. * @category Array
  23833. * @param {Array} [props=[]] The property identifiers.
  23834. * @param {Array} [values=[]] The property values.
  23835. * @returns {Object} Returns the new object.
  23836. * @example
  23837. *
  23838. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  23839. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  23840. */
  23841. function zipObjectDeep(props, values) {
  23842. return baseZipObject(props || [], values || [], baseSet);
  23843. }
  23844. /**
  23845. * This method is like `_.zip` except that it accepts `iteratee` to specify
  23846. * how grouped values should be combined. The iteratee is invoked with the
  23847. * elements of each group: (...group).
  23848. *
  23849. * @static
  23850. * @memberOf _
  23851. * @since 3.8.0
  23852. * @category Array
  23853. * @param {...Array} [arrays] The arrays to process.
  23854. * @param {Function} [iteratee=_.identity] The function to combine
  23855. * grouped values.
  23856. * @returns {Array} Returns the new array of grouped elements.
  23857. * @example
  23858. *
  23859. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  23860. * return a + b + c;
  23861. * });
  23862. * // => [111, 222]
  23863. */
  23864. var zipWith = baseRest(function(arrays) {
  23865. var length = arrays.length,
  23866. iteratee = length > 1 ? arrays[length - 1] : undefined;
  23867. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  23868. return unzipWith(arrays, iteratee);
  23869. });
  23870. /*------------------------------------------------------------------------*/
  23871. /**
  23872. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  23873. * chain sequences enabled. The result of such sequences must be unwrapped
  23874. * with `_#value`.
  23875. *
  23876. * @static
  23877. * @memberOf _
  23878. * @since 1.3.0
  23879. * @category Seq
  23880. * @param {*} value The value to wrap.
  23881. * @returns {Object} Returns the new `lodash` wrapper instance.
  23882. * @example
  23883. *
  23884. * var users = [
  23885. * { 'user': 'barney', 'age': 36 },
  23886. * { 'user': 'fred', 'age': 40 },
  23887. * { 'user': 'pebbles', 'age': 1 }
  23888. * ];
  23889. *
  23890. * var youngest = _
  23891. * .chain(users)
  23892. * .sortBy('age')
  23893. * .map(function(o) {
  23894. * return o.user + ' is ' + o.age;
  23895. * })
  23896. * .head()
  23897. * .value();
  23898. * // => 'pebbles is 1'
  23899. */
  23900. function chain(value) {
  23901. var result = lodash(value);
  23902. result.__chain__ = true;
  23903. return result;
  23904. }
  23905. /**
  23906. * This method invokes `interceptor` and returns `value`. The interceptor
  23907. * is invoked with one argument; (value). The purpose of this method is to
  23908. * "tap into" a method chain sequence in order to modify intermediate results.
  23909. *
  23910. * @static
  23911. * @memberOf _
  23912. * @since 0.1.0
  23913. * @category Seq
  23914. * @param {*} value The value to provide to `interceptor`.
  23915. * @param {Function} interceptor The function to invoke.
  23916. * @returns {*} Returns `value`.
  23917. * @example
  23918. *
  23919. * _([1, 2, 3])
  23920. * .tap(function(array) {
  23921. * // Mutate input array.
  23922. * array.pop();
  23923. * })
  23924. * .reverse()
  23925. * .value();
  23926. * // => [2, 1]
  23927. */
  23928. function tap(value, interceptor) {
  23929. interceptor(value);
  23930. return value;
  23931. }
  23932. /**
  23933. * This method is like `_.tap` except that it returns the result of `interceptor`.
  23934. * The purpose of this method is to "pass thru" values replacing intermediate
  23935. * results in a method chain sequence.
  23936. *
  23937. * @static
  23938. * @memberOf _
  23939. * @since 3.0.0
  23940. * @category Seq
  23941. * @param {*} value The value to provide to `interceptor`.
  23942. * @param {Function} interceptor The function to invoke.
  23943. * @returns {*} Returns the result of `interceptor`.
  23944. * @example
  23945. *
  23946. * _(' abc ')
  23947. * .chain()
  23948. * .trim()
  23949. * .thru(function(value) {
  23950. * return [value];
  23951. * })
  23952. * .value();
  23953. * // => ['abc']
  23954. */
  23955. function thru(value, interceptor) {
  23956. return interceptor(value);
  23957. }
  23958. /**
  23959. * This method is the wrapper version of `_.at`.
  23960. *
  23961. * @name at
  23962. * @memberOf _
  23963. * @since 1.0.0
  23964. * @category Seq
  23965. * @param {...(string|string[])} [paths] The property paths to pick.
  23966. * @returns {Object} Returns the new `lodash` wrapper instance.
  23967. * @example
  23968. *
  23969. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  23970. *
  23971. * _(object).at(['a[0].b.c', 'a[1]']).value();
  23972. * // => [3, 4]
  23973. */
  23974. var wrapperAt = flatRest(function(paths) {
  23975. var length = paths.length,
  23976. start = length ? paths[0] : 0,
  23977. value = this.__wrapped__,
  23978. interceptor = function(object) { return baseAt(object, paths); };
  23979. if (length > 1 || this.__actions__.length ||
  23980. !(value instanceof LazyWrapper) || !isIndex(start)) {
  23981. return this.thru(interceptor);
  23982. }
  23983. value = value.slice(start, +start + (length ? 1 : 0));
  23984. value.__actions__.push({
  23985. 'func': thru,
  23986. 'args': [interceptor],
  23987. 'thisArg': undefined
  23988. });
  23989. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  23990. if (length && !array.length) {
  23991. array.push(undefined);
  23992. }
  23993. return array;
  23994. });
  23995. });
  23996. /**
  23997. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  23998. *
  23999. * @name chain
  24000. * @memberOf _
  24001. * @since 0.1.0
  24002. * @category Seq
  24003. * @returns {Object} Returns the new `lodash` wrapper instance.
  24004. * @example
  24005. *
  24006. * var users = [
  24007. * { 'user': 'barney', 'age': 36 },
  24008. * { 'user': 'fred', 'age': 40 }
  24009. * ];
  24010. *
  24011. * // A sequence without explicit chaining.
  24012. * _(users).head();
  24013. * // => { 'user': 'barney', 'age': 36 }
  24014. *
  24015. * // A sequence with explicit chaining.
  24016. * _(users)
  24017. * .chain()
  24018. * .head()
  24019. * .pick('user')
  24020. * .value();
  24021. * // => { 'user': 'barney' }
  24022. */
  24023. function wrapperChain() {
  24024. return chain(this);
  24025. }
  24026. /**
  24027. * Executes the chain sequence and returns the wrapped result.
  24028. *
  24029. * @name commit
  24030. * @memberOf _
  24031. * @since 3.2.0
  24032. * @category Seq
  24033. * @returns {Object} Returns the new `lodash` wrapper instance.
  24034. * @example
  24035. *
  24036. * var array = [1, 2];
  24037. * var wrapped = _(array).push(3);
  24038. *
  24039. * console.log(array);
  24040. * // => [1, 2]
  24041. *
  24042. * wrapped = wrapped.commit();
  24043. * console.log(array);
  24044. * // => [1, 2, 3]
  24045. *
  24046. * wrapped.last();
  24047. * // => 3
  24048. *
  24049. * console.log(array);
  24050. * // => [1, 2, 3]
  24051. */
  24052. function wrapperCommit() {
  24053. return new LodashWrapper(this.value(), this.__chain__);
  24054. }
  24055. /**
  24056. * Gets the next value on a wrapped object following the
  24057. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  24058. *
  24059. * @name next
  24060. * @memberOf _
  24061. * @since 4.0.0
  24062. * @category Seq
  24063. * @returns {Object} Returns the next iterator value.
  24064. * @example
  24065. *
  24066. * var wrapped = _([1, 2]);
  24067. *
  24068. * wrapped.next();
  24069. * // => { 'done': false, 'value': 1 }
  24070. *
  24071. * wrapped.next();
  24072. * // => { 'done': false, 'value': 2 }
  24073. *
  24074. * wrapped.next();
  24075. * // => { 'done': true, 'value': undefined }
  24076. */
  24077. function wrapperNext() {
  24078. if (this.__values__ === undefined) {
  24079. this.__values__ = toArray(this.value());
  24080. }
  24081. var done = this.__index__ >= this.__values__.length,
  24082. value = done ? undefined : this.__values__[this.__index__++];
  24083. return { 'done': done, 'value': value };
  24084. }
  24085. /**
  24086. * Enables the wrapper to be iterable.
  24087. *
  24088. * @name Symbol.iterator
  24089. * @memberOf _
  24090. * @since 4.0.0
  24091. * @category Seq
  24092. * @returns {Object} Returns the wrapper object.
  24093. * @example
  24094. *
  24095. * var wrapped = _([1, 2]);
  24096. *
  24097. * wrapped[Symbol.iterator]() === wrapped;
  24098. * // => true
  24099. *
  24100. * Array.from(wrapped);
  24101. * // => [1, 2]
  24102. */
  24103. function wrapperToIterator() {
  24104. return this;
  24105. }
  24106. /**
  24107. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  24108. *
  24109. * @name plant
  24110. * @memberOf _
  24111. * @since 3.2.0
  24112. * @category Seq
  24113. * @param {*} value The value to plant.
  24114. * @returns {Object} Returns the new `lodash` wrapper instance.
  24115. * @example
  24116. *
  24117. * function square(n) {
  24118. * return n * n;
  24119. * }
  24120. *
  24121. * var wrapped = _([1, 2]).map(square);
  24122. * var other = wrapped.plant([3, 4]);
  24123. *
  24124. * other.value();
  24125. * // => [9, 16]
  24126. *
  24127. * wrapped.value();
  24128. * // => [1, 4]
  24129. */
  24130. function wrapperPlant(value) {
  24131. var result,
  24132. parent = this;
  24133. while (parent instanceof baseLodash) {
  24134. var clone = wrapperClone(parent);
  24135. clone.__index__ = 0;
  24136. clone.__values__ = undefined;
  24137. if (result) {
  24138. previous.__wrapped__ = clone;
  24139. } else {
  24140. result = clone;
  24141. }
  24142. var previous = clone;
  24143. parent = parent.__wrapped__;
  24144. }
  24145. previous.__wrapped__ = value;
  24146. return result;
  24147. }
  24148. /**
  24149. * This method is the wrapper version of `_.reverse`.
  24150. *
  24151. * **Note:** This method mutates the wrapped array.
  24152. *
  24153. * @name reverse
  24154. * @memberOf _
  24155. * @since 0.1.0
  24156. * @category Seq
  24157. * @returns {Object} Returns the new `lodash` wrapper instance.
  24158. * @example
  24159. *
  24160. * var array = [1, 2, 3];
  24161. *
  24162. * _(array).reverse().value()
  24163. * // => [3, 2, 1]
  24164. *
  24165. * console.log(array);
  24166. * // => [3, 2, 1]
  24167. */
  24168. function wrapperReverse() {
  24169. var value = this.__wrapped__;
  24170. if (value instanceof LazyWrapper) {
  24171. var wrapped = value;
  24172. if (this.__actions__.length) {
  24173. wrapped = new LazyWrapper(this);
  24174. }
  24175. wrapped = wrapped.reverse();
  24176. wrapped.__actions__.push({
  24177. 'func': thru,
  24178. 'args': [reverse],
  24179. 'thisArg': undefined
  24180. });
  24181. return new LodashWrapper(wrapped, this.__chain__);
  24182. }
  24183. return this.thru(reverse);
  24184. }
  24185. /**
  24186. * Executes the chain sequence to resolve the unwrapped value.
  24187. *
  24188. * @name value
  24189. * @memberOf _
  24190. * @since 0.1.0
  24191. * @alias toJSON, valueOf
  24192. * @category Seq
  24193. * @returns {*} Returns the resolved unwrapped value.
  24194. * @example
  24195. *
  24196. * _([1, 2, 3]).value();
  24197. * // => [1, 2, 3]
  24198. */
  24199. function wrapperValue() {
  24200. return baseWrapperValue(this.__wrapped__, this.__actions__);
  24201. }
  24202. /*------------------------------------------------------------------------*/
  24203. /**
  24204. * Creates an object composed of keys generated from the results of running
  24205. * each element of `collection` thru `iteratee`. The corresponding value of
  24206. * each key is the number of times the key was returned by `iteratee`. The
  24207. * iteratee is invoked with one argument: (value).
  24208. *
  24209. * @static
  24210. * @memberOf _
  24211. * @since 0.5.0
  24212. * @category Collection
  24213. * @param {Array|Object} collection The collection to iterate over.
  24214. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24215. * @returns {Object} Returns the composed aggregate object.
  24216. * @example
  24217. *
  24218. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  24219. * // => { '4': 1, '6': 2 }
  24220. *
  24221. * // The `_.property` iteratee shorthand.
  24222. * _.countBy(['one', 'two', 'three'], 'length');
  24223. * // => { '3': 2, '5': 1 }
  24224. */
  24225. var countBy = createAggregator(function(result, value, key) {
  24226. if (hasOwnProperty.call(result, key)) {
  24227. ++result[key];
  24228. } else {
  24229. baseAssignValue(result, key, 1);
  24230. }
  24231. });
  24232. /**
  24233. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  24234. * Iteration is stopped once `predicate` returns falsey. The predicate is
  24235. * invoked with three arguments: (value, index|key, collection).
  24236. *
  24237. * **Note:** This method returns `true` for
  24238. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  24239. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  24240. * elements of empty collections.
  24241. *
  24242. * @static
  24243. * @memberOf _
  24244. * @since 0.1.0
  24245. * @category Collection
  24246. * @param {Array|Object} collection The collection to iterate over.
  24247. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24248. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24249. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  24250. * else `false`.
  24251. * @example
  24252. *
  24253. * _.every([true, 1, null, 'yes'], Boolean);
  24254. * // => false
  24255. *
  24256. * var users = [
  24257. * { 'user': 'barney', 'age': 36, 'active': false },
  24258. * { 'user': 'fred', 'age': 40, 'active': false }
  24259. * ];
  24260. *
  24261. * // The `_.matches` iteratee shorthand.
  24262. * _.every(users, { 'user': 'barney', 'active': false });
  24263. * // => false
  24264. *
  24265. * // The `_.matchesProperty` iteratee shorthand.
  24266. * _.every(users, ['active', false]);
  24267. * // => true
  24268. *
  24269. * // The `_.property` iteratee shorthand.
  24270. * _.every(users, 'active');
  24271. * // => false
  24272. */
  24273. function every(collection, predicate, guard) {
  24274. var func = isArray(collection) ? arrayEvery : baseEvery;
  24275. if (guard && isIterateeCall(collection, predicate, guard)) {
  24276. predicate = undefined;
  24277. }
  24278. return func(collection, getIteratee(predicate, 3));
  24279. }
  24280. /**
  24281. * Iterates over elements of `collection`, returning an array of all elements
  24282. * `predicate` returns truthy for. The predicate is invoked with three
  24283. * arguments: (value, index|key, collection).
  24284. *
  24285. * **Note:** Unlike `_.remove`, this method returns a new array.
  24286. *
  24287. * @static
  24288. * @memberOf _
  24289. * @since 0.1.0
  24290. * @category Collection
  24291. * @param {Array|Object} collection The collection to iterate over.
  24292. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24293. * @returns {Array} Returns the new filtered array.
  24294. * @see _.reject
  24295. * @example
  24296. *
  24297. * var users = [
  24298. * { 'user': 'barney', 'age': 36, 'active': true },
  24299. * { 'user': 'fred', 'age': 40, 'active': false }
  24300. * ];
  24301. *
  24302. * _.filter(users, function(o) { return !o.active; });
  24303. * // => objects for ['fred']
  24304. *
  24305. * // The `_.matches` iteratee shorthand.
  24306. * _.filter(users, { 'age': 36, 'active': true });
  24307. * // => objects for ['barney']
  24308. *
  24309. * // The `_.matchesProperty` iteratee shorthand.
  24310. * _.filter(users, ['active', false]);
  24311. * // => objects for ['fred']
  24312. *
  24313. * // The `_.property` iteratee shorthand.
  24314. * _.filter(users, 'active');
  24315. * // => objects for ['barney']
  24316. */
  24317. function filter(collection, predicate) {
  24318. var func = isArray(collection) ? arrayFilter : baseFilter;
  24319. return func(collection, getIteratee(predicate, 3));
  24320. }
  24321. /**
  24322. * Iterates over elements of `collection`, returning the first element
  24323. * `predicate` returns truthy for. The predicate is invoked with three
  24324. * arguments: (value, index|key, collection).
  24325. *
  24326. * @static
  24327. * @memberOf _
  24328. * @since 0.1.0
  24329. * @category Collection
  24330. * @param {Array|Object} collection The collection to inspect.
  24331. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24332. * @param {number} [fromIndex=0] The index to search from.
  24333. * @returns {*} Returns the matched element, else `undefined`.
  24334. * @example
  24335. *
  24336. * var users = [
  24337. * { 'user': 'barney', 'age': 36, 'active': true },
  24338. * { 'user': 'fred', 'age': 40, 'active': false },
  24339. * { 'user': 'pebbles', 'age': 1, 'active': true }
  24340. * ];
  24341. *
  24342. * _.find(users, function(o) { return o.age < 40; });
  24343. * // => object for 'barney'
  24344. *
  24345. * // The `_.matches` iteratee shorthand.
  24346. * _.find(users, { 'age': 1, 'active': true });
  24347. * // => object for 'pebbles'
  24348. *
  24349. * // The `_.matchesProperty` iteratee shorthand.
  24350. * _.find(users, ['active', false]);
  24351. * // => object for 'fred'
  24352. *
  24353. * // The `_.property` iteratee shorthand.
  24354. * _.find(users, 'active');
  24355. * // => object for 'barney'
  24356. */
  24357. var find = createFind(findIndex);
  24358. /**
  24359. * This method is like `_.find` except that it iterates over elements of
  24360. * `collection` from right to left.
  24361. *
  24362. * @static
  24363. * @memberOf _
  24364. * @since 2.0.0
  24365. * @category Collection
  24366. * @param {Array|Object} collection The collection to inspect.
  24367. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24368. * @param {number} [fromIndex=collection.length-1] The index to search from.
  24369. * @returns {*} Returns the matched element, else `undefined`.
  24370. * @example
  24371. *
  24372. * _.findLast([1, 2, 3, 4], function(n) {
  24373. * return n % 2 == 1;
  24374. * });
  24375. * // => 3
  24376. */
  24377. var findLast = createFind(findLastIndex);
  24378. /**
  24379. * Creates a flattened array of values by running each element in `collection`
  24380. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  24381. * with three arguments: (value, index|key, collection).
  24382. *
  24383. * @static
  24384. * @memberOf _
  24385. * @since 4.0.0
  24386. * @category Collection
  24387. * @param {Array|Object} collection The collection to iterate over.
  24388. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24389. * @returns {Array} Returns the new flattened array.
  24390. * @example
  24391. *
  24392. * function duplicate(n) {
  24393. * return [n, n];
  24394. * }
  24395. *
  24396. * _.flatMap([1, 2], duplicate);
  24397. * // => [1, 1, 2, 2]
  24398. */
  24399. function flatMap(collection, iteratee) {
  24400. return baseFlatten(map(collection, iteratee), 1);
  24401. }
  24402. /**
  24403. * This method is like `_.flatMap` except that it recursively flattens the
  24404. * mapped results.
  24405. *
  24406. * @static
  24407. * @memberOf _
  24408. * @since 4.7.0
  24409. * @category Collection
  24410. * @param {Array|Object} collection The collection to iterate over.
  24411. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24412. * @returns {Array} Returns the new flattened array.
  24413. * @example
  24414. *
  24415. * function duplicate(n) {
  24416. * return [[[n, n]]];
  24417. * }
  24418. *
  24419. * _.flatMapDeep([1, 2], duplicate);
  24420. * // => [1, 1, 2, 2]
  24421. */
  24422. function flatMapDeep(collection, iteratee) {
  24423. return baseFlatten(map(collection, iteratee), INFINITY);
  24424. }
  24425. /**
  24426. * This method is like `_.flatMap` except that it recursively flattens the
  24427. * mapped results up to `depth` times.
  24428. *
  24429. * @static
  24430. * @memberOf _
  24431. * @since 4.7.0
  24432. * @category Collection
  24433. * @param {Array|Object} collection The collection to iterate over.
  24434. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24435. * @param {number} [depth=1] The maximum recursion depth.
  24436. * @returns {Array} Returns the new flattened array.
  24437. * @example
  24438. *
  24439. * function duplicate(n) {
  24440. * return [[[n, n]]];
  24441. * }
  24442. *
  24443. * _.flatMapDepth([1, 2], duplicate, 2);
  24444. * // => [[1, 1], [2, 2]]
  24445. */
  24446. function flatMapDepth(collection, iteratee, depth) {
  24447. depth = depth === undefined ? 1 : toInteger(depth);
  24448. return baseFlatten(map(collection, iteratee), depth);
  24449. }
  24450. /**
  24451. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  24452. * The iteratee is invoked with three arguments: (value, index|key, collection).
  24453. * Iteratee functions may exit iteration early by explicitly returning `false`.
  24454. *
  24455. * **Note:** As with other "Collections" methods, objects with a "length"
  24456. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  24457. * or `_.forOwn` for object iteration.
  24458. *
  24459. * @static
  24460. * @memberOf _
  24461. * @since 0.1.0
  24462. * @alias each
  24463. * @category Collection
  24464. * @param {Array|Object} collection The collection to iterate over.
  24465. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24466. * @returns {Array|Object} Returns `collection`.
  24467. * @see _.forEachRight
  24468. * @example
  24469. *
  24470. * _.forEach([1, 2], function(value) {
  24471. * console.log(value);
  24472. * });
  24473. * // => Logs `1` then `2`.
  24474. *
  24475. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  24476. * console.log(key);
  24477. * });
  24478. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  24479. */
  24480. function forEach(collection, iteratee) {
  24481. var func = isArray(collection) ? arrayEach : baseEach;
  24482. return func(collection, getIteratee(iteratee, 3));
  24483. }
  24484. /**
  24485. * This method is like `_.forEach` except that it iterates over elements of
  24486. * `collection` from right to left.
  24487. *
  24488. * @static
  24489. * @memberOf _
  24490. * @since 2.0.0
  24491. * @alias eachRight
  24492. * @category Collection
  24493. * @param {Array|Object} collection The collection to iterate over.
  24494. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24495. * @returns {Array|Object} Returns `collection`.
  24496. * @see _.forEach
  24497. * @example
  24498. *
  24499. * _.forEachRight([1, 2], function(value) {
  24500. * console.log(value);
  24501. * });
  24502. * // => Logs `2` then `1`.
  24503. */
  24504. function forEachRight(collection, iteratee) {
  24505. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  24506. return func(collection, getIteratee(iteratee, 3));
  24507. }
  24508. /**
  24509. * Creates an object composed of keys generated from the results of running
  24510. * each element of `collection` thru `iteratee`. The order of grouped values
  24511. * is determined by the order they occur in `collection`. The corresponding
  24512. * value of each key is an array of elements responsible for generating the
  24513. * key. The iteratee is invoked with one argument: (value).
  24514. *
  24515. * @static
  24516. * @memberOf _
  24517. * @since 0.1.0
  24518. * @category Collection
  24519. * @param {Array|Object} collection The collection to iterate over.
  24520. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24521. * @returns {Object} Returns the composed aggregate object.
  24522. * @example
  24523. *
  24524. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  24525. * // => { '4': [4.2], '6': [6.1, 6.3] }
  24526. *
  24527. * // The `_.property` iteratee shorthand.
  24528. * _.groupBy(['one', 'two', 'three'], 'length');
  24529. * // => { '3': ['one', 'two'], '5': ['three'] }
  24530. */
  24531. var groupBy = createAggregator(function(result, value, key) {
  24532. if (hasOwnProperty.call(result, key)) {
  24533. result[key].push(value);
  24534. } else {
  24535. baseAssignValue(result, key, [value]);
  24536. }
  24537. });
  24538. /**
  24539. * Checks if `value` is in `collection`. If `collection` is a string, it's
  24540. * checked for a substring of `value`, otherwise
  24541. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  24542. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  24543. * the offset from the end of `collection`.
  24544. *
  24545. * @static
  24546. * @memberOf _
  24547. * @since 0.1.0
  24548. * @category Collection
  24549. * @param {Array|Object|string} collection The collection to inspect.
  24550. * @param {*} value The value to search for.
  24551. * @param {number} [fromIndex=0] The index to search from.
  24552. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24553. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  24554. * @example
  24555. *
  24556. * _.includes([1, 2, 3], 1);
  24557. * // => true
  24558. *
  24559. * _.includes([1, 2, 3], 1, 2);
  24560. * // => false
  24561. *
  24562. * _.includes({ 'a': 1, 'b': 2 }, 1);
  24563. * // => true
  24564. *
  24565. * _.includes('abcd', 'bc');
  24566. * // => true
  24567. */
  24568. function includes(collection, value, fromIndex, guard) {
  24569. collection = isArrayLike(collection) ? collection : values(collection);
  24570. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  24571. var length = collection.length;
  24572. if (fromIndex < 0) {
  24573. fromIndex = nativeMax(length + fromIndex, 0);
  24574. }
  24575. return isString(collection)
  24576. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  24577. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  24578. }
  24579. /**
  24580. * Invokes the method at `path` of each element in `collection`, returning
  24581. * an array of the results of each invoked method. Any additional arguments
  24582. * are provided to each invoked method. If `path` is a function, it's invoked
  24583. * for, and `this` bound to, each element in `collection`.
  24584. *
  24585. * @static
  24586. * @memberOf _
  24587. * @since 4.0.0
  24588. * @category Collection
  24589. * @param {Array|Object} collection The collection to iterate over.
  24590. * @param {Array|Function|string} path The path of the method to invoke or
  24591. * the function invoked per iteration.
  24592. * @param {...*} [args] The arguments to invoke each method with.
  24593. * @returns {Array} Returns the array of results.
  24594. * @example
  24595. *
  24596. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  24597. * // => [[1, 5, 7], [1, 2, 3]]
  24598. *
  24599. * _.invokeMap([123, 456], String.prototype.split, '');
  24600. * // => [['1', '2', '3'], ['4', '5', '6']]
  24601. */
  24602. var invokeMap = baseRest(function(collection, path, args) {
  24603. var index = -1,
  24604. isFunc = typeof path == 'function',
  24605. result = isArrayLike(collection) ? Array(collection.length) : [];
  24606. baseEach(collection, function(value) {
  24607. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  24608. });
  24609. return result;
  24610. });
  24611. /**
  24612. * Creates an object composed of keys generated from the results of running
  24613. * each element of `collection` thru `iteratee`. The corresponding value of
  24614. * each key is the last element responsible for generating the key. The
  24615. * iteratee is invoked with one argument: (value).
  24616. *
  24617. * @static
  24618. * @memberOf _
  24619. * @since 4.0.0
  24620. * @category Collection
  24621. * @param {Array|Object} collection The collection to iterate over.
  24622. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24623. * @returns {Object} Returns the composed aggregate object.
  24624. * @example
  24625. *
  24626. * var array = [
  24627. * { 'dir': 'left', 'code': 97 },
  24628. * { 'dir': 'right', 'code': 100 }
  24629. * ];
  24630. *
  24631. * _.keyBy(array, function(o) {
  24632. * return String.fromCharCode(o.code);
  24633. * });
  24634. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  24635. *
  24636. * _.keyBy(array, 'dir');
  24637. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  24638. */
  24639. var keyBy = createAggregator(function(result, value, key) {
  24640. baseAssignValue(result, key, value);
  24641. });
  24642. /**
  24643. * Creates an array of values by running each element in `collection` thru
  24644. * `iteratee`. The iteratee is invoked with three arguments:
  24645. * (value, index|key, collection).
  24646. *
  24647. * Many lodash methods are guarded to work as iteratees for methods like
  24648. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  24649. *
  24650. * The guarded methods are:
  24651. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  24652. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  24653. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  24654. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  24655. *
  24656. * @static
  24657. * @memberOf _
  24658. * @since 0.1.0
  24659. * @category Collection
  24660. * @param {Array|Object} collection The collection to iterate over.
  24661. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24662. * @returns {Array} Returns the new mapped array.
  24663. * @example
  24664. *
  24665. * function square(n) {
  24666. * return n * n;
  24667. * }
  24668. *
  24669. * _.map([4, 8], square);
  24670. * // => [16, 64]
  24671. *
  24672. * _.map({ 'a': 4, 'b': 8 }, square);
  24673. * // => [16, 64] (iteration order is not guaranteed)
  24674. *
  24675. * var users = [
  24676. * { 'user': 'barney' },
  24677. * { 'user': 'fred' }
  24678. * ];
  24679. *
  24680. * // The `_.property` iteratee shorthand.
  24681. * _.map(users, 'user');
  24682. * // => ['barney', 'fred']
  24683. */
  24684. function map(collection, iteratee) {
  24685. var func = isArray(collection) ? arrayMap : baseMap;
  24686. return func(collection, getIteratee(iteratee, 3));
  24687. }
  24688. /**
  24689. * This method is like `_.sortBy` except that it allows specifying the sort
  24690. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  24691. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  24692. * descending or "asc" for ascending sort order of corresponding values.
  24693. *
  24694. * @static
  24695. * @memberOf _
  24696. * @since 4.0.0
  24697. * @category Collection
  24698. * @param {Array|Object} collection The collection to iterate over.
  24699. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  24700. * The iteratees to sort by.
  24701. * @param {string[]} [orders] The sort orders of `iteratees`.
  24702. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24703. * @returns {Array} Returns the new sorted array.
  24704. * @example
  24705. *
  24706. * var users = [
  24707. * { 'user': 'fred', 'age': 48 },
  24708. * { 'user': 'barney', 'age': 34 },
  24709. * { 'user': 'fred', 'age': 40 },
  24710. * { 'user': 'barney', 'age': 36 }
  24711. * ];
  24712. *
  24713. * // Sort by `user` in ascending order and by `age` in descending order.
  24714. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  24715. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  24716. */
  24717. function orderBy(collection, iteratees, orders, guard) {
  24718. if (collection == null) {
  24719. return [];
  24720. }
  24721. if (!isArray(iteratees)) {
  24722. iteratees = iteratees == null ? [] : [iteratees];
  24723. }
  24724. orders = guard ? undefined : orders;
  24725. if (!isArray(orders)) {
  24726. orders = orders == null ? [] : [orders];
  24727. }
  24728. return baseOrderBy(collection, iteratees, orders);
  24729. }
  24730. /**
  24731. * Creates an array of elements split into two groups, the first of which
  24732. * contains elements `predicate` returns truthy for, the second of which
  24733. * contains elements `predicate` returns falsey for. The predicate is
  24734. * invoked with one argument: (value).
  24735. *
  24736. * @static
  24737. * @memberOf _
  24738. * @since 3.0.0
  24739. * @category Collection
  24740. * @param {Array|Object} collection The collection to iterate over.
  24741. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24742. * @returns {Array} Returns the array of grouped elements.
  24743. * @example
  24744. *
  24745. * var users = [
  24746. * { 'user': 'barney', 'age': 36, 'active': false },
  24747. * { 'user': 'fred', 'age': 40, 'active': true },
  24748. * { 'user': 'pebbles', 'age': 1, 'active': false }
  24749. * ];
  24750. *
  24751. * _.partition(users, function(o) { return o.active; });
  24752. * // => objects for [['fred'], ['barney', 'pebbles']]
  24753. *
  24754. * // The `_.matches` iteratee shorthand.
  24755. * _.partition(users, { 'age': 1, 'active': false });
  24756. * // => objects for [['pebbles'], ['barney', 'fred']]
  24757. *
  24758. * // The `_.matchesProperty` iteratee shorthand.
  24759. * _.partition(users, ['active', false]);
  24760. * // => objects for [['barney', 'pebbles'], ['fred']]
  24761. *
  24762. * // The `_.property` iteratee shorthand.
  24763. * _.partition(users, 'active');
  24764. * // => objects for [['fred'], ['barney', 'pebbles']]
  24765. */
  24766. var partition = createAggregator(function(result, value, key) {
  24767. result[key ? 0 : 1].push(value);
  24768. }, function() { return [[], []]; });
  24769. /**
  24770. * Reduces `collection` to a value which is the accumulated result of running
  24771. * each element in `collection` thru `iteratee`, where each successive
  24772. * invocation is supplied the return value of the previous. If `accumulator`
  24773. * is not given, the first element of `collection` is used as the initial
  24774. * value. The iteratee is invoked with four arguments:
  24775. * (accumulator, value, index|key, collection).
  24776. *
  24777. * Many lodash methods are guarded to work as iteratees for methods like
  24778. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  24779. *
  24780. * The guarded methods are:
  24781. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  24782. * and `sortBy`
  24783. *
  24784. * @static
  24785. * @memberOf _
  24786. * @since 0.1.0
  24787. * @category Collection
  24788. * @param {Array|Object} collection The collection to iterate over.
  24789. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24790. * @param {*} [accumulator] The initial value.
  24791. * @returns {*} Returns the accumulated value.
  24792. * @see _.reduceRight
  24793. * @example
  24794. *
  24795. * _.reduce([1, 2], function(sum, n) {
  24796. * return sum + n;
  24797. * }, 0);
  24798. * // => 3
  24799. *
  24800. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  24801. * (result[value] || (result[value] = [])).push(key);
  24802. * return result;
  24803. * }, {});
  24804. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  24805. */
  24806. function reduce(collection, iteratee, accumulator) {
  24807. var func = isArray(collection) ? arrayReduce : baseReduce,
  24808. initAccum = arguments.length < 3;
  24809. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  24810. }
  24811. /**
  24812. * This method is like `_.reduce` except that it iterates over elements of
  24813. * `collection` from right to left.
  24814. *
  24815. * @static
  24816. * @memberOf _
  24817. * @since 0.1.0
  24818. * @category Collection
  24819. * @param {Array|Object} collection The collection to iterate over.
  24820. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24821. * @param {*} [accumulator] The initial value.
  24822. * @returns {*} Returns the accumulated value.
  24823. * @see _.reduce
  24824. * @example
  24825. *
  24826. * var array = [[0, 1], [2, 3], [4, 5]];
  24827. *
  24828. * _.reduceRight(array, function(flattened, other) {
  24829. * return flattened.concat(other);
  24830. * }, []);
  24831. * // => [4, 5, 2, 3, 0, 1]
  24832. */
  24833. function reduceRight(collection, iteratee, accumulator) {
  24834. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  24835. initAccum = arguments.length < 3;
  24836. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  24837. }
  24838. /**
  24839. * The opposite of `_.filter`; this method returns the elements of `collection`
  24840. * that `predicate` does **not** return truthy for.
  24841. *
  24842. * @static
  24843. * @memberOf _
  24844. * @since 0.1.0
  24845. * @category Collection
  24846. * @param {Array|Object} collection The collection to iterate over.
  24847. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24848. * @returns {Array} Returns the new filtered array.
  24849. * @see _.filter
  24850. * @example
  24851. *
  24852. * var users = [
  24853. * { 'user': 'barney', 'age': 36, 'active': false },
  24854. * { 'user': 'fred', 'age': 40, 'active': true }
  24855. * ];
  24856. *
  24857. * _.reject(users, function(o) { return !o.active; });
  24858. * // => objects for ['fred']
  24859. *
  24860. * // The `_.matches` iteratee shorthand.
  24861. * _.reject(users, { 'age': 40, 'active': true });
  24862. * // => objects for ['barney']
  24863. *
  24864. * // The `_.matchesProperty` iteratee shorthand.
  24865. * _.reject(users, ['active', false]);
  24866. * // => objects for ['fred']
  24867. *
  24868. * // The `_.property` iteratee shorthand.
  24869. * _.reject(users, 'active');
  24870. * // => objects for ['barney']
  24871. */
  24872. function reject(collection, predicate) {
  24873. var func = isArray(collection) ? arrayFilter : baseFilter;
  24874. return func(collection, negate(getIteratee(predicate, 3)));
  24875. }
  24876. /**
  24877. * Gets a random element from `collection`.
  24878. *
  24879. * @static
  24880. * @memberOf _
  24881. * @since 2.0.0
  24882. * @category Collection
  24883. * @param {Array|Object} collection The collection to sample.
  24884. * @returns {*} Returns the random element.
  24885. * @example
  24886. *
  24887. * _.sample([1, 2, 3, 4]);
  24888. * // => 2
  24889. */
  24890. function sample(collection) {
  24891. var func = isArray(collection) ? arraySample : baseSample;
  24892. return func(collection);
  24893. }
  24894. /**
  24895. * Gets `n` random elements at unique keys from `collection` up to the
  24896. * size of `collection`.
  24897. *
  24898. * @static
  24899. * @memberOf _
  24900. * @since 4.0.0
  24901. * @category Collection
  24902. * @param {Array|Object} collection The collection to sample.
  24903. * @param {number} [n=1] The number of elements to sample.
  24904. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24905. * @returns {Array} Returns the random elements.
  24906. * @example
  24907. *
  24908. * _.sampleSize([1, 2, 3], 2);
  24909. * // => [3, 1]
  24910. *
  24911. * _.sampleSize([1, 2, 3], 4);
  24912. * // => [2, 3, 1]
  24913. */
  24914. function sampleSize(collection, n, guard) {
  24915. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  24916. n = 1;
  24917. } else {
  24918. n = toInteger(n);
  24919. }
  24920. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  24921. return func(collection, n);
  24922. }
  24923. /**
  24924. * Creates an array of shuffled values, using a version of the
  24925. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  24926. *
  24927. * @static
  24928. * @memberOf _
  24929. * @since 0.1.0
  24930. * @category Collection
  24931. * @param {Array|Object} collection The collection to shuffle.
  24932. * @returns {Array} Returns the new shuffled array.
  24933. * @example
  24934. *
  24935. * _.shuffle([1, 2, 3, 4]);
  24936. * // => [4, 1, 3, 2]
  24937. */
  24938. function shuffle(collection) {
  24939. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  24940. return func(collection);
  24941. }
  24942. /**
  24943. * Gets the size of `collection` by returning its length for array-like
  24944. * values or the number of own enumerable string keyed properties for objects.
  24945. *
  24946. * @static
  24947. * @memberOf _
  24948. * @since 0.1.0
  24949. * @category Collection
  24950. * @param {Array|Object|string} collection The collection to inspect.
  24951. * @returns {number} Returns the collection size.
  24952. * @example
  24953. *
  24954. * _.size([1, 2, 3]);
  24955. * // => 3
  24956. *
  24957. * _.size({ 'a': 1, 'b': 2 });
  24958. * // => 2
  24959. *
  24960. * _.size('pebbles');
  24961. * // => 7
  24962. */
  24963. function size(collection) {
  24964. if (collection == null) {
  24965. return 0;
  24966. }
  24967. if (isArrayLike(collection)) {
  24968. return isString(collection) ? stringSize(collection) : collection.length;
  24969. }
  24970. var tag = getTag(collection);
  24971. if (tag == mapTag || tag == setTag) {
  24972. return collection.size;
  24973. }
  24974. return baseKeys(collection).length;
  24975. }
  24976. /**
  24977. * Checks if `predicate` returns truthy for **any** element of `collection`.
  24978. * Iteration is stopped once `predicate` returns truthy. The predicate is
  24979. * invoked with three arguments: (value, index|key, collection).
  24980. *
  24981. * @static
  24982. * @memberOf _
  24983. * @since 0.1.0
  24984. * @category Collection
  24985. * @param {Array|Object} collection The collection to iterate over.
  24986. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24987. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24988. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24989. * else `false`.
  24990. * @example
  24991. *
  24992. * _.some([null, 0, 'yes', false], Boolean);
  24993. * // => true
  24994. *
  24995. * var users = [
  24996. * { 'user': 'barney', 'active': true },
  24997. * { 'user': 'fred', 'active': false }
  24998. * ];
  24999. *
  25000. * // The `_.matches` iteratee shorthand.
  25001. * _.some(users, { 'user': 'barney', 'active': false });
  25002. * // => false
  25003. *
  25004. * // The `_.matchesProperty` iteratee shorthand.
  25005. * _.some(users, ['active', false]);
  25006. * // => true
  25007. *
  25008. * // The `_.property` iteratee shorthand.
  25009. * _.some(users, 'active');
  25010. * // => true
  25011. */
  25012. function some(collection, predicate, guard) {
  25013. var func = isArray(collection) ? arraySome : baseSome;
  25014. if (guard && isIterateeCall(collection, predicate, guard)) {
  25015. predicate = undefined;
  25016. }
  25017. return func(collection, getIteratee(predicate, 3));
  25018. }
  25019. /**
  25020. * Creates an array of elements, sorted in ascending order by the results of
  25021. * running each element in a collection thru each iteratee. This method
  25022. * performs a stable sort, that is, it preserves the original sort order of
  25023. * equal elements. The iteratees are invoked with one argument: (value).
  25024. *
  25025. * @static
  25026. * @memberOf _
  25027. * @since 0.1.0
  25028. * @category Collection
  25029. * @param {Array|Object} collection The collection to iterate over.
  25030. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  25031. * The iteratees to sort by.
  25032. * @returns {Array} Returns the new sorted array.
  25033. * @example
  25034. *
  25035. * var users = [
  25036. * { 'user': 'fred', 'age': 48 },
  25037. * { 'user': 'barney', 'age': 36 },
  25038. * { 'user': 'fred', 'age': 40 },
  25039. * { 'user': 'barney', 'age': 34 }
  25040. * ];
  25041. *
  25042. * _.sortBy(users, [function(o) { return o.user; }]);
  25043. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  25044. *
  25045. * _.sortBy(users, ['user', 'age']);
  25046. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  25047. */
  25048. var sortBy = baseRest(function(collection, iteratees) {
  25049. if (collection == null) {
  25050. return [];
  25051. }
  25052. var length = iteratees.length;
  25053. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  25054. iteratees = [];
  25055. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  25056. iteratees = [iteratees[0]];
  25057. }
  25058. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  25059. });
  25060. /*------------------------------------------------------------------------*/
  25061. /**
  25062. * Gets the timestamp of the number of milliseconds that have elapsed since
  25063. * the Unix epoch (1 January 1970 00:00:00 UTC).
  25064. *
  25065. * @static
  25066. * @memberOf _
  25067. * @since 2.4.0
  25068. * @category Date
  25069. * @returns {number} Returns the timestamp.
  25070. * @example
  25071. *
  25072. * _.defer(function(stamp) {
  25073. * console.log(_.now() - stamp);
  25074. * }, _.now());
  25075. * // => Logs the number of milliseconds it took for the deferred invocation.
  25076. */
  25077. var now = ctxNow || function() {
  25078. return root.Date.now();
  25079. };
  25080. /*------------------------------------------------------------------------*/
  25081. /**
  25082. * The opposite of `_.before`; this method creates a function that invokes
  25083. * `func` once it's called `n` or more times.
  25084. *
  25085. * @static
  25086. * @memberOf _
  25087. * @since 0.1.0
  25088. * @category Function
  25089. * @param {number} n The number of calls before `func` is invoked.
  25090. * @param {Function} func The function to restrict.
  25091. * @returns {Function} Returns the new restricted function.
  25092. * @example
  25093. *
  25094. * var saves = ['profile', 'settings'];
  25095. *
  25096. * var done = _.after(saves.length, function() {
  25097. * console.log('done saving!');
  25098. * });
  25099. *
  25100. * _.forEach(saves, function(type) {
  25101. * asyncSave({ 'type': type, 'complete': done });
  25102. * });
  25103. * // => Logs 'done saving!' after the two async saves have completed.
  25104. */
  25105. function after(n, func) {
  25106. if (typeof func != 'function') {
  25107. throw new TypeError(FUNC_ERROR_TEXT);
  25108. }
  25109. n = toInteger(n);
  25110. return function() {
  25111. if (--n < 1) {
  25112. return func.apply(this, arguments);
  25113. }
  25114. };
  25115. }
  25116. /**
  25117. * Creates a function that invokes `func`, with up to `n` arguments,
  25118. * ignoring any additional arguments.
  25119. *
  25120. * @static
  25121. * @memberOf _
  25122. * @since 3.0.0
  25123. * @category Function
  25124. * @param {Function} func The function to cap arguments for.
  25125. * @param {number} [n=func.length] The arity cap.
  25126. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25127. * @returns {Function} Returns the new capped function.
  25128. * @example
  25129. *
  25130. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  25131. * // => [6, 8, 10]
  25132. */
  25133. function ary(func, n, guard) {
  25134. n = guard ? undefined : n;
  25135. n = (func && n == null) ? func.length : n;
  25136. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  25137. }
  25138. /**
  25139. * Creates a function that invokes `func`, with the `this` binding and arguments
  25140. * of the created function, while it's called less than `n` times. Subsequent
  25141. * calls to the created function return the result of the last `func` invocation.
  25142. *
  25143. * @static
  25144. * @memberOf _
  25145. * @since 3.0.0
  25146. * @category Function
  25147. * @param {number} n The number of calls at which `func` is no longer invoked.
  25148. * @param {Function} func The function to restrict.
  25149. * @returns {Function} Returns the new restricted function.
  25150. * @example
  25151. *
  25152. * jQuery(element).on('click', _.before(5, addContactToList));
  25153. * // => Allows adding up to 4 contacts to the list.
  25154. */
  25155. function before(n, func) {
  25156. var result;
  25157. if (typeof func != 'function') {
  25158. throw new TypeError(FUNC_ERROR_TEXT);
  25159. }
  25160. n = toInteger(n);
  25161. return function() {
  25162. if (--n > 0) {
  25163. result = func.apply(this, arguments);
  25164. }
  25165. if (n <= 1) {
  25166. func = undefined;
  25167. }
  25168. return result;
  25169. };
  25170. }
  25171. /**
  25172. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  25173. * and `partials` prepended to the arguments it receives.
  25174. *
  25175. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  25176. * may be used as a placeholder for partially applied arguments.
  25177. *
  25178. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  25179. * property of bound functions.
  25180. *
  25181. * @static
  25182. * @memberOf _
  25183. * @since 0.1.0
  25184. * @category Function
  25185. * @param {Function} func The function to bind.
  25186. * @param {*} thisArg The `this` binding of `func`.
  25187. * @param {...*} [partials] The arguments to be partially applied.
  25188. * @returns {Function} Returns the new bound function.
  25189. * @example
  25190. *
  25191. * function greet(greeting, punctuation) {
  25192. * return greeting + ' ' + this.user + punctuation;
  25193. * }
  25194. *
  25195. * var object = { 'user': 'fred' };
  25196. *
  25197. * var bound = _.bind(greet, object, 'hi');
  25198. * bound('!');
  25199. * // => 'hi fred!'
  25200. *
  25201. * // Bound with placeholders.
  25202. * var bound = _.bind(greet, object, _, '!');
  25203. * bound('hi');
  25204. * // => 'hi fred!'
  25205. */
  25206. var bind = baseRest(function(func, thisArg, partials) {
  25207. var bitmask = WRAP_BIND_FLAG;
  25208. if (partials.length) {
  25209. var holders = replaceHolders(partials, getHolder(bind));
  25210. bitmask |= WRAP_PARTIAL_FLAG;
  25211. }
  25212. return createWrap(func, bitmask, thisArg, partials, holders);
  25213. });
  25214. /**
  25215. * Creates a function that invokes the method at `object[key]` with `partials`
  25216. * prepended to the arguments it receives.
  25217. *
  25218. * This method differs from `_.bind` by allowing bound functions to reference
  25219. * methods that may be redefined or don't yet exist. See
  25220. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  25221. * for more details.
  25222. *
  25223. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  25224. * builds, may be used as a placeholder for partially applied arguments.
  25225. *
  25226. * @static
  25227. * @memberOf _
  25228. * @since 0.10.0
  25229. * @category Function
  25230. * @param {Object} object The object to invoke the method on.
  25231. * @param {string} key The key of the method.
  25232. * @param {...*} [partials] The arguments to be partially applied.
  25233. * @returns {Function} Returns the new bound function.
  25234. * @example
  25235. *
  25236. * var object = {
  25237. * 'user': 'fred',
  25238. * 'greet': function(greeting, punctuation) {
  25239. * return greeting + ' ' + this.user + punctuation;
  25240. * }
  25241. * };
  25242. *
  25243. * var bound = _.bindKey(object, 'greet', 'hi');
  25244. * bound('!');
  25245. * // => 'hi fred!'
  25246. *
  25247. * object.greet = function(greeting, punctuation) {
  25248. * return greeting + 'ya ' + this.user + punctuation;
  25249. * };
  25250. *
  25251. * bound('!');
  25252. * // => 'hiya fred!'
  25253. *
  25254. * // Bound with placeholders.
  25255. * var bound = _.bindKey(object, 'greet', _, '!');
  25256. * bound('hi');
  25257. * // => 'hiya fred!'
  25258. */
  25259. var bindKey = baseRest(function(object, key, partials) {
  25260. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  25261. if (partials.length) {
  25262. var holders = replaceHolders(partials, getHolder(bindKey));
  25263. bitmask |= WRAP_PARTIAL_FLAG;
  25264. }
  25265. return createWrap(key, bitmask, object, partials, holders);
  25266. });
  25267. /**
  25268. * Creates a function that accepts arguments of `func` and either invokes
  25269. * `func` returning its result, if at least `arity` number of arguments have
  25270. * been provided, or returns a function that accepts the remaining `func`
  25271. * arguments, and so on. The arity of `func` may be specified if `func.length`
  25272. * is not sufficient.
  25273. *
  25274. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  25275. * may be used as a placeholder for provided arguments.
  25276. *
  25277. * **Note:** This method doesn't set the "length" property of curried functions.
  25278. *
  25279. * @static
  25280. * @memberOf _
  25281. * @since 2.0.0
  25282. * @category Function
  25283. * @param {Function} func The function to curry.
  25284. * @param {number} [arity=func.length] The arity of `func`.
  25285. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25286. * @returns {Function} Returns the new curried function.
  25287. * @example
  25288. *
  25289. * var abc = function(a, b, c) {
  25290. * return [a, b, c];
  25291. * };
  25292. *
  25293. * var curried = _.curry(abc);
  25294. *
  25295. * curried(1)(2)(3);
  25296. * // => [1, 2, 3]
  25297. *
  25298. * curried(1, 2)(3);
  25299. * // => [1, 2, 3]
  25300. *
  25301. * curried(1, 2, 3);
  25302. * // => [1, 2, 3]
  25303. *
  25304. * // Curried with placeholders.
  25305. * curried(1)(_, 3)(2);
  25306. * // => [1, 2, 3]
  25307. */
  25308. function curry(func, arity, guard) {
  25309. arity = guard ? undefined : arity;
  25310. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25311. result.placeholder = curry.placeholder;
  25312. return result;
  25313. }
  25314. /**
  25315. * This method is like `_.curry` except that arguments are applied to `func`
  25316. * in the manner of `_.partialRight` instead of `_.partial`.
  25317. *
  25318. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  25319. * builds, may be used as a placeholder for provided arguments.
  25320. *
  25321. * **Note:** This method doesn't set the "length" property of curried functions.
  25322. *
  25323. * @static
  25324. * @memberOf _
  25325. * @since 3.0.0
  25326. * @category Function
  25327. * @param {Function} func The function to curry.
  25328. * @param {number} [arity=func.length] The arity of `func`.
  25329. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25330. * @returns {Function} Returns the new curried function.
  25331. * @example
  25332. *
  25333. * var abc = function(a, b, c) {
  25334. * return [a, b, c];
  25335. * };
  25336. *
  25337. * var curried = _.curryRight(abc);
  25338. *
  25339. * curried(3)(2)(1);
  25340. * // => [1, 2, 3]
  25341. *
  25342. * curried(2, 3)(1);
  25343. * // => [1, 2, 3]
  25344. *
  25345. * curried(1, 2, 3);
  25346. * // => [1, 2, 3]
  25347. *
  25348. * // Curried with placeholders.
  25349. * curried(3)(1, _)(2);
  25350. * // => [1, 2, 3]
  25351. */
  25352. function curryRight(func, arity, guard) {
  25353. arity = guard ? undefined : arity;
  25354. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25355. result.placeholder = curryRight.placeholder;
  25356. return result;
  25357. }
  25358. /**
  25359. * Creates a debounced function that delays invoking `func` until after `wait`
  25360. * milliseconds have elapsed since the last time the debounced function was
  25361. * invoked. The debounced function comes with a `cancel` method to cancel
  25362. * delayed `func` invocations and a `flush` method to immediately invoke them.
  25363. * Provide `options` to indicate whether `func` should be invoked on the
  25364. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  25365. * with the last arguments provided to the debounced function. Subsequent
  25366. * calls to the debounced function return the result of the last `func`
  25367. * invocation.
  25368. *
  25369. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25370. * invoked on the trailing edge of the timeout only if the debounced function
  25371. * is invoked more than once during the `wait` timeout.
  25372. *
  25373. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25374. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25375. *
  25376. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25377. * for details over the differences between `_.debounce` and `_.throttle`.
  25378. *
  25379. * @static
  25380. * @memberOf _
  25381. * @since 0.1.0
  25382. * @category Function
  25383. * @param {Function} func The function to debounce.
  25384. * @param {number} [wait=0] The number of milliseconds to delay.
  25385. * @param {Object} [options={}] The options object.
  25386. * @param {boolean} [options.leading=false]
  25387. * Specify invoking on the leading edge of the timeout.
  25388. * @param {number} [options.maxWait]
  25389. * The maximum time `func` is allowed to be delayed before it's invoked.
  25390. * @param {boolean} [options.trailing=true]
  25391. * Specify invoking on the trailing edge of the timeout.
  25392. * @returns {Function} Returns the new debounced function.
  25393. * @example
  25394. *
  25395. * // Avoid costly calculations while the window size is in flux.
  25396. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  25397. *
  25398. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  25399. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  25400. * 'leading': true,
  25401. * 'trailing': false
  25402. * }));
  25403. *
  25404. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  25405. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  25406. * var source = new EventSource('/stream');
  25407. * jQuery(source).on('message', debounced);
  25408. *
  25409. * // Cancel the trailing debounced invocation.
  25410. * jQuery(window).on('popstate', debounced.cancel);
  25411. */
  25412. function debounce(func, wait, options) {
  25413. var lastArgs,
  25414. lastThis,
  25415. maxWait,
  25416. result,
  25417. timerId,
  25418. lastCallTime,
  25419. lastInvokeTime = 0,
  25420. leading = false,
  25421. maxing = false,
  25422. trailing = true;
  25423. if (typeof func != 'function') {
  25424. throw new TypeError(FUNC_ERROR_TEXT);
  25425. }
  25426. wait = toNumber(wait) || 0;
  25427. if (isObject(options)) {
  25428. leading = !!options.leading;
  25429. maxing = 'maxWait' in options;
  25430. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  25431. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25432. }
  25433. function invokeFunc(time) {
  25434. var args = lastArgs,
  25435. thisArg = lastThis;
  25436. lastArgs = lastThis = undefined;
  25437. lastInvokeTime = time;
  25438. result = func.apply(thisArg, args);
  25439. return result;
  25440. }
  25441. function leadingEdge(time) {
  25442. // Reset any `maxWait` timer.
  25443. lastInvokeTime = time;
  25444. // Start the timer for the trailing edge.
  25445. timerId = setTimeout(timerExpired, wait);
  25446. // Invoke the leading edge.
  25447. return leading ? invokeFunc(time) : result;
  25448. }
  25449. function remainingWait(time) {
  25450. var timeSinceLastCall = time - lastCallTime,
  25451. timeSinceLastInvoke = time - lastInvokeTime,
  25452. timeWaiting = wait - timeSinceLastCall;
  25453. return maxing
  25454. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  25455. : timeWaiting;
  25456. }
  25457. function shouldInvoke(time) {
  25458. var timeSinceLastCall = time - lastCallTime,
  25459. timeSinceLastInvoke = time - lastInvokeTime;
  25460. // Either this is the first call, activity has stopped and we're at the
  25461. // trailing edge, the system time has gone backwards and we're treating
  25462. // it as the trailing edge, or we've hit the `maxWait` limit.
  25463. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  25464. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  25465. }
  25466. function timerExpired() {
  25467. var time = now();
  25468. if (shouldInvoke(time)) {
  25469. return trailingEdge(time);
  25470. }
  25471. // Restart the timer.
  25472. timerId = setTimeout(timerExpired, remainingWait(time));
  25473. }
  25474. function trailingEdge(time) {
  25475. timerId = undefined;
  25476. // Only invoke if we have `lastArgs` which means `func` has been
  25477. // debounced at least once.
  25478. if (trailing && lastArgs) {
  25479. return invokeFunc(time);
  25480. }
  25481. lastArgs = lastThis = undefined;
  25482. return result;
  25483. }
  25484. function cancel() {
  25485. if (timerId !== undefined) {
  25486. clearTimeout(timerId);
  25487. }
  25488. lastInvokeTime = 0;
  25489. lastArgs = lastCallTime = lastThis = timerId = undefined;
  25490. }
  25491. function flush() {
  25492. return timerId === undefined ? result : trailingEdge(now());
  25493. }
  25494. function debounced() {
  25495. var time = now(),
  25496. isInvoking = shouldInvoke(time);
  25497. lastArgs = arguments;
  25498. lastThis = this;
  25499. lastCallTime = time;
  25500. if (isInvoking) {
  25501. if (timerId === undefined) {
  25502. return leadingEdge(lastCallTime);
  25503. }
  25504. if (maxing) {
  25505. // Handle invocations in a tight loop.
  25506. clearTimeout(timerId);
  25507. timerId = setTimeout(timerExpired, wait);
  25508. return invokeFunc(lastCallTime);
  25509. }
  25510. }
  25511. if (timerId === undefined) {
  25512. timerId = setTimeout(timerExpired, wait);
  25513. }
  25514. return result;
  25515. }
  25516. debounced.cancel = cancel;
  25517. debounced.flush = flush;
  25518. return debounced;
  25519. }
  25520. /**
  25521. * Defers invoking the `func` until the current call stack has cleared. Any
  25522. * additional arguments are provided to `func` when it's invoked.
  25523. *
  25524. * @static
  25525. * @memberOf _
  25526. * @since 0.1.0
  25527. * @category Function
  25528. * @param {Function} func The function to defer.
  25529. * @param {...*} [args] The arguments to invoke `func` with.
  25530. * @returns {number} Returns the timer id.
  25531. * @example
  25532. *
  25533. * _.defer(function(text) {
  25534. * console.log(text);
  25535. * }, 'deferred');
  25536. * // => Logs 'deferred' after one millisecond.
  25537. */
  25538. var defer = baseRest(function(func, args) {
  25539. return baseDelay(func, 1, args);
  25540. });
  25541. /**
  25542. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  25543. * provided to `func` when it's invoked.
  25544. *
  25545. * @static
  25546. * @memberOf _
  25547. * @since 0.1.0
  25548. * @category Function
  25549. * @param {Function} func The function to delay.
  25550. * @param {number} wait The number of milliseconds to delay invocation.
  25551. * @param {...*} [args] The arguments to invoke `func` with.
  25552. * @returns {number} Returns the timer id.
  25553. * @example
  25554. *
  25555. * _.delay(function(text) {
  25556. * console.log(text);
  25557. * }, 1000, 'later');
  25558. * // => Logs 'later' after one second.
  25559. */
  25560. var delay = baseRest(function(func, wait, args) {
  25561. return baseDelay(func, toNumber(wait) || 0, args);
  25562. });
  25563. /**
  25564. * Creates a function that invokes `func` with arguments reversed.
  25565. *
  25566. * @static
  25567. * @memberOf _
  25568. * @since 4.0.0
  25569. * @category Function
  25570. * @param {Function} func The function to flip arguments for.
  25571. * @returns {Function} Returns the new flipped function.
  25572. * @example
  25573. *
  25574. * var flipped = _.flip(function() {
  25575. * return _.toArray(arguments);
  25576. * });
  25577. *
  25578. * flipped('a', 'b', 'c', 'd');
  25579. * // => ['d', 'c', 'b', 'a']
  25580. */
  25581. function flip(func) {
  25582. return createWrap(func, WRAP_FLIP_FLAG);
  25583. }
  25584. /**
  25585. * Creates a function that memoizes the result of `func`. If `resolver` is
  25586. * provided, it determines the cache key for storing the result based on the
  25587. * arguments provided to the memoized function. By default, the first argument
  25588. * provided to the memoized function is used as the map cache key. The `func`
  25589. * is invoked with the `this` binding of the memoized function.
  25590. *
  25591. * **Note:** The cache is exposed as the `cache` property on the memoized
  25592. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  25593. * constructor with one whose instances implement the
  25594. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  25595. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  25596. *
  25597. * @static
  25598. * @memberOf _
  25599. * @since 0.1.0
  25600. * @category Function
  25601. * @param {Function} func The function to have its output memoized.
  25602. * @param {Function} [resolver] The function to resolve the cache key.
  25603. * @returns {Function} Returns the new memoized function.
  25604. * @example
  25605. *
  25606. * var object = { 'a': 1, 'b': 2 };
  25607. * var other = { 'c': 3, 'd': 4 };
  25608. *
  25609. * var values = _.memoize(_.values);
  25610. * values(object);
  25611. * // => [1, 2]
  25612. *
  25613. * values(other);
  25614. * // => [3, 4]
  25615. *
  25616. * object.a = 2;
  25617. * values(object);
  25618. * // => [1, 2]
  25619. *
  25620. * // Modify the result cache.
  25621. * values.cache.set(object, ['a', 'b']);
  25622. * values(object);
  25623. * // => ['a', 'b']
  25624. *
  25625. * // Replace `_.memoize.Cache`.
  25626. * _.memoize.Cache = WeakMap;
  25627. */
  25628. function memoize(func, resolver) {
  25629. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  25630. throw new TypeError(FUNC_ERROR_TEXT);
  25631. }
  25632. var memoized = function() {
  25633. var args = arguments,
  25634. key = resolver ? resolver.apply(this, args) : args[0],
  25635. cache = memoized.cache;
  25636. if (cache.has(key)) {
  25637. return cache.get(key);
  25638. }
  25639. var result = func.apply(this, args);
  25640. memoized.cache = cache.set(key, result) || cache;
  25641. return result;
  25642. };
  25643. memoized.cache = new (memoize.Cache || MapCache);
  25644. return memoized;
  25645. }
  25646. // Expose `MapCache`.
  25647. memoize.Cache = MapCache;
  25648. /**
  25649. * Creates a function that negates the result of the predicate `func`. The
  25650. * `func` predicate is invoked with the `this` binding and arguments of the
  25651. * created function.
  25652. *
  25653. * @static
  25654. * @memberOf _
  25655. * @since 3.0.0
  25656. * @category Function
  25657. * @param {Function} predicate The predicate to negate.
  25658. * @returns {Function} Returns the new negated function.
  25659. * @example
  25660. *
  25661. * function isEven(n) {
  25662. * return n % 2 == 0;
  25663. * }
  25664. *
  25665. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  25666. * // => [1, 3, 5]
  25667. */
  25668. function negate(predicate) {
  25669. if (typeof predicate != 'function') {
  25670. throw new TypeError(FUNC_ERROR_TEXT);
  25671. }
  25672. return function() {
  25673. var args = arguments;
  25674. switch (args.length) {
  25675. case 0: return !predicate.call(this);
  25676. case 1: return !predicate.call(this, args[0]);
  25677. case 2: return !predicate.call(this, args[0], args[1]);
  25678. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  25679. }
  25680. return !predicate.apply(this, args);
  25681. };
  25682. }
  25683. /**
  25684. * Creates a function that is restricted to invoking `func` once. Repeat calls
  25685. * to the function return the value of the first invocation. The `func` is
  25686. * invoked with the `this` binding and arguments of the created function.
  25687. *
  25688. * @static
  25689. * @memberOf _
  25690. * @since 0.1.0
  25691. * @category Function
  25692. * @param {Function} func The function to restrict.
  25693. * @returns {Function} Returns the new restricted function.
  25694. * @example
  25695. *
  25696. * var initialize = _.once(createApplication);
  25697. * initialize();
  25698. * initialize();
  25699. * // => `createApplication` is invoked once
  25700. */
  25701. function once(func) {
  25702. return before(2, func);
  25703. }
  25704. /**
  25705. * Creates a function that invokes `func` with its arguments transformed.
  25706. *
  25707. * @static
  25708. * @since 4.0.0
  25709. * @memberOf _
  25710. * @category Function
  25711. * @param {Function} func The function to wrap.
  25712. * @param {...(Function|Function[])} [transforms=[_.identity]]
  25713. * The argument transforms.
  25714. * @returns {Function} Returns the new function.
  25715. * @example
  25716. *
  25717. * function doubled(n) {
  25718. * return n * 2;
  25719. * }
  25720. *
  25721. * function square(n) {
  25722. * return n * n;
  25723. * }
  25724. *
  25725. * var func = _.overArgs(function(x, y) {
  25726. * return [x, y];
  25727. * }, [square, doubled]);
  25728. *
  25729. * func(9, 3);
  25730. * // => [81, 6]
  25731. *
  25732. * func(10, 5);
  25733. * // => [100, 10]
  25734. */
  25735. var overArgs = castRest(function(func, transforms) {
  25736. transforms = (transforms.length == 1 && isArray(transforms[0]))
  25737. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  25738. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  25739. var funcsLength = transforms.length;
  25740. return baseRest(function(args) {
  25741. var index = -1,
  25742. length = nativeMin(args.length, funcsLength);
  25743. while (++index < length) {
  25744. args[index] = transforms[index].call(this, args[index]);
  25745. }
  25746. return apply(func, this, args);
  25747. });
  25748. });
  25749. /**
  25750. * Creates a function that invokes `func` with `partials` prepended to the
  25751. * arguments it receives. This method is like `_.bind` except it does **not**
  25752. * alter the `this` binding.
  25753. *
  25754. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  25755. * builds, may be used as a placeholder for partially applied arguments.
  25756. *
  25757. * **Note:** This method doesn't set the "length" property of partially
  25758. * applied functions.
  25759. *
  25760. * @static
  25761. * @memberOf _
  25762. * @since 0.2.0
  25763. * @category Function
  25764. * @param {Function} func The function to partially apply arguments to.
  25765. * @param {...*} [partials] The arguments to be partially applied.
  25766. * @returns {Function} Returns the new partially applied function.
  25767. * @example
  25768. *
  25769. * function greet(greeting, name) {
  25770. * return greeting + ' ' + name;
  25771. * }
  25772. *
  25773. * var sayHelloTo = _.partial(greet, 'hello');
  25774. * sayHelloTo('fred');
  25775. * // => 'hello fred'
  25776. *
  25777. * // Partially applied with placeholders.
  25778. * var greetFred = _.partial(greet, _, 'fred');
  25779. * greetFred('hi');
  25780. * // => 'hi fred'
  25781. */
  25782. var partial = baseRest(function(func, partials) {
  25783. var holders = replaceHolders(partials, getHolder(partial));
  25784. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  25785. });
  25786. /**
  25787. * This method is like `_.partial` except that partially applied arguments
  25788. * are appended to the arguments it receives.
  25789. *
  25790. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  25791. * builds, may be used as a placeholder for partially applied arguments.
  25792. *
  25793. * **Note:** This method doesn't set the "length" property of partially
  25794. * applied functions.
  25795. *
  25796. * @static
  25797. * @memberOf _
  25798. * @since 1.0.0
  25799. * @category Function
  25800. * @param {Function} func The function to partially apply arguments to.
  25801. * @param {...*} [partials] The arguments to be partially applied.
  25802. * @returns {Function} Returns the new partially applied function.
  25803. * @example
  25804. *
  25805. * function greet(greeting, name) {
  25806. * return greeting + ' ' + name;
  25807. * }
  25808. *
  25809. * var greetFred = _.partialRight(greet, 'fred');
  25810. * greetFred('hi');
  25811. * // => 'hi fred'
  25812. *
  25813. * // Partially applied with placeholders.
  25814. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  25815. * sayHelloTo('fred');
  25816. * // => 'hello fred'
  25817. */
  25818. var partialRight = baseRest(function(func, partials) {
  25819. var holders = replaceHolders(partials, getHolder(partialRight));
  25820. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  25821. });
  25822. /**
  25823. * Creates a function that invokes `func` with arguments arranged according
  25824. * to the specified `indexes` where the argument value at the first index is
  25825. * provided as the first argument, the argument value at the second index is
  25826. * provided as the second argument, and so on.
  25827. *
  25828. * @static
  25829. * @memberOf _
  25830. * @since 3.0.0
  25831. * @category Function
  25832. * @param {Function} func The function to rearrange arguments for.
  25833. * @param {...(number|number[])} indexes The arranged argument indexes.
  25834. * @returns {Function} Returns the new function.
  25835. * @example
  25836. *
  25837. * var rearged = _.rearg(function(a, b, c) {
  25838. * return [a, b, c];
  25839. * }, [2, 0, 1]);
  25840. *
  25841. * rearged('b', 'c', 'a')
  25842. * // => ['a', 'b', 'c']
  25843. */
  25844. var rearg = flatRest(function(func, indexes) {
  25845. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  25846. });
  25847. /**
  25848. * Creates a function that invokes `func` with the `this` binding of the
  25849. * created function and arguments from `start` and beyond provided as
  25850. * an array.
  25851. *
  25852. * **Note:** This method is based on the
  25853. * [rest parameter](https://mdn.io/rest_parameters).
  25854. *
  25855. * @static
  25856. * @memberOf _
  25857. * @since 4.0.0
  25858. * @category Function
  25859. * @param {Function} func The function to apply a rest parameter to.
  25860. * @param {number} [start=func.length-1] The start position of the rest parameter.
  25861. * @returns {Function} Returns the new function.
  25862. * @example
  25863. *
  25864. * var say = _.rest(function(what, names) {
  25865. * return what + ' ' + _.initial(names).join(', ') +
  25866. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  25867. * });
  25868. *
  25869. * say('hello', 'fred', 'barney', 'pebbles');
  25870. * // => 'hello fred, barney, & pebbles'
  25871. */
  25872. function rest(func, start) {
  25873. if (typeof func != 'function') {
  25874. throw new TypeError(FUNC_ERROR_TEXT);
  25875. }
  25876. start = start === undefined ? start : toInteger(start);
  25877. return baseRest(func, start);
  25878. }
  25879. /**
  25880. * Creates a function that invokes `func` with the `this` binding of the
  25881. * create function and an array of arguments much like
  25882. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  25883. *
  25884. * **Note:** This method is based on the
  25885. * [spread operator](https://mdn.io/spread_operator).
  25886. *
  25887. * @static
  25888. * @memberOf _
  25889. * @since 3.2.0
  25890. * @category Function
  25891. * @param {Function} func The function to spread arguments over.
  25892. * @param {number} [start=0] The start position of the spread.
  25893. * @returns {Function} Returns the new function.
  25894. * @example
  25895. *
  25896. * var say = _.spread(function(who, what) {
  25897. * return who + ' says ' + what;
  25898. * });
  25899. *
  25900. * say(['fred', 'hello']);
  25901. * // => 'fred says hello'
  25902. *
  25903. * var numbers = Promise.all([
  25904. * Promise.resolve(40),
  25905. * Promise.resolve(36)
  25906. * ]);
  25907. *
  25908. * numbers.then(_.spread(function(x, y) {
  25909. * return x + y;
  25910. * }));
  25911. * // => a Promise of 76
  25912. */
  25913. function spread(func, start) {
  25914. if (typeof func != 'function') {
  25915. throw new TypeError(FUNC_ERROR_TEXT);
  25916. }
  25917. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  25918. return baseRest(function(args) {
  25919. var array = args[start],
  25920. otherArgs = castSlice(args, 0, start);
  25921. if (array) {
  25922. arrayPush(otherArgs, array);
  25923. }
  25924. return apply(func, this, otherArgs);
  25925. });
  25926. }
  25927. /**
  25928. * Creates a throttled function that only invokes `func` at most once per
  25929. * every `wait` milliseconds. The throttled function comes with a `cancel`
  25930. * method to cancel delayed `func` invocations and a `flush` method to
  25931. * immediately invoke them. Provide `options` to indicate whether `func`
  25932. * should be invoked on the leading and/or trailing edge of the `wait`
  25933. * timeout. The `func` is invoked with the last arguments provided to the
  25934. * throttled function. Subsequent calls to the throttled function return the
  25935. * result of the last `func` invocation.
  25936. *
  25937. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25938. * invoked on the trailing edge of the timeout only if the throttled function
  25939. * is invoked more than once during the `wait` timeout.
  25940. *
  25941. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25942. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25943. *
  25944. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25945. * for details over the differences between `_.throttle` and `_.debounce`.
  25946. *
  25947. * @static
  25948. * @memberOf _
  25949. * @since 0.1.0
  25950. * @category Function
  25951. * @param {Function} func The function to throttle.
  25952. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  25953. * @param {Object} [options={}] The options object.
  25954. * @param {boolean} [options.leading=true]
  25955. * Specify invoking on the leading edge of the timeout.
  25956. * @param {boolean} [options.trailing=true]
  25957. * Specify invoking on the trailing edge of the timeout.
  25958. * @returns {Function} Returns the new throttled function.
  25959. * @example
  25960. *
  25961. * // Avoid excessively updating the position while scrolling.
  25962. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  25963. *
  25964. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  25965. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  25966. * jQuery(element).on('click', throttled);
  25967. *
  25968. * // Cancel the trailing throttled invocation.
  25969. * jQuery(window).on('popstate', throttled.cancel);
  25970. */
  25971. function throttle(func, wait, options) {
  25972. var leading = true,
  25973. trailing = true;
  25974. if (typeof func != 'function') {
  25975. throw new TypeError(FUNC_ERROR_TEXT);
  25976. }
  25977. if (isObject(options)) {
  25978. leading = 'leading' in options ? !!options.leading : leading;
  25979. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25980. }
  25981. return debounce(func, wait, {
  25982. 'leading': leading,
  25983. 'maxWait': wait,
  25984. 'trailing': trailing
  25985. });
  25986. }
  25987. /**
  25988. * Creates a function that accepts up to one argument, ignoring any
  25989. * additional arguments.
  25990. *
  25991. * @static
  25992. * @memberOf _
  25993. * @since 4.0.0
  25994. * @category Function
  25995. * @param {Function} func The function to cap arguments for.
  25996. * @returns {Function} Returns the new capped function.
  25997. * @example
  25998. *
  25999. * _.map(['6', '8', '10'], _.unary(parseInt));
  26000. * // => [6, 8, 10]
  26001. */
  26002. function unary(func) {
  26003. return ary(func, 1);
  26004. }
  26005. /**
  26006. * Creates a function that provides `value` to `wrapper` as its first
  26007. * argument. Any additional arguments provided to the function are appended
  26008. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  26009. * binding of the created function.
  26010. *
  26011. * @static
  26012. * @memberOf _
  26013. * @since 0.1.0
  26014. * @category Function
  26015. * @param {*} value The value to wrap.
  26016. * @param {Function} [wrapper=identity] The wrapper function.
  26017. * @returns {Function} Returns the new function.
  26018. * @example
  26019. *
  26020. * var p = _.wrap(_.escape, function(func, text) {
  26021. * return '<p>' + func(text) + '</p>';
  26022. * });
  26023. *
  26024. * p('fred, barney, & pebbles');
  26025. * // => '<p>fred, barney, &amp; pebbles</p>'
  26026. */
  26027. function wrap(value, wrapper) {
  26028. return partial(castFunction(wrapper), value);
  26029. }
  26030. /*------------------------------------------------------------------------*/
  26031. /**
  26032. * Casts `value` as an array if it's not one.
  26033. *
  26034. * @static
  26035. * @memberOf _
  26036. * @since 4.4.0
  26037. * @category Lang
  26038. * @param {*} value The value to inspect.
  26039. * @returns {Array} Returns the cast array.
  26040. * @example
  26041. *
  26042. * _.castArray(1);
  26043. * // => [1]
  26044. *
  26045. * _.castArray({ 'a': 1 });
  26046. * // => [{ 'a': 1 }]
  26047. *
  26048. * _.castArray('abc');
  26049. * // => ['abc']
  26050. *
  26051. * _.castArray(null);
  26052. * // => [null]
  26053. *
  26054. * _.castArray(undefined);
  26055. * // => [undefined]
  26056. *
  26057. * _.castArray();
  26058. * // => []
  26059. *
  26060. * var array = [1, 2, 3];
  26061. * console.log(_.castArray(array) === array);
  26062. * // => true
  26063. */
  26064. function castArray() {
  26065. if (!arguments.length) {
  26066. return [];
  26067. }
  26068. var value = arguments[0];
  26069. return isArray(value) ? value : [value];
  26070. }
  26071. /**
  26072. * Creates a shallow clone of `value`.
  26073. *
  26074. * **Note:** This method is loosely based on the
  26075. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  26076. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  26077. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  26078. * arrays. The own enumerable properties of `arguments` objects are cloned
  26079. * as plain objects. An empty object is returned for uncloneable values such
  26080. * as error objects, functions, DOM nodes, and WeakMaps.
  26081. *
  26082. * @static
  26083. * @memberOf _
  26084. * @since 0.1.0
  26085. * @category Lang
  26086. * @param {*} value The value to clone.
  26087. * @returns {*} Returns the cloned value.
  26088. * @see _.cloneDeep
  26089. * @example
  26090. *
  26091. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26092. *
  26093. * var shallow = _.clone(objects);
  26094. * console.log(shallow[0] === objects[0]);
  26095. * // => true
  26096. */
  26097. function clone(value) {
  26098. return baseClone(value, CLONE_SYMBOLS_FLAG);
  26099. }
  26100. /**
  26101. * This method is like `_.clone` except that it accepts `customizer` which
  26102. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  26103. * cloning is handled by the method instead. The `customizer` is invoked with
  26104. * up to four arguments; (value [, index|key, object, stack]).
  26105. *
  26106. * @static
  26107. * @memberOf _
  26108. * @since 4.0.0
  26109. * @category Lang
  26110. * @param {*} value The value to clone.
  26111. * @param {Function} [customizer] The function to customize cloning.
  26112. * @returns {*} Returns the cloned value.
  26113. * @see _.cloneDeepWith
  26114. * @example
  26115. *
  26116. * function customizer(value) {
  26117. * if (_.isElement(value)) {
  26118. * return value.cloneNode(false);
  26119. * }
  26120. * }
  26121. *
  26122. * var el = _.cloneWith(document.body, customizer);
  26123. *
  26124. * console.log(el === document.body);
  26125. * // => false
  26126. * console.log(el.nodeName);
  26127. * // => 'BODY'
  26128. * console.log(el.childNodes.length);
  26129. * // => 0
  26130. */
  26131. function cloneWith(value, customizer) {
  26132. customizer = typeof customizer == 'function' ? customizer : undefined;
  26133. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  26134. }
  26135. /**
  26136. * This method is like `_.clone` except that it recursively clones `value`.
  26137. *
  26138. * @static
  26139. * @memberOf _
  26140. * @since 1.0.0
  26141. * @category Lang
  26142. * @param {*} value The value to recursively clone.
  26143. * @returns {*} Returns the deep cloned value.
  26144. * @see _.clone
  26145. * @example
  26146. *
  26147. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26148. *
  26149. * var deep = _.cloneDeep(objects);
  26150. * console.log(deep[0] === objects[0]);
  26151. * // => false
  26152. */
  26153. function cloneDeep(value) {
  26154. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  26155. }
  26156. /**
  26157. * This method is like `_.cloneWith` except that it recursively clones `value`.
  26158. *
  26159. * @static
  26160. * @memberOf _
  26161. * @since 4.0.0
  26162. * @category Lang
  26163. * @param {*} value The value to recursively clone.
  26164. * @param {Function} [customizer] The function to customize cloning.
  26165. * @returns {*} Returns the deep cloned value.
  26166. * @see _.cloneWith
  26167. * @example
  26168. *
  26169. * function customizer(value) {
  26170. * if (_.isElement(value)) {
  26171. * return value.cloneNode(true);
  26172. * }
  26173. * }
  26174. *
  26175. * var el = _.cloneDeepWith(document.body, customizer);
  26176. *
  26177. * console.log(el === document.body);
  26178. * // => false
  26179. * console.log(el.nodeName);
  26180. * // => 'BODY'
  26181. * console.log(el.childNodes.length);
  26182. * // => 20
  26183. */
  26184. function cloneDeepWith(value, customizer) {
  26185. customizer = typeof customizer == 'function' ? customizer : undefined;
  26186. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  26187. }
  26188. /**
  26189. * Checks if `object` conforms to `source` by invoking the predicate
  26190. * properties of `source` with the corresponding property values of `object`.
  26191. *
  26192. * **Note:** This method is equivalent to `_.conforms` when `source` is
  26193. * partially applied.
  26194. *
  26195. * @static
  26196. * @memberOf _
  26197. * @since 4.14.0
  26198. * @category Lang
  26199. * @param {Object} object The object to inspect.
  26200. * @param {Object} source The object of property predicates to conform to.
  26201. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  26202. * @example
  26203. *
  26204. * var object = { 'a': 1, 'b': 2 };
  26205. *
  26206. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  26207. * // => true
  26208. *
  26209. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  26210. * // => false
  26211. */
  26212. function conformsTo(object, source) {
  26213. return source == null || baseConformsTo(object, source, keys(source));
  26214. }
  26215. /**
  26216. * Performs a
  26217. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26218. * comparison between two values to determine if they are equivalent.
  26219. *
  26220. * @static
  26221. * @memberOf _
  26222. * @since 4.0.0
  26223. * @category Lang
  26224. * @param {*} value The value to compare.
  26225. * @param {*} other The other value to compare.
  26226. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26227. * @example
  26228. *
  26229. * var object = { 'a': 1 };
  26230. * var other = { 'a': 1 };
  26231. *
  26232. * _.eq(object, object);
  26233. * // => true
  26234. *
  26235. * _.eq(object, other);
  26236. * // => false
  26237. *
  26238. * _.eq('a', 'a');
  26239. * // => true
  26240. *
  26241. * _.eq('a', Object('a'));
  26242. * // => false
  26243. *
  26244. * _.eq(NaN, NaN);
  26245. * // => true
  26246. */
  26247. function eq(value, other) {
  26248. return value === other || (value !== value && other !== other);
  26249. }
  26250. /**
  26251. * Checks if `value` is greater than `other`.
  26252. *
  26253. * @static
  26254. * @memberOf _
  26255. * @since 3.9.0
  26256. * @category Lang
  26257. * @param {*} value The value to compare.
  26258. * @param {*} other The other value to compare.
  26259. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  26260. * else `false`.
  26261. * @see _.lt
  26262. * @example
  26263. *
  26264. * _.gt(3, 1);
  26265. * // => true
  26266. *
  26267. * _.gt(3, 3);
  26268. * // => false
  26269. *
  26270. * _.gt(1, 3);
  26271. * // => false
  26272. */
  26273. var gt = createRelationalOperation(baseGt);
  26274. /**
  26275. * Checks if `value` is greater than or equal to `other`.
  26276. *
  26277. * @static
  26278. * @memberOf _
  26279. * @since 3.9.0
  26280. * @category Lang
  26281. * @param {*} value The value to compare.
  26282. * @param {*} other The other value to compare.
  26283. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  26284. * `other`, else `false`.
  26285. * @see _.lte
  26286. * @example
  26287. *
  26288. * _.gte(3, 1);
  26289. * // => true
  26290. *
  26291. * _.gte(3, 3);
  26292. * // => true
  26293. *
  26294. * _.gte(1, 3);
  26295. * // => false
  26296. */
  26297. var gte = createRelationalOperation(function(value, other) {
  26298. return value >= other;
  26299. });
  26300. /**
  26301. * Checks if `value` is likely an `arguments` object.
  26302. *
  26303. * @static
  26304. * @memberOf _
  26305. * @since 0.1.0
  26306. * @category Lang
  26307. * @param {*} value The value to check.
  26308. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  26309. * else `false`.
  26310. * @example
  26311. *
  26312. * _.isArguments(function() { return arguments; }());
  26313. * // => true
  26314. *
  26315. * _.isArguments([1, 2, 3]);
  26316. * // => false
  26317. */
  26318. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  26319. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  26320. !propertyIsEnumerable.call(value, 'callee');
  26321. };
  26322. /**
  26323. * Checks if `value` is classified as an `Array` object.
  26324. *
  26325. * @static
  26326. * @memberOf _
  26327. * @since 0.1.0
  26328. * @category Lang
  26329. * @param {*} value The value to check.
  26330. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  26331. * @example
  26332. *
  26333. * _.isArray([1, 2, 3]);
  26334. * // => true
  26335. *
  26336. * _.isArray(document.body.children);
  26337. * // => false
  26338. *
  26339. * _.isArray('abc');
  26340. * // => false
  26341. *
  26342. * _.isArray(_.noop);
  26343. * // => false
  26344. */
  26345. var isArray = Array.isArray;
  26346. /**
  26347. * Checks if `value` is classified as an `ArrayBuffer` object.
  26348. *
  26349. * @static
  26350. * @memberOf _
  26351. * @since 4.3.0
  26352. * @category Lang
  26353. * @param {*} value The value to check.
  26354. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  26355. * @example
  26356. *
  26357. * _.isArrayBuffer(new ArrayBuffer(2));
  26358. * // => true
  26359. *
  26360. * _.isArrayBuffer(new Array(2));
  26361. * // => false
  26362. */
  26363. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  26364. /**
  26365. * Checks if `value` is array-like. A value is considered array-like if it's
  26366. * not a function and has a `value.length` that's an integer greater than or
  26367. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  26368. *
  26369. * @static
  26370. * @memberOf _
  26371. * @since 4.0.0
  26372. * @category Lang
  26373. * @param {*} value The value to check.
  26374. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  26375. * @example
  26376. *
  26377. * _.isArrayLike([1, 2, 3]);
  26378. * // => true
  26379. *
  26380. * _.isArrayLike(document.body.children);
  26381. * // => true
  26382. *
  26383. * _.isArrayLike('abc');
  26384. * // => true
  26385. *
  26386. * _.isArrayLike(_.noop);
  26387. * // => false
  26388. */
  26389. function isArrayLike(value) {
  26390. return value != null && isLength(value.length) && !isFunction(value);
  26391. }
  26392. /**
  26393. * This method is like `_.isArrayLike` except that it also checks if `value`
  26394. * is an object.
  26395. *
  26396. * @static
  26397. * @memberOf _
  26398. * @since 4.0.0
  26399. * @category Lang
  26400. * @param {*} value The value to check.
  26401. * @returns {boolean} Returns `true` if `value` is an array-like object,
  26402. * else `false`.
  26403. * @example
  26404. *
  26405. * _.isArrayLikeObject([1, 2, 3]);
  26406. * // => true
  26407. *
  26408. * _.isArrayLikeObject(document.body.children);
  26409. * // => true
  26410. *
  26411. * _.isArrayLikeObject('abc');
  26412. * // => false
  26413. *
  26414. * _.isArrayLikeObject(_.noop);
  26415. * // => false
  26416. */
  26417. function isArrayLikeObject(value) {
  26418. return isObjectLike(value) && isArrayLike(value);
  26419. }
  26420. /**
  26421. * Checks if `value` is classified as a boolean primitive or object.
  26422. *
  26423. * @static
  26424. * @memberOf _
  26425. * @since 0.1.0
  26426. * @category Lang
  26427. * @param {*} value The value to check.
  26428. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  26429. * @example
  26430. *
  26431. * _.isBoolean(false);
  26432. * // => true
  26433. *
  26434. * _.isBoolean(null);
  26435. * // => false
  26436. */
  26437. function isBoolean(value) {
  26438. return value === true || value === false ||
  26439. (isObjectLike(value) && baseGetTag(value) == boolTag);
  26440. }
  26441. /**
  26442. * Checks if `value` is a buffer.
  26443. *
  26444. * @static
  26445. * @memberOf _
  26446. * @since 4.3.0
  26447. * @category Lang
  26448. * @param {*} value The value to check.
  26449. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  26450. * @example
  26451. *
  26452. * _.isBuffer(new Buffer(2));
  26453. * // => true
  26454. *
  26455. * _.isBuffer(new Uint8Array(2));
  26456. * // => false
  26457. */
  26458. var isBuffer = nativeIsBuffer || stubFalse;
  26459. /**
  26460. * Checks if `value` is classified as a `Date` object.
  26461. *
  26462. * @static
  26463. * @memberOf _
  26464. * @since 0.1.0
  26465. * @category Lang
  26466. * @param {*} value The value to check.
  26467. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  26468. * @example
  26469. *
  26470. * _.isDate(new Date);
  26471. * // => true
  26472. *
  26473. * _.isDate('Mon April 23 2012');
  26474. * // => false
  26475. */
  26476. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  26477. /**
  26478. * Checks if `value` is likely a DOM element.
  26479. *
  26480. * @static
  26481. * @memberOf _
  26482. * @since 0.1.0
  26483. * @category Lang
  26484. * @param {*} value The value to check.
  26485. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  26486. * @example
  26487. *
  26488. * _.isElement(document.body);
  26489. * // => true
  26490. *
  26491. * _.isElement('<body>');
  26492. * // => false
  26493. */
  26494. function isElement(value) {
  26495. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  26496. }
  26497. /**
  26498. * Checks if `value` is an empty object, collection, map, or set.
  26499. *
  26500. * Objects are considered empty if they have no own enumerable string keyed
  26501. * properties.
  26502. *
  26503. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  26504. * jQuery-like collections are considered empty if they have a `length` of `0`.
  26505. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  26506. *
  26507. * @static
  26508. * @memberOf _
  26509. * @since 0.1.0
  26510. * @category Lang
  26511. * @param {*} value The value to check.
  26512. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  26513. * @example
  26514. *
  26515. * _.isEmpty(null);
  26516. * // => true
  26517. *
  26518. * _.isEmpty(true);
  26519. * // => true
  26520. *
  26521. * _.isEmpty(1);
  26522. * // => true
  26523. *
  26524. * _.isEmpty([1, 2, 3]);
  26525. * // => false
  26526. *
  26527. * _.isEmpty({ 'a': 1 });
  26528. * // => false
  26529. */
  26530. function isEmpty(value) {
  26531. if (value == null) {
  26532. return true;
  26533. }
  26534. if (isArrayLike(value) &&
  26535. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  26536. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  26537. return !value.length;
  26538. }
  26539. var tag = getTag(value);
  26540. if (tag == mapTag || tag == setTag) {
  26541. return !value.size;
  26542. }
  26543. if (isPrototype(value)) {
  26544. return !baseKeys(value).length;
  26545. }
  26546. for (var key in value) {
  26547. if (hasOwnProperty.call(value, key)) {
  26548. return false;
  26549. }
  26550. }
  26551. return true;
  26552. }
  26553. /**
  26554. * Performs a deep comparison between two values to determine if they are
  26555. * equivalent.
  26556. *
  26557. * **Note:** This method supports comparing arrays, array buffers, booleans,
  26558. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  26559. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  26560. * by their own, not inherited, enumerable properties. Functions and DOM
  26561. * nodes are compared by strict equality, i.e. `===`.
  26562. *
  26563. * @static
  26564. * @memberOf _
  26565. * @since 0.1.0
  26566. * @category Lang
  26567. * @param {*} value The value to compare.
  26568. * @param {*} other The other value to compare.
  26569. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26570. * @example
  26571. *
  26572. * var object = { 'a': 1 };
  26573. * var other = { 'a': 1 };
  26574. *
  26575. * _.isEqual(object, other);
  26576. * // => true
  26577. *
  26578. * object === other;
  26579. * // => false
  26580. */
  26581. function isEqual(value, other) {
  26582. return baseIsEqual(value, other);
  26583. }
  26584. /**
  26585. * This method is like `_.isEqual` except that it accepts `customizer` which
  26586. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26587. * are handled by the method instead. The `customizer` is invoked with up to
  26588. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  26589. *
  26590. * @static
  26591. * @memberOf _
  26592. * @since 4.0.0
  26593. * @category Lang
  26594. * @param {*} value The value to compare.
  26595. * @param {*} other The other value to compare.
  26596. * @param {Function} [customizer] The function to customize comparisons.
  26597. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26598. * @example
  26599. *
  26600. * function isGreeting(value) {
  26601. * return /^h(?:i|ello)$/.test(value);
  26602. * }
  26603. *
  26604. * function customizer(objValue, othValue) {
  26605. * if (isGreeting(objValue) && isGreeting(othValue)) {
  26606. * return true;
  26607. * }
  26608. * }
  26609. *
  26610. * var array = ['hello', 'goodbye'];
  26611. * var other = ['hi', 'goodbye'];
  26612. *
  26613. * _.isEqualWith(array, other, customizer);
  26614. * // => true
  26615. */
  26616. function isEqualWith(value, other, customizer) {
  26617. customizer = typeof customizer == 'function' ? customizer : undefined;
  26618. var result = customizer ? customizer(value, other) : undefined;
  26619. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  26620. }
  26621. /**
  26622. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  26623. * `SyntaxError`, `TypeError`, or `URIError` object.
  26624. *
  26625. * @static
  26626. * @memberOf _
  26627. * @since 3.0.0
  26628. * @category Lang
  26629. * @param {*} value The value to check.
  26630. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  26631. * @example
  26632. *
  26633. * _.isError(new Error);
  26634. * // => true
  26635. *
  26636. * _.isError(Error);
  26637. * // => false
  26638. */
  26639. function isError(value) {
  26640. if (!isObjectLike(value)) {
  26641. return false;
  26642. }
  26643. var tag = baseGetTag(value);
  26644. return tag == errorTag || tag == domExcTag ||
  26645. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  26646. }
  26647. /**
  26648. * Checks if `value` is a finite primitive number.
  26649. *
  26650. * **Note:** This method is based on
  26651. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  26652. *
  26653. * @static
  26654. * @memberOf _
  26655. * @since 0.1.0
  26656. * @category Lang
  26657. * @param {*} value The value to check.
  26658. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  26659. * @example
  26660. *
  26661. * _.isFinite(3);
  26662. * // => true
  26663. *
  26664. * _.isFinite(Number.MIN_VALUE);
  26665. * // => true
  26666. *
  26667. * _.isFinite(Infinity);
  26668. * // => false
  26669. *
  26670. * _.isFinite('3');
  26671. * // => false
  26672. */
  26673. function isFinite(value) {
  26674. return typeof value == 'number' && nativeIsFinite(value);
  26675. }
  26676. /**
  26677. * Checks if `value` is classified as a `Function` object.
  26678. *
  26679. * @static
  26680. * @memberOf _
  26681. * @since 0.1.0
  26682. * @category Lang
  26683. * @param {*} value The value to check.
  26684. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  26685. * @example
  26686. *
  26687. * _.isFunction(_);
  26688. * // => true
  26689. *
  26690. * _.isFunction(/abc/);
  26691. * // => false
  26692. */
  26693. function isFunction(value) {
  26694. if (!isObject(value)) {
  26695. return false;
  26696. }
  26697. // The use of `Object#toString` avoids issues with the `typeof` operator
  26698. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  26699. var tag = baseGetTag(value);
  26700. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  26701. }
  26702. /**
  26703. * Checks if `value` is an integer.
  26704. *
  26705. * **Note:** This method is based on
  26706. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  26707. *
  26708. * @static
  26709. * @memberOf _
  26710. * @since 4.0.0
  26711. * @category Lang
  26712. * @param {*} value The value to check.
  26713. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  26714. * @example
  26715. *
  26716. * _.isInteger(3);
  26717. * // => true
  26718. *
  26719. * _.isInteger(Number.MIN_VALUE);
  26720. * // => false
  26721. *
  26722. * _.isInteger(Infinity);
  26723. * // => false
  26724. *
  26725. * _.isInteger('3');
  26726. * // => false
  26727. */
  26728. function isInteger(value) {
  26729. return typeof value == 'number' && value == toInteger(value);
  26730. }
  26731. /**
  26732. * Checks if `value` is a valid array-like length.
  26733. *
  26734. * **Note:** This method is loosely based on
  26735. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  26736. *
  26737. * @static
  26738. * @memberOf _
  26739. * @since 4.0.0
  26740. * @category Lang
  26741. * @param {*} value The value to check.
  26742. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  26743. * @example
  26744. *
  26745. * _.isLength(3);
  26746. * // => true
  26747. *
  26748. * _.isLength(Number.MIN_VALUE);
  26749. * // => false
  26750. *
  26751. * _.isLength(Infinity);
  26752. * // => false
  26753. *
  26754. * _.isLength('3');
  26755. * // => false
  26756. */
  26757. function isLength(value) {
  26758. return typeof value == 'number' &&
  26759. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  26760. }
  26761. /**
  26762. * Checks if `value` is the
  26763. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  26764. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  26765. *
  26766. * @static
  26767. * @memberOf _
  26768. * @since 0.1.0
  26769. * @category Lang
  26770. * @param {*} value The value to check.
  26771. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  26772. * @example
  26773. *
  26774. * _.isObject({});
  26775. * // => true
  26776. *
  26777. * _.isObject([1, 2, 3]);
  26778. * // => true
  26779. *
  26780. * _.isObject(_.noop);
  26781. * // => true
  26782. *
  26783. * _.isObject(null);
  26784. * // => false
  26785. */
  26786. function isObject(value) {
  26787. var type = typeof value;
  26788. return value != null && (type == 'object' || type == 'function');
  26789. }
  26790. /**
  26791. * Checks if `value` is object-like. A value is object-like if it's not `null`
  26792. * and has a `typeof` result of "object".
  26793. *
  26794. * @static
  26795. * @memberOf _
  26796. * @since 4.0.0
  26797. * @category Lang
  26798. * @param {*} value The value to check.
  26799. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  26800. * @example
  26801. *
  26802. * _.isObjectLike({});
  26803. * // => true
  26804. *
  26805. * _.isObjectLike([1, 2, 3]);
  26806. * // => true
  26807. *
  26808. * _.isObjectLike(_.noop);
  26809. * // => false
  26810. *
  26811. * _.isObjectLike(null);
  26812. * // => false
  26813. */
  26814. function isObjectLike(value) {
  26815. return value != null && typeof value == 'object';
  26816. }
  26817. /**
  26818. * Checks if `value` is classified as a `Map` object.
  26819. *
  26820. * @static
  26821. * @memberOf _
  26822. * @since 4.3.0
  26823. * @category Lang
  26824. * @param {*} value The value to check.
  26825. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  26826. * @example
  26827. *
  26828. * _.isMap(new Map);
  26829. * // => true
  26830. *
  26831. * _.isMap(new WeakMap);
  26832. * // => false
  26833. */
  26834. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  26835. /**
  26836. * Performs a partial deep comparison between `object` and `source` to
  26837. * determine if `object` contains equivalent property values.
  26838. *
  26839. * **Note:** This method is equivalent to `_.matches` when `source` is
  26840. * partially applied.
  26841. *
  26842. * Partial comparisons will match empty array and empty object `source`
  26843. * values against any array or object value, respectively. See `_.isEqual`
  26844. * for a list of supported value comparisons.
  26845. *
  26846. * @static
  26847. * @memberOf _
  26848. * @since 3.0.0
  26849. * @category Lang
  26850. * @param {Object} object The object to inspect.
  26851. * @param {Object} source The object of property values to match.
  26852. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26853. * @example
  26854. *
  26855. * var object = { 'a': 1, 'b': 2 };
  26856. *
  26857. * _.isMatch(object, { 'b': 2 });
  26858. * // => true
  26859. *
  26860. * _.isMatch(object, { 'b': 1 });
  26861. * // => false
  26862. */
  26863. function isMatch(object, source) {
  26864. return object === source || baseIsMatch(object, source, getMatchData(source));
  26865. }
  26866. /**
  26867. * This method is like `_.isMatch` except that it accepts `customizer` which
  26868. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26869. * are handled by the method instead. The `customizer` is invoked with five
  26870. * arguments: (objValue, srcValue, index|key, object, source).
  26871. *
  26872. * @static
  26873. * @memberOf _
  26874. * @since 4.0.0
  26875. * @category Lang
  26876. * @param {Object} object The object to inspect.
  26877. * @param {Object} source The object of property values to match.
  26878. * @param {Function} [customizer] The function to customize comparisons.
  26879. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26880. * @example
  26881. *
  26882. * function isGreeting(value) {
  26883. * return /^h(?:i|ello)$/.test(value);
  26884. * }
  26885. *
  26886. * function customizer(objValue, srcValue) {
  26887. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  26888. * return true;
  26889. * }
  26890. * }
  26891. *
  26892. * var object = { 'greeting': 'hello' };
  26893. * var source = { 'greeting': 'hi' };
  26894. *
  26895. * _.isMatchWith(object, source, customizer);
  26896. * // => true
  26897. */
  26898. function isMatchWith(object, source, customizer) {
  26899. customizer = typeof customizer == 'function' ? customizer : undefined;
  26900. return baseIsMatch(object, source, getMatchData(source), customizer);
  26901. }
  26902. /**
  26903. * Checks if `value` is `NaN`.
  26904. *
  26905. * **Note:** This method is based on
  26906. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  26907. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  26908. * `undefined` and other non-number values.
  26909. *
  26910. * @static
  26911. * @memberOf _
  26912. * @since 0.1.0
  26913. * @category Lang
  26914. * @param {*} value The value to check.
  26915. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  26916. * @example
  26917. *
  26918. * _.isNaN(NaN);
  26919. * // => true
  26920. *
  26921. * _.isNaN(new Number(NaN));
  26922. * // => true
  26923. *
  26924. * isNaN(undefined);
  26925. * // => true
  26926. *
  26927. * _.isNaN(undefined);
  26928. * // => false
  26929. */
  26930. function isNaN(value) {
  26931. // An `NaN` primitive is the only value that is not equal to itself.
  26932. // Perform the `toStringTag` check first to avoid errors with some
  26933. // ActiveX objects in IE.
  26934. return isNumber(value) && value != +value;
  26935. }
  26936. /**
  26937. * Checks if `value` is a pristine native function.
  26938. *
  26939. * **Note:** This method can't reliably detect native functions in the presence
  26940. * of the core-js package because core-js circumvents this kind of detection.
  26941. * Despite multiple requests, the core-js maintainer has made it clear: any
  26942. * attempt to fix the detection will be obstructed. As a result, we're left
  26943. * with little choice but to throw an error. Unfortunately, this also affects
  26944. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  26945. * which rely on core-js.
  26946. *
  26947. * @static
  26948. * @memberOf _
  26949. * @since 3.0.0
  26950. * @category Lang
  26951. * @param {*} value The value to check.
  26952. * @returns {boolean} Returns `true` if `value` is a native function,
  26953. * else `false`.
  26954. * @example
  26955. *
  26956. * _.isNative(Array.prototype.push);
  26957. * // => true
  26958. *
  26959. * _.isNative(_);
  26960. * // => false
  26961. */
  26962. function isNative(value) {
  26963. if (isMaskable(value)) {
  26964. throw new Error(CORE_ERROR_TEXT);
  26965. }
  26966. return baseIsNative(value);
  26967. }
  26968. /**
  26969. * Checks if `value` is `null`.
  26970. *
  26971. * @static
  26972. * @memberOf _
  26973. * @since 0.1.0
  26974. * @category Lang
  26975. * @param {*} value The value to check.
  26976. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  26977. * @example
  26978. *
  26979. * _.isNull(null);
  26980. * // => true
  26981. *
  26982. * _.isNull(void 0);
  26983. * // => false
  26984. */
  26985. function isNull(value) {
  26986. return value === null;
  26987. }
  26988. /**
  26989. * Checks if `value` is `null` or `undefined`.
  26990. *
  26991. * @static
  26992. * @memberOf _
  26993. * @since 4.0.0
  26994. * @category Lang
  26995. * @param {*} value The value to check.
  26996. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  26997. * @example
  26998. *
  26999. * _.isNil(null);
  27000. * // => true
  27001. *
  27002. * _.isNil(void 0);
  27003. * // => true
  27004. *
  27005. * _.isNil(NaN);
  27006. * // => false
  27007. */
  27008. function isNil(value) {
  27009. return value == null;
  27010. }
  27011. /**
  27012. * Checks if `value` is classified as a `Number` primitive or object.
  27013. *
  27014. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  27015. * classified as numbers, use the `_.isFinite` method.
  27016. *
  27017. * @static
  27018. * @memberOf _
  27019. * @since 0.1.0
  27020. * @category Lang
  27021. * @param {*} value The value to check.
  27022. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  27023. * @example
  27024. *
  27025. * _.isNumber(3);
  27026. * // => true
  27027. *
  27028. * _.isNumber(Number.MIN_VALUE);
  27029. * // => true
  27030. *
  27031. * _.isNumber(Infinity);
  27032. * // => true
  27033. *
  27034. * _.isNumber('3');
  27035. * // => false
  27036. */
  27037. function isNumber(value) {
  27038. return typeof value == 'number' ||
  27039. (isObjectLike(value) && baseGetTag(value) == numberTag);
  27040. }
  27041. /**
  27042. * Checks if `value` is a plain object, that is, an object created by the
  27043. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  27044. *
  27045. * @static
  27046. * @memberOf _
  27047. * @since 0.8.0
  27048. * @category Lang
  27049. * @param {*} value The value to check.
  27050. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  27051. * @example
  27052. *
  27053. * function Foo() {
  27054. * this.a = 1;
  27055. * }
  27056. *
  27057. * _.isPlainObject(new Foo);
  27058. * // => false
  27059. *
  27060. * _.isPlainObject([1, 2, 3]);
  27061. * // => false
  27062. *
  27063. * _.isPlainObject({ 'x': 0, 'y': 0 });
  27064. * // => true
  27065. *
  27066. * _.isPlainObject(Object.create(null));
  27067. * // => true
  27068. */
  27069. function isPlainObject(value) {
  27070. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  27071. return false;
  27072. }
  27073. var proto = getPrototype(value);
  27074. if (proto === null) {
  27075. return true;
  27076. }
  27077. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  27078. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  27079. funcToString.call(Ctor) == objectCtorString;
  27080. }
  27081. /**
  27082. * Checks if `value` is classified as a `RegExp` object.
  27083. *
  27084. * @static
  27085. * @memberOf _
  27086. * @since 0.1.0
  27087. * @category Lang
  27088. * @param {*} value The value to check.
  27089. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  27090. * @example
  27091. *
  27092. * _.isRegExp(/abc/);
  27093. * // => true
  27094. *
  27095. * _.isRegExp('/abc/');
  27096. * // => false
  27097. */
  27098. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  27099. /**
  27100. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  27101. * double precision number which isn't the result of a rounded unsafe integer.
  27102. *
  27103. * **Note:** This method is based on
  27104. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  27105. *
  27106. * @static
  27107. * @memberOf _
  27108. * @since 4.0.0
  27109. * @category Lang
  27110. * @param {*} value The value to check.
  27111. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  27112. * @example
  27113. *
  27114. * _.isSafeInteger(3);
  27115. * // => true
  27116. *
  27117. * _.isSafeInteger(Number.MIN_VALUE);
  27118. * // => false
  27119. *
  27120. * _.isSafeInteger(Infinity);
  27121. * // => false
  27122. *
  27123. * _.isSafeInteger('3');
  27124. * // => false
  27125. */
  27126. function isSafeInteger(value) {
  27127. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  27128. }
  27129. /**
  27130. * Checks if `value` is classified as a `Set` object.
  27131. *
  27132. * @static
  27133. * @memberOf _
  27134. * @since 4.3.0
  27135. * @category Lang
  27136. * @param {*} value The value to check.
  27137. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  27138. * @example
  27139. *
  27140. * _.isSet(new Set);
  27141. * // => true
  27142. *
  27143. * _.isSet(new WeakSet);
  27144. * // => false
  27145. */
  27146. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  27147. /**
  27148. * Checks if `value` is classified as a `String` primitive or object.
  27149. *
  27150. * @static
  27151. * @since 0.1.0
  27152. * @memberOf _
  27153. * @category Lang
  27154. * @param {*} value The value to check.
  27155. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  27156. * @example
  27157. *
  27158. * _.isString('abc');
  27159. * // => true
  27160. *
  27161. * _.isString(1);
  27162. * // => false
  27163. */
  27164. function isString(value) {
  27165. return typeof value == 'string' ||
  27166. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  27167. }
  27168. /**
  27169. * Checks if `value` is classified as a `Symbol` primitive or object.
  27170. *
  27171. * @static
  27172. * @memberOf _
  27173. * @since 4.0.0
  27174. * @category Lang
  27175. * @param {*} value The value to check.
  27176. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  27177. * @example
  27178. *
  27179. * _.isSymbol(Symbol.iterator);
  27180. * // => true
  27181. *
  27182. * _.isSymbol('abc');
  27183. * // => false
  27184. */
  27185. function isSymbol(value) {
  27186. return typeof value == 'symbol' ||
  27187. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  27188. }
  27189. /**
  27190. * Checks if `value` is classified as a typed array.
  27191. *
  27192. * @static
  27193. * @memberOf _
  27194. * @since 3.0.0
  27195. * @category Lang
  27196. * @param {*} value The value to check.
  27197. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  27198. * @example
  27199. *
  27200. * _.isTypedArray(new Uint8Array);
  27201. * // => true
  27202. *
  27203. * _.isTypedArray([]);
  27204. * // => false
  27205. */
  27206. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  27207. /**
  27208. * Checks if `value` is `undefined`.
  27209. *
  27210. * @static
  27211. * @since 0.1.0
  27212. * @memberOf _
  27213. * @category Lang
  27214. * @param {*} value The value to check.
  27215. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  27216. * @example
  27217. *
  27218. * _.isUndefined(void 0);
  27219. * // => true
  27220. *
  27221. * _.isUndefined(null);
  27222. * // => false
  27223. */
  27224. function isUndefined(value) {
  27225. return value === undefined;
  27226. }
  27227. /**
  27228. * Checks if `value` is classified as a `WeakMap` object.
  27229. *
  27230. * @static
  27231. * @memberOf _
  27232. * @since 4.3.0
  27233. * @category Lang
  27234. * @param {*} value The value to check.
  27235. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  27236. * @example
  27237. *
  27238. * _.isWeakMap(new WeakMap);
  27239. * // => true
  27240. *
  27241. * _.isWeakMap(new Map);
  27242. * // => false
  27243. */
  27244. function isWeakMap(value) {
  27245. return isObjectLike(value) && getTag(value) == weakMapTag;
  27246. }
  27247. /**
  27248. * Checks if `value` is classified as a `WeakSet` object.
  27249. *
  27250. * @static
  27251. * @memberOf _
  27252. * @since 4.3.0
  27253. * @category Lang
  27254. * @param {*} value The value to check.
  27255. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  27256. * @example
  27257. *
  27258. * _.isWeakSet(new WeakSet);
  27259. * // => true
  27260. *
  27261. * _.isWeakSet(new Set);
  27262. * // => false
  27263. */
  27264. function isWeakSet(value) {
  27265. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  27266. }
  27267. /**
  27268. * Checks if `value` is less than `other`.
  27269. *
  27270. * @static
  27271. * @memberOf _
  27272. * @since 3.9.0
  27273. * @category Lang
  27274. * @param {*} value The value to compare.
  27275. * @param {*} other The other value to compare.
  27276. * @returns {boolean} Returns `true` if `value` is less than `other`,
  27277. * else `false`.
  27278. * @see _.gt
  27279. * @example
  27280. *
  27281. * _.lt(1, 3);
  27282. * // => true
  27283. *
  27284. * _.lt(3, 3);
  27285. * // => false
  27286. *
  27287. * _.lt(3, 1);
  27288. * // => false
  27289. */
  27290. var lt = createRelationalOperation(baseLt);
  27291. /**
  27292. * Checks if `value` is less than or equal to `other`.
  27293. *
  27294. * @static
  27295. * @memberOf _
  27296. * @since 3.9.0
  27297. * @category Lang
  27298. * @param {*} value The value to compare.
  27299. * @param {*} other The other value to compare.
  27300. * @returns {boolean} Returns `true` if `value` is less than or equal to
  27301. * `other`, else `false`.
  27302. * @see _.gte
  27303. * @example
  27304. *
  27305. * _.lte(1, 3);
  27306. * // => true
  27307. *
  27308. * _.lte(3, 3);
  27309. * // => true
  27310. *
  27311. * _.lte(3, 1);
  27312. * // => false
  27313. */
  27314. var lte = createRelationalOperation(function(value, other) {
  27315. return value <= other;
  27316. });
  27317. /**
  27318. * Converts `value` to an array.
  27319. *
  27320. * @static
  27321. * @since 0.1.0
  27322. * @memberOf _
  27323. * @category Lang
  27324. * @param {*} value The value to convert.
  27325. * @returns {Array} Returns the converted array.
  27326. * @example
  27327. *
  27328. * _.toArray({ 'a': 1, 'b': 2 });
  27329. * // => [1, 2]
  27330. *
  27331. * _.toArray('abc');
  27332. * // => ['a', 'b', 'c']
  27333. *
  27334. * _.toArray(1);
  27335. * // => []
  27336. *
  27337. * _.toArray(null);
  27338. * // => []
  27339. */
  27340. function toArray(value) {
  27341. if (!value) {
  27342. return [];
  27343. }
  27344. if (isArrayLike(value)) {
  27345. return isString(value) ? stringToArray(value) : copyArray(value);
  27346. }
  27347. if (symIterator && value[symIterator]) {
  27348. return iteratorToArray(value[symIterator]());
  27349. }
  27350. var tag = getTag(value),
  27351. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  27352. return func(value);
  27353. }
  27354. /**
  27355. * Converts `value` to a finite number.
  27356. *
  27357. * @static
  27358. * @memberOf _
  27359. * @since 4.12.0
  27360. * @category Lang
  27361. * @param {*} value The value to convert.
  27362. * @returns {number} Returns the converted number.
  27363. * @example
  27364. *
  27365. * _.toFinite(3.2);
  27366. * // => 3.2
  27367. *
  27368. * _.toFinite(Number.MIN_VALUE);
  27369. * // => 5e-324
  27370. *
  27371. * _.toFinite(Infinity);
  27372. * // => 1.7976931348623157e+308
  27373. *
  27374. * _.toFinite('3.2');
  27375. * // => 3.2
  27376. */
  27377. function toFinite(value) {
  27378. if (!value) {
  27379. return value === 0 ? value : 0;
  27380. }
  27381. value = toNumber(value);
  27382. if (value === INFINITY || value === -INFINITY) {
  27383. var sign = (value < 0 ? -1 : 1);
  27384. return sign * MAX_INTEGER;
  27385. }
  27386. return value === value ? value : 0;
  27387. }
  27388. /**
  27389. * Converts `value` to an integer.
  27390. *
  27391. * **Note:** This method is loosely based on
  27392. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  27393. *
  27394. * @static
  27395. * @memberOf _
  27396. * @since 4.0.0
  27397. * @category Lang
  27398. * @param {*} value The value to convert.
  27399. * @returns {number} Returns the converted integer.
  27400. * @example
  27401. *
  27402. * _.toInteger(3.2);
  27403. * // => 3
  27404. *
  27405. * _.toInteger(Number.MIN_VALUE);
  27406. * // => 0
  27407. *
  27408. * _.toInteger(Infinity);
  27409. * // => 1.7976931348623157e+308
  27410. *
  27411. * _.toInteger('3.2');
  27412. * // => 3
  27413. */
  27414. function toInteger(value) {
  27415. var result = toFinite(value),
  27416. remainder = result % 1;
  27417. return result === result ? (remainder ? result - remainder : result) : 0;
  27418. }
  27419. /**
  27420. * Converts `value` to an integer suitable for use as the length of an
  27421. * array-like object.
  27422. *
  27423. * **Note:** This method is based on
  27424. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  27425. *
  27426. * @static
  27427. * @memberOf _
  27428. * @since 4.0.0
  27429. * @category Lang
  27430. * @param {*} value The value to convert.
  27431. * @returns {number} Returns the converted integer.
  27432. * @example
  27433. *
  27434. * _.toLength(3.2);
  27435. * // => 3
  27436. *
  27437. * _.toLength(Number.MIN_VALUE);
  27438. * // => 0
  27439. *
  27440. * _.toLength(Infinity);
  27441. * // => 4294967295
  27442. *
  27443. * _.toLength('3.2');
  27444. * // => 3
  27445. */
  27446. function toLength(value) {
  27447. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  27448. }
  27449. /**
  27450. * Converts `value` to a number.
  27451. *
  27452. * @static
  27453. * @memberOf _
  27454. * @since 4.0.0
  27455. * @category Lang
  27456. * @param {*} value The value to process.
  27457. * @returns {number} Returns the number.
  27458. * @example
  27459. *
  27460. * _.toNumber(3.2);
  27461. * // => 3.2
  27462. *
  27463. * _.toNumber(Number.MIN_VALUE);
  27464. * // => 5e-324
  27465. *
  27466. * _.toNumber(Infinity);
  27467. * // => Infinity
  27468. *
  27469. * _.toNumber('3.2');
  27470. * // => 3.2
  27471. */
  27472. function toNumber(value) {
  27473. if (typeof value == 'number') {
  27474. return value;
  27475. }
  27476. if (isSymbol(value)) {
  27477. return NAN;
  27478. }
  27479. if (isObject(value)) {
  27480. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  27481. value = isObject(other) ? (other + '') : other;
  27482. }
  27483. if (typeof value != 'string') {
  27484. return value === 0 ? value : +value;
  27485. }
  27486. value = value.replace(reTrim, '');
  27487. var isBinary = reIsBinary.test(value);
  27488. return (isBinary || reIsOctal.test(value))
  27489. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  27490. : (reIsBadHex.test(value) ? NAN : +value);
  27491. }
  27492. /**
  27493. * Converts `value` to a plain object flattening inherited enumerable string
  27494. * keyed properties of `value` to own properties of the plain object.
  27495. *
  27496. * @static
  27497. * @memberOf _
  27498. * @since 3.0.0
  27499. * @category Lang
  27500. * @param {*} value The value to convert.
  27501. * @returns {Object} Returns the converted plain object.
  27502. * @example
  27503. *
  27504. * function Foo() {
  27505. * this.b = 2;
  27506. * }
  27507. *
  27508. * Foo.prototype.c = 3;
  27509. *
  27510. * _.assign({ 'a': 1 }, new Foo);
  27511. * // => { 'a': 1, 'b': 2 }
  27512. *
  27513. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  27514. * // => { 'a': 1, 'b': 2, 'c': 3 }
  27515. */
  27516. function toPlainObject(value) {
  27517. return copyObject(value, keysIn(value));
  27518. }
  27519. /**
  27520. * Converts `value` to a safe integer. A safe integer can be compared and
  27521. * represented correctly.
  27522. *
  27523. * @static
  27524. * @memberOf _
  27525. * @since 4.0.0
  27526. * @category Lang
  27527. * @param {*} value The value to convert.
  27528. * @returns {number} Returns the converted integer.
  27529. * @example
  27530. *
  27531. * _.toSafeInteger(3.2);
  27532. * // => 3
  27533. *
  27534. * _.toSafeInteger(Number.MIN_VALUE);
  27535. * // => 0
  27536. *
  27537. * _.toSafeInteger(Infinity);
  27538. * // => 9007199254740991
  27539. *
  27540. * _.toSafeInteger('3.2');
  27541. * // => 3
  27542. */
  27543. function toSafeInteger(value) {
  27544. return value
  27545. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  27546. : (value === 0 ? value : 0);
  27547. }
  27548. /**
  27549. * Converts `value` to a string. An empty string is returned for `null`
  27550. * and `undefined` values. The sign of `-0` is preserved.
  27551. *
  27552. * @static
  27553. * @memberOf _
  27554. * @since 4.0.0
  27555. * @category Lang
  27556. * @param {*} value The value to convert.
  27557. * @returns {string} Returns the converted string.
  27558. * @example
  27559. *
  27560. * _.toString(null);
  27561. * // => ''
  27562. *
  27563. * _.toString(-0);
  27564. * // => '-0'
  27565. *
  27566. * _.toString([1, 2, 3]);
  27567. * // => '1,2,3'
  27568. */
  27569. function toString(value) {
  27570. return value == null ? '' : baseToString(value);
  27571. }
  27572. /*------------------------------------------------------------------------*/
  27573. /**
  27574. * Assigns own enumerable string keyed properties of source objects to the
  27575. * destination object. Source objects are applied from left to right.
  27576. * Subsequent sources overwrite property assignments of previous sources.
  27577. *
  27578. * **Note:** This method mutates `object` and is loosely based on
  27579. * [`Object.assign`](https://mdn.io/Object/assign).
  27580. *
  27581. * @static
  27582. * @memberOf _
  27583. * @since 0.10.0
  27584. * @category Object
  27585. * @param {Object} object The destination object.
  27586. * @param {...Object} [sources] The source objects.
  27587. * @returns {Object} Returns `object`.
  27588. * @see _.assignIn
  27589. * @example
  27590. *
  27591. * function Foo() {
  27592. * this.a = 1;
  27593. * }
  27594. *
  27595. * function Bar() {
  27596. * this.c = 3;
  27597. * }
  27598. *
  27599. * Foo.prototype.b = 2;
  27600. * Bar.prototype.d = 4;
  27601. *
  27602. * _.assign({ 'a': 0 }, new Foo, new Bar);
  27603. * // => { 'a': 1, 'c': 3 }
  27604. */
  27605. var assign = createAssigner(function(object, source) {
  27606. if (isPrototype(source) || isArrayLike(source)) {
  27607. copyObject(source, keys(source), object);
  27608. return;
  27609. }
  27610. for (var key in source) {
  27611. if (hasOwnProperty.call(source, key)) {
  27612. assignValue(object, key, source[key]);
  27613. }
  27614. }
  27615. });
  27616. /**
  27617. * This method is like `_.assign` except that it iterates over own and
  27618. * inherited source properties.
  27619. *
  27620. * **Note:** This method mutates `object`.
  27621. *
  27622. * @static
  27623. * @memberOf _
  27624. * @since 4.0.0
  27625. * @alias extend
  27626. * @category Object
  27627. * @param {Object} object The destination object.
  27628. * @param {...Object} [sources] The source objects.
  27629. * @returns {Object} Returns `object`.
  27630. * @see _.assign
  27631. * @example
  27632. *
  27633. * function Foo() {
  27634. * this.a = 1;
  27635. * }
  27636. *
  27637. * function Bar() {
  27638. * this.c = 3;
  27639. * }
  27640. *
  27641. * Foo.prototype.b = 2;
  27642. * Bar.prototype.d = 4;
  27643. *
  27644. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  27645. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  27646. */
  27647. var assignIn = createAssigner(function(object, source) {
  27648. copyObject(source, keysIn(source), object);
  27649. });
  27650. /**
  27651. * This method is like `_.assignIn` except that it accepts `customizer`
  27652. * which is invoked to produce the assigned values. If `customizer` returns
  27653. * `undefined`, assignment is handled by the method instead. The `customizer`
  27654. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27655. *
  27656. * **Note:** This method mutates `object`.
  27657. *
  27658. * @static
  27659. * @memberOf _
  27660. * @since 4.0.0
  27661. * @alias extendWith
  27662. * @category Object
  27663. * @param {Object} object The destination object.
  27664. * @param {...Object} sources The source objects.
  27665. * @param {Function} [customizer] The function to customize assigned values.
  27666. * @returns {Object} Returns `object`.
  27667. * @see _.assignWith
  27668. * @example
  27669. *
  27670. * function customizer(objValue, srcValue) {
  27671. * return _.isUndefined(objValue) ? srcValue : objValue;
  27672. * }
  27673. *
  27674. * var defaults = _.partialRight(_.assignInWith, customizer);
  27675. *
  27676. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27677. * // => { 'a': 1, 'b': 2 }
  27678. */
  27679. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  27680. copyObject(source, keysIn(source), object, customizer);
  27681. });
  27682. /**
  27683. * This method is like `_.assign` except that it accepts `customizer`
  27684. * which is invoked to produce the assigned values. If `customizer` returns
  27685. * `undefined`, assignment is handled by the method instead. The `customizer`
  27686. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27687. *
  27688. * **Note:** This method mutates `object`.
  27689. *
  27690. * @static
  27691. * @memberOf _
  27692. * @since 4.0.0
  27693. * @category Object
  27694. * @param {Object} object The destination object.
  27695. * @param {...Object} sources The source objects.
  27696. * @param {Function} [customizer] The function to customize assigned values.
  27697. * @returns {Object} Returns `object`.
  27698. * @see _.assignInWith
  27699. * @example
  27700. *
  27701. * function customizer(objValue, srcValue) {
  27702. * return _.isUndefined(objValue) ? srcValue : objValue;
  27703. * }
  27704. *
  27705. * var defaults = _.partialRight(_.assignWith, customizer);
  27706. *
  27707. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27708. * // => { 'a': 1, 'b': 2 }
  27709. */
  27710. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  27711. copyObject(source, keys(source), object, customizer);
  27712. });
  27713. /**
  27714. * Creates an array of values corresponding to `paths` of `object`.
  27715. *
  27716. * @static
  27717. * @memberOf _
  27718. * @since 1.0.0
  27719. * @category Object
  27720. * @param {Object} object The object to iterate over.
  27721. * @param {...(string|string[])} [paths] The property paths to pick.
  27722. * @returns {Array} Returns the picked values.
  27723. * @example
  27724. *
  27725. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  27726. *
  27727. * _.at(object, ['a[0].b.c', 'a[1]']);
  27728. * // => [3, 4]
  27729. */
  27730. var at = flatRest(baseAt);
  27731. /**
  27732. * Creates an object that inherits from the `prototype` object. If a
  27733. * `properties` object is given, its own enumerable string keyed properties
  27734. * are assigned to the created object.
  27735. *
  27736. * @static
  27737. * @memberOf _
  27738. * @since 2.3.0
  27739. * @category Object
  27740. * @param {Object} prototype The object to inherit from.
  27741. * @param {Object} [properties] The properties to assign to the object.
  27742. * @returns {Object} Returns the new object.
  27743. * @example
  27744. *
  27745. * function Shape() {
  27746. * this.x = 0;
  27747. * this.y = 0;
  27748. * }
  27749. *
  27750. * function Circle() {
  27751. * Shape.call(this);
  27752. * }
  27753. *
  27754. * Circle.prototype = _.create(Shape.prototype, {
  27755. * 'constructor': Circle
  27756. * });
  27757. *
  27758. * var circle = new Circle;
  27759. * circle instanceof Circle;
  27760. * // => true
  27761. *
  27762. * circle instanceof Shape;
  27763. * // => true
  27764. */
  27765. function create(prototype, properties) {
  27766. var result = baseCreate(prototype);
  27767. return properties == null ? result : baseAssign(result, properties);
  27768. }
  27769. /**
  27770. * Assigns own and inherited enumerable string keyed properties of source
  27771. * objects to the destination object for all destination properties that
  27772. * resolve to `undefined`. Source objects are applied from left to right.
  27773. * Once a property is set, additional values of the same property are ignored.
  27774. *
  27775. * **Note:** This method mutates `object`.
  27776. *
  27777. * @static
  27778. * @since 0.1.0
  27779. * @memberOf _
  27780. * @category Object
  27781. * @param {Object} object The destination object.
  27782. * @param {...Object} [sources] The source objects.
  27783. * @returns {Object} Returns `object`.
  27784. * @see _.defaultsDeep
  27785. * @example
  27786. *
  27787. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27788. * // => { 'a': 1, 'b': 2 }
  27789. */
  27790. var defaults = baseRest(function(object, sources) {
  27791. object = Object(object);
  27792. var index = -1;
  27793. var length = sources.length;
  27794. var guard = length > 2 ? sources[2] : undefined;
  27795. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  27796. length = 1;
  27797. }
  27798. while (++index < length) {
  27799. var source = sources[index];
  27800. var props = keysIn(source);
  27801. var propsIndex = -1;
  27802. var propsLength = props.length;
  27803. while (++propsIndex < propsLength) {
  27804. var key = props[propsIndex];
  27805. var value = object[key];
  27806. if (value === undefined ||
  27807. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  27808. object[key] = source[key];
  27809. }
  27810. }
  27811. }
  27812. return object;
  27813. });
  27814. /**
  27815. * This method is like `_.defaults` except that it recursively assigns
  27816. * default properties.
  27817. *
  27818. * **Note:** This method mutates `object`.
  27819. *
  27820. * @static
  27821. * @memberOf _
  27822. * @since 3.10.0
  27823. * @category Object
  27824. * @param {Object} object The destination object.
  27825. * @param {...Object} [sources] The source objects.
  27826. * @returns {Object} Returns `object`.
  27827. * @see _.defaults
  27828. * @example
  27829. *
  27830. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  27831. * // => { 'a': { 'b': 2, 'c': 3 } }
  27832. */
  27833. var defaultsDeep = baseRest(function(args) {
  27834. args.push(undefined, customDefaultsMerge);
  27835. return apply(mergeWith, undefined, args);
  27836. });
  27837. /**
  27838. * This method is like `_.find` except that it returns the key of the first
  27839. * element `predicate` returns truthy for instead of the element itself.
  27840. *
  27841. * @static
  27842. * @memberOf _
  27843. * @since 1.1.0
  27844. * @category Object
  27845. * @param {Object} object The object to inspect.
  27846. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27847. * @returns {string|undefined} Returns the key of the matched element,
  27848. * else `undefined`.
  27849. * @example
  27850. *
  27851. * var users = {
  27852. * 'barney': { 'age': 36, 'active': true },
  27853. * 'fred': { 'age': 40, 'active': false },
  27854. * 'pebbles': { 'age': 1, 'active': true }
  27855. * };
  27856. *
  27857. * _.findKey(users, function(o) { return o.age < 40; });
  27858. * // => 'barney' (iteration order is not guaranteed)
  27859. *
  27860. * // The `_.matches` iteratee shorthand.
  27861. * _.findKey(users, { 'age': 1, 'active': true });
  27862. * // => 'pebbles'
  27863. *
  27864. * // The `_.matchesProperty` iteratee shorthand.
  27865. * _.findKey(users, ['active', false]);
  27866. * // => 'fred'
  27867. *
  27868. * // The `_.property` iteratee shorthand.
  27869. * _.findKey(users, 'active');
  27870. * // => 'barney'
  27871. */
  27872. function findKey(object, predicate) {
  27873. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  27874. }
  27875. /**
  27876. * This method is like `_.findKey` except that it iterates over elements of
  27877. * a collection in the opposite order.
  27878. *
  27879. * @static
  27880. * @memberOf _
  27881. * @since 2.0.0
  27882. * @category Object
  27883. * @param {Object} object The object to inspect.
  27884. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27885. * @returns {string|undefined} Returns the key of the matched element,
  27886. * else `undefined`.
  27887. * @example
  27888. *
  27889. * var users = {
  27890. * 'barney': { 'age': 36, 'active': true },
  27891. * 'fred': { 'age': 40, 'active': false },
  27892. * 'pebbles': { 'age': 1, 'active': true }
  27893. * };
  27894. *
  27895. * _.findLastKey(users, function(o) { return o.age < 40; });
  27896. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  27897. *
  27898. * // The `_.matches` iteratee shorthand.
  27899. * _.findLastKey(users, { 'age': 36, 'active': true });
  27900. * // => 'barney'
  27901. *
  27902. * // The `_.matchesProperty` iteratee shorthand.
  27903. * _.findLastKey(users, ['active', false]);
  27904. * // => 'fred'
  27905. *
  27906. * // The `_.property` iteratee shorthand.
  27907. * _.findLastKey(users, 'active');
  27908. * // => 'pebbles'
  27909. */
  27910. function findLastKey(object, predicate) {
  27911. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  27912. }
  27913. /**
  27914. * Iterates over own and inherited enumerable string keyed properties of an
  27915. * object and invokes `iteratee` for each property. The iteratee is invoked
  27916. * with three arguments: (value, key, object). Iteratee functions may exit
  27917. * iteration early by explicitly returning `false`.
  27918. *
  27919. * @static
  27920. * @memberOf _
  27921. * @since 0.3.0
  27922. * @category Object
  27923. * @param {Object} object The object to iterate over.
  27924. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27925. * @returns {Object} Returns `object`.
  27926. * @see _.forInRight
  27927. * @example
  27928. *
  27929. * function Foo() {
  27930. * this.a = 1;
  27931. * this.b = 2;
  27932. * }
  27933. *
  27934. * Foo.prototype.c = 3;
  27935. *
  27936. * _.forIn(new Foo, function(value, key) {
  27937. * console.log(key);
  27938. * });
  27939. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  27940. */
  27941. function forIn(object, iteratee) {
  27942. return object == null
  27943. ? object
  27944. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  27945. }
  27946. /**
  27947. * This method is like `_.forIn` except that it iterates over properties of
  27948. * `object` in the opposite order.
  27949. *
  27950. * @static
  27951. * @memberOf _
  27952. * @since 2.0.0
  27953. * @category Object
  27954. * @param {Object} object The object to iterate over.
  27955. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27956. * @returns {Object} Returns `object`.
  27957. * @see _.forIn
  27958. * @example
  27959. *
  27960. * function Foo() {
  27961. * this.a = 1;
  27962. * this.b = 2;
  27963. * }
  27964. *
  27965. * Foo.prototype.c = 3;
  27966. *
  27967. * _.forInRight(new Foo, function(value, key) {
  27968. * console.log(key);
  27969. * });
  27970. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  27971. */
  27972. function forInRight(object, iteratee) {
  27973. return object == null
  27974. ? object
  27975. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  27976. }
  27977. /**
  27978. * Iterates over own enumerable string keyed properties of an object and
  27979. * invokes `iteratee` for each property. The iteratee is invoked with three
  27980. * arguments: (value, key, object). Iteratee functions may exit iteration
  27981. * early by explicitly returning `false`.
  27982. *
  27983. * @static
  27984. * @memberOf _
  27985. * @since 0.3.0
  27986. * @category Object
  27987. * @param {Object} object The object to iterate over.
  27988. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27989. * @returns {Object} Returns `object`.
  27990. * @see _.forOwnRight
  27991. * @example
  27992. *
  27993. * function Foo() {
  27994. * this.a = 1;
  27995. * this.b = 2;
  27996. * }
  27997. *
  27998. * Foo.prototype.c = 3;
  27999. *
  28000. * _.forOwn(new Foo, function(value, key) {
  28001. * console.log(key);
  28002. * });
  28003. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  28004. */
  28005. function forOwn(object, iteratee) {
  28006. return object && baseForOwn(object, getIteratee(iteratee, 3));
  28007. }
  28008. /**
  28009. * This method is like `_.forOwn` except that it iterates over properties of
  28010. * `object` in the opposite order.
  28011. *
  28012. * @static
  28013. * @memberOf _
  28014. * @since 2.0.0
  28015. * @category Object
  28016. * @param {Object} object The object to iterate over.
  28017. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28018. * @returns {Object} Returns `object`.
  28019. * @see _.forOwn
  28020. * @example
  28021. *
  28022. * function Foo() {
  28023. * this.a = 1;
  28024. * this.b = 2;
  28025. * }
  28026. *
  28027. * Foo.prototype.c = 3;
  28028. *
  28029. * _.forOwnRight(new Foo, function(value, key) {
  28030. * console.log(key);
  28031. * });
  28032. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  28033. */
  28034. function forOwnRight(object, iteratee) {
  28035. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  28036. }
  28037. /**
  28038. * Creates an array of function property names from own enumerable properties
  28039. * of `object`.
  28040. *
  28041. * @static
  28042. * @since 0.1.0
  28043. * @memberOf _
  28044. * @category Object
  28045. * @param {Object} object The object to inspect.
  28046. * @returns {Array} Returns the function names.
  28047. * @see _.functionsIn
  28048. * @example
  28049. *
  28050. * function Foo() {
  28051. * this.a = _.constant('a');
  28052. * this.b = _.constant('b');
  28053. * }
  28054. *
  28055. * Foo.prototype.c = _.constant('c');
  28056. *
  28057. * _.functions(new Foo);
  28058. * // => ['a', 'b']
  28059. */
  28060. function functions(object) {
  28061. return object == null ? [] : baseFunctions(object, keys(object));
  28062. }
  28063. /**
  28064. * Creates an array of function property names from own and inherited
  28065. * enumerable properties of `object`.
  28066. *
  28067. * @static
  28068. * @memberOf _
  28069. * @since 4.0.0
  28070. * @category Object
  28071. * @param {Object} object The object to inspect.
  28072. * @returns {Array} Returns the function names.
  28073. * @see _.functions
  28074. * @example
  28075. *
  28076. * function Foo() {
  28077. * this.a = _.constant('a');
  28078. * this.b = _.constant('b');
  28079. * }
  28080. *
  28081. * Foo.prototype.c = _.constant('c');
  28082. *
  28083. * _.functionsIn(new Foo);
  28084. * // => ['a', 'b', 'c']
  28085. */
  28086. function functionsIn(object) {
  28087. return object == null ? [] : baseFunctions(object, keysIn(object));
  28088. }
  28089. /**
  28090. * Gets the value at `path` of `object`. If the resolved value is
  28091. * `undefined`, the `defaultValue` is returned in its place.
  28092. *
  28093. * @static
  28094. * @memberOf _
  28095. * @since 3.7.0
  28096. * @category Object
  28097. * @param {Object} object The object to query.
  28098. * @param {Array|string} path The path of the property to get.
  28099. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28100. * @returns {*} Returns the resolved value.
  28101. * @example
  28102. *
  28103. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28104. *
  28105. * _.get(object, 'a[0].b.c');
  28106. * // => 3
  28107. *
  28108. * _.get(object, ['a', '0', 'b', 'c']);
  28109. * // => 3
  28110. *
  28111. * _.get(object, 'a.b.c', 'default');
  28112. * // => 'default'
  28113. */
  28114. function get(object, path, defaultValue) {
  28115. var result = object == null ? undefined : baseGet(object, path);
  28116. return result === undefined ? defaultValue : result;
  28117. }
  28118. /**
  28119. * Checks if `path` is a direct property of `object`.
  28120. *
  28121. * @static
  28122. * @since 0.1.0
  28123. * @memberOf _
  28124. * @category Object
  28125. * @param {Object} object The object to query.
  28126. * @param {Array|string} path The path to check.
  28127. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28128. * @example
  28129. *
  28130. * var object = { 'a': { 'b': 2 } };
  28131. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  28132. *
  28133. * _.has(object, 'a');
  28134. * // => true
  28135. *
  28136. * _.has(object, 'a.b');
  28137. * // => true
  28138. *
  28139. * _.has(object, ['a', 'b']);
  28140. * // => true
  28141. *
  28142. * _.has(other, 'a');
  28143. * // => false
  28144. */
  28145. function has(object, path) {
  28146. return object != null && hasPath(object, path, baseHas);
  28147. }
  28148. /**
  28149. * Checks if `path` is a direct or inherited property of `object`.
  28150. *
  28151. * @static
  28152. * @memberOf _
  28153. * @since 4.0.0
  28154. * @category Object
  28155. * @param {Object} object The object to query.
  28156. * @param {Array|string} path The path to check.
  28157. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28158. * @example
  28159. *
  28160. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  28161. *
  28162. * _.hasIn(object, 'a');
  28163. * // => true
  28164. *
  28165. * _.hasIn(object, 'a.b');
  28166. * // => true
  28167. *
  28168. * _.hasIn(object, ['a', 'b']);
  28169. * // => true
  28170. *
  28171. * _.hasIn(object, 'b');
  28172. * // => false
  28173. */
  28174. function hasIn(object, path) {
  28175. return object != null && hasPath(object, path, baseHasIn);
  28176. }
  28177. /**
  28178. * Creates an object composed of the inverted keys and values of `object`.
  28179. * If `object` contains duplicate values, subsequent values overwrite
  28180. * property assignments of previous values.
  28181. *
  28182. * @static
  28183. * @memberOf _
  28184. * @since 0.7.0
  28185. * @category Object
  28186. * @param {Object} object The object to invert.
  28187. * @returns {Object} Returns the new inverted object.
  28188. * @example
  28189. *
  28190. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28191. *
  28192. * _.invert(object);
  28193. * // => { '1': 'c', '2': 'b' }
  28194. */
  28195. var invert = createInverter(function(result, value, key) {
  28196. if (value != null &&
  28197. typeof value.toString != 'function') {
  28198. value = nativeObjectToString.call(value);
  28199. }
  28200. result[value] = key;
  28201. }, constant(identity));
  28202. /**
  28203. * This method is like `_.invert` except that the inverted object is generated
  28204. * from the results of running each element of `object` thru `iteratee`. The
  28205. * corresponding inverted value of each inverted key is an array of keys
  28206. * responsible for generating the inverted value. The iteratee is invoked
  28207. * with one argument: (value).
  28208. *
  28209. * @static
  28210. * @memberOf _
  28211. * @since 4.1.0
  28212. * @category Object
  28213. * @param {Object} object The object to invert.
  28214. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  28215. * @returns {Object} Returns the new inverted object.
  28216. * @example
  28217. *
  28218. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28219. *
  28220. * _.invertBy(object);
  28221. * // => { '1': ['a', 'c'], '2': ['b'] }
  28222. *
  28223. * _.invertBy(object, function(value) {
  28224. * return 'group' + value;
  28225. * });
  28226. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  28227. */
  28228. var invertBy = createInverter(function(result, value, key) {
  28229. if (value != null &&
  28230. typeof value.toString != 'function') {
  28231. value = nativeObjectToString.call(value);
  28232. }
  28233. if (hasOwnProperty.call(result, value)) {
  28234. result[value].push(key);
  28235. } else {
  28236. result[value] = [key];
  28237. }
  28238. }, getIteratee);
  28239. /**
  28240. * Invokes the method at `path` of `object`.
  28241. *
  28242. * @static
  28243. * @memberOf _
  28244. * @since 4.0.0
  28245. * @category Object
  28246. * @param {Object} object The object to query.
  28247. * @param {Array|string} path The path of the method to invoke.
  28248. * @param {...*} [args] The arguments to invoke the method with.
  28249. * @returns {*} Returns the result of the invoked method.
  28250. * @example
  28251. *
  28252. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  28253. *
  28254. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  28255. * // => [2, 3]
  28256. */
  28257. var invoke = baseRest(baseInvoke);
  28258. /**
  28259. * Creates an array of the own enumerable property names of `object`.
  28260. *
  28261. * **Note:** Non-object values are coerced to objects. See the
  28262. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  28263. * for more details.
  28264. *
  28265. * @static
  28266. * @since 0.1.0
  28267. * @memberOf _
  28268. * @category Object
  28269. * @param {Object} object The object to query.
  28270. * @returns {Array} Returns the array of property names.
  28271. * @example
  28272. *
  28273. * function Foo() {
  28274. * this.a = 1;
  28275. * this.b = 2;
  28276. * }
  28277. *
  28278. * Foo.prototype.c = 3;
  28279. *
  28280. * _.keys(new Foo);
  28281. * // => ['a', 'b'] (iteration order is not guaranteed)
  28282. *
  28283. * _.keys('hi');
  28284. * // => ['0', '1']
  28285. */
  28286. function keys(object) {
  28287. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  28288. }
  28289. /**
  28290. * Creates an array of the own and inherited enumerable property names of `object`.
  28291. *
  28292. * **Note:** Non-object values are coerced to objects.
  28293. *
  28294. * @static
  28295. * @memberOf _
  28296. * @since 3.0.0
  28297. * @category Object
  28298. * @param {Object} object The object to query.
  28299. * @returns {Array} Returns the array of property names.
  28300. * @example
  28301. *
  28302. * function Foo() {
  28303. * this.a = 1;
  28304. * this.b = 2;
  28305. * }
  28306. *
  28307. * Foo.prototype.c = 3;
  28308. *
  28309. * _.keysIn(new Foo);
  28310. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  28311. */
  28312. function keysIn(object) {
  28313. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  28314. }
  28315. /**
  28316. * The opposite of `_.mapValues`; this method creates an object with the
  28317. * same values as `object` and keys generated by running each own enumerable
  28318. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  28319. * with three arguments: (value, key, object).
  28320. *
  28321. * @static
  28322. * @memberOf _
  28323. * @since 3.8.0
  28324. * @category Object
  28325. * @param {Object} object The object to iterate over.
  28326. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28327. * @returns {Object} Returns the new mapped object.
  28328. * @see _.mapValues
  28329. * @example
  28330. *
  28331. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  28332. * return key + value;
  28333. * });
  28334. * // => { 'a1': 1, 'b2': 2 }
  28335. */
  28336. function mapKeys(object, iteratee) {
  28337. var result = {};
  28338. iteratee = getIteratee(iteratee, 3);
  28339. baseForOwn(object, function(value, key, object) {
  28340. baseAssignValue(result, iteratee(value, key, object), value);
  28341. });
  28342. return result;
  28343. }
  28344. /**
  28345. * Creates an object with the same keys as `object` and values generated
  28346. * by running each own enumerable string keyed property of `object` thru
  28347. * `iteratee`. The iteratee is invoked with three arguments:
  28348. * (value, key, object).
  28349. *
  28350. * @static
  28351. * @memberOf _
  28352. * @since 2.4.0
  28353. * @category Object
  28354. * @param {Object} object The object to iterate over.
  28355. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28356. * @returns {Object} Returns the new mapped object.
  28357. * @see _.mapKeys
  28358. * @example
  28359. *
  28360. * var users = {
  28361. * 'fred': { 'user': 'fred', 'age': 40 },
  28362. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  28363. * };
  28364. *
  28365. * _.mapValues(users, function(o) { return o.age; });
  28366. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28367. *
  28368. * // The `_.property` iteratee shorthand.
  28369. * _.mapValues(users, 'age');
  28370. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28371. */
  28372. function mapValues(object, iteratee) {
  28373. var result = {};
  28374. iteratee = getIteratee(iteratee, 3);
  28375. baseForOwn(object, function(value, key, object) {
  28376. baseAssignValue(result, key, iteratee(value, key, object));
  28377. });
  28378. return result;
  28379. }
  28380. /**
  28381. * This method is like `_.assign` except that it recursively merges own and
  28382. * inherited enumerable string keyed properties of source objects into the
  28383. * destination object. Source properties that resolve to `undefined` are
  28384. * skipped if a destination value exists. Array and plain object properties
  28385. * are merged recursively. Other objects and value types are overridden by
  28386. * assignment. Source objects are applied from left to right. Subsequent
  28387. * sources overwrite property assignments of previous sources.
  28388. *
  28389. * **Note:** This method mutates `object`.
  28390. *
  28391. * @static
  28392. * @memberOf _
  28393. * @since 0.5.0
  28394. * @category Object
  28395. * @param {Object} object The destination object.
  28396. * @param {...Object} [sources] The source objects.
  28397. * @returns {Object} Returns `object`.
  28398. * @example
  28399. *
  28400. * var object = {
  28401. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  28402. * };
  28403. *
  28404. * var other = {
  28405. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  28406. * };
  28407. *
  28408. * _.merge(object, other);
  28409. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  28410. */
  28411. var merge = createAssigner(function(object, source, srcIndex) {
  28412. baseMerge(object, source, srcIndex);
  28413. });
  28414. /**
  28415. * This method is like `_.merge` except that it accepts `customizer` which
  28416. * is invoked to produce the merged values of the destination and source
  28417. * properties. If `customizer` returns `undefined`, merging is handled by the
  28418. * method instead. The `customizer` is invoked with six arguments:
  28419. * (objValue, srcValue, key, object, source, stack).
  28420. *
  28421. * **Note:** This method mutates `object`.
  28422. *
  28423. * @static
  28424. * @memberOf _
  28425. * @since 4.0.0
  28426. * @category Object
  28427. * @param {Object} object The destination object.
  28428. * @param {...Object} sources The source objects.
  28429. * @param {Function} customizer The function to customize assigned values.
  28430. * @returns {Object} Returns `object`.
  28431. * @example
  28432. *
  28433. * function customizer(objValue, srcValue) {
  28434. * if (_.isArray(objValue)) {
  28435. * return objValue.concat(srcValue);
  28436. * }
  28437. * }
  28438. *
  28439. * var object = { 'a': [1], 'b': [2] };
  28440. * var other = { 'a': [3], 'b': [4] };
  28441. *
  28442. * _.mergeWith(object, other, customizer);
  28443. * // => { 'a': [1, 3], 'b': [2, 4] }
  28444. */
  28445. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  28446. baseMerge(object, source, srcIndex, customizer);
  28447. });
  28448. /**
  28449. * The opposite of `_.pick`; this method creates an object composed of the
  28450. * own and inherited enumerable property paths of `object` that are not omitted.
  28451. *
  28452. * **Note:** This method is considerably slower than `_.pick`.
  28453. *
  28454. * @static
  28455. * @since 0.1.0
  28456. * @memberOf _
  28457. * @category Object
  28458. * @param {Object} object The source object.
  28459. * @param {...(string|string[])} [paths] The property paths to omit.
  28460. * @returns {Object} Returns the new object.
  28461. * @example
  28462. *
  28463. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28464. *
  28465. * _.omit(object, ['a', 'c']);
  28466. * // => { 'b': '2' }
  28467. */
  28468. var omit = flatRest(function(object, paths) {
  28469. var result = {};
  28470. if (object == null) {
  28471. return result;
  28472. }
  28473. var isDeep = false;
  28474. paths = arrayMap(paths, function(path) {
  28475. path = castPath(path, object);
  28476. isDeep || (isDeep = path.length > 1);
  28477. return path;
  28478. });
  28479. copyObject(object, getAllKeysIn(object), result);
  28480. if (isDeep) {
  28481. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  28482. }
  28483. var length = paths.length;
  28484. while (length--) {
  28485. baseUnset(result, paths[length]);
  28486. }
  28487. return result;
  28488. });
  28489. /**
  28490. * The opposite of `_.pickBy`; this method creates an object composed of
  28491. * the own and inherited enumerable string keyed properties of `object` that
  28492. * `predicate` doesn't return truthy for. The predicate is invoked with two
  28493. * arguments: (value, key).
  28494. *
  28495. * @static
  28496. * @memberOf _
  28497. * @since 4.0.0
  28498. * @category Object
  28499. * @param {Object} object The source object.
  28500. * @param {Function} [predicate=_.identity] The function invoked per property.
  28501. * @returns {Object} Returns the new object.
  28502. * @example
  28503. *
  28504. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28505. *
  28506. * _.omitBy(object, _.isNumber);
  28507. * // => { 'b': '2' }
  28508. */
  28509. function omitBy(object, predicate) {
  28510. return pickBy(object, negate(getIteratee(predicate)));
  28511. }
  28512. /**
  28513. * Creates an object composed of the picked `object` properties.
  28514. *
  28515. * @static
  28516. * @since 0.1.0
  28517. * @memberOf _
  28518. * @category Object
  28519. * @param {Object} object The source object.
  28520. * @param {...(string|string[])} [paths] The property paths to pick.
  28521. * @returns {Object} Returns the new object.
  28522. * @example
  28523. *
  28524. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28525. *
  28526. * _.pick(object, ['a', 'c']);
  28527. * // => { 'a': 1, 'c': 3 }
  28528. */
  28529. var pick = flatRest(function(object, paths) {
  28530. return object == null ? {} : basePick(object, paths);
  28531. });
  28532. /**
  28533. * Creates an object composed of the `object` properties `predicate` returns
  28534. * truthy for. The predicate is invoked with two arguments: (value, key).
  28535. *
  28536. * @static
  28537. * @memberOf _
  28538. * @since 4.0.0
  28539. * @category Object
  28540. * @param {Object} object The source object.
  28541. * @param {Function} [predicate=_.identity] The function invoked per property.
  28542. * @returns {Object} Returns the new object.
  28543. * @example
  28544. *
  28545. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28546. *
  28547. * _.pickBy(object, _.isNumber);
  28548. * // => { 'a': 1, 'c': 3 }
  28549. */
  28550. function pickBy(object, predicate) {
  28551. if (object == null) {
  28552. return {};
  28553. }
  28554. var props = arrayMap(getAllKeysIn(object), function(prop) {
  28555. return [prop];
  28556. });
  28557. predicate = getIteratee(predicate);
  28558. return basePickBy(object, props, function(value, path) {
  28559. return predicate(value, path[0]);
  28560. });
  28561. }
  28562. /**
  28563. * This method is like `_.get` except that if the resolved value is a
  28564. * function it's invoked with the `this` binding of its parent object and
  28565. * its result is returned.
  28566. *
  28567. * @static
  28568. * @since 0.1.0
  28569. * @memberOf _
  28570. * @category Object
  28571. * @param {Object} object The object to query.
  28572. * @param {Array|string} path The path of the property to resolve.
  28573. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28574. * @returns {*} Returns the resolved value.
  28575. * @example
  28576. *
  28577. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  28578. *
  28579. * _.result(object, 'a[0].b.c1');
  28580. * // => 3
  28581. *
  28582. * _.result(object, 'a[0].b.c2');
  28583. * // => 4
  28584. *
  28585. * _.result(object, 'a[0].b.c3', 'default');
  28586. * // => 'default'
  28587. *
  28588. * _.result(object, 'a[0].b.c3', _.constant('default'));
  28589. * // => 'default'
  28590. */
  28591. function result(object, path, defaultValue) {
  28592. path = castPath(path, object);
  28593. var index = -1,
  28594. length = path.length;
  28595. // Ensure the loop is entered when path is empty.
  28596. if (!length) {
  28597. length = 1;
  28598. object = undefined;
  28599. }
  28600. while (++index < length) {
  28601. var value = object == null ? undefined : object[toKey(path[index])];
  28602. if (value === undefined) {
  28603. index = length;
  28604. value = defaultValue;
  28605. }
  28606. object = isFunction(value) ? value.call(object) : value;
  28607. }
  28608. return object;
  28609. }
  28610. /**
  28611. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  28612. * it's created. Arrays are created for missing index properties while objects
  28613. * are created for all other missing properties. Use `_.setWith` to customize
  28614. * `path` creation.
  28615. *
  28616. * **Note:** This method mutates `object`.
  28617. *
  28618. * @static
  28619. * @memberOf _
  28620. * @since 3.7.0
  28621. * @category Object
  28622. * @param {Object} object The object to modify.
  28623. * @param {Array|string} path The path of the property to set.
  28624. * @param {*} value The value to set.
  28625. * @returns {Object} Returns `object`.
  28626. * @example
  28627. *
  28628. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28629. *
  28630. * _.set(object, 'a[0].b.c', 4);
  28631. * console.log(object.a[0].b.c);
  28632. * // => 4
  28633. *
  28634. * _.set(object, ['x', '0', 'y', 'z'], 5);
  28635. * console.log(object.x[0].y.z);
  28636. * // => 5
  28637. */
  28638. function set(object, path, value) {
  28639. return object == null ? object : baseSet(object, path, value);
  28640. }
  28641. /**
  28642. * This method is like `_.set` except that it accepts `customizer` which is
  28643. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28644. * path creation is handled by the method instead. The `customizer` is invoked
  28645. * with three arguments: (nsValue, key, nsObject).
  28646. *
  28647. * **Note:** This method mutates `object`.
  28648. *
  28649. * @static
  28650. * @memberOf _
  28651. * @since 4.0.0
  28652. * @category Object
  28653. * @param {Object} object The object to modify.
  28654. * @param {Array|string} path The path of the property to set.
  28655. * @param {*} value The value to set.
  28656. * @param {Function} [customizer] The function to customize assigned values.
  28657. * @returns {Object} Returns `object`.
  28658. * @example
  28659. *
  28660. * var object = {};
  28661. *
  28662. * _.setWith(object, '[0][1]', 'a', Object);
  28663. * // => { '0': { '1': 'a' } }
  28664. */
  28665. function setWith(object, path, value, customizer) {
  28666. customizer = typeof customizer == 'function' ? customizer : undefined;
  28667. return object == null ? object : baseSet(object, path, value, customizer);
  28668. }
  28669. /**
  28670. * Creates an array of own enumerable string keyed-value pairs for `object`
  28671. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  28672. * entries are returned.
  28673. *
  28674. * @static
  28675. * @memberOf _
  28676. * @since 4.0.0
  28677. * @alias entries
  28678. * @category Object
  28679. * @param {Object} object The object to query.
  28680. * @returns {Array} Returns the key-value pairs.
  28681. * @example
  28682. *
  28683. * function Foo() {
  28684. * this.a = 1;
  28685. * this.b = 2;
  28686. * }
  28687. *
  28688. * Foo.prototype.c = 3;
  28689. *
  28690. * _.toPairs(new Foo);
  28691. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  28692. */
  28693. var toPairs = createToPairs(keys);
  28694. /**
  28695. * Creates an array of own and inherited enumerable string keyed-value pairs
  28696. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  28697. * or set, its entries are returned.
  28698. *
  28699. * @static
  28700. * @memberOf _
  28701. * @since 4.0.0
  28702. * @alias entriesIn
  28703. * @category Object
  28704. * @param {Object} object The object to query.
  28705. * @returns {Array} Returns the key-value pairs.
  28706. * @example
  28707. *
  28708. * function Foo() {
  28709. * this.a = 1;
  28710. * this.b = 2;
  28711. * }
  28712. *
  28713. * Foo.prototype.c = 3;
  28714. *
  28715. * _.toPairsIn(new Foo);
  28716. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  28717. */
  28718. var toPairsIn = createToPairs(keysIn);
  28719. /**
  28720. * An alternative to `_.reduce`; this method transforms `object` to a new
  28721. * `accumulator` object which is the result of running each of its own
  28722. * enumerable string keyed properties thru `iteratee`, with each invocation
  28723. * potentially mutating the `accumulator` object. If `accumulator` is not
  28724. * provided, a new object with the same `[[Prototype]]` will be used. The
  28725. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  28726. * Iteratee functions may exit iteration early by explicitly returning `false`.
  28727. *
  28728. * @static
  28729. * @memberOf _
  28730. * @since 1.3.0
  28731. * @category Object
  28732. * @param {Object} object The object to iterate over.
  28733. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28734. * @param {*} [accumulator] The custom accumulator value.
  28735. * @returns {*} Returns the accumulated value.
  28736. * @example
  28737. *
  28738. * _.transform([2, 3, 4], function(result, n) {
  28739. * result.push(n *= n);
  28740. * return n % 2 == 0;
  28741. * }, []);
  28742. * // => [4, 9]
  28743. *
  28744. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  28745. * (result[value] || (result[value] = [])).push(key);
  28746. * }, {});
  28747. * // => { '1': ['a', 'c'], '2': ['b'] }
  28748. */
  28749. function transform(object, iteratee, accumulator) {
  28750. var isArr = isArray(object),
  28751. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  28752. iteratee = getIteratee(iteratee, 4);
  28753. if (accumulator == null) {
  28754. var Ctor = object && object.constructor;
  28755. if (isArrLike) {
  28756. accumulator = isArr ? new Ctor : [];
  28757. }
  28758. else if (isObject(object)) {
  28759. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  28760. }
  28761. else {
  28762. accumulator = {};
  28763. }
  28764. }
  28765. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  28766. return iteratee(accumulator, value, index, object);
  28767. });
  28768. return accumulator;
  28769. }
  28770. /**
  28771. * Removes the property at `path` of `object`.
  28772. *
  28773. * **Note:** This method mutates `object`.
  28774. *
  28775. * @static
  28776. * @memberOf _
  28777. * @since 4.0.0
  28778. * @category Object
  28779. * @param {Object} object The object to modify.
  28780. * @param {Array|string} path The path of the property to unset.
  28781. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  28782. * @example
  28783. *
  28784. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  28785. * _.unset(object, 'a[0].b.c');
  28786. * // => true
  28787. *
  28788. * console.log(object);
  28789. * // => { 'a': [{ 'b': {} }] };
  28790. *
  28791. * _.unset(object, ['a', '0', 'b', 'c']);
  28792. * // => true
  28793. *
  28794. * console.log(object);
  28795. * // => { 'a': [{ 'b': {} }] };
  28796. */
  28797. function unset(object, path) {
  28798. return object == null ? true : baseUnset(object, path);
  28799. }
  28800. /**
  28801. * This method is like `_.set` except that accepts `updater` to produce the
  28802. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  28803. * is invoked with one argument: (value).
  28804. *
  28805. * **Note:** This method mutates `object`.
  28806. *
  28807. * @static
  28808. * @memberOf _
  28809. * @since 4.6.0
  28810. * @category Object
  28811. * @param {Object} object The object to modify.
  28812. * @param {Array|string} path The path of the property to set.
  28813. * @param {Function} updater The function to produce the updated value.
  28814. * @returns {Object} Returns `object`.
  28815. * @example
  28816. *
  28817. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28818. *
  28819. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  28820. * console.log(object.a[0].b.c);
  28821. * // => 9
  28822. *
  28823. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  28824. * console.log(object.x[0].y.z);
  28825. * // => 0
  28826. */
  28827. function update(object, path, updater) {
  28828. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  28829. }
  28830. /**
  28831. * This method is like `_.update` except that it accepts `customizer` which is
  28832. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28833. * path creation is handled by the method instead. The `customizer` is invoked
  28834. * with three arguments: (nsValue, key, nsObject).
  28835. *
  28836. * **Note:** This method mutates `object`.
  28837. *
  28838. * @static
  28839. * @memberOf _
  28840. * @since 4.6.0
  28841. * @category Object
  28842. * @param {Object} object The object to modify.
  28843. * @param {Array|string} path The path of the property to set.
  28844. * @param {Function} updater The function to produce the updated value.
  28845. * @param {Function} [customizer] The function to customize assigned values.
  28846. * @returns {Object} Returns `object`.
  28847. * @example
  28848. *
  28849. * var object = {};
  28850. *
  28851. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  28852. * // => { '0': { '1': 'a' } }
  28853. */
  28854. function updateWith(object, path, updater, customizer) {
  28855. customizer = typeof customizer == 'function' ? customizer : undefined;
  28856. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  28857. }
  28858. /**
  28859. * Creates an array of the own enumerable string keyed property values of `object`.
  28860. *
  28861. * **Note:** Non-object values are coerced to objects.
  28862. *
  28863. * @static
  28864. * @since 0.1.0
  28865. * @memberOf _
  28866. * @category Object
  28867. * @param {Object} object The object to query.
  28868. * @returns {Array} Returns the array of property values.
  28869. * @example
  28870. *
  28871. * function Foo() {
  28872. * this.a = 1;
  28873. * this.b = 2;
  28874. * }
  28875. *
  28876. * Foo.prototype.c = 3;
  28877. *
  28878. * _.values(new Foo);
  28879. * // => [1, 2] (iteration order is not guaranteed)
  28880. *
  28881. * _.values('hi');
  28882. * // => ['h', 'i']
  28883. */
  28884. function values(object) {
  28885. return object == null ? [] : baseValues(object, keys(object));
  28886. }
  28887. /**
  28888. * Creates an array of the own and inherited enumerable string keyed property
  28889. * values of `object`.
  28890. *
  28891. * **Note:** Non-object values are coerced to objects.
  28892. *
  28893. * @static
  28894. * @memberOf _
  28895. * @since 3.0.0
  28896. * @category Object
  28897. * @param {Object} object The object to query.
  28898. * @returns {Array} Returns the array of property values.
  28899. * @example
  28900. *
  28901. * function Foo() {
  28902. * this.a = 1;
  28903. * this.b = 2;
  28904. * }
  28905. *
  28906. * Foo.prototype.c = 3;
  28907. *
  28908. * _.valuesIn(new Foo);
  28909. * // => [1, 2, 3] (iteration order is not guaranteed)
  28910. */
  28911. function valuesIn(object) {
  28912. return object == null ? [] : baseValues(object, keysIn(object));
  28913. }
  28914. /*------------------------------------------------------------------------*/
  28915. /**
  28916. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  28917. *
  28918. * @static
  28919. * @memberOf _
  28920. * @since 4.0.0
  28921. * @category Number
  28922. * @param {number} number The number to clamp.
  28923. * @param {number} [lower] The lower bound.
  28924. * @param {number} upper The upper bound.
  28925. * @returns {number} Returns the clamped number.
  28926. * @example
  28927. *
  28928. * _.clamp(-10, -5, 5);
  28929. * // => -5
  28930. *
  28931. * _.clamp(10, -5, 5);
  28932. * // => 5
  28933. */
  28934. function clamp(number, lower, upper) {
  28935. if (upper === undefined) {
  28936. upper = lower;
  28937. lower = undefined;
  28938. }
  28939. if (upper !== undefined) {
  28940. upper = toNumber(upper);
  28941. upper = upper === upper ? upper : 0;
  28942. }
  28943. if (lower !== undefined) {
  28944. lower = toNumber(lower);
  28945. lower = lower === lower ? lower : 0;
  28946. }
  28947. return baseClamp(toNumber(number), lower, upper);
  28948. }
  28949. /**
  28950. * Checks if `n` is between `start` and up to, but not including, `end`. If
  28951. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  28952. * If `start` is greater than `end` the params are swapped to support
  28953. * negative ranges.
  28954. *
  28955. * @static
  28956. * @memberOf _
  28957. * @since 3.3.0
  28958. * @category Number
  28959. * @param {number} number The number to check.
  28960. * @param {number} [start=0] The start of the range.
  28961. * @param {number} end The end of the range.
  28962. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  28963. * @see _.range, _.rangeRight
  28964. * @example
  28965. *
  28966. * _.inRange(3, 2, 4);
  28967. * // => true
  28968. *
  28969. * _.inRange(4, 8);
  28970. * // => true
  28971. *
  28972. * _.inRange(4, 2);
  28973. * // => false
  28974. *
  28975. * _.inRange(2, 2);
  28976. * // => false
  28977. *
  28978. * _.inRange(1.2, 2);
  28979. * // => true
  28980. *
  28981. * _.inRange(5.2, 4);
  28982. * // => false
  28983. *
  28984. * _.inRange(-3, -2, -6);
  28985. * // => true
  28986. */
  28987. function inRange(number, start, end) {
  28988. start = toFinite(start);
  28989. if (end === undefined) {
  28990. end = start;
  28991. start = 0;
  28992. } else {
  28993. end = toFinite(end);
  28994. }
  28995. number = toNumber(number);
  28996. return baseInRange(number, start, end);
  28997. }
  28998. /**
  28999. * Produces a random number between the inclusive `lower` and `upper` bounds.
  29000. * If only one argument is provided a number between `0` and the given number
  29001. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  29002. * floats, a floating-point number is returned instead of an integer.
  29003. *
  29004. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  29005. * floating-point values which can produce unexpected results.
  29006. *
  29007. * @static
  29008. * @memberOf _
  29009. * @since 0.7.0
  29010. * @category Number
  29011. * @param {number} [lower=0] The lower bound.
  29012. * @param {number} [upper=1] The upper bound.
  29013. * @param {boolean} [floating] Specify returning a floating-point number.
  29014. * @returns {number} Returns the random number.
  29015. * @example
  29016. *
  29017. * _.random(0, 5);
  29018. * // => an integer between 0 and 5
  29019. *
  29020. * _.random(5);
  29021. * // => also an integer between 0 and 5
  29022. *
  29023. * _.random(5, true);
  29024. * // => a floating-point number between 0 and 5
  29025. *
  29026. * _.random(1.2, 5.2);
  29027. * // => a floating-point number between 1.2 and 5.2
  29028. */
  29029. function random(lower, upper, floating) {
  29030. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  29031. upper = floating = undefined;
  29032. }
  29033. if (floating === undefined) {
  29034. if (typeof upper == 'boolean') {
  29035. floating = upper;
  29036. upper = undefined;
  29037. }
  29038. else if (typeof lower == 'boolean') {
  29039. floating = lower;
  29040. lower = undefined;
  29041. }
  29042. }
  29043. if (lower === undefined && upper === undefined) {
  29044. lower = 0;
  29045. upper = 1;
  29046. }
  29047. else {
  29048. lower = toFinite(lower);
  29049. if (upper === undefined) {
  29050. upper = lower;
  29051. lower = 0;
  29052. } else {
  29053. upper = toFinite(upper);
  29054. }
  29055. }
  29056. if (lower > upper) {
  29057. var temp = lower;
  29058. lower = upper;
  29059. upper = temp;
  29060. }
  29061. if (floating || lower % 1 || upper % 1) {
  29062. var rand = nativeRandom();
  29063. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  29064. }
  29065. return baseRandom(lower, upper);
  29066. }
  29067. /*------------------------------------------------------------------------*/
  29068. /**
  29069. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  29070. *
  29071. * @static
  29072. * @memberOf _
  29073. * @since 3.0.0
  29074. * @category String
  29075. * @param {string} [string=''] The string to convert.
  29076. * @returns {string} Returns the camel cased string.
  29077. * @example
  29078. *
  29079. * _.camelCase('Foo Bar');
  29080. * // => 'fooBar'
  29081. *
  29082. * _.camelCase('--foo-bar--');
  29083. * // => 'fooBar'
  29084. *
  29085. * _.camelCase('__FOO_BAR__');
  29086. * // => 'fooBar'
  29087. */
  29088. var camelCase = createCompounder(function(result, word, index) {
  29089. word = word.toLowerCase();
  29090. return result + (index ? capitalize(word) : word);
  29091. });
  29092. /**
  29093. * Converts the first character of `string` to upper case and the remaining
  29094. * to lower case.
  29095. *
  29096. * @static
  29097. * @memberOf _
  29098. * @since 3.0.0
  29099. * @category String
  29100. * @param {string} [string=''] The string to capitalize.
  29101. * @returns {string} Returns the capitalized string.
  29102. * @example
  29103. *
  29104. * _.capitalize('FRED');
  29105. * // => 'Fred'
  29106. */
  29107. function capitalize(string) {
  29108. return upperFirst(toString(string).toLowerCase());
  29109. }
  29110. /**
  29111. * Deburrs `string` by converting
  29112. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  29113. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  29114. * letters to basic Latin letters and removing
  29115. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  29116. *
  29117. * @static
  29118. * @memberOf _
  29119. * @since 3.0.0
  29120. * @category String
  29121. * @param {string} [string=''] The string to deburr.
  29122. * @returns {string} Returns the deburred string.
  29123. * @example
  29124. *
  29125. * _.deburr('déjà vu');
  29126. * // => 'deja vu'
  29127. */
  29128. function deburr(string) {
  29129. string = toString(string);
  29130. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  29131. }
  29132. /**
  29133. * Checks if `string` ends with the given target string.
  29134. *
  29135. * @static
  29136. * @memberOf _
  29137. * @since 3.0.0
  29138. * @category String
  29139. * @param {string} [string=''] The string to inspect.
  29140. * @param {string} [target] The string to search for.
  29141. * @param {number} [position=string.length] The position to search up to.
  29142. * @returns {boolean} Returns `true` if `string` ends with `target`,
  29143. * else `false`.
  29144. * @example
  29145. *
  29146. * _.endsWith('abc', 'c');
  29147. * // => true
  29148. *
  29149. * _.endsWith('abc', 'b');
  29150. * // => false
  29151. *
  29152. * _.endsWith('abc', 'b', 2);
  29153. * // => true
  29154. */
  29155. function endsWith(string, target, position) {
  29156. string = toString(string);
  29157. target = baseToString(target);
  29158. var length = string.length;
  29159. position = position === undefined
  29160. ? length
  29161. : baseClamp(toInteger(position), 0, length);
  29162. var end = position;
  29163. position -= target.length;
  29164. return position >= 0 && string.slice(position, end) == target;
  29165. }
  29166. /**
  29167. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  29168. * corresponding HTML entities.
  29169. *
  29170. * **Note:** No other characters are escaped. To escape additional
  29171. * characters use a third-party library like [_he_](https://mths.be/he).
  29172. *
  29173. * Though the ">" character is escaped for symmetry, characters like
  29174. * ">" and "/" don't need escaping in HTML and have no special meaning
  29175. * unless they're part of a tag or unquoted attribute value. See
  29176. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  29177. * (under "semi-related fun fact") for more details.
  29178. *
  29179. * When working with HTML you should always
  29180. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  29181. * XSS vectors.
  29182. *
  29183. * @static
  29184. * @since 0.1.0
  29185. * @memberOf _
  29186. * @category String
  29187. * @param {string} [string=''] The string to escape.
  29188. * @returns {string} Returns the escaped string.
  29189. * @example
  29190. *
  29191. * _.escape('fred, barney, & pebbles');
  29192. * // => 'fred, barney, &amp; pebbles'
  29193. */
  29194. function escape(string) {
  29195. string = toString(string);
  29196. return (string && reHasUnescapedHtml.test(string))
  29197. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  29198. : string;
  29199. }
  29200. /**
  29201. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  29202. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  29203. *
  29204. * @static
  29205. * @memberOf _
  29206. * @since 3.0.0
  29207. * @category String
  29208. * @param {string} [string=''] The string to escape.
  29209. * @returns {string} Returns the escaped string.
  29210. * @example
  29211. *
  29212. * _.escapeRegExp('[lodash](https://lodash.com/)');
  29213. * // => '\[lodash\]\(https://lodash\.com/\)'
  29214. */
  29215. function escapeRegExp(string) {
  29216. string = toString(string);
  29217. return (string && reHasRegExpChar.test(string))
  29218. ? string.replace(reRegExpChar, '\\$&')
  29219. : string;
  29220. }
  29221. /**
  29222. * Converts `string` to
  29223. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  29224. *
  29225. * @static
  29226. * @memberOf _
  29227. * @since 3.0.0
  29228. * @category String
  29229. * @param {string} [string=''] The string to convert.
  29230. * @returns {string} Returns the kebab cased string.
  29231. * @example
  29232. *
  29233. * _.kebabCase('Foo Bar');
  29234. * // => 'foo-bar'
  29235. *
  29236. * _.kebabCase('fooBar');
  29237. * // => 'foo-bar'
  29238. *
  29239. * _.kebabCase('__FOO_BAR__');
  29240. * // => 'foo-bar'
  29241. */
  29242. var kebabCase = createCompounder(function(result, word, index) {
  29243. return result + (index ? '-' : '') + word.toLowerCase();
  29244. });
  29245. /**
  29246. * Converts `string`, as space separated words, to lower case.
  29247. *
  29248. * @static
  29249. * @memberOf _
  29250. * @since 4.0.0
  29251. * @category String
  29252. * @param {string} [string=''] The string to convert.
  29253. * @returns {string} Returns the lower cased string.
  29254. * @example
  29255. *
  29256. * _.lowerCase('--Foo-Bar--');
  29257. * // => 'foo bar'
  29258. *
  29259. * _.lowerCase('fooBar');
  29260. * // => 'foo bar'
  29261. *
  29262. * _.lowerCase('__FOO_BAR__');
  29263. * // => 'foo bar'
  29264. */
  29265. var lowerCase = createCompounder(function(result, word, index) {
  29266. return result + (index ? ' ' : '') + word.toLowerCase();
  29267. });
  29268. /**
  29269. * Converts the first character of `string` to lower case.
  29270. *
  29271. * @static
  29272. * @memberOf _
  29273. * @since 4.0.0
  29274. * @category String
  29275. * @param {string} [string=''] The string to convert.
  29276. * @returns {string} Returns the converted string.
  29277. * @example
  29278. *
  29279. * _.lowerFirst('Fred');
  29280. * // => 'fred'
  29281. *
  29282. * _.lowerFirst('FRED');
  29283. * // => 'fRED'
  29284. */
  29285. var lowerFirst = createCaseFirst('toLowerCase');
  29286. /**
  29287. * Pads `string` on the left and right sides if it's shorter than `length`.
  29288. * Padding characters are truncated if they can't be evenly divided by `length`.
  29289. *
  29290. * @static
  29291. * @memberOf _
  29292. * @since 3.0.0
  29293. * @category String
  29294. * @param {string} [string=''] The string to pad.
  29295. * @param {number} [length=0] The padding length.
  29296. * @param {string} [chars=' '] The string used as padding.
  29297. * @returns {string} Returns the padded string.
  29298. * @example
  29299. *
  29300. * _.pad('abc', 8);
  29301. * // => ' abc '
  29302. *
  29303. * _.pad('abc', 8, '_-');
  29304. * // => '_-abc_-_'
  29305. *
  29306. * _.pad('abc', 3);
  29307. * // => 'abc'
  29308. */
  29309. function pad(string, length, chars) {
  29310. string = toString(string);
  29311. length = toInteger(length);
  29312. var strLength = length ? stringSize(string) : 0;
  29313. if (!length || strLength >= length) {
  29314. return string;
  29315. }
  29316. var mid = (length - strLength) / 2;
  29317. return (
  29318. createPadding(nativeFloor(mid), chars) +
  29319. string +
  29320. createPadding(nativeCeil(mid), chars)
  29321. );
  29322. }
  29323. /**
  29324. * Pads `string` on the right side if it's shorter than `length`. Padding
  29325. * characters are truncated if they exceed `length`.
  29326. *
  29327. * @static
  29328. * @memberOf _
  29329. * @since 4.0.0
  29330. * @category String
  29331. * @param {string} [string=''] The string to pad.
  29332. * @param {number} [length=0] The padding length.
  29333. * @param {string} [chars=' '] The string used as padding.
  29334. * @returns {string} Returns the padded string.
  29335. * @example
  29336. *
  29337. * _.padEnd('abc', 6);
  29338. * // => 'abc '
  29339. *
  29340. * _.padEnd('abc', 6, '_-');
  29341. * // => 'abc_-_'
  29342. *
  29343. * _.padEnd('abc', 3);
  29344. * // => 'abc'
  29345. */
  29346. function padEnd(string, length, chars) {
  29347. string = toString(string);
  29348. length = toInteger(length);
  29349. var strLength = length ? stringSize(string) : 0;
  29350. return (length && strLength < length)
  29351. ? (string + createPadding(length - strLength, chars))
  29352. : string;
  29353. }
  29354. /**
  29355. * Pads `string` on the left side if it's shorter than `length`. Padding
  29356. * characters are truncated if they exceed `length`.
  29357. *
  29358. * @static
  29359. * @memberOf _
  29360. * @since 4.0.0
  29361. * @category String
  29362. * @param {string} [string=''] The string to pad.
  29363. * @param {number} [length=0] The padding length.
  29364. * @param {string} [chars=' '] The string used as padding.
  29365. * @returns {string} Returns the padded string.
  29366. * @example
  29367. *
  29368. * _.padStart('abc', 6);
  29369. * // => ' abc'
  29370. *
  29371. * _.padStart('abc', 6, '_-');
  29372. * // => '_-_abc'
  29373. *
  29374. * _.padStart('abc', 3);
  29375. * // => 'abc'
  29376. */
  29377. function padStart(string, length, chars) {
  29378. string = toString(string);
  29379. length = toInteger(length);
  29380. var strLength = length ? stringSize(string) : 0;
  29381. return (length && strLength < length)
  29382. ? (createPadding(length - strLength, chars) + string)
  29383. : string;
  29384. }
  29385. /**
  29386. * Converts `string` to an integer of the specified radix. If `radix` is
  29387. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  29388. * hexadecimal, in which case a `radix` of `16` is used.
  29389. *
  29390. * **Note:** This method aligns with the
  29391. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  29392. *
  29393. * @static
  29394. * @memberOf _
  29395. * @since 1.1.0
  29396. * @category String
  29397. * @param {string} string The string to convert.
  29398. * @param {number} [radix=10] The radix to interpret `value` by.
  29399. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29400. * @returns {number} Returns the converted integer.
  29401. * @example
  29402. *
  29403. * _.parseInt('08');
  29404. * // => 8
  29405. *
  29406. * _.map(['6', '08', '10'], _.parseInt);
  29407. * // => [6, 8, 10]
  29408. */
  29409. function parseInt(string, radix, guard) {
  29410. if (guard || radix == null) {
  29411. radix = 0;
  29412. } else if (radix) {
  29413. radix = +radix;
  29414. }
  29415. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  29416. }
  29417. /**
  29418. * Repeats the given string `n` times.
  29419. *
  29420. * @static
  29421. * @memberOf _
  29422. * @since 3.0.0
  29423. * @category String
  29424. * @param {string} [string=''] The string to repeat.
  29425. * @param {number} [n=1] The number of times to repeat the string.
  29426. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29427. * @returns {string} Returns the repeated string.
  29428. * @example
  29429. *
  29430. * _.repeat('*', 3);
  29431. * // => '***'
  29432. *
  29433. * _.repeat('abc', 2);
  29434. * // => 'abcabc'
  29435. *
  29436. * _.repeat('abc', 0);
  29437. * // => ''
  29438. */
  29439. function repeat(string, n, guard) {
  29440. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  29441. n = 1;
  29442. } else {
  29443. n = toInteger(n);
  29444. }
  29445. return baseRepeat(toString(string), n);
  29446. }
  29447. /**
  29448. * Replaces matches for `pattern` in `string` with `replacement`.
  29449. *
  29450. * **Note:** This method is based on
  29451. * [`String#replace`](https://mdn.io/String/replace).
  29452. *
  29453. * @static
  29454. * @memberOf _
  29455. * @since 4.0.0
  29456. * @category String
  29457. * @param {string} [string=''] The string to modify.
  29458. * @param {RegExp|string} pattern The pattern to replace.
  29459. * @param {Function|string} replacement The match replacement.
  29460. * @returns {string} Returns the modified string.
  29461. * @example
  29462. *
  29463. * _.replace('Hi Fred', 'Fred', 'Barney');
  29464. * // => 'Hi Barney'
  29465. */
  29466. function replace() {
  29467. var args = arguments,
  29468. string = toString(args[0]);
  29469. return args.length < 3 ? string : string.replace(args[1], args[2]);
  29470. }
  29471. /**
  29472. * Converts `string` to
  29473. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  29474. *
  29475. * @static
  29476. * @memberOf _
  29477. * @since 3.0.0
  29478. * @category String
  29479. * @param {string} [string=''] The string to convert.
  29480. * @returns {string} Returns the snake cased string.
  29481. * @example
  29482. *
  29483. * _.snakeCase('Foo Bar');
  29484. * // => 'foo_bar'
  29485. *
  29486. * _.snakeCase('fooBar');
  29487. * // => 'foo_bar'
  29488. *
  29489. * _.snakeCase('--FOO-BAR--');
  29490. * // => 'foo_bar'
  29491. */
  29492. var snakeCase = createCompounder(function(result, word, index) {
  29493. return result + (index ? '_' : '') + word.toLowerCase();
  29494. });
  29495. /**
  29496. * Splits `string` by `separator`.
  29497. *
  29498. * **Note:** This method is based on
  29499. * [`String#split`](https://mdn.io/String/split).
  29500. *
  29501. * @static
  29502. * @memberOf _
  29503. * @since 4.0.0
  29504. * @category String
  29505. * @param {string} [string=''] The string to split.
  29506. * @param {RegExp|string} separator The separator pattern to split by.
  29507. * @param {number} [limit] The length to truncate results to.
  29508. * @returns {Array} Returns the string segments.
  29509. * @example
  29510. *
  29511. * _.split('a-b-c', '-', 2);
  29512. * // => ['a', 'b']
  29513. */
  29514. function split(string, separator, limit) {
  29515. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  29516. separator = limit = undefined;
  29517. }
  29518. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  29519. if (!limit) {
  29520. return [];
  29521. }
  29522. string = toString(string);
  29523. if (string && (
  29524. typeof separator == 'string' ||
  29525. (separator != null && !isRegExp(separator))
  29526. )) {
  29527. separator = baseToString(separator);
  29528. if (!separator && hasUnicode(string)) {
  29529. return castSlice(stringToArray(string), 0, limit);
  29530. }
  29531. }
  29532. return string.split(separator, limit);
  29533. }
  29534. /**
  29535. * Converts `string` to
  29536. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  29537. *
  29538. * @static
  29539. * @memberOf _
  29540. * @since 3.1.0
  29541. * @category String
  29542. * @param {string} [string=''] The string to convert.
  29543. * @returns {string} Returns the start cased string.
  29544. * @example
  29545. *
  29546. * _.startCase('--foo-bar--');
  29547. * // => 'Foo Bar'
  29548. *
  29549. * _.startCase('fooBar');
  29550. * // => 'Foo Bar'
  29551. *
  29552. * _.startCase('__FOO_BAR__');
  29553. * // => 'FOO BAR'
  29554. */
  29555. var startCase = createCompounder(function(result, word, index) {
  29556. return result + (index ? ' ' : '') + upperFirst(word);
  29557. });
  29558. /**
  29559. * Checks if `string` starts with the given target string.
  29560. *
  29561. * @static
  29562. * @memberOf _
  29563. * @since 3.0.0
  29564. * @category String
  29565. * @param {string} [string=''] The string to inspect.
  29566. * @param {string} [target] The string to search for.
  29567. * @param {number} [position=0] The position to search from.
  29568. * @returns {boolean} Returns `true` if `string` starts with `target`,
  29569. * else `false`.
  29570. * @example
  29571. *
  29572. * _.startsWith('abc', 'a');
  29573. * // => true
  29574. *
  29575. * _.startsWith('abc', 'b');
  29576. * // => false
  29577. *
  29578. * _.startsWith('abc', 'b', 1);
  29579. * // => true
  29580. */
  29581. function startsWith(string, target, position) {
  29582. string = toString(string);
  29583. position = position == null
  29584. ? 0
  29585. : baseClamp(toInteger(position), 0, string.length);
  29586. target = baseToString(target);
  29587. return string.slice(position, position + target.length) == target;
  29588. }
  29589. /**
  29590. * Creates a compiled template function that can interpolate data properties
  29591. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  29592. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  29593. * properties may be accessed as free variables in the template. If a setting
  29594. * object is given, it takes precedence over `_.templateSettings` values.
  29595. *
  29596. * **Note:** In the development build `_.template` utilizes
  29597. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  29598. * for easier debugging.
  29599. *
  29600. * For more information on precompiling templates see
  29601. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  29602. *
  29603. * For more information on Chrome extension sandboxes see
  29604. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  29605. *
  29606. * @static
  29607. * @since 0.1.0
  29608. * @memberOf _
  29609. * @category String
  29610. * @param {string} [string=''] The template string.
  29611. * @param {Object} [options={}] The options object.
  29612. * @param {RegExp} [options.escape=_.templateSettings.escape]
  29613. * The HTML "escape" delimiter.
  29614. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  29615. * The "evaluate" delimiter.
  29616. * @param {Object} [options.imports=_.templateSettings.imports]
  29617. * An object to import into the template as free variables.
  29618. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  29619. * The "interpolate" delimiter.
  29620. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  29621. * The sourceURL of the compiled template.
  29622. * @param {string} [options.variable='obj']
  29623. * The data object variable name.
  29624. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29625. * @returns {Function} Returns the compiled template function.
  29626. * @example
  29627. *
  29628. * // Use the "interpolate" delimiter to create a compiled template.
  29629. * var compiled = _.template('hello <%= user %>!');
  29630. * compiled({ 'user': 'fred' });
  29631. * // => 'hello fred!'
  29632. *
  29633. * // Use the HTML "escape" delimiter to escape data property values.
  29634. * var compiled = _.template('<b><%- value %></b>');
  29635. * compiled({ 'value': '<script>' });
  29636. * // => '<b>&lt;script&gt;</b>'
  29637. *
  29638. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  29639. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  29640. * compiled({ 'users': ['fred', 'barney'] });
  29641. * // => '<li>fred</li><li>barney</li>'
  29642. *
  29643. * // Use the internal `print` function in "evaluate" delimiters.
  29644. * var compiled = _.template('<% print("hello " + user); %>!');
  29645. * compiled({ 'user': 'barney' });
  29646. * // => 'hello barney!'
  29647. *
  29648. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  29649. * // Disable support by replacing the "interpolate" delimiter.
  29650. * var compiled = _.template('hello ${ user }!');
  29651. * compiled({ 'user': 'pebbles' });
  29652. * // => 'hello pebbles!'
  29653. *
  29654. * // Use backslashes to treat delimiters as plain text.
  29655. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  29656. * compiled({ 'value': 'ignored' });
  29657. * // => '<%- value %>'
  29658. *
  29659. * // Use the `imports` option to import `jQuery` as `jq`.
  29660. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  29661. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  29662. * compiled({ 'users': ['fred', 'barney'] });
  29663. * // => '<li>fred</li><li>barney</li>'
  29664. *
  29665. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  29666. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  29667. * compiled(data);
  29668. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  29669. *
  29670. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  29671. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  29672. * compiled.source;
  29673. * // => function(data) {
  29674. * // var __t, __p = '';
  29675. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  29676. * // return __p;
  29677. * // }
  29678. *
  29679. * // Use custom template delimiters.
  29680. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  29681. * var compiled = _.template('hello {{ user }}!');
  29682. * compiled({ 'user': 'mustache' });
  29683. * // => 'hello mustache!'
  29684. *
  29685. * // Use the `source` property to inline compiled templates for meaningful
  29686. * // line numbers in error messages and stack traces.
  29687. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  29688. * var JST = {\
  29689. * "main": ' + _.template(mainText).source + '\
  29690. * };\
  29691. * ');
  29692. */
  29693. function template(string, options, guard) {
  29694. // Based on John Resig's `tmpl` implementation
  29695. // (http://ejohn.org/blog/javascript-micro-templating/)
  29696. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  29697. var settings = lodash.templateSettings;
  29698. if (guard && isIterateeCall(string, options, guard)) {
  29699. options = undefined;
  29700. }
  29701. string = toString(string);
  29702. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  29703. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  29704. importsKeys = keys(imports),
  29705. importsValues = baseValues(imports, importsKeys);
  29706. var isEscaping,
  29707. isEvaluating,
  29708. index = 0,
  29709. interpolate = options.interpolate || reNoMatch,
  29710. source = "__p += '";
  29711. // Compile the regexp to match each delimiter.
  29712. var reDelimiters = RegExp(
  29713. (options.escape || reNoMatch).source + '|' +
  29714. interpolate.source + '|' +
  29715. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  29716. (options.evaluate || reNoMatch).source + '|$'
  29717. , 'g');
  29718. // Use a sourceURL for easier debugging.
  29719. // The sourceURL gets injected into the source that's eval-ed, so be careful
  29720. // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
  29721. // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
  29722. var sourceURL = '//# sourceURL=' +
  29723. (hasOwnProperty.call(options, 'sourceURL')
  29724. ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
  29725. : ('lodash.templateSources[' + (++templateCounter) + ']')
  29726. ) + '\n';
  29727. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  29728. interpolateValue || (interpolateValue = esTemplateValue);
  29729. // Escape characters that can't be included in string literals.
  29730. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  29731. // Replace delimiters with snippets.
  29732. if (escapeValue) {
  29733. isEscaping = true;
  29734. source += "' +\n__e(" + escapeValue + ") +\n'";
  29735. }
  29736. if (evaluateValue) {
  29737. isEvaluating = true;
  29738. source += "';\n" + evaluateValue + ";\n__p += '";
  29739. }
  29740. if (interpolateValue) {
  29741. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  29742. }
  29743. index = offset + match.length;
  29744. // The JS engine embedded in Adobe products needs `match` returned in
  29745. // order to produce the correct `offset` value.
  29746. return match;
  29747. });
  29748. source += "';\n";
  29749. // If `variable` is not specified wrap a with-statement around the generated
  29750. // code to add the data object to the top of the scope chain.
  29751. // Like with sourceURL, we take care to not check the option's prototype,
  29752. // as this configuration is a code injection vector.
  29753. var variable = hasOwnProperty.call(options, 'variable') && options.variable;
  29754. if (!variable) {
  29755. source = 'with (obj) {\n' + source + '\n}\n';
  29756. }
  29757. // Cleanup code by stripping empty strings.
  29758. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  29759. .replace(reEmptyStringMiddle, '$1')
  29760. .replace(reEmptyStringTrailing, '$1;');
  29761. // Frame code as the function body.
  29762. source = 'function(' + (variable || 'obj') + ') {\n' +
  29763. (variable
  29764. ? ''
  29765. : 'obj || (obj = {});\n'
  29766. ) +
  29767. "var __t, __p = ''" +
  29768. (isEscaping
  29769. ? ', __e = _.escape'
  29770. : ''
  29771. ) +
  29772. (isEvaluating
  29773. ? ', __j = Array.prototype.join;\n' +
  29774. "function print() { __p += __j.call(arguments, '') }\n"
  29775. : ';\n'
  29776. ) +
  29777. source +
  29778. 'return __p\n}';
  29779. var result = attempt(function() {
  29780. return Function(importsKeys, sourceURL + 'return ' + source)
  29781. .apply(undefined, importsValues);
  29782. });
  29783. // Provide the compiled function's source by its `toString` method or
  29784. // the `source` property as a convenience for inlining compiled templates.
  29785. result.source = source;
  29786. if (isError(result)) {
  29787. throw result;
  29788. }
  29789. return result;
  29790. }
  29791. /**
  29792. * Converts `string`, as a whole, to lower case just like
  29793. * [String#toLowerCase](https://mdn.io/toLowerCase).
  29794. *
  29795. * @static
  29796. * @memberOf _
  29797. * @since 4.0.0
  29798. * @category String
  29799. * @param {string} [string=''] The string to convert.
  29800. * @returns {string} Returns the lower cased string.
  29801. * @example
  29802. *
  29803. * _.toLower('--Foo-Bar--');
  29804. * // => '--foo-bar--'
  29805. *
  29806. * _.toLower('fooBar');
  29807. * // => 'foobar'
  29808. *
  29809. * _.toLower('__FOO_BAR__');
  29810. * // => '__foo_bar__'
  29811. */
  29812. function toLower(value) {
  29813. return toString(value).toLowerCase();
  29814. }
  29815. /**
  29816. * Converts `string`, as a whole, to upper case just like
  29817. * [String#toUpperCase](https://mdn.io/toUpperCase).
  29818. *
  29819. * @static
  29820. * @memberOf _
  29821. * @since 4.0.0
  29822. * @category String
  29823. * @param {string} [string=''] The string to convert.
  29824. * @returns {string} Returns the upper cased string.
  29825. * @example
  29826. *
  29827. * _.toUpper('--foo-bar--');
  29828. * // => '--FOO-BAR--'
  29829. *
  29830. * _.toUpper('fooBar');
  29831. * // => 'FOOBAR'
  29832. *
  29833. * _.toUpper('__foo_bar__');
  29834. * // => '__FOO_BAR__'
  29835. */
  29836. function toUpper(value) {
  29837. return toString(value).toUpperCase();
  29838. }
  29839. /**
  29840. * Removes leading and trailing whitespace or specified characters from `string`.
  29841. *
  29842. * @static
  29843. * @memberOf _
  29844. * @since 3.0.0
  29845. * @category String
  29846. * @param {string} [string=''] The string to trim.
  29847. * @param {string} [chars=whitespace] The characters to trim.
  29848. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29849. * @returns {string} Returns the trimmed string.
  29850. * @example
  29851. *
  29852. * _.trim(' abc ');
  29853. * // => 'abc'
  29854. *
  29855. * _.trim('-_-abc-_-', '_-');
  29856. * // => 'abc'
  29857. *
  29858. * _.map([' foo ', ' bar '], _.trim);
  29859. * // => ['foo', 'bar']
  29860. */
  29861. function trim(string, chars, guard) {
  29862. string = toString(string);
  29863. if (string && (guard || chars === undefined)) {
  29864. return string.replace(reTrim, '');
  29865. }
  29866. if (!string || !(chars = baseToString(chars))) {
  29867. return string;
  29868. }
  29869. var strSymbols = stringToArray(string),
  29870. chrSymbols = stringToArray(chars),
  29871. start = charsStartIndex(strSymbols, chrSymbols),
  29872. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  29873. return castSlice(strSymbols, start, end).join('');
  29874. }
  29875. /**
  29876. * Removes trailing whitespace or specified characters from `string`.
  29877. *
  29878. * @static
  29879. * @memberOf _
  29880. * @since 4.0.0
  29881. * @category String
  29882. * @param {string} [string=''] The string to trim.
  29883. * @param {string} [chars=whitespace] The characters to trim.
  29884. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29885. * @returns {string} Returns the trimmed string.
  29886. * @example
  29887. *
  29888. * _.trimEnd(' abc ');
  29889. * // => ' abc'
  29890. *
  29891. * _.trimEnd('-_-abc-_-', '_-');
  29892. * // => '-_-abc'
  29893. */
  29894. function trimEnd(string, chars, guard) {
  29895. string = toString(string);
  29896. if (string && (guard || chars === undefined)) {
  29897. return string.replace(reTrimEnd, '');
  29898. }
  29899. if (!string || !(chars = baseToString(chars))) {
  29900. return string;
  29901. }
  29902. var strSymbols = stringToArray(string),
  29903. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  29904. return castSlice(strSymbols, 0, end).join('');
  29905. }
  29906. /**
  29907. * Removes leading whitespace or specified characters from `string`.
  29908. *
  29909. * @static
  29910. * @memberOf _
  29911. * @since 4.0.0
  29912. * @category String
  29913. * @param {string} [string=''] The string to trim.
  29914. * @param {string} [chars=whitespace] The characters to trim.
  29915. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29916. * @returns {string} Returns the trimmed string.
  29917. * @example
  29918. *
  29919. * _.trimStart(' abc ');
  29920. * // => 'abc '
  29921. *
  29922. * _.trimStart('-_-abc-_-', '_-');
  29923. * // => 'abc-_-'
  29924. */
  29925. function trimStart(string, chars, guard) {
  29926. string = toString(string);
  29927. if (string && (guard || chars === undefined)) {
  29928. return string.replace(reTrimStart, '');
  29929. }
  29930. if (!string || !(chars = baseToString(chars))) {
  29931. return string;
  29932. }
  29933. var strSymbols = stringToArray(string),
  29934. start = charsStartIndex(strSymbols, stringToArray(chars));
  29935. return castSlice(strSymbols, start).join('');
  29936. }
  29937. /**
  29938. * Truncates `string` if it's longer than the given maximum string length.
  29939. * The last characters of the truncated string are replaced with the omission
  29940. * string which defaults to "...".
  29941. *
  29942. * @static
  29943. * @memberOf _
  29944. * @since 4.0.0
  29945. * @category String
  29946. * @param {string} [string=''] The string to truncate.
  29947. * @param {Object} [options={}] The options object.
  29948. * @param {number} [options.length=30] The maximum string length.
  29949. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  29950. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  29951. * @returns {string} Returns the truncated string.
  29952. * @example
  29953. *
  29954. * _.truncate('hi-diddly-ho there, neighborino');
  29955. * // => 'hi-diddly-ho there, neighbo...'
  29956. *
  29957. * _.truncate('hi-diddly-ho there, neighborino', {
  29958. * 'length': 24,
  29959. * 'separator': ' '
  29960. * });
  29961. * // => 'hi-diddly-ho there,...'
  29962. *
  29963. * _.truncate('hi-diddly-ho there, neighborino', {
  29964. * 'length': 24,
  29965. * 'separator': /,? +/
  29966. * });
  29967. * // => 'hi-diddly-ho there...'
  29968. *
  29969. * _.truncate('hi-diddly-ho there, neighborino', {
  29970. * 'omission': ' [...]'
  29971. * });
  29972. * // => 'hi-diddly-ho there, neig [...]'
  29973. */
  29974. function truncate(string, options) {
  29975. var length = DEFAULT_TRUNC_LENGTH,
  29976. omission = DEFAULT_TRUNC_OMISSION;
  29977. if (isObject(options)) {
  29978. var separator = 'separator' in options ? options.separator : separator;
  29979. length = 'length' in options ? toInteger(options.length) : length;
  29980. omission = 'omission' in options ? baseToString(options.omission) : omission;
  29981. }
  29982. string = toString(string);
  29983. var strLength = string.length;
  29984. if (hasUnicode(string)) {
  29985. var strSymbols = stringToArray(string);
  29986. strLength = strSymbols.length;
  29987. }
  29988. if (length >= strLength) {
  29989. return string;
  29990. }
  29991. var end = length - stringSize(omission);
  29992. if (end < 1) {
  29993. return omission;
  29994. }
  29995. var result = strSymbols
  29996. ? castSlice(strSymbols, 0, end).join('')
  29997. : string.slice(0, end);
  29998. if (separator === undefined) {
  29999. return result + omission;
  30000. }
  30001. if (strSymbols) {
  30002. end += (result.length - end);
  30003. }
  30004. if (isRegExp(separator)) {
  30005. if (string.slice(end).search(separator)) {
  30006. var match,
  30007. substring = result;
  30008. if (!separator.global) {
  30009. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  30010. }
  30011. separator.lastIndex = 0;
  30012. while ((match = separator.exec(substring))) {
  30013. var newEnd = match.index;
  30014. }
  30015. result = result.slice(0, newEnd === undefined ? end : newEnd);
  30016. }
  30017. } else if (string.indexOf(baseToString(separator), end) != end) {
  30018. var index = result.lastIndexOf(separator);
  30019. if (index > -1) {
  30020. result = result.slice(0, index);
  30021. }
  30022. }
  30023. return result + omission;
  30024. }
  30025. /**
  30026. * The inverse of `_.escape`; this method converts the HTML entities
  30027. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  30028. * their corresponding characters.
  30029. *
  30030. * **Note:** No other HTML entities are unescaped. To unescape additional
  30031. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  30032. *
  30033. * @static
  30034. * @memberOf _
  30035. * @since 0.6.0
  30036. * @category String
  30037. * @param {string} [string=''] The string to unescape.
  30038. * @returns {string} Returns the unescaped string.
  30039. * @example
  30040. *
  30041. * _.unescape('fred, barney, &amp; pebbles');
  30042. * // => 'fred, barney, & pebbles'
  30043. */
  30044. function unescape(string) {
  30045. string = toString(string);
  30046. return (string && reHasEscapedHtml.test(string))
  30047. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  30048. : string;
  30049. }
  30050. /**
  30051. * Converts `string`, as space separated words, to upper case.
  30052. *
  30053. * @static
  30054. * @memberOf _
  30055. * @since 4.0.0
  30056. * @category String
  30057. * @param {string} [string=''] The string to convert.
  30058. * @returns {string} Returns the upper cased string.
  30059. * @example
  30060. *
  30061. * _.upperCase('--foo-bar');
  30062. * // => 'FOO BAR'
  30063. *
  30064. * _.upperCase('fooBar');
  30065. * // => 'FOO BAR'
  30066. *
  30067. * _.upperCase('__foo_bar__');
  30068. * // => 'FOO BAR'
  30069. */
  30070. var upperCase = createCompounder(function(result, word, index) {
  30071. return result + (index ? ' ' : '') + word.toUpperCase();
  30072. });
  30073. /**
  30074. * Converts the first character of `string` to upper case.
  30075. *
  30076. * @static
  30077. * @memberOf _
  30078. * @since 4.0.0
  30079. * @category String
  30080. * @param {string} [string=''] The string to convert.
  30081. * @returns {string} Returns the converted string.
  30082. * @example
  30083. *
  30084. * _.upperFirst('fred');
  30085. * // => 'Fred'
  30086. *
  30087. * _.upperFirst('FRED');
  30088. * // => 'FRED'
  30089. */
  30090. var upperFirst = createCaseFirst('toUpperCase');
  30091. /**
  30092. * Splits `string` into an array of its words.
  30093. *
  30094. * @static
  30095. * @memberOf _
  30096. * @since 3.0.0
  30097. * @category String
  30098. * @param {string} [string=''] The string to inspect.
  30099. * @param {RegExp|string} [pattern] The pattern to match words.
  30100. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30101. * @returns {Array} Returns the words of `string`.
  30102. * @example
  30103. *
  30104. * _.words('fred, barney, & pebbles');
  30105. * // => ['fred', 'barney', 'pebbles']
  30106. *
  30107. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  30108. * // => ['fred', 'barney', '&', 'pebbles']
  30109. */
  30110. function words(string, pattern, guard) {
  30111. string = toString(string);
  30112. pattern = guard ? undefined : pattern;
  30113. if (pattern === undefined) {
  30114. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  30115. }
  30116. return string.match(pattern) || [];
  30117. }
  30118. /*------------------------------------------------------------------------*/
  30119. /**
  30120. * Attempts to invoke `func`, returning either the result or the caught error
  30121. * object. Any additional arguments are provided to `func` when it's invoked.
  30122. *
  30123. * @static
  30124. * @memberOf _
  30125. * @since 3.0.0
  30126. * @category Util
  30127. * @param {Function} func The function to attempt.
  30128. * @param {...*} [args] The arguments to invoke `func` with.
  30129. * @returns {*} Returns the `func` result or error object.
  30130. * @example
  30131. *
  30132. * // Avoid throwing errors for invalid selectors.
  30133. * var elements = _.attempt(function(selector) {
  30134. * return document.querySelectorAll(selector);
  30135. * }, '>_>');
  30136. *
  30137. * if (_.isError(elements)) {
  30138. * elements = [];
  30139. * }
  30140. */
  30141. var attempt = baseRest(function(func, args) {
  30142. try {
  30143. return apply(func, undefined, args);
  30144. } catch (e) {
  30145. return isError(e) ? e : new Error(e);
  30146. }
  30147. });
  30148. /**
  30149. * Binds methods of an object to the object itself, overwriting the existing
  30150. * method.
  30151. *
  30152. * **Note:** This method doesn't set the "length" property of bound functions.
  30153. *
  30154. * @static
  30155. * @since 0.1.0
  30156. * @memberOf _
  30157. * @category Util
  30158. * @param {Object} object The object to bind and assign the bound methods to.
  30159. * @param {...(string|string[])} methodNames The object method names to bind.
  30160. * @returns {Object} Returns `object`.
  30161. * @example
  30162. *
  30163. * var view = {
  30164. * 'label': 'docs',
  30165. * 'click': function() {
  30166. * console.log('clicked ' + this.label);
  30167. * }
  30168. * };
  30169. *
  30170. * _.bindAll(view, ['click']);
  30171. * jQuery(element).on('click', view.click);
  30172. * // => Logs 'clicked docs' when clicked.
  30173. */
  30174. var bindAll = flatRest(function(object, methodNames) {
  30175. arrayEach(methodNames, function(key) {
  30176. key = toKey(key);
  30177. baseAssignValue(object, key, bind(object[key], object));
  30178. });
  30179. return object;
  30180. });
  30181. /**
  30182. * Creates a function that iterates over `pairs` and invokes the corresponding
  30183. * function of the first predicate to return truthy. The predicate-function
  30184. * pairs are invoked with the `this` binding and arguments of the created
  30185. * function.
  30186. *
  30187. * @static
  30188. * @memberOf _
  30189. * @since 4.0.0
  30190. * @category Util
  30191. * @param {Array} pairs The predicate-function pairs.
  30192. * @returns {Function} Returns the new composite function.
  30193. * @example
  30194. *
  30195. * var func = _.cond([
  30196. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  30197. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  30198. * [_.stubTrue, _.constant('no match')]
  30199. * ]);
  30200. *
  30201. * func({ 'a': 1, 'b': 2 });
  30202. * // => 'matches A'
  30203. *
  30204. * func({ 'a': 0, 'b': 1 });
  30205. * // => 'matches B'
  30206. *
  30207. * func({ 'a': '1', 'b': '2' });
  30208. * // => 'no match'
  30209. */
  30210. function cond(pairs) {
  30211. var length = pairs == null ? 0 : pairs.length,
  30212. toIteratee = getIteratee();
  30213. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  30214. if (typeof pair[1] != 'function') {
  30215. throw new TypeError(FUNC_ERROR_TEXT);
  30216. }
  30217. return [toIteratee(pair[0]), pair[1]];
  30218. });
  30219. return baseRest(function(args) {
  30220. var index = -1;
  30221. while (++index < length) {
  30222. var pair = pairs[index];
  30223. if (apply(pair[0], this, args)) {
  30224. return apply(pair[1], this, args);
  30225. }
  30226. }
  30227. });
  30228. }
  30229. /**
  30230. * Creates a function that invokes the predicate properties of `source` with
  30231. * the corresponding property values of a given object, returning `true` if
  30232. * all predicates return truthy, else `false`.
  30233. *
  30234. * **Note:** The created function is equivalent to `_.conformsTo` with
  30235. * `source` partially applied.
  30236. *
  30237. * @static
  30238. * @memberOf _
  30239. * @since 4.0.0
  30240. * @category Util
  30241. * @param {Object} source The object of property predicates to conform to.
  30242. * @returns {Function} Returns the new spec function.
  30243. * @example
  30244. *
  30245. * var objects = [
  30246. * { 'a': 2, 'b': 1 },
  30247. * { 'a': 1, 'b': 2 }
  30248. * ];
  30249. *
  30250. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  30251. * // => [{ 'a': 1, 'b': 2 }]
  30252. */
  30253. function conforms(source) {
  30254. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  30255. }
  30256. /**
  30257. * Creates a function that returns `value`.
  30258. *
  30259. * @static
  30260. * @memberOf _
  30261. * @since 2.4.0
  30262. * @category Util
  30263. * @param {*} value The value to return from the new function.
  30264. * @returns {Function} Returns the new constant function.
  30265. * @example
  30266. *
  30267. * var objects = _.times(2, _.constant({ 'a': 1 }));
  30268. *
  30269. * console.log(objects);
  30270. * // => [{ 'a': 1 }, { 'a': 1 }]
  30271. *
  30272. * console.log(objects[0] === objects[1]);
  30273. * // => true
  30274. */
  30275. function constant(value) {
  30276. return function() {
  30277. return value;
  30278. };
  30279. }
  30280. /**
  30281. * Checks `value` to determine whether a default value should be returned in
  30282. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  30283. * or `undefined`.
  30284. *
  30285. * @static
  30286. * @memberOf _
  30287. * @since 4.14.0
  30288. * @category Util
  30289. * @param {*} value The value to check.
  30290. * @param {*} defaultValue The default value.
  30291. * @returns {*} Returns the resolved value.
  30292. * @example
  30293. *
  30294. * _.defaultTo(1, 10);
  30295. * // => 1
  30296. *
  30297. * _.defaultTo(undefined, 10);
  30298. * // => 10
  30299. */
  30300. function defaultTo(value, defaultValue) {
  30301. return (value == null || value !== value) ? defaultValue : value;
  30302. }
  30303. /**
  30304. * Creates a function that returns the result of invoking the given functions
  30305. * with the `this` binding of the created function, where each successive
  30306. * invocation is supplied the return value of the previous.
  30307. *
  30308. * @static
  30309. * @memberOf _
  30310. * @since 3.0.0
  30311. * @category Util
  30312. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30313. * @returns {Function} Returns the new composite function.
  30314. * @see _.flowRight
  30315. * @example
  30316. *
  30317. * function square(n) {
  30318. * return n * n;
  30319. * }
  30320. *
  30321. * var addSquare = _.flow([_.add, square]);
  30322. * addSquare(1, 2);
  30323. * // => 9
  30324. */
  30325. var flow = createFlow();
  30326. /**
  30327. * This method is like `_.flow` except that it creates a function that
  30328. * invokes the given functions from right to left.
  30329. *
  30330. * @static
  30331. * @since 3.0.0
  30332. * @memberOf _
  30333. * @category Util
  30334. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30335. * @returns {Function} Returns the new composite function.
  30336. * @see _.flow
  30337. * @example
  30338. *
  30339. * function square(n) {
  30340. * return n * n;
  30341. * }
  30342. *
  30343. * var addSquare = _.flowRight([square, _.add]);
  30344. * addSquare(1, 2);
  30345. * // => 9
  30346. */
  30347. var flowRight = createFlow(true);
  30348. /**
  30349. * This method returns the first argument it receives.
  30350. *
  30351. * @static
  30352. * @since 0.1.0
  30353. * @memberOf _
  30354. * @category Util
  30355. * @param {*} value Any value.
  30356. * @returns {*} Returns `value`.
  30357. * @example
  30358. *
  30359. * var object = { 'a': 1 };
  30360. *
  30361. * console.log(_.identity(object) === object);
  30362. * // => true
  30363. */
  30364. function identity(value) {
  30365. return value;
  30366. }
  30367. /**
  30368. * Creates a function that invokes `func` with the arguments of the created
  30369. * function. If `func` is a property name, the created function returns the
  30370. * property value for a given element. If `func` is an array or object, the
  30371. * created function returns `true` for elements that contain the equivalent
  30372. * source properties, otherwise it returns `false`.
  30373. *
  30374. * @static
  30375. * @since 4.0.0
  30376. * @memberOf _
  30377. * @category Util
  30378. * @param {*} [func=_.identity] The value to convert to a callback.
  30379. * @returns {Function} Returns the callback.
  30380. * @example
  30381. *
  30382. * var users = [
  30383. * { 'user': 'barney', 'age': 36, 'active': true },
  30384. * { 'user': 'fred', 'age': 40, 'active': false }
  30385. * ];
  30386. *
  30387. * // The `_.matches` iteratee shorthand.
  30388. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  30389. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  30390. *
  30391. * // The `_.matchesProperty` iteratee shorthand.
  30392. * _.filter(users, _.iteratee(['user', 'fred']));
  30393. * // => [{ 'user': 'fred', 'age': 40 }]
  30394. *
  30395. * // The `_.property` iteratee shorthand.
  30396. * _.map(users, _.iteratee('user'));
  30397. * // => ['barney', 'fred']
  30398. *
  30399. * // Create custom iteratee shorthands.
  30400. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  30401. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  30402. * return func.test(string);
  30403. * };
  30404. * });
  30405. *
  30406. * _.filter(['abc', 'def'], /ef/);
  30407. * // => ['def']
  30408. */
  30409. function iteratee(func) {
  30410. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  30411. }
  30412. /**
  30413. * Creates a function that performs a partial deep comparison between a given
  30414. * object and `source`, returning `true` if the given object has equivalent
  30415. * property values, else `false`.
  30416. *
  30417. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  30418. * partially applied.
  30419. *
  30420. * Partial comparisons will match empty array and empty object `source`
  30421. * values against any array or object value, respectively. See `_.isEqual`
  30422. * for a list of supported value comparisons.
  30423. *
  30424. * @static
  30425. * @memberOf _
  30426. * @since 3.0.0
  30427. * @category Util
  30428. * @param {Object} source The object of property values to match.
  30429. * @returns {Function} Returns the new spec function.
  30430. * @example
  30431. *
  30432. * var objects = [
  30433. * { 'a': 1, 'b': 2, 'c': 3 },
  30434. * { 'a': 4, 'b': 5, 'c': 6 }
  30435. * ];
  30436. *
  30437. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  30438. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  30439. */
  30440. function matches(source) {
  30441. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  30442. }
  30443. /**
  30444. * Creates a function that performs a partial deep comparison between the
  30445. * value at `path` of a given object to `srcValue`, returning `true` if the
  30446. * object value is equivalent, else `false`.
  30447. *
  30448. * **Note:** Partial comparisons will match empty array and empty object
  30449. * `srcValue` values against any array or object value, respectively. See
  30450. * `_.isEqual` for a list of supported value comparisons.
  30451. *
  30452. * @static
  30453. * @memberOf _
  30454. * @since 3.2.0
  30455. * @category Util
  30456. * @param {Array|string} path The path of the property to get.
  30457. * @param {*} srcValue The value to match.
  30458. * @returns {Function} Returns the new spec function.
  30459. * @example
  30460. *
  30461. * var objects = [
  30462. * { 'a': 1, 'b': 2, 'c': 3 },
  30463. * { 'a': 4, 'b': 5, 'c': 6 }
  30464. * ];
  30465. *
  30466. * _.find(objects, _.matchesProperty('a', 4));
  30467. * // => { 'a': 4, 'b': 5, 'c': 6 }
  30468. */
  30469. function matchesProperty(path, srcValue) {
  30470. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  30471. }
  30472. /**
  30473. * Creates a function that invokes the method at `path` of a given object.
  30474. * Any additional arguments are provided to the invoked method.
  30475. *
  30476. * @static
  30477. * @memberOf _
  30478. * @since 3.7.0
  30479. * @category Util
  30480. * @param {Array|string} path The path of the method to invoke.
  30481. * @param {...*} [args] The arguments to invoke the method with.
  30482. * @returns {Function} Returns the new invoker function.
  30483. * @example
  30484. *
  30485. * var objects = [
  30486. * { 'a': { 'b': _.constant(2) } },
  30487. * { 'a': { 'b': _.constant(1) } }
  30488. * ];
  30489. *
  30490. * _.map(objects, _.method('a.b'));
  30491. * // => [2, 1]
  30492. *
  30493. * _.map(objects, _.method(['a', 'b']));
  30494. * // => [2, 1]
  30495. */
  30496. var method = baseRest(function(path, args) {
  30497. return function(object) {
  30498. return baseInvoke(object, path, args);
  30499. };
  30500. });
  30501. /**
  30502. * The opposite of `_.method`; this method creates a function that invokes
  30503. * the method at a given path of `object`. Any additional arguments are
  30504. * provided to the invoked method.
  30505. *
  30506. * @static
  30507. * @memberOf _
  30508. * @since 3.7.0
  30509. * @category Util
  30510. * @param {Object} object The object to query.
  30511. * @param {...*} [args] The arguments to invoke the method with.
  30512. * @returns {Function} Returns the new invoker function.
  30513. * @example
  30514. *
  30515. * var array = _.times(3, _.constant),
  30516. * object = { 'a': array, 'b': array, 'c': array };
  30517. *
  30518. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  30519. * // => [2, 0]
  30520. *
  30521. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  30522. * // => [2, 0]
  30523. */
  30524. var methodOf = baseRest(function(object, args) {
  30525. return function(path) {
  30526. return baseInvoke(object, path, args);
  30527. };
  30528. });
  30529. /**
  30530. * Adds all own enumerable string keyed function properties of a source
  30531. * object to the destination object. If `object` is a function, then methods
  30532. * are added to its prototype as well.
  30533. *
  30534. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  30535. * avoid conflicts caused by modifying the original.
  30536. *
  30537. * @static
  30538. * @since 0.1.0
  30539. * @memberOf _
  30540. * @category Util
  30541. * @param {Function|Object} [object=lodash] The destination object.
  30542. * @param {Object} source The object of functions to add.
  30543. * @param {Object} [options={}] The options object.
  30544. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  30545. * @returns {Function|Object} Returns `object`.
  30546. * @example
  30547. *
  30548. * function vowels(string) {
  30549. * return _.filter(string, function(v) {
  30550. * return /[aeiou]/i.test(v);
  30551. * });
  30552. * }
  30553. *
  30554. * _.mixin({ 'vowels': vowels });
  30555. * _.vowels('fred');
  30556. * // => ['e']
  30557. *
  30558. * _('fred').vowels().value();
  30559. * // => ['e']
  30560. *
  30561. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  30562. * _('fred').vowels();
  30563. * // => ['e']
  30564. */
  30565. function mixin(object, source, options) {
  30566. var props = keys(source),
  30567. methodNames = baseFunctions(source, props);
  30568. if (options == null &&
  30569. !(isObject(source) && (methodNames.length || !props.length))) {
  30570. options = source;
  30571. source = object;
  30572. object = this;
  30573. methodNames = baseFunctions(source, keys(source));
  30574. }
  30575. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  30576. isFunc = isFunction(object);
  30577. arrayEach(methodNames, function(methodName) {
  30578. var func = source[methodName];
  30579. object[methodName] = func;
  30580. if (isFunc) {
  30581. object.prototype[methodName] = function() {
  30582. var chainAll = this.__chain__;
  30583. if (chain || chainAll) {
  30584. var result = object(this.__wrapped__),
  30585. actions = result.__actions__ = copyArray(this.__actions__);
  30586. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  30587. result.__chain__ = chainAll;
  30588. return result;
  30589. }
  30590. return func.apply(object, arrayPush([this.value()], arguments));
  30591. };
  30592. }
  30593. });
  30594. return object;
  30595. }
  30596. /**
  30597. * Reverts the `_` variable to its previous value and returns a reference to
  30598. * the `lodash` function.
  30599. *
  30600. * @static
  30601. * @since 0.1.0
  30602. * @memberOf _
  30603. * @category Util
  30604. * @returns {Function} Returns the `lodash` function.
  30605. * @example
  30606. *
  30607. * var lodash = _.noConflict();
  30608. */
  30609. function noConflict() {
  30610. if (root._ === this) {
  30611. root._ = oldDash;
  30612. }
  30613. return this;
  30614. }
  30615. /**
  30616. * This method returns `undefined`.
  30617. *
  30618. * @static
  30619. * @memberOf _
  30620. * @since 2.3.0
  30621. * @category Util
  30622. * @example
  30623. *
  30624. * _.times(2, _.noop);
  30625. * // => [undefined, undefined]
  30626. */
  30627. function noop() {
  30628. // No operation performed.
  30629. }
  30630. /**
  30631. * Creates a function that gets the argument at index `n`. If `n` is negative,
  30632. * the nth argument from the end is returned.
  30633. *
  30634. * @static
  30635. * @memberOf _
  30636. * @since 4.0.0
  30637. * @category Util
  30638. * @param {number} [n=0] The index of the argument to return.
  30639. * @returns {Function} Returns the new pass-thru function.
  30640. * @example
  30641. *
  30642. * var func = _.nthArg(1);
  30643. * func('a', 'b', 'c', 'd');
  30644. * // => 'b'
  30645. *
  30646. * var func = _.nthArg(-2);
  30647. * func('a', 'b', 'c', 'd');
  30648. * // => 'c'
  30649. */
  30650. function nthArg(n) {
  30651. n = toInteger(n);
  30652. return baseRest(function(args) {
  30653. return baseNth(args, n);
  30654. });
  30655. }
  30656. /**
  30657. * Creates a function that invokes `iteratees` with the arguments it receives
  30658. * and returns their results.
  30659. *
  30660. * @static
  30661. * @memberOf _
  30662. * @since 4.0.0
  30663. * @category Util
  30664. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  30665. * The iteratees to invoke.
  30666. * @returns {Function} Returns the new function.
  30667. * @example
  30668. *
  30669. * var func = _.over([Math.max, Math.min]);
  30670. *
  30671. * func(1, 2, 3, 4);
  30672. * // => [4, 1]
  30673. */
  30674. var over = createOver(arrayMap);
  30675. /**
  30676. * Creates a function that checks if **all** of the `predicates` return
  30677. * truthy when invoked with the arguments it receives.
  30678. *
  30679. * @static
  30680. * @memberOf _
  30681. * @since 4.0.0
  30682. * @category Util
  30683. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30684. * The predicates to check.
  30685. * @returns {Function} Returns the new function.
  30686. * @example
  30687. *
  30688. * var func = _.overEvery([Boolean, isFinite]);
  30689. *
  30690. * func('1');
  30691. * // => true
  30692. *
  30693. * func(null);
  30694. * // => false
  30695. *
  30696. * func(NaN);
  30697. * // => false
  30698. */
  30699. var overEvery = createOver(arrayEvery);
  30700. /**
  30701. * Creates a function that checks if **any** of the `predicates` return
  30702. * truthy when invoked with the arguments it receives.
  30703. *
  30704. * @static
  30705. * @memberOf _
  30706. * @since 4.0.0
  30707. * @category Util
  30708. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30709. * The predicates to check.
  30710. * @returns {Function} Returns the new function.
  30711. * @example
  30712. *
  30713. * var func = _.overSome([Boolean, isFinite]);
  30714. *
  30715. * func('1');
  30716. * // => true
  30717. *
  30718. * func(null);
  30719. * // => true
  30720. *
  30721. * func(NaN);
  30722. * // => false
  30723. */
  30724. var overSome = createOver(arraySome);
  30725. /**
  30726. * Creates a function that returns the value at `path` of a given object.
  30727. *
  30728. * @static
  30729. * @memberOf _
  30730. * @since 2.4.0
  30731. * @category Util
  30732. * @param {Array|string} path The path of the property to get.
  30733. * @returns {Function} Returns the new accessor function.
  30734. * @example
  30735. *
  30736. * var objects = [
  30737. * { 'a': { 'b': 2 } },
  30738. * { 'a': { 'b': 1 } }
  30739. * ];
  30740. *
  30741. * _.map(objects, _.property('a.b'));
  30742. * // => [2, 1]
  30743. *
  30744. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  30745. * // => [1, 2]
  30746. */
  30747. function property(path) {
  30748. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  30749. }
  30750. /**
  30751. * The opposite of `_.property`; this method creates a function that returns
  30752. * the value at a given path of `object`.
  30753. *
  30754. * @static
  30755. * @memberOf _
  30756. * @since 3.0.0
  30757. * @category Util
  30758. * @param {Object} object The object to query.
  30759. * @returns {Function} Returns the new accessor function.
  30760. * @example
  30761. *
  30762. * var array = [0, 1, 2],
  30763. * object = { 'a': array, 'b': array, 'c': array };
  30764. *
  30765. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  30766. * // => [2, 0]
  30767. *
  30768. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  30769. * // => [2, 0]
  30770. */
  30771. function propertyOf(object) {
  30772. return function(path) {
  30773. return object == null ? undefined : baseGet(object, path);
  30774. };
  30775. }
  30776. /**
  30777. * Creates an array of numbers (positive and/or negative) progressing from
  30778. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  30779. * `start` is specified without an `end` or `step`. If `end` is not specified,
  30780. * it's set to `start` with `start` then set to `0`.
  30781. *
  30782. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  30783. * floating-point values which can produce unexpected results.
  30784. *
  30785. * @static
  30786. * @since 0.1.0
  30787. * @memberOf _
  30788. * @category Util
  30789. * @param {number} [start=0] The start of the range.
  30790. * @param {number} end The end of the range.
  30791. * @param {number} [step=1] The value to increment or decrement by.
  30792. * @returns {Array} Returns the range of numbers.
  30793. * @see _.inRange, _.rangeRight
  30794. * @example
  30795. *
  30796. * _.range(4);
  30797. * // => [0, 1, 2, 3]
  30798. *
  30799. * _.range(-4);
  30800. * // => [0, -1, -2, -3]
  30801. *
  30802. * _.range(1, 5);
  30803. * // => [1, 2, 3, 4]
  30804. *
  30805. * _.range(0, 20, 5);
  30806. * // => [0, 5, 10, 15]
  30807. *
  30808. * _.range(0, -4, -1);
  30809. * // => [0, -1, -2, -3]
  30810. *
  30811. * _.range(1, 4, 0);
  30812. * // => [1, 1, 1]
  30813. *
  30814. * _.range(0);
  30815. * // => []
  30816. */
  30817. var range = createRange();
  30818. /**
  30819. * This method is like `_.range` except that it populates values in
  30820. * descending order.
  30821. *
  30822. * @static
  30823. * @memberOf _
  30824. * @since 4.0.0
  30825. * @category Util
  30826. * @param {number} [start=0] The start of the range.
  30827. * @param {number} end The end of the range.
  30828. * @param {number} [step=1] The value to increment or decrement by.
  30829. * @returns {Array} Returns the range of numbers.
  30830. * @see _.inRange, _.range
  30831. * @example
  30832. *
  30833. * _.rangeRight(4);
  30834. * // => [3, 2, 1, 0]
  30835. *
  30836. * _.rangeRight(-4);
  30837. * // => [-3, -2, -1, 0]
  30838. *
  30839. * _.rangeRight(1, 5);
  30840. * // => [4, 3, 2, 1]
  30841. *
  30842. * _.rangeRight(0, 20, 5);
  30843. * // => [15, 10, 5, 0]
  30844. *
  30845. * _.rangeRight(0, -4, -1);
  30846. * // => [-3, -2, -1, 0]
  30847. *
  30848. * _.rangeRight(1, 4, 0);
  30849. * // => [1, 1, 1]
  30850. *
  30851. * _.rangeRight(0);
  30852. * // => []
  30853. */
  30854. var rangeRight = createRange(true);
  30855. /**
  30856. * This method returns a new empty array.
  30857. *
  30858. * @static
  30859. * @memberOf _
  30860. * @since 4.13.0
  30861. * @category Util
  30862. * @returns {Array} Returns the new empty array.
  30863. * @example
  30864. *
  30865. * var arrays = _.times(2, _.stubArray);
  30866. *
  30867. * console.log(arrays);
  30868. * // => [[], []]
  30869. *
  30870. * console.log(arrays[0] === arrays[1]);
  30871. * // => false
  30872. */
  30873. function stubArray() {
  30874. return [];
  30875. }
  30876. /**
  30877. * This method returns `false`.
  30878. *
  30879. * @static
  30880. * @memberOf _
  30881. * @since 4.13.0
  30882. * @category Util
  30883. * @returns {boolean} Returns `false`.
  30884. * @example
  30885. *
  30886. * _.times(2, _.stubFalse);
  30887. * // => [false, false]
  30888. */
  30889. function stubFalse() {
  30890. return false;
  30891. }
  30892. /**
  30893. * This method returns a new empty object.
  30894. *
  30895. * @static
  30896. * @memberOf _
  30897. * @since 4.13.0
  30898. * @category Util
  30899. * @returns {Object} Returns the new empty object.
  30900. * @example
  30901. *
  30902. * var objects = _.times(2, _.stubObject);
  30903. *
  30904. * console.log(objects);
  30905. * // => [{}, {}]
  30906. *
  30907. * console.log(objects[0] === objects[1]);
  30908. * // => false
  30909. */
  30910. function stubObject() {
  30911. return {};
  30912. }
  30913. /**
  30914. * This method returns an empty string.
  30915. *
  30916. * @static
  30917. * @memberOf _
  30918. * @since 4.13.0
  30919. * @category Util
  30920. * @returns {string} Returns the empty string.
  30921. * @example
  30922. *
  30923. * _.times(2, _.stubString);
  30924. * // => ['', '']
  30925. */
  30926. function stubString() {
  30927. return '';
  30928. }
  30929. /**
  30930. * This method returns `true`.
  30931. *
  30932. * @static
  30933. * @memberOf _
  30934. * @since 4.13.0
  30935. * @category Util
  30936. * @returns {boolean} Returns `true`.
  30937. * @example
  30938. *
  30939. * _.times(2, _.stubTrue);
  30940. * // => [true, true]
  30941. */
  30942. function stubTrue() {
  30943. return true;
  30944. }
  30945. /**
  30946. * Invokes the iteratee `n` times, returning an array of the results of
  30947. * each invocation. The iteratee is invoked with one argument; (index).
  30948. *
  30949. * @static
  30950. * @since 0.1.0
  30951. * @memberOf _
  30952. * @category Util
  30953. * @param {number} n The number of times to invoke `iteratee`.
  30954. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  30955. * @returns {Array} Returns the array of results.
  30956. * @example
  30957. *
  30958. * _.times(3, String);
  30959. * // => ['0', '1', '2']
  30960. *
  30961. * _.times(4, _.constant(0));
  30962. * // => [0, 0, 0, 0]
  30963. */
  30964. function times(n, iteratee) {
  30965. n = toInteger(n);
  30966. if (n < 1 || n > MAX_SAFE_INTEGER) {
  30967. return [];
  30968. }
  30969. var index = MAX_ARRAY_LENGTH,
  30970. length = nativeMin(n, MAX_ARRAY_LENGTH);
  30971. iteratee = getIteratee(iteratee);
  30972. n -= MAX_ARRAY_LENGTH;
  30973. var result = baseTimes(length, iteratee);
  30974. while (++index < n) {
  30975. iteratee(index);
  30976. }
  30977. return result;
  30978. }
  30979. /**
  30980. * Converts `value` to a property path array.
  30981. *
  30982. * @static
  30983. * @memberOf _
  30984. * @since 4.0.0
  30985. * @category Util
  30986. * @param {*} value The value to convert.
  30987. * @returns {Array} Returns the new property path array.
  30988. * @example
  30989. *
  30990. * _.toPath('a.b.c');
  30991. * // => ['a', 'b', 'c']
  30992. *
  30993. * _.toPath('a[0].b.c');
  30994. * // => ['a', '0', 'b', 'c']
  30995. */
  30996. function toPath(value) {
  30997. if (isArray(value)) {
  30998. return arrayMap(value, toKey);
  30999. }
  31000. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  31001. }
  31002. /**
  31003. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  31004. *
  31005. * @static
  31006. * @since 0.1.0
  31007. * @memberOf _
  31008. * @category Util
  31009. * @param {string} [prefix=''] The value to prefix the ID with.
  31010. * @returns {string} Returns the unique ID.
  31011. * @example
  31012. *
  31013. * _.uniqueId('contact_');
  31014. * // => 'contact_104'
  31015. *
  31016. * _.uniqueId();
  31017. * // => '105'
  31018. */
  31019. function uniqueId(prefix) {
  31020. var id = ++idCounter;
  31021. return toString(prefix) + id;
  31022. }
  31023. /*------------------------------------------------------------------------*/
  31024. /**
  31025. * Adds two numbers.
  31026. *
  31027. * @static
  31028. * @memberOf _
  31029. * @since 3.4.0
  31030. * @category Math
  31031. * @param {number} augend The first number in an addition.
  31032. * @param {number} addend The second number in an addition.
  31033. * @returns {number} Returns the total.
  31034. * @example
  31035. *
  31036. * _.add(6, 4);
  31037. * // => 10
  31038. */
  31039. var add = createMathOperation(function(augend, addend) {
  31040. return augend + addend;
  31041. }, 0);
  31042. /**
  31043. * Computes `number` rounded up to `precision`.
  31044. *
  31045. * @static
  31046. * @memberOf _
  31047. * @since 3.10.0
  31048. * @category Math
  31049. * @param {number} number The number to round up.
  31050. * @param {number} [precision=0] The precision to round up to.
  31051. * @returns {number} Returns the rounded up number.
  31052. * @example
  31053. *
  31054. * _.ceil(4.006);
  31055. * // => 5
  31056. *
  31057. * _.ceil(6.004, 2);
  31058. * // => 6.01
  31059. *
  31060. * _.ceil(6040, -2);
  31061. * // => 6100
  31062. */
  31063. var ceil = createRound('ceil');
  31064. /**
  31065. * Divide two numbers.
  31066. *
  31067. * @static
  31068. * @memberOf _
  31069. * @since 4.7.0
  31070. * @category Math
  31071. * @param {number} dividend The first number in a division.
  31072. * @param {number} divisor The second number in a division.
  31073. * @returns {number} Returns the quotient.
  31074. * @example
  31075. *
  31076. * _.divide(6, 4);
  31077. * // => 1.5
  31078. */
  31079. var divide = createMathOperation(function(dividend, divisor) {
  31080. return dividend / divisor;
  31081. }, 1);
  31082. /**
  31083. * Computes `number` rounded down to `precision`.
  31084. *
  31085. * @static
  31086. * @memberOf _
  31087. * @since 3.10.0
  31088. * @category Math
  31089. * @param {number} number The number to round down.
  31090. * @param {number} [precision=0] The precision to round down to.
  31091. * @returns {number} Returns the rounded down number.
  31092. * @example
  31093. *
  31094. * _.floor(4.006);
  31095. * // => 4
  31096. *
  31097. * _.floor(0.046, 2);
  31098. * // => 0.04
  31099. *
  31100. * _.floor(4060, -2);
  31101. * // => 4000
  31102. */
  31103. var floor = createRound('floor');
  31104. /**
  31105. * Computes the maximum value of `array`. If `array` is empty or falsey,
  31106. * `undefined` is returned.
  31107. *
  31108. * @static
  31109. * @since 0.1.0
  31110. * @memberOf _
  31111. * @category Math
  31112. * @param {Array} array The array to iterate over.
  31113. * @returns {*} Returns the maximum value.
  31114. * @example
  31115. *
  31116. * _.max([4, 2, 8, 6]);
  31117. * // => 8
  31118. *
  31119. * _.max([]);
  31120. * // => undefined
  31121. */
  31122. function max(array) {
  31123. return (array && array.length)
  31124. ? baseExtremum(array, identity, baseGt)
  31125. : undefined;
  31126. }
  31127. /**
  31128. * This method is like `_.max` except that it accepts `iteratee` which is
  31129. * invoked for each element in `array` to generate the criterion by which
  31130. * the value is ranked. The iteratee is invoked with one argument: (value).
  31131. *
  31132. * @static
  31133. * @memberOf _
  31134. * @since 4.0.0
  31135. * @category Math
  31136. * @param {Array} array The array to iterate over.
  31137. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31138. * @returns {*} Returns the maximum value.
  31139. * @example
  31140. *
  31141. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31142. *
  31143. * _.maxBy(objects, function(o) { return o.n; });
  31144. * // => { 'n': 2 }
  31145. *
  31146. * // The `_.property` iteratee shorthand.
  31147. * _.maxBy(objects, 'n');
  31148. * // => { 'n': 2 }
  31149. */
  31150. function maxBy(array, iteratee) {
  31151. return (array && array.length)
  31152. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  31153. : undefined;
  31154. }
  31155. /**
  31156. * Computes the mean of the values in `array`.
  31157. *
  31158. * @static
  31159. * @memberOf _
  31160. * @since 4.0.0
  31161. * @category Math
  31162. * @param {Array} array The array to iterate over.
  31163. * @returns {number} Returns the mean.
  31164. * @example
  31165. *
  31166. * _.mean([4, 2, 8, 6]);
  31167. * // => 5
  31168. */
  31169. function mean(array) {
  31170. return baseMean(array, identity);
  31171. }
  31172. /**
  31173. * This method is like `_.mean` except that it accepts `iteratee` which is
  31174. * invoked for each element in `array` to generate the value to be averaged.
  31175. * The iteratee is invoked with one argument: (value).
  31176. *
  31177. * @static
  31178. * @memberOf _
  31179. * @since 4.7.0
  31180. * @category Math
  31181. * @param {Array} array The array to iterate over.
  31182. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31183. * @returns {number} Returns the mean.
  31184. * @example
  31185. *
  31186. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31187. *
  31188. * _.meanBy(objects, function(o) { return o.n; });
  31189. * // => 5
  31190. *
  31191. * // The `_.property` iteratee shorthand.
  31192. * _.meanBy(objects, 'n');
  31193. * // => 5
  31194. */
  31195. function meanBy(array, iteratee) {
  31196. return baseMean(array, getIteratee(iteratee, 2));
  31197. }
  31198. /**
  31199. * Computes the minimum value of `array`. If `array` is empty or falsey,
  31200. * `undefined` is returned.
  31201. *
  31202. * @static
  31203. * @since 0.1.0
  31204. * @memberOf _
  31205. * @category Math
  31206. * @param {Array} array The array to iterate over.
  31207. * @returns {*} Returns the minimum value.
  31208. * @example
  31209. *
  31210. * _.min([4, 2, 8, 6]);
  31211. * // => 2
  31212. *
  31213. * _.min([]);
  31214. * // => undefined
  31215. */
  31216. function min(array) {
  31217. return (array && array.length)
  31218. ? baseExtremum(array, identity, baseLt)
  31219. : undefined;
  31220. }
  31221. /**
  31222. * This method is like `_.min` except that it accepts `iteratee` which is
  31223. * invoked for each element in `array` to generate the criterion by which
  31224. * the value is ranked. The iteratee is invoked with one argument: (value).
  31225. *
  31226. * @static
  31227. * @memberOf _
  31228. * @since 4.0.0
  31229. * @category Math
  31230. * @param {Array} array The array to iterate over.
  31231. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31232. * @returns {*} Returns the minimum value.
  31233. * @example
  31234. *
  31235. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31236. *
  31237. * _.minBy(objects, function(o) { return o.n; });
  31238. * // => { 'n': 1 }
  31239. *
  31240. * // The `_.property` iteratee shorthand.
  31241. * _.minBy(objects, 'n');
  31242. * // => { 'n': 1 }
  31243. */
  31244. function minBy(array, iteratee) {
  31245. return (array && array.length)
  31246. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  31247. : undefined;
  31248. }
  31249. /**
  31250. * Multiply two numbers.
  31251. *
  31252. * @static
  31253. * @memberOf _
  31254. * @since 4.7.0
  31255. * @category Math
  31256. * @param {number} multiplier The first number in a multiplication.
  31257. * @param {number} multiplicand The second number in a multiplication.
  31258. * @returns {number} Returns the product.
  31259. * @example
  31260. *
  31261. * _.multiply(6, 4);
  31262. * // => 24
  31263. */
  31264. var multiply = createMathOperation(function(multiplier, multiplicand) {
  31265. return multiplier * multiplicand;
  31266. }, 1);
  31267. /**
  31268. * Computes `number` rounded to `precision`.
  31269. *
  31270. * @static
  31271. * @memberOf _
  31272. * @since 3.10.0
  31273. * @category Math
  31274. * @param {number} number The number to round.
  31275. * @param {number} [precision=0] The precision to round to.
  31276. * @returns {number} Returns the rounded number.
  31277. * @example
  31278. *
  31279. * _.round(4.006);
  31280. * // => 4
  31281. *
  31282. * _.round(4.006, 2);
  31283. * // => 4.01
  31284. *
  31285. * _.round(4060, -2);
  31286. * // => 4100
  31287. */
  31288. var round = createRound('round');
  31289. /**
  31290. * Subtract two numbers.
  31291. *
  31292. * @static
  31293. * @memberOf _
  31294. * @since 4.0.0
  31295. * @category Math
  31296. * @param {number} minuend The first number in a subtraction.
  31297. * @param {number} subtrahend The second number in a subtraction.
  31298. * @returns {number} Returns the difference.
  31299. * @example
  31300. *
  31301. * _.subtract(6, 4);
  31302. * // => 2
  31303. */
  31304. var subtract = createMathOperation(function(minuend, subtrahend) {
  31305. return minuend - subtrahend;
  31306. }, 0);
  31307. /**
  31308. * Computes the sum of the values in `array`.
  31309. *
  31310. * @static
  31311. * @memberOf _
  31312. * @since 3.4.0
  31313. * @category Math
  31314. * @param {Array} array The array to iterate over.
  31315. * @returns {number} Returns the sum.
  31316. * @example
  31317. *
  31318. * _.sum([4, 2, 8, 6]);
  31319. * // => 20
  31320. */
  31321. function sum(array) {
  31322. return (array && array.length)
  31323. ? baseSum(array, identity)
  31324. : 0;
  31325. }
  31326. /**
  31327. * This method is like `_.sum` except that it accepts `iteratee` which is
  31328. * invoked for each element in `array` to generate the value to be summed.
  31329. * The iteratee is invoked with one argument: (value).
  31330. *
  31331. * @static
  31332. * @memberOf _
  31333. * @since 4.0.0
  31334. * @category Math
  31335. * @param {Array} array The array to iterate over.
  31336. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31337. * @returns {number} Returns the sum.
  31338. * @example
  31339. *
  31340. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31341. *
  31342. * _.sumBy(objects, function(o) { return o.n; });
  31343. * // => 20
  31344. *
  31345. * // The `_.property` iteratee shorthand.
  31346. * _.sumBy(objects, 'n');
  31347. * // => 20
  31348. */
  31349. function sumBy(array, iteratee) {
  31350. return (array && array.length)
  31351. ? baseSum(array, getIteratee(iteratee, 2))
  31352. : 0;
  31353. }
  31354. /*------------------------------------------------------------------------*/
  31355. // Add methods that return wrapped values in chain sequences.
  31356. lodash.after = after;
  31357. lodash.ary = ary;
  31358. lodash.assign = assign;
  31359. lodash.assignIn = assignIn;
  31360. lodash.assignInWith = assignInWith;
  31361. lodash.assignWith = assignWith;
  31362. lodash.at = at;
  31363. lodash.before = before;
  31364. lodash.bind = bind;
  31365. lodash.bindAll = bindAll;
  31366. lodash.bindKey = bindKey;
  31367. lodash.castArray = castArray;
  31368. lodash.chain = chain;
  31369. lodash.chunk = chunk;
  31370. lodash.compact = compact;
  31371. lodash.concat = concat;
  31372. lodash.cond = cond;
  31373. lodash.conforms = conforms;
  31374. lodash.constant = constant;
  31375. lodash.countBy = countBy;
  31376. lodash.create = create;
  31377. lodash.curry = curry;
  31378. lodash.curryRight = curryRight;
  31379. lodash.debounce = debounce;
  31380. lodash.defaults = defaults;
  31381. lodash.defaultsDeep = defaultsDeep;
  31382. lodash.defer = defer;
  31383. lodash.delay = delay;
  31384. lodash.difference = difference;
  31385. lodash.differenceBy = differenceBy;
  31386. lodash.differenceWith = differenceWith;
  31387. lodash.drop = drop;
  31388. lodash.dropRight = dropRight;
  31389. lodash.dropRightWhile = dropRightWhile;
  31390. lodash.dropWhile = dropWhile;
  31391. lodash.fill = fill;
  31392. lodash.filter = filter;
  31393. lodash.flatMap = flatMap;
  31394. lodash.flatMapDeep = flatMapDeep;
  31395. lodash.flatMapDepth = flatMapDepth;
  31396. lodash.flatten = flatten;
  31397. lodash.flattenDeep = flattenDeep;
  31398. lodash.flattenDepth = flattenDepth;
  31399. lodash.flip = flip;
  31400. lodash.flow = flow;
  31401. lodash.flowRight = flowRight;
  31402. lodash.fromPairs = fromPairs;
  31403. lodash.functions = functions;
  31404. lodash.functionsIn = functionsIn;
  31405. lodash.groupBy = groupBy;
  31406. lodash.initial = initial;
  31407. lodash.intersection = intersection;
  31408. lodash.intersectionBy = intersectionBy;
  31409. lodash.intersectionWith = intersectionWith;
  31410. lodash.invert = invert;
  31411. lodash.invertBy = invertBy;
  31412. lodash.invokeMap = invokeMap;
  31413. lodash.iteratee = iteratee;
  31414. lodash.keyBy = keyBy;
  31415. lodash.keys = keys;
  31416. lodash.keysIn = keysIn;
  31417. lodash.map = map;
  31418. lodash.mapKeys = mapKeys;
  31419. lodash.mapValues = mapValues;
  31420. lodash.matches = matches;
  31421. lodash.matchesProperty = matchesProperty;
  31422. lodash.memoize = memoize;
  31423. lodash.merge = merge;
  31424. lodash.mergeWith = mergeWith;
  31425. lodash.method = method;
  31426. lodash.methodOf = methodOf;
  31427. lodash.mixin = mixin;
  31428. lodash.negate = negate;
  31429. lodash.nthArg = nthArg;
  31430. lodash.omit = omit;
  31431. lodash.omitBy = omitBy;
  31432. lodash.once = once;
  31433. lodash.orderBy = orderBy;
  31434. lodash.over = over;
  31435. lodash.overArgs = overArgs;
  31436. lodash.overEvery = overEvery;
  31437. lodash.overSome = overSome;
  31438. lodash.partial = partial;
  31439. lodash.partialRight = partialRight;
  31440. lodash.partition = partition;
  31441. lodash.pick = pick;
  31442. lodash.pickBy = pickBy;
  31443. lodash.property = property;
  31444. lodash.propertyOf = propertyOf;
  31445. lodash.pull = pull;
  31446. lodash.pullAll = pullAll;
  31447. lodash.pullAllBy = pullAllBy;
  31448. lodash.pullAllWith = pullAllWith;
  31449. lodash.pullAt = pullAt;
  31450. lodash.range = range;
  31451. lodash.rangeRight = rangeRight;
  31452. lodash.rearg = rearg;
  31453. lodash.reject = reject;
  31454. lodash.remove = remove;
  31455. lodash.rest = rest;
  31456. lodash.reverse = reverse;
  31457. lodash.sampleSize = sampleSize;
  31458. lodash.set = set;
  31459. lodash.setWith = setWith;
  31460. lodash.shuffle = shuffle;
  31461. lodash.slice = slice;
  31462. lodash.sortBy = sortBy;
  31463. lodash.sortedUniq = sortedUniq;
  31464. lodash.sortedUniqBy = sortedUniqBy;
  31465. lodash.split = split;
  31466. lodash.spread = spread;
  31467. lodash.tail = tail;
  31468. lodash.take = take;
  31469. lodash.takeRight = takeRight;
  31470. lodash.takeRightWhile = takeRightWhile;
  31471. lodash.takeWhile = takeWhile;
  31472. lodash.tap = tap;
  31473. lodash.throttle = throttle;
  31474. lodash.thru = thru;
  31475. lodash.toArray = toArray;
  31476. lodash.toPairs = toPairs;
  31477. lodash.toPairsIn = toPairsIn;
  31478. lodash.toPath = toPath;
  31479. lodash.toPlainObject = toPlainObject;
  31480. lodash.transform = transform;
  31481. lodash.unary = unary;
  31482. lodash.union = union;
  31483. lodash.unionBy = unionBy;
  31484. lodash.unionWith = unionWith;
  31485. lodash.uniq = uniq;
  31486. lodash.uniqBy = uniqBy;
  31487. lodash.uniqWith = uniqWith;
  31488. lodash.unset = unset;
  31489. lodash.unzip = unzip;
  31490. lodash.unzipWith = unzipWith;
  31491. lodash.update = update;
  31492. lodash.updateWith = updateWith;
  31493. lodash.values = values;
  31494. lodash.valuesIn = valuesIn;
  31495. lodash.without = without;
  31496. lodash.words = words;
  31497. lodash.wrap = wrap;
  31498. lodash.xor = xor;
  31499. lodash.xorBy = xorBy;
  31500. lodash.xorWith = xorWith;
  31501. lodash.zip = zip;
  31502. lodash.zipObject = zipObject;
  31503. lodash.zipObjectDeep = zipObjectDeep;
  31504. lodash.zipWith = zipWith;
  31505. // Add aliases.
  31506. lodash.entries = toPairs;
  31507. lodash.entriesIn = toPairsIn;
  31508. lodash.extend = assignIn;
  31509. lodash.extendWith = assignInWith;
  31510. // Add methods to `lodash.prototype`.
  31511. mixin(lodash, lodash);
  31512. /*------------------------------------------------------------------------*/
  31513. // Add methods that return unwrapped values in chain sequences.
  31514. lodash.add = add;
  31515. lodash.attempt = attempt;
  31516. lodash.camelCase = camelCase;
  31517. lodash.capitalize = capitalize;
  31518. lodash.ceil = ceil;
  31519. lodash.clamp = clamp;
  31520. lodash.clone = clone;
  31521. lodash.cloneDeep = cloneDeep;
  31522. lodash.cloneDeepWith = cloneDeepWith;
  31523. lodash.cloneWith = cloneWith;
  31524. lodash.conformsTo = conformsTo;
  31525. lodash.deburr = deburr;
  31526. lodash.defaultTo = defaultTo;
  31527. lodash.divide = divide;
  31528. lodash.endsWith = endsWith;
  31529. lodash.eq = eq;
  31530. lodash.escape = escape;
  31531. lodash.escapeRegExp = escapeRegExp;
  31532. lodash.every = every;
  31533. lodash.find = find;
  31534. lodash.findIndex = findIndex;
  31535. lodash.findKey = findKey;
  31536. lodash.findLast = findLast;
  31537. lodash.findLastIndex = findLastIndex;
  31538. lodash.findLastKey = findLastKey;
  31539. lodash.floor = floor;
  31540. lodash.forEach = forEach;
  31541. lodash.forEachRight = forEachRight;
  31542. lodash.forIn = forIn;
  31543. lodash.forInRight = forInRight;
  31544. lodash.forOwn = forOwn;
  31545. lodash.forOwnRight = forOwnRight;
  31546. lodash.get = get;
  31547. lodash.gt = gt;
  31548. lodash.gte = gte;
  31549. lodash.has = has;
  31550. lodash.hasIn = hasIn;
  31551. lodash.head = head;
  31552. lodash.identity = identity;
  31553. lodash.includes = includes;
  31554. lodash.indexOf = indexOf;
  31555. lodash.inRange = inRange;
  31556. lodash.invoke = invoke;
  31557. lodash.isArguments = isArguments;
  31558. lodash.isArray = isArray;
  31559. lodash.isArrayBuffer = isArrayBuffer;
  31560. lodash.isArrayLike = isArrayLike;
  31561. lodash.isArrayLikeObject = isArrayLikeObject;
  31562. lodash.isBoolean = isBoolean;
  31563. lodash.isBuffer = isBuffer;
  31564. lodash.isDate = isDate;
  31565. lodash.isElement = isElement;
  31566. lodash.isEmpty = isEmpty;
  31567. lodash.isEqual = isEqual;
  31568. lodash.isEqualWith = isEqualWith;
  31569. lodash.isError = isError;
  31570. lodash.isFinite = isFinite;
  31571. lodash.isFunction = isFunction;
  31572. lodash.isInteger = isInteger;
  31573. lodash.isLength = isLength;
  31574. lodash.isMap = isMap;
  31575. lodash.isMatch = isMatch;
  31576. lodash.isMatchWith = isMatchWith;
  31577. lodash.isNaN = isNaN;
  31578. lodash.isNative = isNative;
  31579. lodash.isNil = isNil;
  31580. lodash.isNull = isNull;
  31581. lodash.isNumber = isNumber;
  31582. lodash.isObject = isObject;
  31583. lodash.isObjectLike = isObjectLike;
  31584. lodash.isPlainObject = isPlainObject;
  31585. lodash.isRegExp = isRegExp;
  31586. lodash.isSafeInteger = isSafeInteger;
  31587. lodash.isSet = isSet;
  31588. lodash.isString = isString;
  31589. lodash.isSymbol = isSymbol;
  31590. lodash.isTypedArray = isTypedArray;
  31591. lodash.isUndefined = isUndefined;
  31592. lodash.isWeakMap = isWeakMap;
  31593. lodash.isWeakSet = isWeakSet;
  31594. lodash.join = join;
  31595. lodash.kebabCase = kebabCase;
  31596. lodash.last = last;
  31597. lodash.lastIndexOf = lastIndexOf;
  31598. lodash.lowerCase = lowerCase;
  31599. lodash.lowerFirst = lowerFirst;
  31600. lodash.lt = lt;
  31601. lodash.lte = lte;
  31602. lodash.max = max;
  31603. lodash.maxBy = maxBy;
  31604. lodash.mean = mean;
  31605. lodash.meanBy = meanBy;
  31606. lodash.min = min;
  31607. lodash.minBy = minBy;
  31608. lodash.stubArray = stubArray;
  31609. lodash.stubFalse = stubFalse;
  31610. lodash.stubObject = stubObject;
  31611. lodash.stubString = stubString;
  31612. lodash.stubTrue = stubTrue;
  31613. lodash.multiply = multiply;
  31614. lodash.nth = nth;
  31615. lodash.noConflict = noConflict;
  31616. lodash.noop = noop;
  31617. lodash.now = now;
  31618. lodash.pad = pad;
  31619. lodash.padEnd = padEnd;
  31620. lodash.padStart = padStart;
  31621. lodash.parseInt = parseInt;
  31622. lodash.random = random;
  31623. lodash.reduce = reduce;
  31624. lodash.reduceRight = reduceRight;
  31625. lodash.repeat = repeat;
  31626. lodash.replace = replace;
  31627. lodash.result = result;
  31628. lodash.round = round;
  31629. lodash.runInContext = runInContext;
  31630. lodash.sample = sample;
  31631. lodash.size = size;
  31632. lodash.snakeCase = snakeCase;
  31633. lodash.some = some;
  31634. lodash.sortedIndex = sortedIndex;
  31635. lodash.sortedIndexBy = sortedIndexBy;
  31636. lodash.sortedIndexOf = sortedIndexOf;
  31637. lodash.sortedLastIndex = sortedLastIndex;
  31638. lodash.sortedLastIndexBy = sortedLastIndexBy;
  31639. lodash.sortedLastIndexOf = sortedLastIndexOf;
  31640. lodash.startCase = startCase;
  31641. lodash.startsWith = startsWith;
  31642. lodash.subtract = subtract;
  31643. lodash.sum = sum;
  31644. lodash.sumBy = sumBy;
  31645. lodash.template = template;
  31646. lodash.times = times;
  31647. lodash.toFinite = toFinite;
  31648. lodash.toInteger = toInteger;
  31649. lodash.toLength = toLength;
  31650. lodash.toLower = toLower;
  31651. lodash.toNumber = toNumber;
  31652. lodash.toSafeInteger = toSafeInteger;
  31653. lodash.toString = toString;
  31654. lodash.toUpper = toUpper;
  31655. lodash.trim = trim;
  31656. lodash.trimEnd = trimEnd;
  31657. lodash.trimStart = trimStart;
  31658. lodash.truncate = truncate;
  31659. lodash.unescape = unescape;
  31660. lodash.uniqueId = uniqueId;
  31661. lodash.upperCase = upperCase;
  31662. lodash.upperFirst = upperFirst;
  31663. // Add aliases.
  31664. lodash.each = forEach;
  31665. lodash.eachRight = forEachRight;
  31666. lodash.first = head;
  31667. mixin(lodash, (function() {
  31668. var source = {};
  31669. baseForOwn(lodash, function(func, methodName) {
  31670. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  31671. source[methodName] = func;
  31672. }
  31673. });
  31674. return source;
  31675. }()), { 'chain': false });
  31676. /*------------------------------------------------------------------------*/
  31677. /**
  31678. * The semantic version number.
  31679. *
  31680. * @static
  31681. * @memberOf _
  31682. * @type {string}
  31683. */
  31684. lodash.VERSION = VERSION;
  31685. // Assign default placeholders.
  31686. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  31687. lodash[methodName].placeholder = lodash;
  31688. });
  31689. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  31690. arrayEach(['drop', 'take'], function(methodName, index) {
  31691. LazyWrapper.prototype[methodName] = function(n) {
  31692. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  31693. var result = (this.__filtered__ && !index)
  31694. ? new LazyWrapper(this)
  31695. : this.clone();
  31696. if (result.__filtered__) {
  31697. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  31698. } else {
  31699. result.__views__.push({
  31700. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  31701. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  31702. });
  31703. }
  31704. return result;
  31705. };
  31706. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  31707. return this.reverse()[methodName](n).reverse();
  31708. };
  31709. });
  31710. // Add `LazyWrapper` methods that accept an `iteratee` value.
  31711. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  31712. var type = index + 1,
  31713. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  31714. LazyWrapper.prototype[methodName] = function(iteratee) {
  31715. var result = this.clone();
  31716. result.__iteratees__.push({
  31717. 'iteratee': getIteratee(iteratee, 3),
  31718. 'type': type
  31719. });
  31720. result.__filtered__ = result.__filtered__ || isFilter;
  31721. return result;
  31722. };
  31723. });
  31724. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  31725. arrayEach(['head', 'last'], function(methodName, index) {
  31726. var takeName = 'take' + (index ? 'Right' : '');
  31727. LazyWrapper.prototype[methodName] = function() {
  31728. return this[takeName](1).value()[0];
  31729. };
  31730. });
  31731. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  31732. arrayEach(['initial', 'tail'], function(methodName, index) {
  31733. var dropName = 'drop' + (index ? '' : 'Right');
  31734. LazyWrapper.prototype[methodName] = function() {
  31735. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  31736. };
  31737. });
  31738. LazyWrapper.prototype.compact = function() {
  31739. return this.filter(identity);
  31740. };
  31741. LazyWrapper.prototype.find = function(predicate) {
  31742. return this.filter(predicate).head();
  31743. };
  31744. LazyWrapper.prototype.findLast = function(predicate) {
  31745. return this.reverse().find(predicate);
  31746. };
  31747. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  31748. if (typeof path == 'function') {
  31749. return new LazyWrapper(this);
  31750. }
  31751. return this.map(function(value) {
  31752. return baseInvoke(value, path, args);
  31753. });
  31754. });
  31755. LazyWrapper.prototype.reject = function(predicate) {
  31756. return this.filter(negate(getIteratee(predicate)));
  31757. };
  31758. LazyWrapper.prototype.slice = function(start, end) {
  31759. start = toInteger(start);
  31760. var result = this;
  31761. if (result.__filtered__ && (start > 0 || end < 0)) {
  31762. return new LazyWrapper(result);
  31763. }
  31764. if (start < 0) {
  31765. result = result.takeRight(-start);
  31766. } else if (start) {
  31767. result = result.drop(start);
  31768. }
  31769. if (end !== undefined) {
  31770. end = toInteger(end);
  31771. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  31772. }
  31773. return result;
  31774. };
  31775. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  31776. return this.reverse().takeWhile(predicate).reverse();
  31777. };
  31778. LazyWrapper.prototype.toArray = function() {
  31779. return this.take(MAX_ARRAY_LENGTH);
  31780. };
  31781. // Add `LazyWrapper` methods to `lodash.prototype`.
  31782. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31783. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  31784. isTaker = /^(?:head|last)$/.test(methodName),
  31785. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  31786. retUnwrapped = isTaker || /^find/.test(methodName);
  31787. if (!lodashFunc) {
  31788. return;
  31789. }
  31790. lodash.prototype[methodName] = function() {
  31791. var value = this.__wrapped__,
  31792. args = isTaker ? [1] : arguments,
  31793. isLazy = value instanceof LazyWrapper,
  31794. iteratee = args[0],
  31795. useLazy = isLazy || isArray(value);
  31796. var interceptor = function(value) {
  31797. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  31798. return (isTaker && chainAll) ? result[0] : result;
  31799. };
  31800. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  31801. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  31802. isLazy = useLazy = false;
  31803. }
  31804. var chainAll = this.__chain__,
  31805. isHybrid = !!this.__actions__.length,
  31806. isUnwrapped = retUnwrapped && !chainAll,
  31807. onlyLazy = isLazy && !isHybrid;
  31808. if (!retUnwrapped && useLazy) {
  31809. value = onlyLazy ? value : new LazyWrapper(this);
  31810. var result = func.apply(value, args);
  31811. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  31812. return new LodashWrapper(result, chainAll);
  31813. }
  31814. if (isUnwrapped && onlyLazy) {
  31815. return func.apply(this, args);
  31816. }
  31817. result = this.thru(interceptor);
  31818. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  31819. };
  31820. });
  31821. // Add `Array` methods to `lodash.prototype`.
  31822. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  31823. var func = arrayProto[methodName],
  31824. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  31825. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  31826. lodash.prototype[methodName] = function() {
  31827. var args = arguments;
  31828. if (retUnwrapped && !this.__chain__) {
  31829. var value = this.value();
  31830. return func.apply(isArray(value) ? value : [], args);
  31831. }
  31832. return this[chainName](function(value) {
  31833. return func.apply(isArray(value) ? value : [], args);
  31834. });
  31835. };
  31836. });
  31837. // Map minified method names to their real names.
  31838. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31839. var lodashFunc = lodash[methodName];
  31840. if (lodashFunc) {
  31841. var key = lodashFunc.name + '';
  31842. if (!hasOwnProperty.call(realNames, key)) {
  31843. realNames[key] = [];
  31844. }
  31845. realNames[key].push({ 'name': methodName, 'func': lodashFunc });
  31846. }
  31847. });
  31848. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  31849. 'name': 'wrapper',
  31850. 'func': undefined
  31851. }];
  31852. // Add methods to `LazyWrapper`.
  31853. LazyWrapper.prototype.clone = lazyClone;
  31854. LazyWrapper.prototype.reverse = lazyReverse;
  31855. LazyWrapper.prototype.value = lazyValue;
  31856. // Add chain sequence methods to the `lodash` wrapper.
  31857. lodash.prototype.at = wrapperAt;
  31858. lodash.prototype.chain = wrapperChain;
  31859. lodash.prototype.commit = wrapperCommit;
  31860. lodash.prototype.next = wrapperNext;
  31861. lodash.prototype.plant = wrapperPlant;
  31862. lodash.prototype.reverse = wrapperReverse;
  31863. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  31864. // Add lazy aliases.
  31865. lodash.prototype.first = lodash.prototype.head;
  31866. if (symIterator) {
  31867. lodash.prototype[symIterator] = wrapperToIterator;
  31868. }
  31869. return lodash;
  31870. });
  31871. /*--------------------------------------------------------------------------*/
  31872. // Export lodash.
  31873. var _ = runInContext();
  31874. // Some AMD build optimizers, like r.js, check for condition patterns like:
  31875. if (true) {
  31876. // Expose Lodash on the global object to prevent errors when Lodash is
  31877. // loaded by a script tag in the presence of an AMD loader.
  31878. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  31879. // Use `_.noConflict` to remove Lodash from the global object.
  31880. root._ = _;
  31881. // Define as an anonymous module so, through path mapping, it can be
  31882. // referenced as the "underscore" module.
  31883. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  31884. return _;
  31885. }).call(exports, __webpack_require__, exports, module),
  31886. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31887. }
  31888. // Check for `exports` after `define` in case a build optimizer adds it.
  31889. else {}
  31890. }.call(this));
  31891. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  31892. /***/ }),
  31893. /***/ "../../node_modules/lodash/map.js":
  31894. /*!******************************************************!*\
  31895. !*** C:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  31896. \******************************************************/
  31897. /*! no static exports found */
  31898. /***/ (function(module, exports, __webpack_require__) {
  31899. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  31900. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  31901. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  31902. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  31903. /**
  31904. * Creates an array of values by running each element in `collection` thru
  31905. * `iteratee`. The iteratee is invoked with three arguments:
  31906. * (value, index|key, collection).
  31907. *
  31908. * Many lodash methods are guarded to work as iteratees for methods like
  31909. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  31910. *
  31911. * The guarded methods are:
  31912. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  31913. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  31914. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  31915. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  31916. *
  31917. * @static
  31918. * @memberOf _
  31919. * @since 0.1.0
  31920. * @category Collection
  31921. * @param {Array|Object} collection The collection to iterate over.
  31922. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31923. * @returns {Array} Returns the new mapped array.
  31924. * @example
  31925. *
  31926. * function square(n) {
  31927. * return n * n;
  31928. * }
  31929. *
  31930. * _.map([4, 8], square);
  31931. * // => [16, 64]
  31932. *
  31933. * _.map({ 'a': 4, 'b': 8 }, square);
  31934. * // => [16, 64] (iteration order is not guaranteed)
  31935. *
  31936. * var users = [
  31937. * { 'user': 'barney' },
  31938. * { 'user': 'fred' }
  31939. * ];
  31940. *
  31941. * // The `_.property` iteratee shorthand.
  31942. * _.map(users, 'user');
  31943. * // => ['barney', 'fred']
  31944. */
  31945. function map(collection, iteratee) {
  31946. var func = isArray(collection) ? arrayMap : baseMap;
  31947. return func(collection, baseIteratee(iteratee, 3));
  31948. }
  31949. module.exports = map;
  31950. /***/ }),
  31951. /***/ "../../node_modules/lodash/mapValues.js":
  31952. /*!************************************************************!*\
  31953. !*** C:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  31954. \************************************************************/
  31955. /*! no static exports found */
  31956. /***/ (function(module, exports, __webpack_require__) {
  31957. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  31958. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  31959. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  31960. /**
  31961. * Creates an object with the same keys as `object` and values generated
  31962. * by running each own enumerable string keyed property of `object` thru
  31963. * `iteratee`. The iteratee is invoked with three arguments:
  31964. * (value, key, object).
  31965. *
  31966. * @static
  31967. * @memberOf _
  31968. * @since 2.4.0
  31969. * @category Object
  31970. * @param {Object} object The object to iterate over.
  31971. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31972. * @returns {Object} Returns the new mapped object.
  31973. * @see _.mapKeys
  31974. * @example
  31975. *
  31976. * var users = {
  31977. * 'fred': { 'user': 'fred', 'age': 40 },
  31978. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  31979. * };
  31980. *
  31981. * _.mapValues(users, function(o) { return o.age; });
  31982. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31983. *
  31984. * // The `_.property` iteratee shorthand.
  31985. * _.mapValues(users, 'age');
  31986. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31987. */
  31988. function mapValues(object, iteratee) {
  31989. var result = {};
  31990. iteratee = baseIteratee(iteratee, 3);
  31991. baseForOwn(object, function(value, key, object) {
  31992. baseAssignValue(result, key, iteratee(value, key, object));
  31993. });
  31994. return result;
  31995. }
  31996. module.exports = mapValues;
  31997. /***/ }),
  31998. /***/ "../../node_modules/lodash/max.js":
  31999. /*!******************************************************!*\
  32000. !*** C:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  32001. \******************************************************/
  32002. /*! no static exports found */
  32003. /***/ (function(module, exports, __webpack_require__) {
  32004. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32005. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  32006. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32007. /**
  32008. * Computes the maximum value of `array`. If `array` is empty or falsey,
  32009. * `undefined` is returned.
  32010. *
  32011. * @static
  32012. * @since 0.1.0
  32013. * @memberOf _
  32014. * @category Math
  32015. * @param {Array} array The array to iterate over.
  32016. * @returns {*} Returns the maximum value.
  32017. * @example
  32018. *
  32019. * _.max([4, 2, 8, 6]);
  32020. * // => 8
  32021. *
  32022. * _.max([]);
  32023. * // => undefined
  32024. */
  32025. function max(array) {
  32026. return (array && array.length)
  32027. ? baseExtremum(array, identity, baseGt)
  32028. : undefined;
  32029. }
  32030. module.exports = max;
  32031. /***/ }),
  32032. /***/ "../../node_modules/lodash/memoize.js":
  32033. /*!**********************************************************!*\
  32034. !*** C:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  32035. \**********************************************************/
  32036. /*! no static exports found */
  32037. /***/ (function(module, exports, __webpack_require__) {
  32038. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  32039. /** Error message constants. */
  32040. var FUNC_ERROR_TEXT = 'Expected a function';
  32041. /**
  32042. * Creates a function that memoizes the result of `func`. If `resolver` is
  32043. * provided, it determines the cache key for storing the result based on the
  32044. * arguments provided to the memoized function. By default, the first argument
  32045. * provided to the memoized function is used as the map cache key. The `func`
  32046. * is invoked with the `this` binding of the memoized function.
  32047. *
  32048. * **Note:** The cache is exposed as the `cache` property on the memoized
  32049. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  32050. * constructor with one whose instances implement the
  32051. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  32052. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  32053. *
  32054. * @static
  32055. * @memberOf _
  32056. * @since 0.1.0
  32057. * @category Function
  32058. * @param {Function} func The function to have its output memoized.
  32059. * @param {Function} [resolver] The function to resolve the cache key.
  32060. * @returns {Function} Returns the new memoized function.
  32061. * @example
  32062. *
  32063. * var object = { 'a': 1, 'b': 2 };
  32064. * var other = { 'c': 3, 'd': 4 };
  32065. *
  32066. * var values = _.memoize(_.values);
  32067. * values(object);
  32068. * // => [1, 2]
  32069. *
  32070. * values(other);
  32071. * // => [3, 4]
  32072. *
  32073. * object.a = 2;
  32074. * values(object);
  32075. * // => [1, 2]
  32076. *
  32077. * // Modify the result cache.
  32078. * values.cache.set(object, ['a', 'b']);
  32079. * values(object);
  32080. * // => ['a', 'b']
  32081. *
  32082. * // Replace `_.memoize.Cache`.
  32083. * _.memoize.Cache = WeakMap;
  32084. */
  32085. function memoize(func, resolver) {
  32086. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  32087. throw new TypeError(FUNC_ERROR_TEXT);
  32088. }
  32089. var memoized = function() {
  32090. var args = arguments,
  32091. key = resolver ? resolver.apply(this, args) : args[0],
  32092. cache = memoized.cache;
  32093. if (cache.has(key)) {
  32094. return cache.get(key);
  32095. }
  32096. var result = func.apply(this, args);
  32097. memoized.cache = cache.set(key, result) || cache;
  32098. return result;
  32099. };
  32100. memoized.cache = new (memoize.Cache || MapCache);
  32101. return memoized;
  32102. }
  32103. // Expose `MapCache`.
  32104. memoize.Cache = MapCache;
  32105. module.exports = memoize;
  32106. /***/ }),
  32107. /***/ "../../node_modules/lodash/merge.js":
  32108. /*!********************************************************!*\
  32109. !*** C:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  32110. \********************************************************/
  32111. /*! no static exports found */
  32112. /***/ (function(module, exports, __webpack_require__) {
  32113. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  32114. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  32115. /**
  32116. * This method is like `_.assign` except that it recursively merges own and
  32117. * inherited enumerable string keyed properties of source objects into the
  32118. * destination object. Source properties that resolve to `undefined` are
  32119. * skipped if a destination value exists. Array and plain object properties
  32120. * are merged recursively. Other objects and value types are overridden by
  32121. * assignment. Source objects are applied from left to right. Subsequent
  32122. * sources overwrite property assignments of previous sources.
  32123. *
  32124. * **Note:** This method mutates `object`.
  32125. *
  32126. * @static
  32127. * @memberOf _
  32128. * @since 0.5.0
  32129. * @category Object
  32130. * @param {Object} object The destination object.
  32131. * @param {...Object} [sources] The source objects.
  32132. * @returns {Object} Returns `object`.
  32133. * @example
  32134. *
  32135. * var object = {
  32136. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  32137. * };
  32138. *
  32139. * var other = {
  32140. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  32141. * };
  32142. *
  32143. * _.merge(object, other);
  32144. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  32145. */
  32146. var merge = createAssigner(function(object, source, srcIndex) {
  32147. baseMerge(object, source, srcIndex);
  32148. });
  32149. module.exports = merge;
  32150. /***/ }),
  32151. /***/ "../../node_modules/lodash/min.js":
  32152. /*!******************************************************!*\
  32153. !*** C:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  32154. \******************************************************/
  32155. /*! no static exports found */
  32156. /***/ (function(module, exports, __webpack_require__) {
  32157. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32158. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  32159. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32160. /**
  32161. * Computes the minimum value of `array`. If `array` is empty or falsey,
  32162. * `undefined` is returned.
  32163. *
  32164. * @static
  32165. * @since 0.1.0
  32166. * @memberOf _
  32167. * @category Math
  32168. * @param {Array} array The array to iterate over.
  32169. * @returns {*} Returns the minimum value.
  32170. * @example
  32171. *
  32172. * _.min([4, 2, 8, 6]);
  32173. * // => 2
  32174. *
  32175. * _.min([]);
  32176. * // => undefined
  32177. */
  32178. function min(array) {
  32179. return (array && array.length)
  32180. ? baseExtremum(array, identity, baseLt)
  32181. : undefined;
  32182. }
  32183. module.exports = min;
  32184. /***/ }),
  32185. /***/ "../../node_modules/lodash/minBy.js":
  32186. /*!********************************************************!*\
  32187. !*** C:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  32188. \********************************************************/
  32189. /*! no static exports found */
  32190. /***/ (function(module, exports, __webpack_require__) {
  32191. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32192. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32193. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  32194. /**
  32195. * This method is like `_.min` except that it accepts `iteratee` which is
  32196. * invoked for each element in `array` to generate the criterion by which
  32197. * the value is ranked. The iteratee is invoked with one argument: (value).
  32198. *
  32199. * @static
  32200. * @memberOf _
  32201. * @since 4.0.0
  32202. * @category Math
  32203. * @param {Array} array The array to iterate over.
  32204. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  32205. * @returns {*} Returns the minimum value.
  32206. * @example
  32207. *
  32208. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  32209. *
  32210. * _.minBy(objects, function(o) { return o.n; });
  32211. * // => { 'n': 1 }
  32212. *
  32213. * // The `_.property` iteratee shorthand.
  32214. * _.minBy(objects, 'n');
  32215. * // => { 'n': 1 }
  32216. */
  32217. function minBy(array, iteratee) {
  32218. return (array && array.length)
  32219. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  32220. : undefined;
  32221. }
  32222. module.exports = minBy;
  32223. /***/ }),
  32224. /***/ "../../node_modules/lodash/noop.js":
  32225. /*!*******************************************************!*\
  32226. !*** C:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  32227. \*******************************************************/
  32228. /*! no static exports found */
  32229. /***/ (function(module, exports) {
  32230. /**
  32231. * This method returns `undefined`.
  32232. *
  32233. * @static
  32234. * @memberOf _
  32235. * @since 2.3.0
  32236. * @category Util
  32237. * @example
  32238. *
  32239. * _.times(2, _.noop);
  32240. * // => [undefined, undefined]
  32241. */
  32242. function noop() {
  32243. // No operation performed.
  32244. }
  32245. module.exports = noop;
  32246. /***/ }),
  32247. /***/ "../../node_modules/lodash/now.js":
  32248. /*!******************************************************!*\
  32249. !*** C:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  32250. \******************************************************/
  32251. /*! no static exports found */
  32252. /***/ (function(module, exports, __webpack_require__) {
  32253. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  32254. /**
  32255. * Gets the timestamp of the number of milliseconds that have elapsed since
  32256. * the Unix epoch (1 January 1970 00:00:00 UTC).
  32257. *
  32258. * @static
  32259. * @memberOf _
  32260. * @since 2.4.0
  32261. * @category Date
  32262. * @returns {number} Returns the timestamp.
  32263. * @example
  32264. *
  32265. * _.defer(function(stamp) {
  32266. * console.log(_.now() - stamp);
  32267. * }, _.now());
  32268. * // => Logs the number of milliseconds it took for the deferred invocation.
  32269. */
  32270. var now = function() {
  32271. return root.Date.now();
  32272. };
  32273. module.exports = now;
  32274. /***/ }),
  32275. /***/ "../../node_modules/lodash/pick.js":
  32276. /*!*******************************************************!*\
  32277. !*** C:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  32278. \*******************************************************/
  32279. /*! no static exports found */
  32280. /***/ (function(module, exports, __webpack_require__) {
  32281. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  32282. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  32283. /**
  32284. * Creates an object composed of the picked `object` properties.
  32285. *
  32286. * @static
  32287. * @since 0.1.0
  32288. * @memberOf _
  32289. * @category Object
  32290. * @param {Object} object The source object.
  32291. * @param {...(string|string[])} [paths] The property paths to pick.
  32292. * @returns {Object} Returns the new object.
  32293. * @example
  32294. *
  32295. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  32296. *
  32297. * _.pick(object, ['a', 'c']);
  32298. * // => { 'a': 1, 'c': 3 }
  32299. */
  32300. var pick = flatRest(function(object, paths) {
  32301. return object == null ? {} : basePick(object, paths);
  32302. });
  32303. module.exports = pick;
  32304. /***/ }),
  32305. /***/ "../../node_modules/lodash/property.js":
  32306. /*!***********************************************************!*\
  32307. !*** C:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  32308. \***********************************************************/
  32309. /*! no static exports found */
  32310. /***/ (function(module, exports, __webpack_require__) {
  32311. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  32312. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  32313. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  32314. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  32315. /**
  32316. * Creates a function that returns the value at `path` of a given object.
  32317. *
  32318. * @static
  32319. * @memberOf _
  32320. * @since 2.4.0
  32321. * @category Util
  32322. * @param {Array|string} path The path of the property to get.
  32323. * @returns {Function} Returns the new accessor function.
  32324. * @example
  32325. *
  32326. * var objects = [
  32327. * { 'a': { 'b': 2 } },
  32328. * { 'a': { 'b': 1 } }
  32329. * ];
  32330. *
  32331. * _.map(objects, _.property('a.b'));
  32332. * // => [2, 1]
  32333. *
  32334. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  32335. * // => [1, 2]
  32336. */
  32337. function property(path) {
  32338. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  32339. }
  32340. module.exports = property;
  32341. /***/ }),
  32342. /***/ "../../node_modules/lodash/range.js":
  32343. /*!********************************************************!*\
  32344. !*** C:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  32345. \********************************************************/
  32346. /*! no static exports found */
  32347. /***/ (function(module, exports, __webpack_require__) {
  32348. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  32349. /**
  32350. * Creates an array of numbers (positive and/or negative) progressing from
  32351. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  32352. * `start` is specified without an `end` or `step`. If `end` is not specified,
  32353. * it's set to `start` with `start` then set to `0`.
  32354. *
  32355. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  32356. * floating-point values which can produce unexpected results.
  32357. *
  32358. * @static
  32359. * @since 0.1.0
  32360. * @memberOf _
  32361. * @category Util
  32362. * @param {number} [start=0] The start of the range.
  32363. * @param {number} end The end of the range.
  32364. * @param {number} [step=1] The value to increment or decrement by.
  32365. * @returns {Array} Returns the range of numbers.
  32366. * @see _.inRange, _.rangeRight
  32367. * @example
  32368. *
  32369. * _.range(4);
  32370. * // => [0, 1, 2, 3]
  32371. *
  32372. * _.range(-4);
  32373. * // => [0, -1, -2, -3]
  32374. *
  32375. * _.range(1, 5);
  32376. * // => [1, 2, 3, 4]
  32377. *
  32378. * _.range(0, 20, 5);
  32379. * // => [0, 5, 10, 15]
  32380. *
  32381. * _.range(0, -4, -1);
  32382. * // => [0, -1, -2, -3]
  32383. *
  32384. * _.range(1, 4, 0);
  32385. * // => [1, 1, 1]
  32386. *
  32387. * _.range(0);
  32388. * // => []
  32389. */
  32390. var range = createRange();
  32391. module.exports = range;
  32392. /***/ }),
  32393. /***/ "../../node_modules/lodash/reduce.js":
  32394. /*!*********************************************************!*\
  32395. !*** C:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  32396. \*********************************************************/
  32397. /*! no static exports found */
  32398. /***/ (function(module, exports, __webpack_require__) {
  32399. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  32400. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  32401. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32402. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  32403. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  32404. /**
  32405. * Reduces `collection` to a value which is the accumulated result of running
  32406. * each element in `collection` thru `iteratee`, where each successive
  32407. * invocation is supplied the return value of the previous. If `accumulator`
  32408. * is not given, the first element of `collection` is used as the initial
  32409. * value. The iteratee is invoked with four arguments:
  32410. * (accumulator, value, index|key, collection).
  32411. *
  32412. * Many lodash methods are guarded to work as iteratees for methods like
  32413. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  32414. *
  32415. * The guarded methods are:
  32416. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  32417. * and `sortBy`
  32418. *
  32419. * @static
  32420. * @memberOf _
  32421. * @since 0.1.0
  32422. * @category Collection
  32423. * @param {Array|Object} collection The collection to iterate over.
  32424. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32425. * @param {*} [accumulator] The initial value.
  32426. * @returns {*} Returns the accumulated value.
  32427. * @see _.reduceRight
  32428. * @example
  32429. *
  32430. * _.reduce([1, 2], function(sum, n) {
  32431. * return sum + n;
  32432. * }, 0);
  32433. * // => 3
  32434. *
  32435. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32436. * (result[value] || (result[value] = [])).push(key);
  32437. * return result;
  32438. * }, {});
  32439. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  32440. */
  32441. function reduce(collection, iteratee, accumulator) {
  32442. var func = isArray(collection) ? arrayReduce : baseReduce,
  32443. initAccum = arguments.length < 3;
  32444. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  32445. }
  32446. module.exports = reduce;
  32447. /***/ }),
  32448. /***/ "../../node_modules/lodash/size.js":
  32449. /*!*******************************************************!*\
  32450. !*** C:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  32451. \*******************************************************/
  32452. /*! no static exports found */
  32453. /***/ (function(module, exports, __webpack_require__) {
  32454. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  32455. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  32456. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  32457. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  32458. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  32459. /** `Object#toString` result references. */
  32460. var mapTag = '[object Map]',
  32461. setTag = '[object Set]';
  32462. /**
  32463. * Gets the size of `collection` by returning its length for array-like
  32464. * values or the number of own enumerable string keyed properties for objects.
  32465. *
  32466. * @static
  32467. * @memberOf _
  32468. * @since 0.1.0
  32469. * @category Collection
  32470. * @param {Array|Object|string} collection The collection to inspect.
  32471. * @returns {number} Returns the collection size.
  32472. * @example
  32473. *
  32474. * _.size([1, 2, 3]);
  32475. * // => 3
  32476. *
  32477. * _.size({ 'a': 1, 'b': 2 });
  32478. * // => 2
  32479. *
  32480. * _.size('pebbles');
  32481. * // => 7
  32482. */
  32483. function size(collection) {
  32484. if (collection == null) {
  32485. return 0;
  32486. }
  32487. if (isArrayLike(collection)) {
  32488. return isString(collection) ? stringSize(collection) : collection.length;
  32489. }
  32490. var tag = getTag(collection);
  32491. if (tag == mapTag || tag == setTag) {
  32492. return collection.size;
  32493. }
  32494. return baseKeys(collection).length;
  32495. }
  32496. module.exports = size;
  32497. /***/ }),
  32498. /***/ "../../node_modules/lodash/sortBy.js":
  32499. /*!*********************************************************!*\
  32500. !*** C:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  32501. \*********************************************************/
  32502. /*! no static exports found */
  32503. /***/ (function(module, exports, __webpack_require__) {
  32504. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32505. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  32506. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32507. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  32508. /**
  32509. * Creates an array of elements, sorted in ascending order by the results of
  32510. * running each element in a collection thru each iteratee. This method
  32511. * performs a stable sort, that is, it preserves the original sort order of
  32512. * equal elements. The iteratees are invoked with one argument: (value).
  32513. *
  32514. * @static
  32515. * @memberOf _
  32516. * @since 0.1.0
  32517. * @category Collection
  32518. * @param {Array|Object} collection The collection to iterate over.
  32519. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  32520. * The iteratees to sort by.
  32521. * @returns {Array} Returns the new sorted array.
  32522. * @example
  32523. *
  32524. * var users = [
  32525. * { 'user': 'fred', 'age': 48 },
  32526. * { 'user': 'barney', 'age': 36 },
  32527. * { 'user': 'fred', 'age': 40 },
  32528. * { 'user': 'barney', 'age': 34 }
  32529. * ];
  32530. *
  32531. * _.sortBy(users, [function(o) { return o.user; }]);
  32532. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  32533. *
  32534. * _.sortBy(users, ['user', 'age']);
  32535. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  32536. */
  32537. var sortBy = baseRest(function(collection, iteratees) {
  32538. if (collection == null) {
  32539. return [];
  32540. }
  32541. var length = iteratees.length;
  32542. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  32543. iteratees = [];
  32544. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  32545. iteratees = [iteratees[0]];
  32546. }
  32547. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  32548. });
  32549. module.exports = sortBy;
  32550. /***/ }),
  32551. /***/ "../../node_modules/lodash/stubArray.js":
  32552. /*!************************************************************!*\
  32553. !*** C:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  32554. \************************************************************/
  32555. /*! no static exports found */
  32556. /***/ (function(module, exports) {
  32557. /**
  32558. * This method returns a new empty array.
  32559. *
  32560. * @static
  32561. * @memberOf _
  32562. * @since 4.13.0
  32563. * @category Util
  32564. * @returns {Array} Returns the new empty array.
  32565. * @example
  32566. *
  32567. * var arrays = _.times(2, _.stubArray);
  32568. *
  32569. * console.log(arrays);
  32570. * // => [[], []]
  32571. *
  32572. * console.log(arrays[0] === arrays[1]);
  32573. * // => false
  32574. */
  32575. function stubArray() {
  32576. return [];
  32577. }
  32578. module.exports = stubArray;
  32579. /***/ }),
  32580. /***/ "../../node_modules/lodash/stubFalse.js":
  32581. /*!************************************************************!*\
  32582. !*** C:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  32583. \************************************************************/
  32584. /*! no static exports found */
  32585. /***/ (function(module, exports) {
  32586. /**
  32587. * This method returns `false`.
  32588. *
  32589. * @static
  32590. * @memberOf _
  32591. * @since 4.13.0
  32592. * @category Util
  32593. * @returns {boolean} Returns `false`.
  32594. * @example
  32595. *
  32596. * _.times(2, _.stubFalse);
  32597. * // => [false, false]
  32598. */
  32599. function stubFalse() {
  32600. return false;
  32601. }
  32602. module.exports = stubFalse;
  32603. /***/ }),
  32604. /***/ "../../node_modules/lodash/toFinite.js":
  32605. /*!***********************************************************!*\
  32606. !*** C:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  32607. \***********************************************************/
  32608. /*! no static exports found */
  32609. /***/ (function(module, exports, __webpack_require__) {
  32610. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  32611. /** Used as references for various `Number` constants. */
  32612. var INFINITY = 1 / 0,
  32613. MAX_INTEGER = 1.7976931348623157e+308;
  32614. /**
  32615. * Converts `value` to a finite number.
  32616. *
  32617. * @static
  32618. * @memberOf _
  32619. * @since 4.12.0
  32620. * @category Lang
  32621. * @param {*} value The value to convert.
  32622. * @returns {number} Returns the converted number.
  32623. * @example
  32624. *
  32625. * _.toFinite(3.2);
  32626. * // => 3.2
  32627. *
  32628. * _.toFinite(Number.MIN_VALUE);
  32629. * // => 5e-324
  32630. *
  32631. * _.toFinite(Infinity);
  32632. * // => 1.7976931348623157e+308
  32633. *
  32634. * _.toFinite('3.2');
  32635. * // => 3.2
  32636. */
  32637. function toFinite(value) {
  32638. if (!value) {
  32639. return value === 0 ? value : 0;
  32640. }
  32641. value = toNumber(value);
  32642. if (value === INFINITY || value === -INFINITY) {
  32643. var sign = (value < 0 ? -1 : 1);
  32644. return sign * MAX_INTEGER;
  32645. }
  32646. return value === value ? value : 0;
  32647. }
  32648. module.exports = toFinite;
  32649. /***/ }),
  32650. /***/ "../../node_modules/lodash/toInteger.js":
  32651. /*!************************************************************!*\
  32652. !*** C:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  32653. \************************************************************/
  32654. /*! no static exports found */
  32655. /***/ (function(module, exports, __webpack_require__) {
  32656. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  32657. /**
  32658. * Converts `value` to an integer.
  32659. *
  32660. * **Note:** This method is loosely based on
  32661. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  32662. *
  32663. * @static
  32664. * @memberOf _
  32665. * @since 4.0.0
  32666. * @category Lang
  32667. * @param {*} value The value to convert.
  32668. * @returns {number} Returns the converted integer.
  32669. * @example
  32670. *
  32671. * _.toInteger(3.2);
  32672. * // => 3
  32673. *
  32674. * _.toInteger(Number.MIN_VALUE);
  32675. * // => 0
  32676. *
  32677. * _.toInteger(Infinity);
  32678. * // => 1.7976931348623157e+308
  32679. *
  32680. * _.toInteger('3.2');
  32681. * // => 3
  32682. */
  32683. function toInteger(value) {
  32684. var result = toFinite(value),
  32685. remainder = result % 1;
  32686. return result === result ? (remainder ? result - remainder : result) : 0;
  32687. }
  32688. module.exports = toInteger;
  32689. /***/ }),
  32690. /***/ "../../node_modules/lodash/toNumber.js":
  32691. /*!***********************************************************!*\
  32692. !*** C:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  32693. \***********************************************************/
  32694. /*! no static exports found */
  32695. /***/ (function(module, exports, __webpack_require__) {
  32696. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32697. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  32698. /** Used as references for various `Number` constants. */
  32699. var NAN = 0 / 0;
  32700. /** Used to match leading and trailing whitespace. */
  32701. var reTrim = /^\s+|\s+$/g;
  32702. /** Used to detect bad signed hexadecimal string values. */
  32703. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  32704. /** Used to detect binary string values. */
  32705. var reIsBinary = /^0b[01]+$/i;
  32706. /** Used to detect octal string values. */
  32707. var reIsOctal = /^0o[0-7]+$/i;
  32708. /** Built-in method references without a dependency on `root`. */
  32709. var freeParseInt = parseInt;
  32710. /**
  32711. * Converts `value` to a number.
  32712. *
  32713. * @static
  32714. * @memberOf _
  32715. * @since 4.0.0
  32716. * @category Lang
  32717. * @param {*} value The value to process.
  32718. * @returns {number} Returns the number.
  32719. * @example
  32720. *
  32721. * _.toNumber(3.2);
  32722. * // => 3.2
  32723. *
  32724. * _.toNumber(Number.MIN_VALUE);
  32725. * // => 5e-324
  32726. *
  32727. * _.toNumber(Infinity);
  32728. * // => Infinity
  32729. *
  32730. * _.toNumber('3.2');
  32731. * // => 3.2
  32732. */
  32733. function toNumber(value) {
  32734. if (typeof value == 'number') {
  32735. return value;
  32736. }
  32737. if (isSymbol(value)) {
  32738. return NAN;
  32739. }
  32740. if (isObject(value)) {
  32741. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  32742. value = isObject(other) ? (other + '') : other;
  32743. }
  32744. if (typeof value != 'string') {
  32745. return value === 0 ? value : +value;
  32746. }
  32747. value = value.replace(reTrim, '');
  32748. var isBinary = reIsBinary.test(value);
  32749. return (isBinary || reIsOctal.test(value))
  32750. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  32751. : (reIsBadHex.test(value) ? NAN : +value);
  32752. }
  32753. module.exports = toNumber;
  32754. /***/ }),
  32755. /***/ "../../node_modules/lodash/toPlainObject.js":
  32756. /*!****************************************************************!*\
  32757. !*** C:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  32758. \****************************************************************/
  32759. /*! no static exports found */
  32760. /***/ (function(module, exports, __webpack_require__) {
  32761. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  32762. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  32763. /**
  32764. * Converts `value` to a plain object flattening inherited enumerable string
  32765. * keyed properties of `value` to own properties of the plain object.
  32766. *
  32767. * @static
  32768. * @memberOf _
  32769. * @since 3.0.0
  32770. * @category Lang
  32771. * @param {*} value The value to convert.
  32772. * @returns {Object} Returns the converted plain object.
  32773. * @example
  32774. *
  32775. * function Foo() {
  32776. * this.b = 2;
  32777. * }
  32778. *
  32779. * Foo.prototype.c = 3;
  32780. *
  32781. * _.assign({ 'a': 1 }, new Foo);
  32782. * // => { 'a': 1, 'b': 2 }
  32783. *
  32784. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  32785. * // => { 'a': 1, 'b': 2, 'c': 3 }
  32786. */
  32787. function toPlainObject(value) {
  32788. return copyObject(value, keysIn(value));
  32789. }
  32790. module.exports = toPlainObject;
  32791. /***/ }),
  32792. /***/ "../../node_modules/lodash/toString.js":
  32793. /*!***********************************************************!*\
  32794. !*** C:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  32795. \***********************************************************/
  32796. /*! no static exports found */
  32797. /***/ (function(module, exports, __webpack_require__) {
  32798. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  32799. /**
  32800. * Converts `value` to a string. An empty string is returned for `null`
  32801. * and `undefined` values. The sign of `-0` is preserved.
  32802. *
  32803. * @static
  32804. * @memberOf _
  32805. * @since 4.0.0
  32806. * @category Lang
  32807. * @param {*} value The value to convert.
  32808. * @returns {string} Returns the converted string.
  32809. * @example
  32810. *
  32811. * _.toString(null);
  32812. * // => ''
  32813. *
  32814. * _.toString(-0);
  32815. * // => '-0'
  32816. *
  32817. * _.toString([1, 2, 3]);
  32818. * // => '1,2,3'
  32819. */
  32820. function toString(value) {
  32821. return value == null ? '' : baseToString(value);
  32822. }
  32823. module.exports = toString;
  32824. /***/ }),
  32825. /***/ "../../node_modules/lodash/transform.js":
  32826. /*!************************************************************!*\
  32827. !*** C:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  32828. \************************************************************/
  32829. /*! no static exports found */
  32830. /***/ (function(module, exports, __webpack_require__) {
  32831. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  32832. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  32833. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  32834. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32835. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  32836. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  32837. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  32838. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  32839. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32840. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  32841. /**
  32842. * An alternative to `_.reduce`; this method transforms `object` to a new
  32843. * `accumulator` object which is the result of running each of its own
  32844. * enumerable string keyed properties thru `iteratee`, with each invocation
  32845. * potentially mutating the `accumulator` object. If `accumulator` is not
  32846. * provided, a new object with the same `[[Prototype]]` will be used. The
  32847. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  32848. * Iteratee functions may exit iteration early by explicitly returning `false`.
  32849. *
  32850. * @static
  32851. * @memberOf _
  32852. * @since 1.3.0
  32853. * @category Object
  32854. * @param {Object} object The object to iterate over.
  32855. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32856. * @param {*} [accumulator] The custom accumulator value.
  32857. * @returns {*} Returns the accumulated value.
  32858. * @example
  32859. *
  32860. * _.transform([2, 3, 4], function(result, n) {
  32861. * result.push(n *= n);
  32862. * return n % 2 == 0;
  32863. * }, []);
  32864. * // => [4, 9]
  32865. *
  32866. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32867. * (result[value] || (result[value] = [])).push(key);
  32868. * }, {});
  32869. * // => { '1': ['a', 'c'], '2': ['b'] }
  32870. */
  32871. function transform(object, iteratee, accumulator) {
  32872. var isArr = isArray(object),
  32873. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  32874. iteratee = baseIteratee(iteratee, 4);
  32875. if (accumulator == null) {
  32876. var Ctor = object && object.constructor;
  32877. if (isArrLike) {
  32878. accumulator = isArr ? new Ctor : [];
  32879. }
  32880. else if (isObject(object)) {
  32881. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  32882. }
  32883. else {
  32884. accumulator = {};
  32885. }
  32886. }
  32887. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  32888. return iteratee(accumulator, value, index, object);
  32889. });
  32890. return accumulator;
  32891. }
  32892. module.exports = transform;
  32893. /***/ }),
  32894. /***/ "../../node_modules/lodash/union.js":
  32895. /*!********************************************************!*\
  32896. !*** C:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  32897. \********************************************************/
  32898. /*! no static exports found */
  32899. /***/ (function(module, exports, __webpack_require__) {
  32900. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32901. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32902. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  32903. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  32904. /**
  32905. * Creates an array of unique values, in order, from all given arrays using
  32906. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  32907. * for equality comparisons.
  32908. *
  32909. * @static
  32910. * @memberOf _
  32911. * @since 0.1.0
  32912. * @category Array
  32913. * @param {...Array} [arrays] The arrays to inspect.
  32914. * @returns {Array} Returns the new array of combined values.
  32915. * @example
  32916. *
  32917. * _.union([2], [1, 2]);
  32918. * // => [2, 1]
  32919. */
  32920. var union = baseRest(function(arrays) {
  32921. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  32922. });
  32923. module.exports = union;
  32924. /***/ }),
  32925. /***/ "../../node_modules/lodash/uniqueId.js":
  32926. /*!***********************************************************!*\
  32927. !*** C:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  32928. \***********************************************************/
  32929. /*! no static exports found */
  32930. /***/ (function(module, exports, __webpack_require__) {
  32931. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  32932. /** Used to generate unique IDs. */
  32933. var idCounter = 0;
  32934. /**
  32935. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  32936. *
  32937. * @static
  32938. * @since 0.1.0
  32939. * @memberOf _
  32940. * @category Util
  32941. * @param {string} [prefix=''] The value to prefix the ID with.
  32942. * @returns {string} Returns the unique ID.
  32943. * @example
  32944. *
  32945. * _.uniqueId('contact_');
  32946. * // => 'contact_104'
  32947. *
  32948. * _.uniqueId();
  32949. * // => '105'
  32950. */
  32951. function uniqueId(prefix) {
  32952. var id = ++idCounter;
  32953. return toString(prefix) + id;
  32954. }
  32955. module.exports = uniqueId;
  32956. /***/ }),
  32957. /***/ "../../node_modules/lodash/values.js":
  32958. /*!*********************************************************!*\
  32959. !*** C:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  32960. \*********************************************************/
  32961. /*! no static exports found */
  32962. /***/ (function(module, exports, __webpack_require__) {
  32963. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  32964. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  32965. /**
  32966. * Creates an array of the own enumerable string keyed property values of `object`.
  32967. *
  32968. * **Note:** Non-object values are coerced to objects.
  32969. *
  32970. * @static
  32971. * @since 0.1.0
  32972. * @memberOf _
  32973. * @category Object
  32974. * @param {Object} object The object to query.
  32975. * @returns {Array} Returns the array of property values.
  32976. * @example
  32977. *
  32978. * function Foo() {
  32979. * this.a = 1;
  32980. * this.b = 2;
  32981. * }
  32982. *
  32983. * Foo.prototype.c = 3;
  32984. *
  32985. * _.values(new Foo);
  32986. * // => [1, 2] (iteration order is not guaranteed)
  32987. *
  32988. * _.values('hi');
  32989. * // => ['h', 'i']
  32990. */
  32991. function values(object) {
  32992. return object == null ? [] : baseValues(object, keys(object));
  32993. }
  32994. module.exports = values;
  32995. /***/ }),
  32996. /***/ "../../node_modules/lodash/zipObject.js":
  32997. /*!************************************************************!*\
  32998. !*** C:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  32999. \************************************************************/
  33000. /*! no static exports found */
  33001. /***/ (function(module, exports, __webpack_require__) {
  33002. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  33003. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  33004. /**
  33005. * This method is like `_.fromPairs` except that it accepts two arrays,
  33006. * one of property identifiers and one of corresponding values.
  33007. *
  33008. * @static
  33009. * @memberOf _
  33010. * @since 0.4.0
  33011. * @category Array
  33012. * @param {Array} [props=[]] The property identifiers.
  33013. * @param {Array} [values=[]] The property values.
  33014. * @returns {Object} Returns the new object.
  33015. * @example
  33016. *
  33017. * _.zipObject(['a', 'b'], [1, 2]);
  33018. * // => { 'a': 1, 'b': 2 }
  33019. */
  33020. function zipObject(props, values) {
  33021. return baseZipObject(props || [], values || [], assignValue);
  33022. }
  33023. module.exports = zipObject;
  33024. /***/ }),
  33025. /***/ "../../node_modules/object-assign/index.js":
  33026. /*!***************************************************************!*\
  33027. !*** C:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  33028. \***************************************************************/
  33029. /*! no static exports found */
  33030. /***/ (function(module, exports, __webpack_require__) {
  33031. "use strict";
  33032. /*
  33033. object-assign
  33034. (c) Sindre Sorhus
  33035. @license MIT
  33036. */
  33037. /* eslint-disable no-unused-vars */
  33038. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  33039. var hasOwnProperty = Object.prototype.hasOwnProperty;
  33040. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  33041. function toObject(val) {
  33042. if (val === null || val === undefined) {
  33043. throw new TypeError('Object.assign cannot be called with null or undefined');
  33044. }
  33045. return Object(val);
  33046. }
  33047. function shouldUseNative() {
  33048. try {
  33049. if (!Object.assign) {
  33050. return false;
  33051. }
  33052. // Detect buggy property enumeration order in older V8 versions.
  33053. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  33054. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  33055. test1[5] = 'de';
  33056. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  33057. return false;
  33058. }
  33059. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33060. var test2 = {};
  33061. for (var i = 0; i < 10; i++) {
  33062. test2['_' + String.fromCharCode(i)] = i;
  33063. }
  33064. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  33065. return test2[n];
  33066. });
  33067. if (order2.join('') !== '0123456789') {
  33068. return false;
  33069. }
  33070. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33071. var test3 = {};
  33072. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  33073. test3[letter] = letter;
  33074. });
  33075. if (Object.keys(Object.assign({}, test3)).join('') !==
  33076. 'abcdefghijklmnopqrst') {
  33077. return false;
  33078. }
  33079. return true;
  33080. } catch (err) {
  33081. // We don't expect any of the above to throw, but better to be safe.
  33082. return false;
  33083. }
  33084. }
  33085. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  33086. var from;
  33087. var to = toObject(target);
  33088. var symbols;
  33089. for (var s = 1; s < arguments.length; s++) {
  33090. from = Object(arguments[s]);
  33091. for (var key in from) {
  33092. if (hasOwnProperty.call(from, key)) {
  33093. to[key] = from[key];
  33094. }
  33095. }
  33096. if (getOwnPropertySymbols) {
  33097. symbols = getOwnPropertySymbols(from);
  33098. for (var i = 0; i < symbols.length; i++) {
  33099. if (propIsEnumerable.call(from, symbols[i])) {
  33100. to[symbols[i]] = from[symbols[i]];
  33101. }
  33102. }
  33103. }
  33104. }
  33105. return to;
  33106. };
  33107. /***/ }),
  33108. /***/ "../../node_modules/process/browser.js":
  33109. /*!***********************************************************!*\
  33110. !*** C:/Repos/Babylon.js/node_modules/process/browser.js ***!
  33111. \***********************************************************/
  33112. /*! no static exports found */
  33113. /***/ (function(module, exports) {
  33114. // shim for using process in browser
  33115. var process = module.exports = {};
  33116. // cached from whatever global is present so that test runners that stub it
  33117. // don't break things. But we need to wrap it in a try catch in case it is
  33118. // wrapped in strict mode code which doesn't define any globals. It's inside a
  33119. // function because try/catches deoptimize in certain engines.
  33120. var cachedSetTimeout;
  33121. var cachedClearTimeout;
  33122. function defaultSetTimout() {
  33123. throw new Error('setTimeout has not been defined');
  33124. }
  33125. function defaultClearTimeout () {
  33126. throw new Error('clearTimeout has not been defined');
  33127. }
  33128. (function () {
  33129. try {
  33130. if (typeof setTimeout === 'function') {
  33131. cachedSetTimeout = setTimeout;
  33132. } else {
  33133. cachedSetTimeout = defaultSetTimout;
  33134. }
  33135. } catch (e) {
  33136. cachedSetTimeout = defaultSetTimout;
  33137. }
  33138. try {
  33139. if (typeof clearTimeout === 'function') {
  33140. cachedClearTimeout = clearTimeout;
  33141. } else {
  33142. cachedClearTimeout = defaultClearTimeout;
  33143. }
  33144. } catch (e) {
  33145. cachedClearTimeout = defaultClearTimeout;
  33146. }
  33147. } ())
  33148. function runTimeout(fun) {
  33149. if (cachedSetTimeout === setTimeout) {
  33150. //normal enviroments in sane situations
  33151. return setTimeout(fun, 0);
  33152. }
  33153. // if setTimeout wasn't available but was latter defined
  33154. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  33155. cachedSetTimeout = setTimeout;
  33156. return setTimeout(fun, 0);
  33157. }
  33158. try {
  33159. // when when somebody has screwed with setTimeout but no I.E. maddness
  33160. return cachedSetTimeout(fun, 0);
  33161. } catch(e){
  33162. try {
  33163. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33164. return cachedSetTimeout.call(null, fun, 0);
  33165. } catch(e){
  33166. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  33167. return cachedSetTimeout.call(this, fun, 0);
  33168. }
  33169. }
  33170. }
  33171. function runClearTimeout(marker) {
  33172. if (cachedClearTimeout === clearTimeout) {
  33173. //normal enviroments in sane situations
  33174. return clearTimeout(marker);
  33175. }
  33176. // if clearTimeout wasn't available but was latter defined
  33177. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  33178. cachedClearTimeout = clearTimeout;
  33179. return clearTimeout(marker);
  33180. }
  33181. try {
  33182. // when when somebody has screwed with setTimeout but no I.E. maddness
  33183. return cachedClearTimeout(marker);
  33184. } catch (e){
  33185. try {
  33186. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33187. return cachedClearTimeout.call(null, marker);
  33188. } catch (e){
  33189. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  33190. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  33191. return cachedClearTimeout.call(this, marker);
  33192. }
  33193. }
  33194. }
  33195. var queue = [];
  33196. var draining = false;
  33197. var currentQueue;
  33198. var queueIndex = -1;
  33199. function cleanUpNextTick() {
  33200. if (!draining || !currentQueue) {
  33201. return;
  33202. }
  33203. draining = false;
  33204. if (currentQueue.length) {
  33205. queue = currentQueue.concat(queue);
  33206. } else {
  33207. queueIndex = -1;
  33208. }
  33209. if (queue.length) {
  33210. drainQueue();
  33211. }
  33212. }
  33213. function drainQueue() {
  33214. if (draining) {
  33215. return;
  33216. }
  33217. var timeout = runTimeout(cleanUpNextTick);
  33218. draining = true;
  33219. var len = queue.length;
  33220. while(len) {
  33221. currentQueue = queue;
  33222. queue = [];
  33223. while (++queueIndex < len) {
  33224. if (currentQueue) {
  33225. currentQueue[queueIndex].run();
  33226. }
  33227. }
  33228. queueIndex = -1;
  33229. len = queue.length;
  33230. }
  33231. currentQueue = null;
  33232. draining = false;
  33233. runClearTimeout(timeout);
  33234. }
  33235. process.nextTick = function (fun) {
  33236. var args = new Array(arguments.length - 1);
  33237. if (arguments.length > 1) {
  33238. for (var i = 1; i < arguments.length; i++) {
  33239. args[i - 1] = arguments[i];
  33240. }
  33241. }
  33242. queue.push(new Item(fun, args));
  33243. if (queue.length === 1 && !draining) {
  33244. runTimeout(drainQueue);
  33245. }
  33246. };
  33247. // v8 likes predictible objects
  33248. function Item(fun, array) {
  33249. this.fun = fun;
  33250. this.array = array;
  33251. }
  33252. Item.prototype.run = function () {
  33253. this.fun.apply(null, this.array);
  33254. };
  33255. process.title = 'browser';
  33256. process.browser = true;
  33257. process.env = {};
  33258. process.argv = [];
  33259. process.version = ''; // empty string to avoid regexp issues
  33260. process.versions = {};
  33261. function noop() {}
  33262. process.on = noop;
  33263. process.addListener = noop;
  33264. process.once = noop;
  33265. process.off = noop;
  33266. process.removeListener = noop;
  33267. process.removeAllListeners = noop;
  33268. process.emit = noop;
  33269. process.prependListener = noop;
  33270. process.prependOnceListener = noop;
  33271. process.listeners = function (name) { return [] }
  33272. process.binding = function (name) {
  33273. throw new Error('process.binding is not supported');
  33274. };
  33275. process.cwd = function () { return '/' };
  33276. process.chdir = function (dir) {
  33277. throw new Error('process.chdir is not supported');
  33278. };
  33279. process.umask = function() { return 0; };
  33280. /***/ }),
  33281. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  33282. /*!*********************************************************************!*\
  33283. !*** C:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  33284. \*********************************************************************/
  33285. /*! no static exports found */
  33286. /***/ (function(module, exports, __webpack_require__) {
  33287. "use strict";
  33288. /**
  33289. * Copyright (c) 2013-present, Facebook, Inc.
  33290. *
  33291. * This source code is licensed under the MIT license found in the
  33292. * LICENSE file in the root directory of this source tree.
  33293. */
  33294. var printWarning = function() {};
  33295. if (true) {
  33296. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33297. var loggedTypeFailures = {};
  33298. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  33299. printWarning = function(text) {
  33300. var message = 'Warning: ' + text;
  33301. if (typeof console !== 'undefined') {
  33302. console.error(message);
  33303. }
  33304. try {
  33305. // --- Welcome to debugging React ---
  33306. // This error was thrown as a convenience so that you can use this stack
  33307. // to find the callsite that caused this warning to fire.
  33308. throw new Error(message);
  33309. } catch (x) {}
  33310. };
  33311. }
  33312. /**
  33313. * Assert that the values match with the type specs.
  33314. * Error messages are memorized and will only be shown once.
  33315. *
  33316. * @param {object} typeSpecs Map of name to a ReactPropType
  33317. * @param {object} values Runtime values that need to be type-checked
  33318. * @param {string} location e.g. "prop", "context", "child context"
  33319. * @param {string} componentName Name of the component for error messages.
  33320. * @param {?Function} getStack Returns the component stack.
  33321. * @private
  33322. */
  33323. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  33324. if (true) {
  33325. for (var typeSpecName in typeSpecs) {
  33326. if (has(typeSpecs, typeSpecName)) {
  33327. var error;
  33328. // Prop type validation may throw. In case they do, we don't want to
  33329. // fail the render phase where it didn't fail before. So we log it.
  33330. // After these have been cleaned up, we'll let them throw.
  33331. try {
  33332. // This is intentionally an invariant that gets caught. It's the same
  33333. // behavior as without this statement except with a better message.
  33334. if (typeof typeSpecs[typeSpecName] !== 'function') {
  33335. var err = Error(
  33336. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  33337. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  33338. );
  33339. err.name = 'Invariant Violation';
  33340. throw err;
  33341. }
  33342. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  33343. } catch (ex) {
  33344. error = ex;
  33345. }
  33346. if (error && !(error instanceof Error)) {
  33347. printWarning(
  33348. (componentName || 'React class') + ': type specification of ' +
  33349. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  33350. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  33351. 'You may have forgotten to pass an argument to the type checker ' +
  33352. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  33353. 'shape all require an argument).'
  33354. );
  33355. }
  33356. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  33357. // Only monitor this failure once because there tends to be a lot of the
  33358. // same error.
  33359. loggedTypeFailures[error.message] = true;
  33360. var stack = getStack ? getStack() : '';
  33361. printWarning(
  33362. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  33363. );
  33364. }
  33365. }
  33366. }
  33367. }
  33368. }
  33369. /**
  33370. * Resets warning cache when testing.
  33371. *
  33372. * @private
  33373. */
  33374. checkPropTypes.resetWarningCache = function() {
  33375. if (true) {
  33376. loggedTypeFailures = {};
  33377. }
  33378. }
  33379. module.exports = checkPropTypes;
  33380. /***/ }),
  33381. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  33382. /*!******************************************************************************!*\
  33383. !*** C:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  33384. \******************************************************************************/
  33385. /*! no static exports found */
  33386. /***/ (function(module, exports, __webpack_require__) {
  33387. "use strict";
  33388. /**
  33389. * Copyright (c) 2013-present, Facebook, Inc.
  33390. *
  33391. * This source code is licensed under the MIT license found in the
  33392. * LICENSE file in the root directory of this source tree.
  33393. */
  33394. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  33395. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33396. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33397. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33398. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  33399. var printWarning = function() {};
  33400. if (true) {
  33401. printWarning = function(text) {
  33402. var message = 'Warning: ' + text;
  33403. if (typeof console !== 'undefined') {
  33404. console.error(message);
  33405. }
  33406. try {
  33407. // --- Welcome to debugging React ---
  33408. // This error was thrown as a convenience so that you can use this stack
  33409. // to find the callsite that caused this warning to fire.
  33410. throw new Error(message);
  33411. } catch (x) {}
  33412. };
  33413. }
  33414. function emptyFunctionThatReturnsNull() {
  33415. return null;
  33416. }
  33417. module.exports = function(isValidElement, throwOnDirectAccess) {
  33418. /* global Symbol */
  33419. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  33420. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  33421. /**
  33422. * Returns the iterator method function contained on the iterable object.
  33423. *
  33424. * Be sure to invoke the function with the iterable as context:
  33425. *
  33426. * var iteratorFn = getIteratorFn(myIterable);
  33427. * if (iteratorFn) {
  33428. * var iterator = iteratorFn.call(myIterable);
  33429. * ...
  33430. * }
  33431. *
  33432. * @param {?object} maybeIterable
  33433. * @return {?function}
  33434. */
  33435. function getIteratorFn(maybeIterable) {
  33436. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  33437. if (typeof iteratorFn === 'function') {
  33438. return iteratorFn;
  33439. }
  33440. }
  33441. /**
  33442. * Collection of methods that allow declaration and validation of props that are
  33443. * supplied to React components. Example usage:
  33444. *
  33445. * var Props = require('ReactPropTypes');
  33446. * var MyArticle = React.createClass({
  33447. * propTypes: {
  33448. * // An optional string prop named "description".
  33449. * description: Props.string,
  33450. *
  33451. * // A required enum prop named "category".
  33452. * category: Props.oneOf(['News','Photos']).isRequired,
  33453. *
  33454. * // A prop named "dialog" that requires an instance of Dialog.
  33455. * dialog: Props.instanceOf(Dialog).isRequired
  33456. * },
  33457. * render: function() { ... }
  33458. * });
  33459. *
  33460. * A more formal specification of how these methods are used:
  33461. *
  33462. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  33463. * decl := ReactPropTypes.{type}(.isRequired)?
  33464. *
  33465. * Each and every declaration produces a function with the same signature. This
  33466. * allows the creation of custom validation functions. For example:
  33467. *
  33468. * var MyLink = React.createClass({
  33469. * propTypes: {
  33470. * // An optional string or URI prop named "href".
  33471. * href: function(props, propName, componentName) {
  33472. * var propValue = props[propName];
  33473. * if (propValue != null && typeof propValue !== 'string' &&
  33474. * !(propValue instanceof URI)) {
  33475. * return new Error(
  33476. * 'Expected a string or an URI for ' + propName + ' in ' +
  33477. * componentName
  33478. * );
  33479. * }
  33480. * }
  33481. * },
  33482. * render: function() {...}
  33483. * });
  33484. *
  33485. * @internal
  33486. */
  33487. var ANONYMOUS = '<<anonymous>>';
  33488. // Important!
  33489. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  33490. var ReactPropTypes = {
  33491. array: createPrimitiveTypeChecker('array'),
  33492. bool: createPrimitiveTypeChecker('boolean'),
  33493. func: createPrimitiveTypeChecker('function'),
  33494. number: createPrimitiveTypeChecker('number'),
  33495. object: createPrimitiveTypeChecker('object'),
  33496. string: createPrimitiveTypeChecker('string'),
  33497. symbol: createPrimitiveTypeChecker('symbol'),
  33498. any: createAnyTypeChecker(),
  33499. arrayOf: createArrayOfTypeChecker,
  33500. element: createElementTypeChecker(),
  33501. elementType: createElementTypeTypeChecker(),
  33502. instanceOf: createInstanceTypeChecker,
  33503. node: createNodeChecker(),
  33504. objectOf: createObjectOfTypeChecker,
  33505. oneOf: createEnumTypeChecker,
  33506. oneOfType: createUnionTypeChecker,
  33507. shape: createShapeTypeChecker,
  33508. exact: createStrictShapeTypeChecker,
  33509. };
  33510. /**
  33511. * inlined Object.is polyfill to avoid requiring consumers ship their own
  33512. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  33513. */
  33514. /*eslint-disable no-self-compare*/
  33515. function is(x, y) {
  33516. // SameValue algorithm
  33517. if (x === y) {
  33518. // Steps 1-5, 7-10
  33519. // Steps 6.b-6.e: +0 != -0
  33520. return x !== 0 || 1 / x === 1 / y;
  33521. } else {
  33522. // Step 6.a: NaN == NaN
  33523. return x !== x && y !== y;
  33524. }
  33525. }
  33526. /*eslint-enable no-self-compare*/
  33527. /**
  33528. * We use an Error-like object for backward compatibility as people may call
  33529. * PropTypes directly and inspect their output. However, we don't use real
  33530. * Errors anymore. We don't inspect their stack anyway, and creating them
  33531. * is prohibitively expensive if they are created too often, such as what
  33532. * happens in oneOfType() for any type before the one that matched.
  33533. */
  33534. function PropTypeError(message) {
  33535. this.message = message;
  33536. this.stack = '';
  33537. }
  33538. // Make `instanceof Error` still work for returned errors.
  33539. PropTypeError.prototype = Error.prototype;
  33540. function createChainableTypeChecker(validate) {
  33541. if (true) {
  33542. var manualPropTypeCallCache = {};
  33543. var manualPropTypeWarningCount = 0;
  33544. }
  33545. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  33546. componentName = componentName || ANONYMOUS;
  33547. propFullName = propFullName || propName;
  33548. if (secret !== ReactPropTypesSecret) {
  33549. if (throwOnDirectAccess) {
  33550. // New behavior only for users of `prop-types` package
  33551. var err = new Error(
  33552. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  33553. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  33554. 'Read more at http://fb.me/use-check-prop-types'
  33555. );
  33556. err.name = 'Invariant Violation';
  33557. throw err;
  33558. } else if ( true && typeof console !== 'undefined') {
  33559. // Old behavior for people using React.PropTypes
  33560. var cacheKey = componentName + ':' + propName;
  33561. if (
  33562. !manualPropTypeCallCache[cacheKey] &&
  33563. // Avoid spamming the console because they are often not actionable except for lib authors
  33564. manualPropTypeWarningCount < 3
  33565. ) {
  33566. printWarning(
  33567. 'You are manually calling a React.PropTypes validation ' +
  33568. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  33569. 'and will throw in the standalone `prop-types` package. ' +
  33570. 'You may be seeing this warning due to a third-party PropTypes ' +
  33571. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  33572. );
  33573. manualPropTypeCallCache[cacheKey] = true;
  33574. manualPropTypeWarningCount++;
  33575. }
  33576. }
  33577. }
  33578. if (props[propName] == null) {
  33579. if (isRequired) {
  33580. if (props[propName] === null) {
  33581. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  33582. }
  33583. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  33584. }
  33585. return null;
  33586. } else {
  33587. return validate(props, propName, componentName, location, propFullName);
  33588. }
  33589. }
  33590. var chainedCheckType = checkType.bind(null, false);
  33591. chainedCheckType.isRequired = checkType.bind(null, true);
  33592. return chainedCheckType;
  33593. }
  33594. function createPrimitiveTypeChecker(expectedType) {
  33595. function validate(props, propName, componentName, location, propFullName, secret) {
  33596. var propValue = props[propName];
  33597. var propType = getPropType(propValue);
  33598. if (propType !== expectedType) {
  33599. // `propValue` being instance of, say, date/regexp, pass the 'object'
  33600. // check, but we can offer a more precise error message here rather than
  33601. // 'of type `object`'.
  33602. var preciseType = getPreciseType(propValue);
  33603. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  33604. }
  33605. return null;
  33606. }
  33607. return createChainableTypeChecker(validate);
  33608. }
  33609. function createAnyTypeChecker() {
  33610. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  33611. }
  33612. function createArrayOfTypeChecker(typeChecker) {
  33613. function validate(props, propName, componentName, location, propFullName) {
  33614. if (typeof typeChecker !== 'function') {
  33615. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  33616. }
  33617. var propValue = props[propName];
  33618. if (!Array.isArray(propValue)) {
  33619. var propType = getPropType(propValue);
  33620. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  33621. }
  33622. for (var i = 0; i < propValue.length; i++) {
  33623. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  33624. if (error instanceof Error) {
  33625. return error;
  33626. }
  33627. }
  33628. return null;
  33629. }
  33630. return createChainableTypeChecker(validate);
  33631. }
  33632. function createElementTypeChecker() {
  33633. function validate(props, propName, componentName, location, propFullName) {
  33634. var propValue = props[propName];
  33635. if (!isValidElement(propValue)) {
  33636. var propType = getPropType(propValue);
  33637. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  33638. }
  33639. return null;
  33640. }
  33641. return createChainableTypeChecker(validate);
  33642. }
  33643. function createElementTypeTypeChecker() {
  33644. function validate(props, propName, componentName, location, propFullName) {
  33645. var propValue = props[propName];
  33646. if (!ReactIs.isValidElementType(propValue)) {
  33647. var propType = getPropType(propValue);
  33648. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  33649. }
  33650. return null;
  33651. }
  33652. return createChainableTypeChecker(validate);
  33653. }
  33654. function createInstanceTypeChecker(expectedClass) {
  33655. function validate(props, propName, componentName, location, propFullName) {
  33656. if (!(props[propName] instanceof expectedClass)) {
  33657. var expectedClassName = expectedClass.name || ANONYMOUS;
  33658. var actualClassName = getClassName(props[propName]);
  33659. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  33660. }
  33661. return null;
  33662. }
  33663. return createChainableTypeChecker(validate);
  33664. }
  33665. function createEnumTypeChecker(expectedValues) {
  33666. if (!Array.isArray(expectedValues)) {
  33667. if (true) {
  33668. if (arguments.length > 1) {
  33669. printWarning(
  33670. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  33671. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  33672. );
  33673. } else {
  33674. printWarning('Invalid argument supplied to oneOf, expected an array.');
  33675. }
  33676. }
  33677. return emptyFunctionThatReturnsNull;
  33678. }
  33679. function validate(props, propName, componentName, location, propFullName) {
  33680. var propValue = props[propName];
  33681. for (var i = 0; i < expectedValues.length; i++) {
  33682. if (is(propValue, expectedValues[i])) {
  33683. return null;
  33684. }
  33685. }
  33686. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  33687. var type = getPreciseType(value);
  33688. if (type === 'symbol') {
  33689. return String(value);
  33690. }
  33691. return value;
  33692. });
  33693. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  33694. }
  33695. return createChainableTypeChecker(validate);
  33696. }
  33697. function createObjectOfTypeChecker(typeChecker) {
  33698. function validate(props, propName, componentName, location, propFullName) {
  33699. if (typeof typeChecker !== 'function') {
  33700. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  33701. }
  33702. var propValue = props[propName];
  33703. var propType = getPropType(propValue);
  33704. if (propType !== 'object') {
  33705. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  33706. }
  33707. for (var key in propValue) {
  33708. if (has(propValue, key)) {
  33709. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33710. if (error instanceof Error) {
  33711. return error;
  33712. }
  33713. }
  33714. }
  33715. return null;
  33716. }
  33717. return createChainableTypeChecker(validate);
  33718. }
  33719. function createUnionTypeChecker(arrayOfTypeCheckers) {
  33720. if (!Array.isArray(arrayOfTypeCheckers)) {
  33721. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  33722. return emptyFunctionThatReturnsNull;
  33723. }
  33724. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33725. var checker = arrayOfTypeCheckers[i];
  33726. if (typeof checker !== 'function') {
  33727. printWarning(
  33728. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  33729. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  33730. );
  33731. return emptyFunctionThatReturnsNull;
  33732. }
  33733. }
  33734. function validate(props, propName, componentName, location, propFullName) {
  33735. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33736. var checker = arrayOfTypeCheckers[i];
  33737. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  33738. return null;
  33739. }
  33740. }
  33741. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  33742. }
  33743. return createChainableTypeChecker(validate);
  33744. }
  33745. function createNodeChecker() {
  33746. function validate(props, propName, componentName, location, propFullName) {
  33747. if (!isNode(props[propName])) {
  33748. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  33749. }
  33750. return null;
  33751. }
  33752. return createChainableTypeChecker(validate);
  33753. }
  33754. function createShapeTypeChecker(shapeTypes) {
  33755. function validate(props, propName, componentName, location, propFullName) {
  33756. var propValue = props[propName];
  33757. var propType = getPropType(propValue);
  33758. if (propType !== 'object') {
  33759. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33760. }
  33761. for (var key in shapeTypes) {
  33762. var checker = shapeTypes[key];
  33763. if (!checker) {
  33764. continue;
  33765. }
  33766. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33767. if (error) {
  33768. return error;
  33769. }
  33770. }
  33771. return null;
  33772. }
  33773. return createChainableTypeChecker(validate);
  33774. }
  33775. function createStrictShapeTypeChecker(shapeTypes) {
  33776. function validate(props, propName, componentName, location, propFullName) {
  33777. var propValue = props[propName];
  33778. var propType = getPropType(propValue);
  33779. if (propType !== 'object') {
  33780. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33781. }
  33782. // We need to check all keys in case some are required but missing from
  33783. // props.
  33784. var allKeys = assign({}, props[propName], shapeTypes);
  33785. for (var key in allKeys) {
  33786. var checker = shapeTypes[key];
  33787. if (!checker) {
  33788. return new PropTypeError(
  33789. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  33790. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  33791. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  33792. );
  33793. }
  33794. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33795. if (error) {
  33796. return error;
  33797. }
  33798. }
  33799. return null;
  33800. }
  33801. return createChainableTypeChecker(validate);
  33802. }
  33803. function isNode(propValue) {
  33804. switch (typeof propValue) {
  33805. case 'number':
  33806. case 'string':
  33807. case 'undefined':
  33808. return true;
  33809. case 'boolean':
  33810. return !propValue;
  33811. case 'object':
  33812. if (Array.isArray(propValue)) {
  33813. return propValue.every(isNode);
  33814. }
  33815. if (propValue === null || isValidElement(propValue)) {
  33816. return true;
  33817. }
  33818. var iteratorFn = getIteratorFn(propValue);
  33819. if (iteratorFn) {
  33820. var iterator = iteratorFn.call(propValue);
  33821. var step;
  33822. if (iteratorFn !== propValue.entries) {
  33823. while (!(step = iterator.next()).done) {
  33824. if (!isNode(step.value)) {
  33825. return false;
  33826. }
  33827. }
  33828. } else {
  33829. // Iterator will provide entry [k,v] tuples rather than values.
  33830. while (!(step = iterator.next()).done) {
  33831. var entry = step.value;
  33832. if (entry) {
  33833. if (!isNode(entry[1])) {
  33834. return false;
  33835. }
  33836. }
  33837. }
  33838. }
  33839. } else {
  33840. return false;
  33841. }
  33842. return true;
  33843. default:
  33844. return false;
  33845. }
  33846. }
  33847. function isSymbol(propType, propValue) {
  33848. // Native Symbol.
  33849. if (propType === 'symbol') {
  33850. return true;
  33851. }
  33852. // falsy value can't be a Symbol
  33853. if (!propValue) {
  33854. return false;
  33855. }
  33856. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  33857. if (propValue['@@toStringTag'] === 'Symbol') {
  33858. return true;
  33859. }
  33860. // Fallback for non-spec compliant Symbols which are polyfilled.
  33861. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  33862. return true;
  33863. }
  33864. return false;
  33865. }
  33866. // Equivalent of `typeof` but with special handling for array and regexp.
  33867. function getPropType(propValue) {
  33868. var propType = typeof propValue;
  33869. if (Array.isArray(propValue)) {
  33870. return 'array';
  33871. }
  33872. if (propValue instanceof RegExp) {
  33873. // Old webkits (at least until Android 4.0) return 'function' rather than
  33874. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  33875. // passes PropTypes.object.
  33876. return 'object';
  33877. }
  33878. if (isSymbol(propType, propValue)) {
  33879. return 'symbol';
  33880. }
  33881. return propType;
  33882. }
  33883. // This handles more types than `getPropType`. Only used for error messages.
  33884. // See `createPrimitiveTypeChecker`.
  33885. function getPreciseType(propValue) {
  33886. if (typeof propValue === 'undefined' || propValue === null) {
  33887. return '' + propValue;
  33888. }
  33889. var propType = getPropType(propValue);
  33890. if (propType === 'object') {
  33891. if (propValue instanceof Date) {
  33892. return 'date';
  33893. } else if (propValue instanceof RegExp) {
  33894. return 'regexp';
  33895. }
  33896. }
  33897. return propType;
  33898. }
  33899. // Returns a string that is postfixed to a warning about an invalid type.
  33900. // For example, "undefined" or "of type array"
  33901. function getPostfixForTypeWarning(value) {
  33902. var type = getPreciseType(value);
  33903. switch (type) {
  33904. case 'array':
  33905. case 'object':
  33906. return 'an ' + type;
  33907. case 'boolean':
  33908. case 'date':
  33909. case 'regexp':
  33910. return 'a ' + type;
  33911. default:
  33912. return type;
  33913. }
  33914. }
  33915. // Returns class name of the object, if any.
  33916. function getClassName(propValue) {
  33917. if (!propValue.constructor || !propValue.constructor.name) {
  33918. return ANONYMOUS;
  33919. }
  33920. return propValue.constructor.name;
  33921. }
  33922. ReactPropTypes.checkPropTypes = checkPropTypes;
  33923. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  33924. ReactPropTypes.PropTypes = ReactPropTypes;
  33925. return ReactPropTypes;
  33926. };
  33927. /***/ }),
  33928. /***/ "../../node_modules/prop-types/index.js":
  33929. /*!************************************************************!*\
  33930. !*** C:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  33931. \************************************************************/
  33932. /*! no static exports found */
  33933. /***/ (function(module, exports, __webpack_require__) {
  33934. /**
  33935. * Copyright (c) 2013-present, Facebook, Inc.
  33936. *
  33937. * This source code is licensed under the MIT license found in the
  33938. * LICENSE file in the root directory of this source tree.
  33939. */
  33940. if (true) {
  33941. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  33942. // By explicitly using `prop-types` you are opting into new development behavior.
  33943. // http://fb.me/prop-types-in-prod
  33944. var throwOnDirectAccess = true;
  33945. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  33946. } else {}
  33947. /***/ }),
  33948. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  33949. /*!*******************************************************************************!*\
  33950. !*** C:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  33951. \*******************************************************************************/
  33952. /*! no static exports found */
  33953. /***/ (function(module, exports, __webpack_require__) {
  33954. "use strict";
  33955. /**
  33956. * Copyright (c) 2013-present, Facebook, Inc.
  33957. *
  33958. * This source code is licensed under the MIT license found in the
  33959. * LICENSE file in the root directory of this source tree.
  33960. */
  33961. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  33962. module.exports = ReactPropTypesSecret;
  33963. /***/ }),
  33964. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  33965. /*!*******************************************************************************!*\
  33966. !*** C:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  33967. \*******************************************************************************/
  33968. /*! no static exports found */
  33969. /***/ (function(module, exports, __webpack_require__) {
  33970. "use strict";
  33971. /** @license React v16.6.1
  33972. * react-dom.development.js
  33973. *
  33974. * Copyright (c) Facebook, Inc. and its affiliates.
  33975. *
  33976. * This source code is licensed under the MIT license found in the
  33977. * LICENSE file in the root directory of this source tree.
  33978. */
  33979. if (true) {
  33980. (function() {
  33981. 'use strict';
  33982. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  33983. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33984. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33985. var scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  33986. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  33987. /**
  33988. * Use invariant() to assert state which your program assumes to be true.
  33989. *
  33990. * Provide sprintf-style format (only %s is supported) and arguments
  33991. * to provide information about what broke and what you were
  33992. * expecting.
  33993. *
  33994. * The invariant message will be stripped in production, but the invariant
  33995. * will remain to ensure logic does not differ in production.
  33996. */
  33997. var validateFormat = function () {};
  33998. {
  33999. validateFormat = function (format) {
  34000. if (format === undefined) {
  34001. throw new Error('invariant requires an error message argument');
  34002. }
  34003. };
  34004. }
  34005. function invariant(condition, format, a, b, c, d, e, f) {
  34006. validateFormat(format);
  34007. if (!condition) {
  34008. var error = void 0;
  34009. if (format === undefined) {
  34010. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  34011. } else {
  34012. var args = [a, b, c, d, e, f];
  34013. var argIndex = 0;
  34014. error = new Error(format.replace(/%s/g, function () {
  34015. return args[argIndex++];
  34016. }));
  34017. error.name = 'Invariant Violation';
  34018. }
  34019. error.framesToPop = 1; // we don't care about invariant's own frame
  34020. throw error;
  34021. }
  34022. }
  34023. // Relying on the `invariant()` implementation lets us
  34024. // preserve the format and params in the www builds.
  34025. !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
  34026. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  34027. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34028. try {
  34029. func.apply(context, funcArgs);
  34030. } catch (error) {
  34031. this.onError(error);
  34032. }
  34033. };
  34034. {
  34035. // In DEV mode, we swap out invokeGuardedCallback for a special version
  34036. // that plays more nicely with the browser's DevTools. The idea is to preserve
  34037. // "Pause on exceptions" behavior. Because React wraps all user-provided
  34038. // functions in invokeGuardedCallback, and the production version of
  34039. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  34040. // like caught exceptions, and the DevTools won't pause unless the developer
  34041. // takes the extra step of enabling pause on caught exceptions. This is
  34042. // untintuitive, though, because even though React has caught the error, from
  34043. // the developer's perspective, the error is uncaught.
  34044. //
  34045. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  34046. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  34047. // DOM node, and call the user-provided callback from inside an event handler
  34048. // for that fake event. If the callback throws, the error is "captured" using
  34049. // a global event handler. But because the error happens in a different
  34050. // event loop context, it does not interrupt the normal program flow.
  34051. // Effectively, this gives us try-catch behavior without actually using
  34052. // try-catch. Neat!
  34053. // Check that the browser supports the APIs we need to implement our special
  34054. // DEV version of invokeGuardedCallback
  34055. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  34056. var fakeNode = document.createElement('react');
  34057. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  34058. // If document doesn't exist we know for sure we will crash in this method
  34059. // when we call document.createEvent(). However this can cause confusing
  34060. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  34061. // So we preemptively throw with a better message instead.
  34062. !(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;
  34063. var evt = document.createEvent('Event');
  34064. // Keeps track of whether the user-provided callback threw an error. We
  34065. // set this to true at the beginning, then set it to false right after
  34066. // calling the function. If the function errors, `didError` will never be
  34067. // set to false. This strategy works even if the browser is flaky and
  34068. // fails to call our global error handler, because it doesn't rely on
  34069. // the error event at all.
  34070. var didError = true;
  34071. // Keeps track of the value of window.event so that we can reset it
  34072. // during the callback to let user code access window.event in the
  34073. // browsers that support it.
  34074. var windowEvent = window.event;
  34075. // Keeps track of the descriptor of window.event to restore it after event
  34076. // dispatching: https://github.com/facebook/react/issues/13688
  34077. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  34078. // Create an event handler for our fake event. We will synchronously
  34079. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  34080. // call the user-provided callback.
  34081. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34082. function callCallback() {
  34083. // We immediately remove the callback from event listeners so that
  34084. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  34085. // nested call would trigger the fake event handlers of any call higher
  34086. // in the stack.
  34087. fakeNode.removeEventListener(evtType, callCallback, false);
  34088. // We check for window.hasOwnProperty('event') to prevent the
  34089. // window.event assignment in both IE <= 10 as they throw an error
  34090. // "Member not found" in strict mode, and in Firefox which does not
  34091. // support window.event.
  34092. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  34093. window.event = windowEvent;
  34094. }
  34095. func.apply(context, funcArgs);
  34096. didError = false;
  34097. }
  34098. // Create a global error event handler. We use this to capture the value
  34099. // that was thrown. It's possible that this error handler will fire more
  34100. // than once; for example, if non-React code also calls `dispatchEvent`
  34101. // and a handler for that event throws. We should be resilient to most of
  34102. // those cases. Even if our error event handler fires more than once, the
  34103. // last error event is always used. If the callback actually does error,
  34104. // we know that the last error event is the correct one, because it's not
  34105. // possible for anything else to have happened in between our callback
  34106. // erroring and the code that follows the `dispatchEvent` call below. If
  34107. // the callback doesn't error, but the error event was fired, we know to
  34108. // ignore it because `didError` will be false, as described above.
  34109. var error = void 0;
  34110. // Use this to track whether the error event is ever called.
  34111. var didSetError = false;
  34112. var isCrossOriginError = false;
  34113. function handleWindowError(event) {
  34114. error = event.error;
  34115. didSetError = true;
  34116. if (error === null && event.colno === 0 && event.lineno === 0) {
  34117. isCrossOriginError = true;
  34118. }
  34119. if (event.defaultPrevented) {
  34120. // Some other error handler has prevented default.
  34121. // Browsers silence the error report if this happens.
  34122. // We'll remember this to later decide whether to log it or not.
  34123. if (error != null && typeof error === 'object') {
  34124. try {
  34125. error._suppressLogging = true;
  34126. } catch (inner) {
  34127. // Ignore.
  34128. }
  34129. }
  34130. }
  34131. }
  34132. // Create a fake event type.
  34133. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  34134. // Attach our event handlers
  34135. window.addEventListener('error', handleWindowError);
  34136. fakeNode.addEventListener(evtType, callCallback, false);
  34137. // Synchronously dispatch our fake event. If the user-provided function
  34138. // errors, it will trigger our global error handler.
  34139. evt.initEvent(evtType, false, false);
  34140. fakeNode.dispatchEvent(evt);
  34141. if (windowEventDescriptor) {
  34142. Object.defineProperty(window, 'event', windowEventDescriptor);
  34143. }
  34144. if (didError) {
  34145. if (!didSetError) {
  34146. // The callback errored, but the error event never fired.
  34147. 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.');
  34148. } else if (isCrossOriginError) {
  34149. 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.');
  34150. }
  34151. this.onError(error);
  34152. }
  34153. // Remove our event listeners
  34154. window.removeEventListener('error', handleWindowError);
  34155. };
  34156. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  34157. }
  34158. }
  34159. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  34160. // Used by Fiber to simulate a try-catch.
  34161. var hasError = false;
  34162. var caughtError = null;
  34163. // Used by event system to capture/rethrow the first error.
  34164. var hasRethrowError = false;
  34165. var rethrowError = null;
  34166. var reporter = {
  34167. onError: function (error) {
  34168. hasError = true;
  34169. caughtError = error;
  34170. }
  34171. };
  34172. /**
  34173. * Call a function while guarding against errors that happens within it.
  34174. * Returns an error if it throws, otherwise null.
  34175. *
  34176. * In production, this is implemented using a try-catch. The reason we don't
  34177. * use a try-catch directly is so that we can swap out a different
  34178. * implementation in DEV mode.
  34179. *
  34180. * @param {String} name of the guard to use for logging or debugging
  34181. * @param {Function} func The function to invoke
  34182. * @param {*} context The context to use when calling the function
  34183. * @param {...*} args Arguments for function
  34184. */
  34185. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  34186. hasError = false;
  34187. caughtError = null;
  34188. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  34189. }
  34190. /**
  34191. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  34192. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  34193. * TODO: See if caughtError and rethrowError can be unified.
  34194. *
  34195. * @param {String} name of the guard to use for logging or debugging
  34196. * @param {Function} func The function to invoke
  34197. * @param {*} context The context to use when calling the function
  34198. * @param {...*} args Arguments for function
  34199. */
  34200. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  34201. invokeGuardedCallback.apply(this, arguments);
  34202. if (hasError) {
  34203. var error = clearCaughtError();
  34204. if (!hasRethrowError) {
  34205. hasRethrowError = true;
  34206. rethrowError = error;
  34207. }
  34208. }
  34209. }
  34210. /**
  34211. * During execution of guarded functions we will capture the first error which
  34212. * we will rethrow to be handled by the top level error handler.
  34213. */
  34214. function rethrowCaughtError() {
  34215. if (hasRethrowError) {
  34216. var error = rethrowError;
  34217. hasRethrowError = false;
  34218. rethrowError = null;
  34219. throw error;
  34220. }
  34221. }
  34222. function hasCaughtError() {
  34223. return hasError;
  34224. }
  34225. function clearCaughtError() {
  34226. if (hasError) {
  34227. var error = caughtError;
  34228. hasError = false;
  34229. caughtError = null;
  34230. return error;
  34231. } else {
  34232. invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
  34233. }
  34234. }
  34235. /**
  34236. * Injectable ordering of event plugins.
  34237. */
  34238. var eventPluginOrder = null;
  34239. /**
  34240. * Injectable mapping from names to event plugin modules.
  34241. */
  34242. var namesToPlugins = {};
  34243. /**
  34244. * Recomputes the plugin list using the injected plugins and plugin ordering.
  34245. *
  34246. * @private
  34247. */
  34248. function recomputePluginOrdering() {
  34249. if (!eventPluginOrder) {
  34250. // Wait until an `eventPluginOrder` is injected.
  34251. return;
  34252. }
  34253. for (var pluginName in namesToPlugins) {
  34254. var pluginModule = namesToPlugins[pluginName];
  34255. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  34256. !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
  34257. if (plugins[pluginIndex]) {
  34258. continue;
  34259. }
  34260. !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
  34261. plugins[pluginIndex] = pluginModule;
  34262. var publishedEvents = pluginModule.eventTypes;
  34263. for (var eventName in publishedEvents) {
  34264. !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
  34265. }
  34266. }
  34267. }
  34268. /**
  34269. * Publishes an event so that it can be dispatched by the supplied plugin.
  34270. *
  34271. * @param {object} dispatchConfig Dispatch configuration for the event.
  34272. * @param {object} PluginModule Plugin publishing the event.
  34273. * @return {boolean} True if the event was successfully published.
  34274. * @private
  34275. */
  34276. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  34277. !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
  34278. eventNameDispatchConfigs[eventName] = dispatchConfig;
  34279. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  34280. if (phasedRegistrationNames) {
  34281. for (var phaseName in phasedRegistrationNames) {
  34282. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  34283. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  34284. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  34285. }
  34286. }
  34287. return true;
  34288. } else if (dispatchConfig.registrationName) {
  34289. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  34290. return true;
  34291. }
  34292. return false;
  34293. }
  34294. /**
  34295. * Publishes a registration name that is used to identify dispatched events.
  34296. *
  34297. * @param {string} registrationName Registration name to add.
  34298. * @param {object} PluginModule Plugin publishing the event.
  34299. * @private
  34300. */
  34301. function publishRegistrationName(registrationName, pluginModule, eventName) {
  34302. !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
  34303. registrationNameModules[registrationName] = pluginModule;
  34304. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  34305. {
  34306. var lowerCasedName = registrationName.toLowerCase();
  34307. possibleRegistrationNames[lowerCasedName] = registrationName;
  34308. if (registrationName === 'onDoubleClick') {
  34309. possibleRegistrationNames.ondblclick = registrationName;
  34310. }
  34311. }
  34312. }
  34313. /**
  34314. * Registers plugins so that they can extract and dispatch events.
  34315. *
  34316. * @see {EventPluginHub}
  34317. */
  34318. /**
  34319. * Ordered list of injected plugins.
  34320. */
  34321. var plugins = [];
  34322. /**
  34323. * Mapping from event name to dispatch config
  34324. */
  34325. var eventNameDispatchConfigs = {};
  34326. /**
  34327. * Mapping from registration name to plugin module
  34328. */
  34329. var registrationNameModules = {};
  34330. /**
  34331. * Mapping from registration name to event name
  34332. */
  34333. var registrationNameDependencies = {};
  34334. /**
  34335. * Mapping from lowercase registration names to the properly cased version,
  34336. * used to warn in the case of missing event handlers. Available
  34337. * only in true.
  34338. * @type {Object}
  34339. */
  34340. var possibleRegistrationNames = {};
  34341. // Trust the developer to only use possibleRegistrationNames in true
  34342. /**
  34343. * Injects an ordering of plugins (by plugin name). This allows the ordering
  34344. * to be decoupled from injection of the actual plugins so that ordering is
  34345. * always deterministic regardless of packaging, on-the-fly injection, etc.
  34346. *
  34347. * @param {array} InjectedEventPluginOrder
  34348. * @internal
  34349. * @see {EventPluginHub.injection.injectEventPluginOrder}
  34350. */
  34351. function injectEventPluginOrder(injectedEventPluginOrder) {
  34352. !!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;
  34353. // Clone the ordering so it cannot be dynamically mutated.
  34354. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  34355. recomputePluginOrdering();
  34356. }
  34357. /**
  34358. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  34359. * in the ordering injected by `injectEventPluginOrder`.
  34360. *
  34361. * Plugins can be injected as part of page initialization or on-the-fly.
  34362. *
  34363. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34364. * @internal
  34365. * @see {EventPluginHub.injection.injectEventPluginsByName}
  34366. */
  34367. function injectEventPluginsByName(injectedNamesToPlugins) {
  34368. var isOrderingDirty = false;
  34369. for (var pluginName in injectedNamesToPlugins) {
  34370. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  34371. continue;
  34372. }
  34373. var pluginModule = injectedNamesToPlugins[pluginName];
  34374. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  34375. !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
  34376. namesToPlugins[pluginName] = pluginModule;
  34377. isOrderingDirty = true;
  34378. }
  34379. }
  34380. if (isOrderingDirty) {
  34381. recomputePluginOrdering();
  34382. }
  34383. }
  34384. /**
  34385. * Similar to invariant but only logs a warning if the condition is not met.
  34386. * This can be used to log issues in development environments in critical
  34387. * paths. Removing the logging code for production environments will keep the
  34388. * same logic and follow the same code paths.
  34389. */
  34390. var warningWithoutStack = function () {};
  34391. {
  34392. warningWithoutStack = function (condition, format) {
  34393. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  34394. args[_key - 2] = arguments[_key];
  34395. }
  34396. if (format === undefined) {
  34397. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  34398. }
  34399. if (args.length > 8) {
  34400. // Check before the condition to catch violations early.
  34401. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  34402. }
  34403. if (condition) {
  34404. return;
  34405. }
  34406. if (typeof console !== 'undefined') {
  34407. var argsWithFormat = args.map(function (item) {
  34408. return '' + item;
  34409. });
  34410. argsWithFormat.unshift('Warning: ' + format);
  34411. // We intentionally don't use spread (or .apply) directly because it
  34412. // breaks IE9: https://github.com/facebook/react/issues/13610
  34413. Function.prototype.apply.call(console.error, console, argsWithFormat);
  34414. }
  34415. try {
  34416. // --- Welcome to debugging React ---
  34417. // This error was thrown as a convenience so that you can use this stack
  34418. // to find the callsite that caused this warning to fire.
  34419. var argIndex = 0;
  34420. var message = 'Warning: ' + format.replace(/%s/g, function () {
  34421. return args[argIndex++];
  34422. });
  34423. throw new Error(message);
  34424. } catch (x) {}
  34425. };
  34426. }
  34427. var warningWithoutStack$1 = warningWithoutStack;
  34428. var getFiberCurrentPropsFromNode = null;
  34429. var getInstanceFromNode = null;
  34430. var getNodeFromInstance = null;
  34431. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  34432. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  34433. getInstanceFromNode = getInstanceFromNodeImpl;
  34434. getNodeFromInstance = getNodeFromInstanceImpl;
  34435. {
  34436. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  34437. }
  34438. }
  34439. var validateEventDispatches = void 0;
  34440. {
  34441. validateEventDispatches = function (event) {
  34442. var dispatchListeners = event._dispatchListeners;
  34443. var dispatchInstances = event._dispatchInstances;
  34444. var listenersIsArr = Array.isArray(dispatchListeners);
  34445. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  34446. var instancesIsArr = Array.isArray(dispatchInstances);
  34447. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  34448. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  34449. };
  34450. }
  34451. /**
  34452. * Dispatch the event to the listener.
  34453. * @param {SyntheticEvent} event SyntheticEvent to handle
  34454. * @param {function} listener Application-level callback
  34455. * @param {*} inst Internal component instance
  34456. */
  34457. function executeDispatch(event, listener, inst) {
  34458. var type = event.type || 'unknown-event';
  34459. event.currentTarget = getNodeFromInstance(inst);
  34460. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  34461. event.currentTarget = null;
  34462. }
  34463. /**
  34464. * Standard/simple iteration through an event's collected dispatches.
  34465. */
  34466. function executeDispatchesInOrder(event) {
  34467. var dispatchListeners = event._dispatchListeners;
  34468. var dispatchInstances = event._dispatchInstances;
  34469. {
  34470. validateEventDispatches(event);
  34471. }
  34472. if (Array.isArray(dispatchListeners)) {
  34473. for (var i = 0; i < dispatchListeners.length; i++) {
  34474. if (event.isPropagationStopped()) {
  34475. break;
  34476. }
  34477. // Listeners and Instances are two parallel arrays that are always in sync.
  34478. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  34479. }
  34480. } else if (dispatchListeners) {
  34481. executeDispatch(event, dispatchListeners, dispatchInstances);
  34482. }
  34483. event._dispatchListeners = null;
  34484. event._dispatchInstances = null;
  34485. }
  34486. /**
  34487. * @see executeDispatchesInOrderStopAtTrueImpl
  34488. */
  34489. /**
  34490. * Execution of a "direct" dispatch - there must be at most one dispatch
  34491. * accumulated on the event or it is considered an error. It doesn't really make
  34492. * sense for an event with multiple dispatches (bubbled) to keep track of the
  34493. * return values at each dispatch execution, but it does tend to make sense when
  34494. * dealing with "direct" dispatches.
  34495. *
  34496. * @return {*} The return value of executing the single dispatch.
  34497. */
  34498. /**
  34499. * @param {SyntheticEvent} event
  34500. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  34501. */
  34502. /**
  34503. * Accumulates items that must not be null or undefined into the first one. This
  34504. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  34505. * API cleanness. Since `current` can be null before being passed in and not
  34506. * null after this function, make sure to assign it back to `current`:
  34507. *
  34508. * `a = accumulateInto(a, b);`
  34509. *
  34510. * This API should be sparingly used. Try `accumulate` for something cleaner.
  34511. *
  34512. * @return {*|array<*>} An accumulation of items.
  34513. */
  34514. function accumulateInto(current, next) {
  34515. !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
  34516. if (current == null) {
  34517. return next;
  34518. }
  34519. // Both are not empty. Warning: Never call x.concat(y) when you are not
  34520. // certain that x is an Array (x could be a string with concat method).
  34521. if (Array.isArray(current)) {
  34522. if (Array.isArray(next)) {
  34523. current.push.apply(current, next);
  34524. return current;
  34525. }
  34526. current.push(next);
  34527. return current;
  34528. }
  34529. if (Array.isArray(next)) {
  34530. // A bit too dangerous to mutate `next`.
  34531. return [current].concat(next);
  34532. }
  34533. return [current, next];
  34534. }
  34535. /**
  34536. * @param {array} arr an "accumulation" of items which is either an Array or
  34537. * a single item. Useful when paired with the `accumulate` module. This is a
  34538. * simple utility that allows us to reason about a collection of items, but
  34539. * handling the case when there is exactly one item (and we do not need to
  34540. * allocate an array).
  34541. * @param {function} cb Callback invoked with each element or a collection.
  34542. * @param {?} [scope] Scope used as `this` in a callback.
  34543. */
  34544. function forEachAccumulated(arr, cb, scope) {
  34545. if (Array.isArray(arr)) {
  34546. arr.forEach(cb, scope);
  34547. } else if (arr) {
  34548. cb.call(scope, arr);
  34549. }
  34550. }
  34551. /**
  34552. * Internal queue of events that have accumulated their dispatches and are
  34553. * waiting to have their dispatches executed.
  34554. */
  34555. var eventQueue = null;
  34556. /**
  34557. * Dispatches an event and releases it back into the pool, unless persistent.
  34558. *
  34559. * @param {?object} event Synthetic event to be dispatched.
  34560. * @private
  34561. */
  34562. var executeDispatchesAndRelease = function (event) {
  34563. if (event) {
  34564. executeDispatchesInOrder(event);
  34565. if (!event.isPersistent()) {
  34566. event.constructor.release(event);
  34567. }
  34568. }
  34569. };
  34570. var executeDispatchesAndReleaseTopLevel = function (e) {
  34571. return executeDispatchesAndRelease(e);
  34572. };
  34573. function isInteractive(tag) {
  34574. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  34575. }
  34576. function shouldPreventMouseEvent(name, type, props) {
  34577. switch (name) {
  34578. case 'onClick':
  34579. case 'onClickCapture':
  34580. case 'onDoubleClick':
  34581. case 'onDoubleClickCapture':
  34582. case 'onMouseDown':
  34583. case 'onMouseDownCapture':
  34584. case 'onMouseMove':
  34585. case 'onMouseMoveCapture':
  34586. case 'onMouseUp':
  34587. case 'onMouseUpCapture':
  34588. return !!(props.disabled && isInteractive(type));
  34589. default:
  34590. return false;
  34591. }
  34592. }
  34593. /**
  34594. * This is a unified interface for event plugins to be installed and configured.
  34595. *
  34596. * Event plugins can implement the following properties:
  34597. *
  34598. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  34599. * Required. When a top-level event is fired, this method is expected to
  34600. * extract synthetic events that will in turn be queued and dispatched.
  34601. *
  34602. * `eventTypes` {object}
  34603. * Optional, plugins that fire events must publish a mapping of registration
  34604. * names that are used to register listeners. Values of this mapping must
  34605. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  34606. *
  34607. * `executeDispatch` {function(object, function, string)}
  34608. * Optional, allows plugins to override how an event gets dispatched. By
  34609. * default, the listener is simply invoked.
  34610. *
  34611. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  34612. *
  34613. * @public
  34614. */
  34615. /**
  34616. * Methods for injecting dependencies.
  34617. */
  34618. var injection = {
  34619. /**
  34620. * @param {array} InjectedEventPluginOrder
  34621. * @public
  34622. */
  34623. injectEventPluginOrder: injectEventPluginOrder,
  34624. /**
  34625. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34626. */
  34627. injectEventPluginsByName: injectEventPluginsByName
  34628. };
  34629. /**
  34630. * @param {object} inst The instance, which is the source of events.
  34631. * @param {string} registrationName Name of listener (e.g. `onClick`).
  34632. * @return {?function} The stored callback.
  34633. */
  34634. function getListener(inst, registrationName) {
  34635. var listener = void 0;
  34636. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  34637. // live here; needs to be moved to a better place soon
  34638. var stateNode = inst.stateNode;
  34639. if (!stateNode) {
  34640. // Work in progress (ex: onload events in incremental mode).
  34641. return null;
  34642. }
  34643. var props = getFiberCurrentPropsFromNode(stateNode);
  34644. if (!props) {
  34645. // Work in progress.
  34646. return null;
  34647. }
  34648. listener = props[registrationName];
  34649. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  34650. return null;
  34651. }
  34652. !(!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;
  34653. return listener;
  34654. }
  34655. /**
  34656. * Allows registered plugins an opportunity to extract events from top-level
  34657. * native browser events.
  34658. *
  34659. * @return {*} An accumulation of synthetic events.
  34660. * @internal
  34661. */
  34662. function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34663. var events = null;
  34664. for (var i = 0; i < plugins.length; i++) {
  34665. // Not every plugin in the ordering may be loaded at runtime.
  34666. var possiblePlugin = plugins[i];
  34667. if (possiblePlugin) {
  34668. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34669. if (extractedEvents) {
  34670. events = accumulateInto(events, extractedEvents);
  34671. }
  34672. }
  34673. }
  34674. return events;
  34675. }
  34676. function runEventsInBatch(events) {
  34677. if (events !== null) {
  34678. eventQueue = accumulateInto(eventQueue, events);
  34679. }
  34680. // Set `eventQueue` to null before processing it so that we can tell if more
  34681. // events get enqueued while processing.
  34682. var processingEventQueue = eventQueue;
  34683. eventQueue = null;
  34684. if (!processingEventQueue) {
  34685. return;
  34686. }
  34687. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  34688. !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
  34689. // This would be a good time to rethrow if any of the event handlers threw.
  34690. rethrowCaughtError();
  34691. }
  34692. function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34693. var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34694. runEventsInBatch(events);
  34695. }
  34696. var FunctionComponent = 0;
  34697. var ClassComponent = 1;
  34698. var IndeterminateComponent = 2; // Before we know whether it is function or class
  34699. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  34700. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  34701. var HostComponent = 5;
  34702. var HostText = 6;
  34703. var Fragment = 7;
  34704. var Mode = 8;
  34705. var ContextConsumer = 9;
  34706. var ContextProvider = 10;
  34707. var ForwardRef = 11;
  34708. var Profiler = 12;
  34709. var SuspenseComponent = 13;
  34710. var MemoComponent = 14;
  34711. var SimpleMemoComponent = 15;
  34712. var LazyComponent = 16;
  34713. var IncompleteClassComponent = 17;
  34714. var randomKey = Math.random().toString(36).slice(2);
  34715. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  34716. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  34717. function precacheFiberNode(hostInst, node) {
  34718. node[internalInstanceKey] = hostInst;
  34719. }
  34720. /**
  34721. * Given a DOM node, return the closest ReactDOMComponent or
  34722. * ReactDOMTextComponent instance ancestor.
  34723. */
  34724. function getClosestInstanceFromNode(node) {
  34725. if (node[internalInstanceKey]) {
  34726. return node[internalInstanceKey];
  34727. }
  34728. while (!node[internalInstanceKey]) {
  34729. if (node.parentNode) {
  34730. node = node.parentNode;
  34731. } else {
  34732. // Top of the tree. This node must not be part of a React tree (or is
  34733. // unmounted, potentially).
  34734. return null;
  34735. }
  34736. }
  34737. var inst = node[internalInstanceKey];
  34738. if (inst.tag === HostComponent || inst.tag === HostText) {
  34739. // In Fiber, this will always be the deepest root.
  34740. return inst;
  34741. }
  34742. return null;
  34743. }
  34744. /**
  34745. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  34746. * instance, or null if the node was not rendered by this React.
  34747. */
  34748. function getInstanceFromNode$1(node) {
  34749. var inst = node[internalInstanceKey];
  34750. if (inst) {
  34751. if (inst.tag === HostComponent || inst.tag === HostText) {
  34752. return inst;
  34753. } else {
  34754. return null;
  34755. }
  34756. }
  34757. return null;
  34758. }
  34759. /**
  34760. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  34761. * DOM node.
  34762. */
  34763. function getNodeFromInstance$1(inst) {
  34764. if (inst.tag === HostComponent || inst.tag === HostText) {
  34765. // In Fiber this, is just the state node right now. We assume it will be
  34766. // a host component or host text.
  34767. return inst.stateNode;
  34768. }
  34769. // Without this first invariant, passing a non-DOM-component triggers the next
  34770. // invariant for a missing parent, which is super confusing.
  34771. invariant(false, 'getNodeFromInstance: Invalid argument.');
  34772. }
  34773. function getFiberCurrentPropsFromNode$1(node) {
  34774. return node[internalEventHandlersKey] || null;
  34775. }
  34776. function updateFiberProps(node, props) {
  34777. node[internalEventHandlersKey] = props;
  34778. }
  34779. function getParent(inst) {
  34780. do {
  34781. inst = inst.return;
  34782. // TODO: If this is a HostRoot we might want to bail out.
  34783. // That is depending on if we want nested subtrees (layers) to bubble
  34784. // events to their parent. We could also go through parentNode on the
  34785. // host node but that wouldn't work for React Native and doesn't let us
  34786. // do the portal feature.
  34787. } while (inst && inst.tag !== HostComponent);
  34788. if (inst) {
  34789. return inst;
  34790. }
  34791. return null;
  34792. }
  34793. /**
  34794. * Return the lowest common ancestor of A and B, or null if they are in
  34795. * different trees.
  34796. */
  34797. function getLowestCommonAncestor(instA, instB) {
  34798. var depthA = 0;
  34799. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  34800. depthA++;
  34801. }
  34802. var depthB = 0;
  34803. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  34804. depthB++;
  34805. }
  34806. // If A is deeper, crawl up.
  34807. while (depthA - depthB > 0) {
  34808. instA = getParent(instA);
  34809. depthA--;
  34810. }
  34811. // If B is deeper, crawl up.
  34812. while (depthB - depthA > 0) {
  34813. instB = getParent(instB);
  34814. depthB--;
  34815. }
  34816. // Walk in lockstep until we find a match.
  34817. var depth = depthA;
  34818. while (depth--) {
  34819. if (instA === instB || instA === instB.alternate) {
  34820. return instA;
  34821. }
  34822. instA = getParent(instA);
  34823. instB = getParent(instB);
  34824. }
  34825. return null;
  34826. }
  34827. /**
  34828. * Return if A is an ancestor of B.
  34829. */
  34830. /**
  34831. * Return the parent instance of the passed-in instance.
  34832. */
  34833. /**
  34834. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  34835. */
  34836. function traverseTwoPhase(inst, fn, arg) {
  34837. var path = [];
  34838. while (inst) {
  34839. path.push(inst);
  34840. inst = getParent(inst);
  34841. }
  34842. var i = void 0;
  34843. for (i = path.length; i-- > 0;) {
  34844. fn(path[i], 'captured', arg);
  34845. }
  34846. for (i = 0; i < path.length; i++) {
  34847. fn(path[i], 'bubbled', arg);
  34848. }
  34849. }
  34850. /**
  34851. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  34852. * should would receive a `mouseEnter` or `mouseLeave` event.
  34853. *
  34854. * Does not invoke the callback on the nearest common ancestor because nothing
  34855. * "entered" or "left" that element.
  34856. */
  34857. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  34858. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  34859. var pathFrom = [];
  34860. while (true) {
  34861. if (!from) {
  34862. break;
  34863. }
  34864. if (from === common) {
  34865. break;
  34866. }
  34867. var alternate = from.alternate;
  34868. if (alternate !== null && alternate === common) {
  34869. break;
  34870. }
  34871. pathFrom.push(from);
  34872. from = getParent(from);
  34873. }
  34874. var pathTo = [];
  34875. while (true) {
  34876. if (!to) {
  34877. break;
  34878. }
  34879. if (to === common) {
  34880. break;
  34881. }
  34882. var _alternate = to.alternate;
  34883. if (_alternate !== null && _alternate === common) {
  34884. break;
  34885. }
  34886. pathTo.push(to);
  34887. to = getParent(to);
  34888. }
  34889. for (var i = 0; i < pathFrom.length; i++) {
  34890. fn(pathFrom[i], 'bubbled', argFrom);
  34891. }
  34892. for (var _i = pathTo.length; _i-- > 0;) {
  34893. fn(pathTo[_i], 'captured', argTo);
  34894. }
  34895. }
  34896. /**
  34897. * Some event types have a notion of different registration names for different
  34898. * "phases" of propagation. This finds listeners by a given phase.
  34899. */
  34900. function listenerAtPhase(inst, event, propagationPhase) {
  34901. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  34902. return getListener(inst, registrationName);
  34903. }
  34904. /**
  34905. * A small set of propagation patterns, each of which will accept a small amount
  34906. * of information, and generate a set of "dispatch ready event objects" - which
  34907. * are sets of events that have already been annotated with a set of dispatched
  34908. * listener functions/ids. The API is designed this way to discourage these
  34909. * propagation strategies from actually executing the dispatches, since we
  34910. * always want to collect the entire set of dispatches before executing even a
  34911. * single one.
  34912. */
  34913. /**
  34914. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  34915. * here, allows us to not have to bind or create functions for each event.
  34916. * Mutating the event's members allows us to not have to create a wrapping
  34917. * "dispatch" object that pairs the event with the listener.
  34918. */
  34919. function accumulateDirectionalDispatches(inst, phase, event) {
  34920. {
  34921. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  34922. }
  34923. var listener = listenerAtPhase(inst, event, phase);
  34924. if (listener) {
  34925. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34926. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34927. }
  34928. }
  34929. /**
  34930. * Collect dispatches (must be entirely collected before dispatching - see unit
  34931. * tests). Lazily allocate the array to conserve memory. We must loop through
  34932. * each event and perform the traversal for each one. We cannot perform a
  34933. * single traversal for the entire collection of events because each event may
  34934. * have a different target.
  34935. */
  34936. function accumulateTwoPhaseDispatchesSingle(event) {
  34937. if (event && event.dispatchConfig.phasedRegistrationNames) {
  34938. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  34939. }
  34940. }
  34941. /**
  34942. * Accumulates without regard to direction, does not look for phased
  34943. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  34944. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  34945. */
  34946. function accumulateDispatches(inst, ignoredDirection, event) {
  34947. if (inst && event && event.dispatchConfig.registrationName) {
  34948. var registrationName = event.dispatchConfig.registrationName;
  34949. var listener = getListener(inst, registrationName);
  34950. if (listener) {
  34951. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34952. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34953. }
  34954. }
  34955. }
  34956. /**
  34957. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  34958. * `dispatchMarker`.
  34959. * @param {SyntheticEvent} event
  34960. */
  34961. function accumulateDirectDispatchesSingle(event) {
  34962. if (event && event.dispatchConfig.registrationName) {
  34963. accumulateDispatches(event._targetInst, null, event);
  34964. }
  34965. }
  34966. function accumulateTwoPhaseDispatches(events) {
  34967. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  34968. }
  34969. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  34970. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  34971. }
  34972. function accumulateDirectDispatches(events) {
  34973. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  34974. }
  34975. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  34976. // Do not uses the below two methods directly!
  34977. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  34978. // (It is the only module that is allowed to access these methods.)
  34979. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  34980. return topLevelType;
  34981. }
  34982. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  34983. return topLevelType;
  34984. }
  34985. /**
  34986. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  34987. *
  34988. * @param {string} styleProp
  34989. * @param {string} eventName
  34990. * @returns {object}
  34991. */
  34992. function makePrefixMap(styleProp, eventName) {
  34993. var prefixes = {};
  34994. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  34995. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  34996. prefixes['Moz' + styleProp] = 'moz' + eventName;
  34997. return prefixes;
  34998. }
  34999. /**
  35000. * A list of event names to a configurable list of vendor prefixes.
  35001. */
  35002. var vendorPrefixes = {
  35003. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  35004. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  35005. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  35006. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  35007. };
  35008. /**
  35009. * Event names that have already been detected and prefixed (if applicable).
  35010. */
  35011. var prefixedEventNames = {};
  35012. /**
  35013. * Element to check for prefixes on.
  35014. */
  35015. var style = {};
  35016. /**
  35017. * Bootstrap if a DOM exists.
  35018. */
  35019. if (canUseDOM) {
  35020. style = document.createElement('div').style;
  35021. // On some platforms, in particular some releases of Android 4.x,
  35022. // the un-prefixed "animation" and "transition" properties are defined on the
  35023. // style object but the events that fire will still be prefixed, so we need
  35024. // to check if the un-prefixed events are usable, and if not remove them from the map.
  35025. if (!('AnimationEvent' in window)) {
  35026. delete vendorPrefixes.animationend.animation;
  35027. delete vendorPrefixes.animationiteration.animation;
  35028. delete vendorPrefixes.animationstart.animation;
  35029. }
  35030. // Same as above
  35031. if (!('TransitionEvent' in window)) {
  35032. delete vendorPrefixes.transitionend.transition;
  35033. }
  35034. }
  35035. /**
  35036. * Attempts to determine the correct vendor prefixed event name.
  35037. *
  35038. * @param {string} eventName
  35039. * @returns {string}
  35040. */
  35041. function getVendorPrefixedEventName(eventName) {
  35042. if (prefixedEventNames[eventName]) {
  35043. return prefixedEventNames[eventName];
  35044. } else if (!vendorPrefixes[eventName]) {
  35045. return eventName;
  35046. }
  35047. var prefixMap = vendorPrefixes[eventName];
  35048. for (var styleProp in prefixMap) {
  35049. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  35050. return prefixedEventNames[eventName] = prefixMap[styleProp];
  35051. }
  35052. }
  35053. return eventName;
  35054. }
  35055. /**
  35056. * To identify top level events in ReactDOM, we use constants defined by this
  35057. * module. This is the only module that uses the unsafe* methods to express
  35058. * that the constants actually correspond to the browser event names. This lets
  35059. * us save some bundle size by avoiding a top level type -> event name map.
  35060. * The rest of ReactDOM code should import top level types from this file.
  35061. */
  35062. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  35063. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  35064. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  35065. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  35066. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  35067. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  35068. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  35069. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  35070. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  35071. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  35072. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  35073. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  35074. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  35075. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  35076. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  35077. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  35078. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  35079. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  35080. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  35081. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  35082. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  35083. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  35084. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  35085. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  35086. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  35087. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  35088. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  35089. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  35090. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  35091. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  35092. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  35093. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  35094. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  35095. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  35096. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  35097. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  35098. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  35099. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  35100. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  35101. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  35102. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  35103. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  35104. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  35105. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  35106. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  35107. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  35108. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  35109. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  35110. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  35111. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  35112. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  35113. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  35114. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  35115. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  35116. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  35117. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  35118. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  35119. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  35120. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  35121. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  35122. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  35123. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  35124. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  35125. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  35126. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  35127. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  35128. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  35129. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  35130. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  35131. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  35132. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  35133. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  35134. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  35135. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  35136. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  35137. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  35138. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  35139. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  35140. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  35141. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  35142. // List of events that need to be individually attached to media elements.
  35143. // Note that events in this list will *not* be listened to at the top level
  35144. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  35145. 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];
  35146. function getRawEventName(topLevelType) {
  35147. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  35148. }
  35149. /**
  35150. * These variables store information about text content of a target node,
  35151. * allowing comparison of content before and after a given event.
  35152. *
  35153. * Identify the node where selection currently begins, then observe
  35154. * both its text content and its current position in the DOM. Since the
  35155. * browser may natively replace the target node during composition, we can
  35156. * use its position to find its replacement.
  35157. *
  35158. *
  35159. */
  35160. var root = null;
  35161. var startText = null;
  35162. var fallbackText = null;
  35163. function initialize(nativeEventTarget) {
  35164. root = nativeEventTarget;
  35165. startText = getText();
  35166. return true;
  35167. }
  35168. function reset() {
  35169. root = null;
  35170. startText = null;
  35171. fallbackText = null;
  35172. }
  35173. function getData() {
  35174. if (fallbackText) {
  35175. return fallbackText;
  35176. }
  35177. var start = void 0;
  35178. var startValue = startText;
  35179. var startLength = startValue.length;
  35180. var end = void 0;
  35181. var endValue = getText();
  35182. var endLength = endValue.length;
  35183. for (start = 0; start < startLength; start++) {
  35184. if (startValue[start] !== endValue[start]) {
  35185. break;
  35186. }
  35187. }
  35188. var minEnd = startLength - start;
  35189. for (end = 1; end <= minEnd; end++) {
  35190. if (startValue[startLength - end] !== endValue[endLength - end]) {
  35191. break;
  35192. }
  35193. }
  35194. var sliceTail = end > 1 ? 1 - end : undefined;
  35195. fallbackText = endValue.slice(start, sliceTail);
  35196. return fallbackText;
  35197. }
  35198. function getText() {
  35199. if ('value' in root) {
  35200. return root.value;
  35201. }
  35202. return root.textContent;
  35203. }
  35204. /* eslint valid-typeof: 0 */
  35205. var EVENT_POOL_SIZE = 10;
  35206. /**
  35207. * @interface Event
  35208. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  35209. */
  35210. var EventInterface = {
  35211. type: null,
  35212. target: null,
  35213. // currentTarget is set when dispatching; no use in copying it here
  35214. currentTarget: function () {
  35215. return null;
  35216. },
  35217. eventPhase: null,
  35218. bubbles: null,
  35219. cancelable: null,
  35220. timeStamp: function (event) {
  35221. return event.timeStamp || Date.now();
  35222. },
  35223. defaultPrevented: null,
  35224. isTrusted: null
  35225. };
  35226. function functionThatReturnsTrue() {
  35227. return true;
  35228. }
  35229. function functionThatReturnsFalse() {
  35230. return false;
  35231. }
  35232. /**
  35233. * Synthetic events are dispatched by event plugins, typically in response to a
  35234. * top-level event delegation handler.
  35235. *
  35236. * These systems should generally use pooling to reduce the frequency of garbage
  35237. * collection. The system should check `isPersistent` to determine whether the
  35238. * event should be released into the pool after being dispatched. Users that
  35239. * need a persisted event should invoke `persist`.
  35240. *
  35241. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  35242. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  35243. * DOM interface; custom application-specific events can also subclass this.
  35244. *
  35245. * @param {object} dispatchConfig Configuration used to dispatch this event.
  35246. * @param {*} targetInst Marker identifying the event target.
  35247. * @param {object} nativeEvent Native browser event.
  35248. * @param {DOMEventTarget} nativeEventTarget Target node.
  35249. */
  35250. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  35251. {
  35252. // these have a getter/setter for warnings
  35253. delete this.nativeEvent;
  35254. delete this.preventDefault;
  35255. delete this.stopPropagation;
  35256. delete this.isDefaultPrevented;
  35257. delete this.isPropagationStopped;
  35258. }
  35259. this.dispatchConfig = dispatchConfig;
  35260. this._targetInst = targetInst;
  35261. this.nativeEvent = nativeEvent;
  35262. var Interface = this.constructor.Interface;
  35263. for (var propName in Interface) {
  35264. if (!Interface.hasOwnProperty(propName)) {
  35265. continue;
  35266. }
  35267. {
  35268. delete this[propName]; // this has a getter/setter for warnings
  35269. }
  35270. var normalize = Interface[propName];
  35271. if (normalize) {
  35272. this[propName] = normalize(nativeEvent);
  35273. } else {
  35274. if (propName === 'target') {
  35275. this.target = nativeEventTarget;
  35276. } else {
  35277. this[propName] = nativeEvent[propName];
  35278. }
  35279. }
  35280. }
  35281. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  35282. if (defaultPrevented) {
  35283. this.isDefaultPrevented = functionThatReturnsTrue;
  35284. } else {
  35285. this.isDefaultPrevented = functionThatReturnsFalse;
  35286. }
  35287. this.isPropagationStopped = functionThatReturnsFalse;
  35288. return this;
  35289. }
  35290. _assign(SyntheticEvent.prototype, {
  35291. preventDefault: function () {
  35292. this.defaultPrevented = true;
  35293. var event = this.nativeEvent;
  35294. if (!event) {
  35295. return;
  35296. }
  35297. if (event.preventDefault) {
  35298. event.preventDefault();
  35299. } else if (typeof event.returnValue !== 'unknown') {
  35300. event.returnValue = false;
  35301. }
  35302. this.isDefaultPrevented = functionThatReturnsTrue;
  35303. },
  35304. stopPropagation: function () {
  35305. var event = this.nativeEvent;
  35306. if (!event) {
  35307. return;
  35308. }
  35309. if (event.stopPropagation) {
  35310. event.stopPropagation();
  35311. } else if (typeof event.cancelBubble !== 'unknown') {
  35312. // The ChangeEventPlugin registers a "propertychange" event for
  35313. // IE. This event does not support bubbling or cancelling, and
  35314. // any references to cancelBubble throw "Member not found". A
  35315. // typeof check of "unknown" circumvents this issue (and is also
  35316. // IE specific).
  35317. event.cancelBubble = true;
  35318. }
  35319. this.isPropagationStopped = functionThatReturnsTrue;
  35320. },
  35321. /**
  35322. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  35323. * them back into the pool. This allows a way to hold onto a reference that
  35324. * won't be added back into the pool.
  35325. */
  35326. persist: function () {
  35327. this.isPersistent = functionThatReturnsTrue;
  35328. },
  35329. /**
  35330. * Checks if this event should be released back into the pool.
  35331. *
  35332. * @return {boolean} True if this should not be released, false otherwise.
  35333. */
  35334. isPersistent: functionThatReturnsFalse,
  35335. /**
  35336. * `PooledClass` looks for `destructor` on each instance it releases.
  35337. */
  35338. destructor: function () {
  35339. var Interface = this.constructor.Interface;
  35340. for (var propName in Interface) {
  35341. {
  35342. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  35343. }
  35344. }
  35345. this.dispatchConfig = null;
  35346. this._targetInst = null;
  35347. this.nativeEvent = null;
  35348. this.isDefaultPrevented = functionThatReturnsFalse;
  35349. this.isPropagationStopped = functionThatReturnsFalse;
  35350. this._dispatchListeners = null;
  35351. this._dispatchInstances = null;
  35352. {
  35353. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  35354. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  35355. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  35356. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  35357. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  35358. }
  35359. }
  35360. });
  35361. SyntheticEvent.Interface = EventInterface;
  35362. /**
  35363. * Helper to reduce boilerplate when creating subclasses.
  35364. */
  35365. SyntheticEvent.extend = function (Interface) {
  35366. var Super = this;
  35367. var E = function () {};
  35368. E.prototype = Super.prototype;
  35369. var prototype = new E();
  35370. function Class() {
  35371. return Super.apply(this, arguments);
  35372. }
  35373. _assign(prototype, Class.prototype);
  35374. Class.prototype = prototype;
  35375. Class.prototype.constructor = Class;
  35376. Class.Interface = _assign({}, Super.Interface, Interface);
  35377. Class.extend = Super.extend;
  35378. addEventPoolingTo(Class);
  35379. return Class;
  35380. };
  35381. addEventPoolingTo(SyntheticEvent);
  35382. /**
  35383. * Helper to nullify syntheticEvent instance properties when destructing
  35384. *
  35385. * @param {String} propName
  35386. * @param {?object} getVal
  35387. * @return {object} defineProperty object
  35388. */
  35389. function getPooledWarningPropertyDefinition(propName, getVal) {
  35390. var isFunction = typeof getVal === 'function';
  35391. return {
  35392. configurable: true,
  35393. set: set,
  35394. get: get
  35395. };
  35396. function set(val) {
  35397. var action = isFunction ? 'setting the method' : 'setting the property';
  35398. warn(action, 'This is effectively a no-op');
  35399. return val;
  35400. }
  35401. function get() {
  35402. var action = isFunction ? 'accessing the method' : 'accessing the property';
  35403. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  35404. warn(action, result);
  35405. return getVal;
  35406. }
  35407. function warn(action, result) {
  35408. var warningCondition = false;
  35409. !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;
  35410. }
  35411. }
  35412. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  35413. var EventConstructor = this;
  35414. if (EventConstructor.eventPool.length) {
  35415. var instance = EventConstructor.eventPool.pop();
  35416. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  35417. return instance;
  35418. }
  35419. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  35420. }
  35421. function releasePooledEvent(event) {
  35422. var EventConstructor = this;
  35423. !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
  35424. event.destructor();
  35425. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  35426. EventConstructor.eventPool.push(event);
  35427. }
  35428. }
  35429. function addEventPoolingTo(EventConstructor) {
  35430. EventConstructor.eventPool = [];
  35431. EventConstructor.getPooled = getPooledEvent;
  35432. EventConstructor.release = releasePooledEvent;
  35433. }
  35434. /**
  35435. * @interface Event
  35436. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  35437. */
  35438. var SyntheticCompositionEvent = SyntheticEvent.extend({
  35439. data: null
  35440. });
  35441. /**
  35442. * @interface Event
  35443. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  35444. * /#events-inputevents
  35445. */
  35446. var SyntheticInputEvent = SyntheticEvent.extend({
  35447. data: null
  35448. });
  35449. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  35450. var START_KEYCODE = 229;
  35451. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  35452. var documentMode = null;
  35453. if (canUseDOM && 'documentMode' in document) {
  35454. documentMode = document.documentMode;
  35455. }
  35456. // Webkit offers a very useful `textInput` event that can be used to
  35457. // directly represent `beforeInput`. The IE `textinput` event is not as
  35458. // useful, so we don't use it.
  35459. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  35460. // In IE9+, we have access to composition events, but the data supplied
  35461. // by the native compositionend event may be incorrect. Japanese ideographic
  35462. // spaces, for instance (\u3000) are not recorded correctly.
  35463. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  35464. var SPACEBAR_CODE = 32;
  35465. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  35466. // Events and their corresponding property names.
  35467. var eventTypes = {
  35468. beforeInput: {
  35469. phasedRegistrationNames: {
  35470. bubbled: 'onBeforeInput',
  35471. captured: 'onBeforeInputCapture'
  35472. },
  35473. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  35474. },
  35475. compositionEnd: {
  35476. phasedRegistrationNames: {
  35477. bubbled: 'onCompositionEnd',
  35478. captured: 'onCompositionEndCapture'
  35479. },
  35480. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35481. },
  35482. compositionStart: {
  35483. phasedRegistrationNames: {
  35484. bubbled: 'onCompositionStart',
  35485. captured: 'onCompositionStartCapture'
  35486. },
  35487. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35488. },
  35489. compositionUpdate: {
  35490. phasedRegistrationNames: {
  35491. bubbled: 'onCompositionUpdate',
  35492. captured: 'onCompositionUpdateCapture'
  35493. },
  35494. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35495. }
  35496. };
  35497. // Track whether we've ever handled a keypress on the space key.
  35498. var hasSpaceKeypress = false;
  35499. /**
  35500. * Return whether a native keypress event is assumed to be a command.
  35501. * This is required because Firefox fires `keypress` events for key commands
  35502. * (cut, copy, select-all, etc.) even though no character is inserted.
  35503. */
  35504. function isKeypressCommand(nativeEvent) {
  35505. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  35506. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  35507. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  35508. }
  35509. /**
  35510. * Translate native top level events into event types.
  35511. *
  35512. * @param {string} topLevelType
  35513. * @return {object}
  35514. */
  35515. function getCompositionEventType(topLevelType) {
  35516. switch (topLevelType) {
  35517. case TOP_COMPOSITION_START:
  35518. return eventTypes.compositionStart;
  35519. case TOP_COMPOSITION_END:
  35520. return eventTypes.compositionEnd;
  35521. case TOP_COMPOSITION_UPDATE:
  35522. return eventTypes.compositionUpdate;
  35523. }
  35524. }
  35525. /**
  35526. * Does our fallback best-guess model think this event signifies that
  35527. * composition has begun?
  35528. *
  35529. * @param {string} topLevelType
  35530. * @param {object} nativeEvent
  35531. * @return {boolean}
  35532. */
  35533. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  35534. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  35535. }
  35536. /**
  35537. * Does our fallback mode think that this event is the end of composition?
  35538. *
  35539. * @param {string} topLevelType
  35540. * @param {object} nativeEvent
  35541. * @return {boolean}
  35542. */
  35543. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  35544. switch (topLevelType) {
  35545. case TOP_KEY_UP:
  35546. // Command keys insert or clear IME input.
  35547. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  35548. case TOP_KEY_DOWN:
  35549. // Expect IME keyCode on each keydown. If we get any other
  35550. // code we must have exited earlier.
  35551. return nativeEvent.keyCode !== START_KEYCODE;
  35552. case TOP_KEY_PRESS:
  35553. case TOP_MOUSE_DOWN:
  35554. case TOP_BLUR:
  35555. // Events are not possible without cancelling IME.
  35556. return true;
  35557. default:
  35558. return false;
  35559. }
  35560. }
  35561. /**
  35562. * Google Input Tools provides composition data via a CustomEvent,
  35563. * with the `data` property populated in the `detail` object. If this
  35564. * is available on the event object, use it. If not, this is a plain
  35565. * composition event and we have nothing special to extract.
  35566. *
  35567. * @param {object} nativeEvent
  35568. * @return {?string}
  35569. */
  35570. function getDataFromCustomEvent(nativeEvent) {
  35571. var detail = nativeEvent.detail;
  35572. if (typeof detail === 'object' && 'data' in detail) {
  35573. return detail.data;
  35574. }
  35575. return null;
  35576. }
  35577. /**
  35578. * Check if a composition event was triggered by Korean IME.
  35579. * Our fallback mode does not work well with IE's Korean IME,
  35580. * so just use native composition events when Korean IME is used.
  35581. * Although CompositionEvent.locale property is deprecated,
  35582. * it is available in IE, where our fallback mode is enabled.
  35583. *
  35584. * @param {object} nativeEvent
  35585. * @return {boolean}
  35586. */
  35587. function isUsingKoreanIME(nativeEvent) {
  35588. return nativeEvent.locale === 'ko';
  35589. }
  35590. // Track the current IME composition status, if any.
  35591. var isComposing = false;
  35592. /**
  35593. * @return {?object} A SyntheticCompositionEvent.
  35594. */
  35595. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35596. var eventType = void 0;
  35597. var fallbackData = void 0;
  35598. if (canUseCompositionEvent) {
  35599. eventType = getCompositionEventType(topLevelType);
  35600. } else if (!isComposing) {
  35601. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  35602. eventType = eventTypes.compositionStart;
  35603. }
  35604. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35605. eventType = eventTypes.compositionEnd;
  35606. }
  35607. if (!eventType) {
  35608. return null;
  35609. }
  35610. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  35611. // The current composition is stored statically and must not be
  35612. // overwritten while composition continues.
  35613. if (!isComposing && eventType === eventTypes.compositionStart) {
  35614. isComposing = initialize(nativeEventTarget);
  35615. } else if (eventType === eventTypes.compositionEnd) {
  35616. if (isComposing) {
  35617. fallbackData = getData();
  35618. }
  35619. }
  35620. }
  35621. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  35622. if (fallbackData) {
  35623. // Inject data generated from fallback path into the synthetic event.
  35624. // This matches the property of native CompositionEventInterface.
  35625. event.data = fallbackData;
  35626. } else {
  35627. var customData = getDataFromCustomEvent(nativeEvent);
  35628. if (customData !== null) {
  35629. event.data = customData;
  35630. }
  35631. }
  35632. accumulateTwoPhaseDispatches(event);
  35633. return event;
  35634. }
  35635. /**
  35636. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  35637. * @param {object} nativeEvent Native browser event.
  35638. * @return {?string} The string corresponding to this `beforeInput` event.
  35639. */
  35640. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  35641. switch (topLevelType) {
  35642. case TOP_COMPOSITION_END:
  35643. return getDataFromCustomEvent(nativeEvent);
  35644. case TOP_KEY_PRESS:
  35645. /**
  35646. * If native `textInput` events are available, our goal is to make
  35647. * use of them. However, there is a special case: the spacebar key.
  35648. * In Webkit, preventing default on a spacebar `textInput` event
  35649. * cancels character insertion, but it *also* causes the browser
  35650. * to fall back to its default spacebar behavior of scrolling the
  35651. * page.
  35652. *
  35653. * Tracking at:
  35654. * https://code.google.com/p/chromium/issues/detail?id=355103
  35655. *
  35656. * To avoid this issue, use the keypress event as if no `textInput`
  35657. * event is available.
  35658. */
  35659. var which = nativeEvent.which;
  35660. if (which !== SPACEBAR_CODE) {
  35661. return null;
  35662. }
  35663. hasSpaceKeypress = true;
  35664. return SPACEBAR_CHAR;
  35665. case TOP_TEXT_INPUT:
  35666. // Record the characters to be added to the DOM.
  35667. var chars = nativeEvent.data;
  35668. // If it's a spacebar character, assume that we have already handled
  35669. // it at the keypress level and bail immediately. Android Chrome
  35670. // doesn't give us keycodes, so we need to ignore it.
  35671. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  35672. return null;
  35673. }
  35674. return chars;
  35675. default:
  35676. // For other native event types, do nothing.
  35677. return null;
  35678. }
  35679. }
  35680. /**
  35681. * For browsers that do not provide the `textInput` event, extract the
  35682. * appropriate string to use for SyntheticInputEvent.
  35683. *
  35684. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  35685. * @param {object} nativeEvent Native browser event.
  35686. * @return {?string} The fallback string for this `beforeInput` event.
  35687. */
  35688. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  35689. // If we are currently composing (IME) and using a fallback to do so,
  35690. // try to extract the composed characters from the fallback object.
  35691. // If composition event is available, we extract a string only at
  35692. // compositionevent, otherwise extract it at fallback events.
  35693. if (isComposing) {
  35694. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35695. var chars = getData();
  35696. reset();
  35697. isComposing = false;
  35698. return chars;
  35699. }
  35700. return null;
  35701. }
  35702. switch (topLevelType) {
  35703. case TOP_PASTE:
  35704. // If a paste event occurs after a keypress, throw out the input
  35705. // chars. Paste events should not lead to BeforeInput events.
  35706. return null;
  35707. case TOP_KEY_PRESS:
  35708. /**
  35709. * As of v27, Firefox may fire keypress events even when no character
  35710. * will be inserted. A few possibilities:
  35711. *
  35712. * - `which` is `0`. Arrow keys, Esc key, etc.
  35713. *
  35714. * - `which` is the pressed key code, but no char is available.
  35715. * Ex: 'AltGr + d` in Polish. There is no modified character for
  35716. * this key combination and no character is inserted into the
  35717. * document, but FF fires the keypress for char code `100` anyway.
  35718. * No `input` event will occur.
  35719. *
  35720. * - `which` is the pressed key code, but a command combination is
  35721. * being used. Ex: `Cmd+C`. No character is inserted, and no
  35722. * `input` event will occur.
  35723. */
  35724. if (!isKeypressCommand(nativeEvent)) {
  35725. // IE fires the `keypress` event when a user types an emoji via
  35726. // Touch keyboard of Windows. In such a case, the `char` property
  35727. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  35728. // is 2, the property `which` does not represent an emoji correctly.
  35729. // In such a case, we directly return the `char` property instead of
  35730. // using `which`.
  35731. if (nativeEvent.char && nativeEvent.char.length > 1) {
  35732. return nativeEvent.char;
  35733. } else if (nativeEvent.which) {
  35734. return String.fromCharCode(nativeEvent.which);
  35735. }
  35736. }
  35737. return null;
  35738. case TOP_COMPOSITION_END:
  35739. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  35740. default:
  35741. return null;
  35742. }
  35743. }
  35744. /**
  35745. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  35746. * `textInput` or fallback behavior.
  35747. *
  35748. * @return {?object} A SyntheticInputEvent.
  35749. */
  35750. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35751. var chars = void 0;
  35752. if (canUseTextInputEvent) {
  35753. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  35754. } else {
  35755. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  35756. }
  35757. // If no characters are being inserted, no BeforeInput event should
  35758. // be fired.
  35759. if (!chars) {
  35760. return null;
  35761. }
  35762. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  35763. event.data = chars;
  35764. accumulateTwoPhaseDispatches(event);
  35765. return event;
  35766. }
  35767. /**
  35768. * Create an `onBeforeInput` event to match
  35769. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  35770. *
  35771. * This event plugin is based on the native `textInput` event
  35772. * available in Chrome, Safari, Opera, and IE. This event fires after
  35773. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  35774. *
  35775. * `beforeInput` is spec'd but not implemented in any browsers, and
  35776. * the `input` event does not provide any useful information about what has
  35777. * actually been added, contrary to the spec. Thus, `textInput` is the best
  35778. * available event to identify the characters that have actually been inserted
  35779. * into the target node.
  35780. *
  35781. * This plugin is also responsible for emitting `composition` events, thus
  35782. * allowing us to share composition fallback code for both `beforeInput` and
  35783. * `composition` event types.
  35784. */
  35785. var BeforeInputEventPlugin = {
  35786. eventTypes: eventTypes,
  35787. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35788. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35789. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35790. if (composition === null) {
  35791. return beforeInput;
  35792. }
  35793. if (beforeInput === null) {
  35794. return composition;
  35795. }
  35796. return [composition, beforeInput];
  35797. }
  35798. };
  35799. // Use to restore controlled state after a change event has fired.
  35800. var restoreImpl = null;
  35801. var restoreTarget = null;
  35802. var restoreQueue = null;
  35803. function restoreStateOfTarget(target) {
  35804. // We perform this translation at the end of the event loop so that we
  35805. // always receive the correct fiber here
  35806. var internalInstance = getInstanceFromNode(target);
  35807. if (!internalInstance) {
  35808. // Unmounted
  35809. return;
  35810. }
  35811. !(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;
  35812. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  35813. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  35814. }
  35815. function setRestoreImplementation(impl) {
  35816. restoreImpl = impl;
  35817. }
  35818. function enqueueStateRestore(target) {
  35819. if (restoreTarget) {
  35820. if (restoreQueue) {
  35821. restoreQueue.push(target);
  35822. } else {
  35823. restoreQueue = [target];
  35824. }
  35825. } else {
  35826. restoreTarget = target;
  35827. }
  35828. }
  35829. function needsStateRestore() {
  35830. return restoreTarget !== null || restoreQueue !== null;
  35831. }
  35832. function restoreStateIfNeeded() {
  35833. if (!restoreTarget) {
  35834. return;
  35835. }
  35836. var target = restoreTarget;
  35837. var queuedTargets = restoreQueue;
  35838. restoreTarget = null;
  35839. restoreQueue = null;
  35840. restoreStateOfTarget(target);
  35841. if (queuedTargets) {
  35842. for (var i = 0; i < queuedTargets.length; i++) {
  35843. restoreStateOfTarget(queuedTargets[i]);
  35844. }
  35845. }
  35846. }
  35847. // Used as a way to call batchedUpdates when we don't have a reference to
  35848. // the renderer. Such as when we're dispatching events or if third party
  35849. // libraries need to call batchedUpdates. Eventually, this API will go away when
  35850. // everything is batched by default. We'll then have a similar API to opt-out of
  35851. // scheduled work and instead do synchronous work.
  35852. // Defaults
  35853. var _batchedUpdatesImpl = function (fn, bookkeeping) {
  35854. return fn(bookkeeping);
  35855. };
  35856. var _interactiveUpdatesImpl = function (fn, a, b) {
  35857. return fn(a, b);
  35858. };
  35859. var _flushInteractiveUpdatesImpl = function () {};
  35860. var isBatching = false;
  35861. function batchedUpdates(fn, bookkeeping) {
  35862. if (isBatching) {
  35863. // If we are currently inside another batch, we need to wait until it
  35864. // fully completes before restoring state.
  35865. return fn(bookkeeping);
  35866. }
  35867. isBatching = true;
  35868. try {
  35869. return _batchedUpdatesImpl(fn, bookkeeping);
  35870. } finally {
  35871. // Here we wait until all updates have propagated, which is important
  35872. // when using controlled components within layers:
  35873. // https://github.com/facebook/react/issues/1698
  35874. // Then we restore state of any controlled component.
  35875. isBatching = false;
  35876. var controlledComponentsHavePendingUpdates = needsStateRestore();
  35877. if (controlledComponentsHavePendingUpdates) {
  35878. // If a controlled event was fired, we may need to restore the state of
  35879. // the DOM node back to the controlled value. This is necessary when React
  35880. // bails out of the update without touching the DOM.
  35881. _flushInteractiveUpdatesImpl();
  35882. restoreStateIfNeeded();
  35883. }
  35884. }
  35885. }
  35886. function interactiveUpdates(fn, a, b) {
  35887. return _interactiveUpdatesImpl(fn, a, b);
  35888. }
  35889. function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
  35890. _batchedUpdatesImpl = batchedUpdatesImpl;
  35891. _interactiveUpdatesImpl = interactiveUpdatesImpl;
  35892. _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
  35893. }
  35894. /**
  35895. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  35896. */
  35897. var supportedInputTypes = {
  35898. color: true,
  35899. date: true,
  35900. datetime: true,
  35901. 'datetime-local': true,
  35902. email: true,
  35903. month: true,
  35904. number: true,
  35905. password: true,
  35906. range: true,
  35907. search: true,
  35908. tel: true,
  35909. text: true,
  35910. time: true,
  35911. url: true,
  35912. week: true
  35913. };
  35914. function isTextInputElement(elem) {
  35915. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  35916. if (nodeName === 'input') {
  35917. return !!supportedInputTypes[elem.type];
  35918. }
  35919. if (nodeName === 'textarea') {
  35920. return true;
  35921. }
  35922. return false;
  35923. }
  35924. /**
  35925. * HTML nodeType values that represent the type of the node
  35926. */
  35927. var ELEMENT_NODE = 1;
  35928. var TEXT_NODE = 3;
  35929. var COMMENT_NODE = 8;
  35930. var DOCUMENT_NODE = 9;
  35931. var DOCUMENT_FRAGMENT_NODE = 11;
  35932. /**
  35933. * Gets the target node from a native browser event by accounting for
  35934. * inconsistencies in browser DOM APIs.
  35935. *
  35936. * @param {object} nativeEvent Native browser event.
  35937. * @return {DOMEventTarget} Target node.
  35938. */
  35939. function getEventTarget(nativeEvent) {
  35940. // Fallback to nativeEvent.srcElement for IE9
  35941. // https://github.com/facebook/react/issues/12506
  35942. var target = nativeEvent.target || nativeEvent.srcElement || window;
  35943. // Normalize SVG <use> element events #4963
  35944. if (target.correspondingUseElement) {
  35945. target = target.correspondingUseElement;
  35946. }
  35947. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  35948. // @see http://www.quirksmode.org/js/events_properties.html
  35949. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  35950. }
  35951. /**
  35952. * Checks if an event is supported in the current execution environment.
  35953. *
  35954. * NOTE: This will not work correctly for non-generic events such as `change`,
  35955. * `reset`, `load`, `error`, and `select`.
  35956. *
  35957. * Borrows from Modernizr.
  35958. *
  35959. * @param {string} eventNameSuffix Event name, e.g. "click".
  35960. * @return {boolean} True if the event is supported.
  35961. * @internal
  35962. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  35963. */
  35964. function isEventSupported(eventNameSuffix) {
  35965. if (!canUseDOM) {
  35966. return false;
  35967. }
  35968. var eventName = 'on' + eventNameSuffix;
  35969. var isSupported = eventName in document;
  35970. if (!isSupported) {
  35971. var element = document.createElement('div');
  35972. element.setAttribute(eventName, 'return;');
  35973. isSupported = typeof element[eventName] === 'function';
  35974. }
  35975. return isSupported;
  35976. }
  35977. function isCheckable(elem) {
  35978. var type = elem.type;
  35979. var nodeName = elem.nodeName;
  35980. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  35981. }
  35982. function getTracker(node) {
  35983. return node._valueTracker;
  35984. }
  35985. function detachTracker(node) {
  35986. node._valueTracker = null;
  35987. }
  35988. function getValueFromNode(node) {
  35989. var value = '';
  35990. if (!node) {
  35991. return value;
  35992. }
  35993. if (isCheckable(node)) {
  35994. value = node.checked ? 'true' : 'false';
  35995. } else {
  35996. value = node.value;
  35997. }
  35998. return value;
  35999. }
  36000. function trackValueOnNode(node) {
  36001. var valueField = isCheckable(node) ? 'checked' : 'value';
  36002. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  36003. var currentValue = '' + node[valueField];
  36004. // if someone has already defined a value or Safari, then bail
  36005. // and don't track value will cause over reporting of changes,
  36006. // but it's better then a hard failure
  36007. // (needed for certain tests that spyOn input values and Safari)
  36008. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  36009. return;
  36010. }
  36011. var get = descriptor.get,
  36012. set = descriptor.set;
  36013. Object.defineProperty(node, valueField, {
  36014. configurable: true,
  36015. get: function () {
  36016. return get.call(this);
  36017. },
  36018. set: function (value) {
  36019. currentValue = '' + value;
  36020. set.call(this, value);
  36021. }
  36022. });
  36023. // We could've passed this the first time
  36024. // but it triggers a bug in IE11 and Edge 14/15.
  36025. // Calling defineProperty() again should be equivalent.
  36026. // https://github.com/facebook/react/issues/11768
  36027. Object.defineProperty(node, valueField, {
  36028. enumerable: descriptor.enumerable
  36029. });
  36030. var tracker = {
  36031. getValue: function () {
  36032. return currentValue;
  36033. },
  36034. setValue: function (value) {
  36035. currentValue = '' + value;
  36036. },
  36037. stopTracking: function () {
  36038. detachTracker(node);
  36039. delete node[valueField];
  36040. }
  36041. };
  36042. return tracker;
  36043. }
  36044. function track(node) {
  36045. if (getTracker(node)) {
  36046. return;
  36047. }
  36048. // TODO: Once it's just Fiber we can move this to node._wrapperState
  36049. node._valueTracker = trackValueOnNode(node);
  36050. }
  36051. function updateValueIfChanged(node) {
  36052. if (!node) {
  36053. return false;
  36054. }
  36055. var tracker = getTracker(node);
  36056. // if there is no tracker at this point it's unlikely
  36057. // that trying again will succeed
  36058. if (!tracker) {
  36059. return true;
  36060. }
  36061. var lastValue = tracker.getValue();
  36062. var nextValue = getValueFromNode(node);
  36063. if (nextValue !== lastValue) {
  36064. tracker.setValue(nextValue);
  36065. return true;
  36066. }
  36067. return false;
  36068. }
  36069. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  36070. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  36071. var describeComponentFrame = function (name, source, ownerName) {
  36072. var sourceInfo = '';
  36073. if (source) {
  36074. var path = source.fileName;
  36075. var fileName = path.replace(BEFORE_SLASH_RE, '');
  36076. {
  36077. // In DEV, include code for a common special case:
  36078. // prefer "folder/index.js" instead of just "index.js".
  36079. if (/^index\./.test(fileName)) {
  36080. var match = path.match(BEFORE_SLASH_RE);
  36081. if (match) {
  36082. var pathBeforeSlash = match[1];
  36083. if (pathBeforeSlash) {
  36084. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  36085. fileName = folderName + '/' + fileName;
  36086. }
  36087. }
  36088. }
  36089. }
  36090. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  36091. } else if (ownerName) {
  36092. sourceInfo = ' (created by ' + ownerName + ')';
  36093. }
  36094. return '\n in ' + (name || 'Unknown') + sourceInfo;
  36095. };
  36096. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  36097. // nor polyfill, then a plain number is used for performance.
  36098. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  36099. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  36100. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  36101. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  36102. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  36103. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  36104. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  36105. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  36106. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  36107. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  36108. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  36109. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  36110. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  36111. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  36112. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  36113. function getIteratorFn(maybeIterable) {
  36114. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  36115. return null;
  36116. }
  36117. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  36118. if (typeof maybeIterator === 'function') {
  36119. return maybeIterator;
  36120. }
  36121. return null;
  36122. }
  36123. var Pending = 0;
  36124. var Resolved = 1;
  36125. var Rejected = 2;
  36126. function refineResolvedLazyComponent(lazyComponent) {
  36127. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  36128. }
  36129. function getWrappedName(outerType, innerType, wrapperName) {
  36130. var functionName = innerType.displayName || innerType.name || '';
  36131. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  36132. }
  36133. function getComponentName(type) {
  36134. if (type == null) {
  36135. // Host root, text node or just invalid type.
  36136. return null;
  36137. }
  36138. {
  36139. if (typeof type.tag === 'number') {
  36140. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  36141. }
  36142. }
  36143. if (typeof type === 'function') {
  36144. return type.displayName || type.name || null;
  36145. }
  36146. if (typeof type === 'string') {
  36147. return type;
  36148. }
  36149. switch (type) {
  36150. case REACT_CONCURRENT_MODE_TYPE:
  36151. return 'ConcurrentMode';
  36152. case REACT_FRAGMENT_TYPE:
  36153. return 'Fragment';
  36154. case REACT_PORTAL_TYPE:
  36155. return 'Portal';
  36156. case REACT_PROFILER_TYPE:
  36157. return 'Profiler';
  36158. case REACT_STRICT_MODE_TYPE:
  36159. return 'StrictMode';
  36160. case REACT_SUSPENSE_TYPE:
  36161. return 'Suspense';
  36162. }
  36163. if (typeof type === 'object') {
  36164. switch (type.$$typeof) {
  36165. case REACT_CONTEXT_TYPE:
  36166. return 'Context.Consumer';
  36167. case REACT_PROVIDER_TYPE:
  36168. return 'Context.Provider';
  36169. case REACT_FORWARD_REF_TYPE:
  36170. return getWrappedName(type, type.render, 'ForwardRef');
  36171. case REACT_MEMO_TYPE:
  36172. return getComponentName(type.type);
  36173. case REACT_LAZY_TYPE:
  36174. {
  36175. var thenable = type;
  36176. var resolvedThenable = refineResolvedLazyComponent(thenable);
  36177. if (resolvedThenable) {
  36178. return getComponentName(resolvedThenable);
  36179. }
  36180. }
  36181. }
  36182. }
  36183. return null;
  36184. }
  36185. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36186. function describeFiber(fiber) {
  36187. switch (fiber.tag) {
  36188. case IndeterminateComponent:
  36189. case LazyComponent:
  36190. case FunctionComponent:
  36191. case ClassComponent:
  36192. case HostComponent:
  36193. case Mode:
  36194. case SuspenseComponent:
  36195. var owner = fiber._debugOwner;
  36196. var source = fiber._debugSource;
  36197. var name = getComponentName(fiber.type);
  36198. var ownerName = null;
  36199. if (owner) {
  36200. ownerName = getComponentName(owner.type);
  36201. }
  36202. return describeComponentFrame(name, source, ownerName);
  36203. default:
  36204. return '';
  36205. }
  36206. }
  36207. function getStackByFiberInDevAndProd(workInProgress) {
  36208. var info = '';
  36209. var node = workInProgress;
  36210. do {
  36211. info += describeFiber(node);
  36212. node = node.return;
  36213. } while (node);
  36214. return info;
  36215. }
  36216. var current = null;
  36217. var phase = null;
  36218. function getCurrentFiberOwnerNameInDevOrNull() {
  36219. {
  36220. if (current === null) {
  36221. return null;
  36222. }
  36223. var owner = current._debugOwner;
  36224. if (owner !== null && typeof owner !== 'undefined') {
  36225. return getComponentName(owner.type);
  36226. }
  36227. }
  36228. return null;
  36229. }
  36230. function getCurrentFiberStackInDev() {
  36231. {
  36232. if (current === null) {
  36233. return '';
  36234. }
  36235. // Safe because if current fiber exists, we are reconciling,
  36236. // and it is guaranteed to be the work-in-progress version.
  36237. return getStackByFiberInDevAndProd(current);
  36238. }
  36239. return '';
  36240. }
  36241. function resetCurrentFiber() {
  36242. {
  36243. ReactDebugCurrentFrame.getCurrentStack = null;
  36244. current = null;
  36245. phase = null;
  36246. }
  36247. }
  36248. function setCurrentFiber(fiber) {
  36249. {
  36250. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  36251. current = fiber;
  36252. phase = null;
  36253. }
  36254. }
  36255. function setCurrentPhase(lifeCyclePhase) {
  36256. {
  36257. phase = lifeCyclePhase;
  36258. }
  36259. }
  36260. /**
  36261. * Similar to invariant but only logs a warning if the condition is not met.
  36262. * This can be used to log issues in development environments in critical
  36263. * paths. Removing the logging code for production environments will keep the
  36264. * same logic and follow the same code paths.
  36265. */
  36266. var warning = warningWithoutStack$1;
  36267. {
  36268. warning = function (condition, format) {
  36269. if (condition) {
  36270. return;
  36271. }
  36272. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36273. var stack = ReactDebugCurrentFrame.getStackAddendum();
  36274. // eslint-disable-next-line react-internal/warning-and-invariant-args
  36275. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  36276. args[_key - 2] = arguments[_key];
  36277. }
  36278. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  36279. };
  36280. }
  36281. var warning$1 = warning;
  36282. // A reserved attribute.
  36283. // It is handled by React separately and shouldn't be written to the DOM.
  36284. var RESERVED = 0;
  36285. // A simple string attribute.
  36286. // Attributes that aren't in the whitelist are presumed to have this type.
  36287. var STRING = 1;
  36288. // A string attribute that accepts booleans in React. In HTML, these are called
  36289. // "enumerated" attributes with "true" and "false" as possible values.
  36290. // When true, it should be set to a "true" string.
  36291. // When false, it should be set to a "false" string.
  36292. var BOOLEANISH_STRING = 2;
  36293. // A real boolean attribute.
  36294. // When true, it should be present (set either to an empty string or its name).
  36295. // When false, it should be omitted.
  36296. var BOOLEAN = 3;
  36297. // An attribute that can be used as a flag as well as with a value.
  36298. // When true, it should be present (set either to an empty string or its name).
  36299. // When false, it should be omitted.
  36300. // For any other value, should be present with that value.
  36301. var OVERLOADED_BOOLEAN = 4;
  36302. // An attribute that must be numeric or parse as a numeric.
  36303. // When falsy, it should be removed.
  36304. var NUMERIC = 5;
  36305. // An attribute that must be positive numeric or parse as a positive numeric.
  36306. // When falsy, it should be removed.
  36307. var POSITIVE_NUMERIC = 6;
  36308. /* eslint-disable max-len */
  36309. 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';
  36310. /* eslint-enable max-len */
  36311. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  36312. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  36313. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  36314. var hasOwnProperty = Object.prototype.hasOwnProperty;
  36315. var illegalAttributeNameCache = {};
  36316. var validatedAttributeNameCache = {};
  36317. function isAttributeNameSafe(attributeName) {
  36318. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  36319. return true;
  36320. }
  36321. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  36322. return false;
  36323. }
  36324. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  36325. validatedAttributeNameCache[attributeName] = true;
  36326. return true;
  36327. }
  36328. illegalAttributeNameCache[attributeName] = true;
  36329. {
  36330. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  36331. }
  36332. return false;
  36333. }
  36334. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  36335. if (propertyInfo !== null) {
  36336. return propertyInfo.type === RESERVED;
  36337. }
  36338. if (isCustomComponentTag) {
  36339. return false;
  36340. }
  36341. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  36342. return true;
  36343. }
  36344. return false;
  36345. }
  36346. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  36347. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  36348. return false;
  36349. }
  36350. switch (typeof value) {
  36351. case 'function':
  36352. // $FlowIssue symbol is perfectly valid here
  36353. case 'symbol':
  36354. // eslint-disable-line
  36355. return true;
  36356. case 'boolean':
  36357. {
  36358. if (isCustomComponentTag) {
  36359. return false;
  36360. }
  36361. if (propertyInfo !== null) {
  36362. return !propertyInfo.acceptsBooleans;
  36363. } else {
  36364. var prefix = name.toLowerCase().slice(0, 5);
  36365. return prefix !== 'data-' && prefix !== 'aria-';
  36366. }
  36367. }
  36368. default:
  36369. return false;
  36370. }
  36371. }
  36372. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  36373. if (value === null || typeof value === 'undefined') {
  36374. return true;
  36375. }
  36376. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  36377. return true;
  36378. }
  36379. if (isCustomComponentTag) {
  36380. return false;
  36381. }
  36382. if (propertyInfo !== null) {
  36383. switch (propertyInfo.type) {
  36384. case BOOLEAN:
  36385. return !value;
  36386. case OVERLOADED_BOOLEAN:
  36387. return value === false;
  36388. case NUMERIC:
  36389. return isNaN(value);
  36390. case POSITIVE_NUMERIC:
  36391. return isNaN(value) || value < 1;
  36392. }
  36393. }
  36394. return false;
  36395. }
  36396. function getPropertyInfo(name) {
  36397. return properties.hasOwnProperty(name) ? properties[name] : null;
  36398. }
  36399. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
  36400. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  36401. this.attributeName = attributeName;
  36402. this.attributeNamespace = attributeNamespace;
  36403. this.mustUseProperty = mustUseProperty;
  36404. this.propertyName = name;
  36405. this.type = type;
  36406. }
  36407. // When adding attributes to this list, be sure to also add them to
  36408. // the `possibleStandardNames` module to ensure casing and incorrect
  36409. // name warnings.
  36410. var properties = {};
  36411. // These props are reserved by React. They shouldn't be written to the DOM.
  36412. ['children', 'dangerouslySetInnerHTML',
  36413. // TODO: This prevents the assignment of defaultValue to regular
  36414. // elements (not just inputs). Now that ReactDOMInput assigns to the
  36415. // defaultValue property -- do we need this?
  36416. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  36417. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  36418. name, // attributeName
  36419. null);
  36420. } // attributeNamespace
  36421. );
  36422. // A few React string attributes have a different name.
  36423. // This is a mapping from React prop names to the attribute names.
  36424. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  36425. var name = _ref[0],
  36426. attributeName = _ref[1];
  36427. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36428. attributeName, // attributeName
  36429. null);
  36430. } // attributeNamespace
  36431. );
  36432. // These are "enumerated" HTML attributes that accept "true" and "false".
  36433. // In React, we let users pass `true` and `false` even though technically
  36434. // these aren't boolean attributes (they are coerced to strings).
  36435. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  36436. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36437. name.toLowerCase(), // attributeName
  36438. null);
  36439. } // attributeNamespace
  36440. );
  36441. // These are "enumerated" SVG attributes that accept "true" and "false".
  36442. // In React, we let users pass `true` and `false` even though technically
  36443. // these aren't boolean attributes (they are coerced to strings).
  36444. // Since these are SVG attributes, their attribute names are case-sensitive.
  36445. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  36446. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36447. name, // attributeName
  36448. null);
  36449. } // attributeNamespace
  36450. );
  36451. // These are HTML boolean attributes.
  36452. ['allowFullScreen', 'async',
  36453. // Note: there is a special case that prevents it from being written to the DOM
  36454. // on the client side because the browsers are inconsistent. Instead we call focus().
  36455. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  36456. // Microdata
  36457. 'itemScope'].forEach(function (name) {
  36458. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  36459. name.toLowerCase(), // attributeName
  36460. null);
  36461. } // attributeNamespace
  36462. );
  36463. // These are the few React props that we set as DOM properties
  36464. // rather than attributes. These are all booleans.
  36465. ['checked',
  36466. // Note: `option.selected` is not updated if `select.multiple` is
  36467. // disabled with `removeAttribute`. We have special logic for handling this.
  36468. 'multiple', 'muted', 'selected'].forEach(function (name) {
  36469. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  36470. name, // attributeName
  36471. null);
  36472. } // attributeNamespace
  36473. );
  36474. // These are HTML attributes that are "overloaded booleans": they behave like
  36475. // booleans, but can also accept a string value.
  36476. ['capture', 'download'].forEach(function (name) {
  36477. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  36478. name, // attributeName
  36479. null);
  36480. } // attributeNamespace
  36481. );
  36482. // These are HTML attributes that must be positive numbers.
  36483. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  36484. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  36485. name, // attributeName
  36486. null);
  36487. } // attributeNamespace
  36488. );
  36489. // These are HTML attributes that must be numbers.
  36490. ['rowSpan', 'start'].forEach(function (name) {
  36491. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  36492. name.toLowerCase(), // attributeName
  36493. null);
  36494. } // attributeNamespace
  36495. );
  36496. var CAMELIZE = /[\-\:]([a-z])/g;
  36497. var capitalize = function (token) {
  36498. return token[1].toUpperCase();
  36499. };
  36500. // This is a list of all SVG attributes that need special casing, namespacing,
  36501. // or boolean value assignment. Regular attributes that just accept strings
  36502. // and have the same names are omitted, just like in the HTML whitelist.
  36503. // Some of these attributes can be hard to find. This list was created by
  36504. // scrapping the MDN documentation.
  36505. ['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) {
  36506. var name = attributeName.replace(CAMELIZE, capitalize);
  36507. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36508. attributeName, null);
  36509. } // attributeNamespace
  36510. );
  36511. // String SVG attributes with the xlink namespace.
  36512. ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  36513. var name = attributeName.replace(CAMELIZE, capitalize);
  36514. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36515. attributeName, 'http://www.w3.org/1999/xlink');
  36516. });
  36517. // String SVG attributes with the xml namespace.
  36518. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  36519. var name = attributeName.replace(CAMELIZE, capitalize);
  36520. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36521. attributeName, 'http://www.w3.org/XML/1998/namespace');
  36522. });
  36523. // Special case: this attribute exists both in HTML and SVG.
  36524. // Its "tabindex" attribute name is case-sensitive in SVG so we can't just use
  36525. // its React `tabIndex` name, like we do for attributes that exist only in HTML.
  36526. properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty
  36527. 'tabindex', // attributeName
  36528. null);
  36529. /**
  36530. * Get the value for a property on a node. Only used in DEV for SSR validation.
  36531. * The "expected" argument is used as a hint of what the expected value is.
  36532. * Some properties have multiple equivalent values.
  36533. */
  36534. function getValueForProperty(node, name, expected, propertyInfo) {
  36535. {
  36536. if (propertyInfo.mustUseProperty) {
  36537. var propertyName = propertyInfo.propertyName;
  36538. return node[propertyName];
  36539. } else {
  36540. var attributeName = propertyInfo.attributeName;
  36541. var stringValue = null;
  36542. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  36543. if (node.hasAttribute(attributeName)) {
  36544. var value = node.getAttribute(attributeName);
  36545. if (value === '') {
  36546. return true;
  36547. }
  36548. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36549. return value;
  36550. }
  36551. if (value === '' + expected) {
  36552. return expected;
  36553. }
  36554. return value;
  36555. }
  36556. } else if (node.hasAttribute(attributeName)) {
  36557. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36558. // We had an attribute but shouldn't have had one, so read it
  36559. // for the error message.
  36560. return node.getAttribute(attributeName);
  36561. }
  36562. if (propertyInfo.type === BOOLEAN) {
  36563. // If this was a boolean, it doesn't matter what the value is
  36564. // the fact that we have it is the same as the expected.
  36565. return expected;
  36566. }
  36567. // Even if this property uses a namespace we use getAttribute
  36568. // because we assume its namespaced name is the same as our config.
  36569. // To use getAttributeNS we need the local name which we don't have
  36570. // in our config atm.
  36571. stringValue = node.getAttribute(attributeName);
  36572. }
  36573. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36574. return stringValue === null ? expected : stringValue;
  36575. } else if (stringValue === '' + expected) {
  36576. return expected;
  36577. } else {
  36578. return stringValue;
  36579. }
  36580. }
  36581. }
  36582. }
  36583. /**
  36584. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  36585. * The third argument is used as a hint of what the expected value is. Some
  36586. * attributes have multiple equivalent values.
  36587. */
  36588. function getValueForAttribute(node, name, expected) {
  36589. {
  36590. if (!isAttributeNameSafe(name)) {
  36591. return;
  36592. }
  36593. if (!node.hasAttribute(name)) {
  36594. return expected === undefined ? undefined : null;
  36595. }
  36596. var value = node.getAttribute(name);
  36597. if (value === '' + expected) {
  36598. return expected;
  36599. }
  36600. return value;
  36601. }
  36602. }
  36603. /**
  36604. * Sets the value for a property on a node.
  36605. *
  36606. * @param {DOMElement} node
  36607. * @param {string} name
  36608. * @param {*} value
  36609. */
  36610. function setValueForProperty(node, name, value, isCustomComponentTag) {
  36611. var propertyInfo = getPropertyInfo(name);
  36612. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  36613. return;
  36614. }
  36615. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  36616. value = null;
  36617. }
  36618. // If the prop isn't in the special list, treat it as a simple attribute.
  36619. if (isCustomComponentTag || propertyInfo === null) {
  36620. if (isAttributeNameSafe(name)) {
  36621. var _attributeName = name;
  36622. if (value === null) {
  36623. node.removeAttribute(_attributeName);
  36624. } else {
  36625. node.setAttribute(_attributeName, '' + value);
  36626. }
  36627. }
  36628. return;
  36629. }
  36630. var mustUseProperty = propertyInfo.mustUseProperty;
  36631. if (mustUseProperty) {
  36632. var propertyName = propertyInfo.propertyName;
  36633. if (value === null) {
  36634. var type = propertyInfo.type;
  36635. node[propertyName] = type === BOOLEAN ? false : '';
  36636. } else {
  36637. // Contrary to `setAttribute`, object properties are properly
  36638. // `toString`ed by IE8/9.
  36639. node[propertyName] = value;
  36640. }
  36641. return;
  36642. }
  36643. // The rest are treated as attributes with special cases.
  36644. var attributeName = propertyInfo.attributeName,
  36645. attributeNamespace = propertyInfo.attributeNamespace;
  36646. if (value === null) {
  36647. node.removeAttribute(attributeName);
  36648. } else {
  36649. var _type = propertyInfo.type;
  36650. var attributeValue = void 0;
  36651. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  36652. attributeValue = '';
  36653. } else {
  36654. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  36655. // ('' + value) makes it output the correct toString()-value.
  36656. attributeValue = '' + value;
  36657. }
  36658. if (attributeNamespace) {
  36659. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  36660. } else {
  36661. node.setAttribute(attributeName, attributeValue);
  36662. }
  36663. }
  36664. }
  36665. // Flow does not allow string concatenation of most non-string types. To work
  36666. // around this limitation, we use an opaque type that can only be obtained by
  36667. // passing the value through getToStringValue first.
  36668. function toString(value) {
  36669. return '' + value;
  36670. }
  36671. function getToStringValue(value) {
  36672. switch (typeof value) {
  36673. case 'boolean':
  36674. case 'number':
  36675. case 'object':
  36676. case 'string':
  36677. case 'undefined':
  36678. return value;
  36679. default:
  36680. // function, symbol are assigned as empty strings
  36681. return '';
  36682. }
  36683. }
  36684. var ReactDebugCurrentFrame$1 = null;
  36685. var ReactControlledValuePropTypes = {
  36686. checkPropTypes: null
  36687. };
  36688. {
  36689. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  36690. var hasReadOnlyValue = {
  36691. button: true,
  36692. checkbox: true,
  36693. image: true,
  36694. hidden: true,
  36695. radio: true,
  36696. reset: true,
  36697. submit: true
  36698. };
  36699. var propTypes = {
  36700. value: function (props, propName, componentName) {
  36701. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  36702. return null;
  36703. }
  36704. 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`.');
  36705. },
  36706. checked: function (props, propName, componentName) {
  36707. if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  36708. return null;
  36709. }
  36710. 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`.');
  36711. }
  36712. };
  36713. /**
  36714. * Provide a linked `value` attribute for controlled forms. You should not use
  36715. * this outside of the ReactDOM controlled form components.
  36716. */
  36717. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  36718. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);
  36719. };
  36720. }
  36721. var enableUserTimingAPI = true;
  36722. var enableHooks = false;
  36723. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  36724. var debugRenderPhaseSideEffects = false;
  36725. // In some cases, StrictMode should also double-render lifecycles.
  36726. // This can be confusing for tests though,
  36727. // And it can be bad for performance in production.
  36728. // This feature flag can be used to control the behavior:
  36729. var debugRenderPhaseSideEffectsForStrictMode = true;
  36730. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  36731. // replay the begin phase of a failed component inside invokeGuardedCallback.
  36732. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  36733. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  36734. var warnAboutDeprecatedLifecycles = false;
  36735. // Gather advanced timing metrics for Profiler subtrees.
  36736. var enableProfilerTimer = true;
  36737. // Trace which interactions trigger each commit.
  36738. var enableSchedulerTracing = true;
  36739. // Only used in www builds.
  36740. // Only used in www builds.
  36741. // React Fire: prevent the value and checked attributes from syncing
  36742. // with their related DOM properties
  36743. var disableInputAttributeSyncing = false;
  36744. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  36745. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  36746. var enableStableConcurrentModeAPIs = false;
  36747. // TODO: direct imports like some-package/src/* are bad. Fix me.
  36748. var didWarnValueDefaultValue = false;
  36749. var didWarnCheckedDefaultChecked = false;
  36750. var didWarnControlledToUncontrolled = false;
  36751. var didWarnUncontrolledToControlled = false;
  36752. function isControlled(props) {
  36753. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  36754. return usesChecked ? props.checked != null : props.value != null;
  36755. }
  36756. /**
  36757. * Implements an <input> host component that allows setting these optional
  36758. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  36759. *
  36760. * If `checked` or `value` are not supplied (or null/undefined), user actions
  36761. * that affect the checked state or value will trigger updates to the element.
  36762. *
  36763. * If they are supplied (and not null/undefined), the rendered element will not
  36764. * trigger updates to the element. Instead, the props must change in order for
  36765. * the rendered element to be updated.
  36766. *
  36767. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  36768. * with an empty value (or `defaultValue`).
  36769. *
  36770. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  36771. */
  36772. function getHostProps(element, props) {
  36773. var node = element;
  36774. var checked = props.checked;
  36775. var hostProps = _assign({}, props, {
  36776. defaultChecked: undefined,
  36777. defaultValue: undefined,
  36778. value: undefined,
  36779. checked: checked != null ? checked : node._wrapperState.initialChecked
  36780. });
  36781. return hostProps;
  36782. }
  36783. function initWrapperState(element, props) {
  36784. {
  36785. ReactControlledValuePropTypes.checkPropTypes('input', props);
  36786. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  36787. 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);
  36788. didWarnCheckedDefaultChecked = true;
  36789. }
  36790. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  36791. 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);
  36792. didWarnValueDefaultValue = true;
  36793. }
  36794. }
  36795. var node = element;
  36796. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  36797. node._wrapperState = {
  36798. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  36799. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  36800. controlled: isControlled(props)
  36801. };
  36802. }
  36803. function updateChecked(element, props) {
  36804. var node = element;
  36805. var checked = props.checked;
  36806. if (checked != null) {
  36807. setValueForProperty(node, 'checked', checked, false);
  36808. }
  36809. }
  36810. function updateWrapper(element, props) {
  36811. var node = element;
  36812. {
  36813. var _controlled = isControlled(props);
  36814. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  36815. 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);
  36816. didWarnUncontrolledToControlled = true;
  36817. }
  36818. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  36819. 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);
  36820. didWarnControlledToUncontrolled = true;
  36821. }
  36822. }
  36823. updateChecked(element, props);
  36824. var value = getToStringValue(props.value);
  36825. var type = props.type;
  36826. if (value != null) {
  36827. if (type === 'number') {
  36828. if (value === 0 && node.value === '' ||
  36829. // We explicitly want to coerce to number here if possible.
  36830. // eslint-disable-next-line
  36831. node.value != value) {
  36832. node.value = toString(value);
  36833. }
  36834. } else if (node.value !== toString(value)) {
  36835. node.value = toString(value);
  36836. }
  36837. } else if (type === 'submit' || type === 'reset') {
  36838. // Submit/reset inputs need the attribute removed completely to avoid
  36839. // blank-text buttons.
  36840. node.removeAttribute('value');
  36841. return;
  36842. }
  36843. if (disableInputAttributeSyncing) {
  36844. // When not syncing the value attribute, React only assigns a new value
  36845. // whenever the defaultValue React prop has changed. When not present,
  36846. // React does nothing
  36847. if (props.hasOwnProperty('defaultValue')) {
  36848. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  36849. }
  36850. } else {
  36851. // When syncing the value attribute, the value comes from a cascade of
  36852. // properties:
  36853. // 1. The value React property
  36854. // 2. The defaultValue React property
  36855. // 3. Otherwise there should be no change
  36856. if (props.hasOwnProperty('value')) {
  36857. setDefaultValue(node, props.type, value);
  36858. } else if (props.hasOwnProperty('defaultValue')) {
  36859. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  36860. }
  36861. }
  36862. if (disableInputAttributeSyncing) {
  36863. // When not syncing the checked attribute, the attribute is directly
  36864. // controllable from the defaultValue React property. It needs to be
  36865. // updated as new props come in.
  36866. if (props.defaultChecked == null) {
  36867. node.removeAttribute('checked');
  36868. } else {
  36869. node.defaultChecked = !!props.defaultChecked;
  36870. }
  36871. } else {
  36872. // When syncing the checked attribute, it only changes when it needs
  36873. // to be removed, such as transitioning from a checkbox into a text input
  36874. if (props.checked == null && props.defaultChecked != null) {
  36875. node.defaultChecked = !!props.defaultChecked;
  36876. }
  36877. }
  36878. }
  36879. function postMountWrapper(element, props, isHydrating) {
  36880. var node = element;
  36881. // Do not assign value if it is already set. This prevents user text input
  36882. // from being lost during SSR hydration.
  36883. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  36884. var type = props.type;
  36885. var isButton = type === 'submit' || type === 'reset';
  36886. // Avoid setting value attribute on submit/reset inputs as it overrides the
  36887. // default value provided by the browser. See: #12872
  36888. if (isButton && (props.value === undefined || props.value === null)) {
  36889. return;
  36890. }
  36891. var _initialValue = toString(node._wrapperState.initialValue);
  36892. // Do not assign value if it is already set. This prevents user text input
  36893. // from being lost during SSR hydration.
  36894. if (!isHydrating) {
  36895. if (disableInputAttributeSyncing) {
  36896. var value = getToStringValue(props.value);
  36897. // When not syncing the value attribute, the value property points
  36898. // directly to the React prop. Only assign it if it exists.
  36899. if (value != null) {
  36900. // Always assign on buttons so that it is possible to assign an
  36901. // empty string to clear button text.
  36902. //
  36903. // Otherwise, do not re-assign the value property if is empty. This
  36904. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  36905. // prematurely marking required inputs as invalid. Equality is compared
  36906. // to the current value in case the browser provided value is not an
  36907. // empty string.
  36908. if (isButton || value !== node.value) {
  36909. node.value = toString(value);
  36910. }
  36911. }
  36912. } else {
  36913. // When syncing the value attribute, the value property should use
  36914. // the wrapperState._initialValue property. This uses:
  36915. //
  36916. // 1. The value React property when present
  36917. // 2. The defaultValue React property when present
  36918. // 3. An empty string
  36919. if (_initialValue !== node.value) {
  36920. node.value = _initialValue;
  36921. }
  36922. }
  36923. }
  36924. if (disableInputAttributeSyncing) {
  36925. // When not syncing the value attribute, assign the value attribute
  36926. // directly from the defaultValue React property (when present)
  36927. var defaultValue = getToStringValue(props.defaultValue);
  36928. if (defaultValue != null) {
  36929. node.defaultValue = toString(defaultValue);
  36930. }
  36931. } else {
  36932. // Otherwise, the value attribute is synchronized to the property,
  36933. // so we assign defaultValue to the same thing as the value property
  36934. // assignment step above.
  36935. node.defaultValue = _initialValue;
  36936. }
  36937. }
  36938. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  36939. // this is needed to work around a chrome bug where setting defaultChecked
  36940. // will sometimes influence the value of checked (even after detachment).
  36941. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  36942. // We need to temporarily unset name to avoid disrupting radio button groups.
  36943. var name = node.name;
  36944. if (name !== '') {
  36945. node.name = '';
  36946. }
  36947. if (disableInputAttributeSyncing) {
  36948. // When not syncing the checked attribute, the checked property
  36949. // never gets assigned. It must be manually set. We don't want
  36950. // to do this when hydrating so that existing user input isn't
  36951. // modified
  36952. if (!isHydrating) {
  36953. updateChecked(element, props);
  36954. }
  36955. // Only assign the checked attribute if it is defined. This saves
  36956. // a DOM write when controlling the checked attribute isn't needed
  36957. // (text inputs, submit/reset)
  36958. if (props.hasOwnProperty('defaultChecked')) {
  36959. node.defaultChecked = !node.defaultChecked;
  36960. node.defaultChecked = !!props.defaultChecked;
  36961. }
  36962. } else {
  36963. // When syncing the checked attribute, both the checked property and
  36964. // attribute are assigned at the same time using defaultChecked. This uses:
  36965. //
  36966. // 1. The checked React property when present
  36967. // 2. The defaultChecked React property when present
  36968. // 3. Otherwise, false
  36969. node.defaultChecked = !node.defaultChecked;
  36970. node.defaultChecked = !!node._wrapperState.initialChecked;
  36971. }
  36972. if (name !== '') {
  36973. node.name = name;
  36974. }
  36975. }
  36976. function restoreControlledState(element, props) {
  36977. var node = element;
  36978. updateWrapper(node, props);
  36979. updateNamedCousins(node, props);
  36980. }
  36981. function updateNamedCousins(rootNode, props) {
  36982. var name = props.name;
  36983. if (props.type === 'radio' && name != null) {
  36984. var queryRoot = rootNode;
  36985. while (queryRoot.parentNode) {
  36986. queryRoot = queryRoot.parentNode;
  36987. }
  36988. // If `rootNode.form` was non-null, then we could try `form.elements`,
  36989. // but that sometimes behaves strangely in IE8. We could also try using
  36990. // `form.getElementsByName`, but that will only return direct children
  36991. // and won't include inputs that use the HTML5 `form=` attribute. Since
  36992. // the input might not even be in a form. It might not even be in the
  36993. // document. Let's just use the local `querySelectorAll` to ensure we don't
  36994. // miss anything.
  36995. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  36996. for (var i = 0; i < group.length; i++) {
  36997. var otherNode = group[i];
  36998. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  36999. continue;
  37000. }
  37001. // This will throw if radio buttons rendered by different copies of React
  37002. // and the same name are rendered into the same form (same as #1939).
  37003. // That's probably okay; we don't support it just as we don't support
  37004. // mixing React radio buttons with non-React ones.
  37005. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  37006. !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;
  37007. // We need update the tracked value on the named cousin since the value
  37008. // was changed but the input saw no event or value set
  37009. updateValueIfChanged(otherNode);
  37010. // If this is a controlled radio button group, forcing the input that
  37011. // was previously checked to update will cause it to be come re-checked
  37012. // as appropriate.
  37013. updateWrapper(otherNode, otherProps);
  37014. }
  37015. }
  37016. }
  37017. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  37018. // For number inputs, the display value loses trailing decimal points. For email inputs,
  37019. // Chrome raises "The specified value <x> is not a valid email address".
  37020. //
  37021. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  37022. // when the user is inputting text
  37023. //
  37024. // https://github.com/facebook/react/issues/7253
  37025. function setDefaultValue(node, type, value) {
  37026. if (
  37027. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  37028. type !== 'number' || node.ownerDocument.activeElement !== node) {
  37029. if (value == null) {
  37030. node.defaultValue = toString(node._wrapperState.initialValue);
  37031. } else if (node.defaultValue !== toString(value)) {
  37032. node.defaultValue = toString(value);
  37033. }
  37034. }
  37035. }
  37036. var eventTypes$1 = {
  37037. change: {
  37038. phasedRegistrationNames: {
  37039. bubbled: 'onChange',
  37040. captured: 'onChangeCapture'
  37041. },
  37042. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  37043. }
  37044. };
  37045. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  37046. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  37047. event.type = 'change';
  37048. // Flag this event loop as needing state restore.
  37049. enqueueStateRestore(target);
  37050. accumulateTwoPhaseDispatches(event);
  37051. return event;
  37052. }
  37053. /**
  37054. * For IE shims
  37055. */
  37056. var activeElement = null;
  37057. var activeElementInst = null;
  37058. /**
  37059. * SECTION: handle `change` event
  37060. */
  37061. function shouldUseChangeEvent(elem) {
  37062. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  37063. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  37064. }
  37065. function manualDispatchChangeEvent(nativeEvent) {
  37066. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  37067. // If change and propertychange bubbled, we'd just bind to it like all the
  37068. // other events and have it go through ReactBrowserEventEmitter. Since it
  37069. // doesn't, we manually listen for the events and so we have to enqueue and
  37070. // process the abstract event manually.
  37071. //
  37072. // Batching is necessary here in order to ensure that all event handlers run
  37073. // before the next rerender (including event handlers attached to ancestor
  37074. // elements instead of directly on the input). Without this, controlled
  37075. // components don't work properly in conjunction with event bubbling because
  37076. // the component is rerendered and the value reverted before all the event
  37077. // handlers can run. See https://github.com/facebook/react/issues/708.
  37078. batchedUpdates(runEventInBatch, event);
  37079. }
  37080. function runEventInBatch(event) {
  37081. runEventsInBatch(event);
  37082. }
  37083. function getInstIfValueChanged(targetInst) {
  37084. var targetNode = getNodeFromInstance$1(targetInst);
  37085. if (updateValueIfChanged(targetNode)) {
  37086. return targetInst;
  37087. }
  37088. }
  37089. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  37090. if (topLevelType === TOP_CHANGE) {
  37091. return targetInst;
  37092. }
  37093. }
  37094. /**
  37095. * SECTION: handle `input` event
  37096. */
  37097. var isInputEventSupported = false;
  37098. if (canUseDOM) {
  37099. // IE9 claims to support the input event but fails to trigger it when
  37100. // deleting text, so we ignore its input events.
  37101. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  37102. }
  37103. /**
  37104. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  37105. * and override the value property so that we can distinguish user events from
  37106. * value changes in JS.
  37107. */
  37108. function startWatchingForValueChange(target, targetInst) {
  37109. activeElement = target;
  37110. activeElementInst = targetInst;
  37111. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  37112. }
  37113. /**
  37114. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  37115. * if any exists.
  37116. */
  37117. function stopWatchingForValueChange() {
  37118. if (!activeElement) {
  37119. return;
  37120. }
  37121. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  37122. activeElement = null;
  37123. activeElementInst = null;
  37124. }
  37125. /**
  37126. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  37127. * the value of the active element has changed.
  37128. */
  37129. function handlePropertyChange(nativeEvent) {
  37130. if (nativeEvent.propertyName !== 'value') {
  37131. return;
  37132. }
  37133. if (getInstIfValueChanged(activeElementInst)) {
  37134. manualDispatchChangeEvent(nativeEvent);
  37135. }
  37136. }
  37137. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  37138. if (topLevelType === TOP_FOCUS) {
  37139. // In IE9, propertychange fires for most input events but is buggy and
  37140. // doesn't fire when text is deleted, but conveniently, selectionchange
  37141. // appears to fire in all of the remaining cases so we catch those and
  37142. // forward the event if the value has changed
  37143. // In either case, we don't want to call the event handler if the value
  37144. // is changed from JS so we redefine a setter for `.value` that updates
  37145. // our activeElementValue variable, allowing us to ignore those changes
  37146. //
  37147. // stopWatching() should be a noop here but we call it just in case we
  37148. // missed a blur event somehow.
  37149. stopWatchingForValueChange();
  37150. startWatchingForValueChange(target, targetInst);
  37151. } else if (topLevelType === TOP_BLUR) {
  37152. stopWatchingForValueChange();
  37153. }
  37154. }
  37155. // For IE8 and IE9.
  37156. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  37157. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  37158. // On the selectionchange event, the target is just document which isn't
  37159. // helpful for us so just check activeElement instead.
  37160. //
  37161. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  37162. // propertychange on the first input event after setting `value` from a
  37163. // script and fires only keydown, keypress, keyup. Catching keyup usually
  37164. // gets it and catching keydown lets us fire an event for the first
  37165. // keystroke if user does a key repeat (it'll be a little delayed: right
  37166. // before the second keystroke). Other input methods (e.g., paste) seem to
  37167. // fire selectionchange normally.
  37168. return getInstIfValueChanged(activeElementInst);
  37169. }
  37170. }
  37171. /**
  37172. * SECTION: handle `click` event
  37173. */
  37174. function shouldUseClickEvent(elem) {
  37175. // Use the `click` event to detect changes to checkbox and radio inputs.
  37176. // This approach works across all browsers, whereas `change` does not fire
  37177. // until `blur` in IE8.
  37178. var nodeName = elem.nodeName;
  37179. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  37180. }
  37181. function getTargetInstForClickEvent(topLevelType, targetInst) {
  37182. if (topLevelType === TOP_CLICK) {
  37183. return getInstIfValueChanged(targetInst);
  37184. }
  37185. }
  37186. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  37187. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  37188. return getInstIfValueChanged(targetInst);
  37189. }
  37190. }
  37191. function handleControlledInputBlur(node) {
  37192. var state = node._wrapperState;
  37193. if (!state || !state.controlled || node.type !== 'number') {
  37194. return;
  37195. }
  37196. if (!disableInputAttributeSyncing) {
  37197. // If controlled, assign the value attribute to the current value on blur
  37198. setDefaultValue(node, 'number', node.value);
  37199. }
  37200. }
  37201. /**
  37202. * This plugin creates an `onChange` event that normalizes change events
  37203. * across form elements. This event fires at a time when it's possible to
  37204. * change the element's value without seeing a flicker.
  37205. *
  37206. * Supported elements are:
  37207. * - input (see `isTextInputElement`)
  37208. * - textarea
  37209. * - select
  37210. */
  37211. var ChangeEventPlugin = {
  37212. eventTypes: eventTypes$1,
  37213. _isInputEventSupported: isInputEventSupported,
  37214. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37215. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  37216. var getTargetInstFunc = void 0,
  37217. handleEventFunc = void 0;
  37218. if (shouldUseChangeEvent(targetNode)) {
  37219. getTargetInstFunc = getTargetInstForChangeEvent;
  37220. } else if (isTextInputElement(targetNode)) {
  37221. if (isInputEventSupported) {
  37222. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  37223. } else {
  37224. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  37225. handleEventFunc = handleEventsForInputEventPolyfill;
  37226. }
  37227. } else if (shouldUseClickEvent(targetNode)) {
  37228. getTargetInstFunc = getTargetInstForClickEvent;
  37229. }
  37230. if (getTargetInstFunc) {
  37231. var inst = getTargetInstFunc(topLevelType, targetInst);
  37232. if (inst) {
  37233. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  37234. return event;
  37235. }
  37236. }
  37237. if (handleEventFunc) {
  37238. handleEventFunc(topLevelType, targetNode, targetInst);
  37239. }
  37240. // When blurring, set the value attribute for number inputs
  37241. if (topLevelType === TOP_BLUR) {
  37242. handleControlledInputBlur(targetNode);
  37243. }
  37244. }
  37245. };
  37246. /**
  37247. * Module that is injectable into `EventPluginHub`, that specifies a
  37248. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  37249. * plugins, without having to package every one of them. This is better than
  37250. * having plugins be ordered in the same order that they are injected because
  37251. * that ordering would be influenced by the packaging order.
  37252. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  37253. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  37254. */
  37255. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  37256. var SyntheticUIEvent = SyntheticEvent.extend({
  37257. view: null,
  37258. detail: null
  37259. });
  37260. var modifierKeyToProp = {
  37261. Alt: 'altKey',
  37262. Control: 'ctrlKey',
  37263. Meta: 'metaKey',
  37264. Shift: 'shiftKey'
  37265. };
  37266. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  37267. // getModifierState. If getModifierState is not supported, we map it to a set of
  37268. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  37269. /**
  37270. * Translation from modifier key to the associated property in the event.
  37271. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  37272. */
  37273. function modifierStateGetter(keyArg) {
  37274. var syntheticEvent = this;
  37275. var nativeEvent = syntheticEvent.nativeEvent;
  37276. if (nativeEvent.getModifierState) {
  37277. return nativeEvent.getModifierState(keyArg);
  37278. }
  37279. var keyProp = modifierKeyToProp[keyArg];
  37280. return keyProp ? !!nativeEvent[keyProp] : false;
  37281. }
  37282. function getEventModifierState(nativeEvent) {
  37283. return modifierStateGetter;
  37284. }
  37285. var previousScreenX = 0;
  37286. var previousScreenY = 0;
  37287. // Use flags to signal movementX/Y has already been set
  37288. var isMovementXSet = false;
  37289. var isMovementYSet = false;
  37290. /**
  37291. * @interface MouseEvent
  37292. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37293. */
  37294. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  37295. screenX: null,
  37296. screenY: null,
  37297. clientX: null,
  37298. clientY: null,
  37299. pageX: null,
  37300. pageY: null,
  37301. ctrlKey: null,
  37302. shiftKey: null,
  37303. altKey: null,
  37304. metaKey: null,
  37305. getModifierState: getEventModifierState,
  37306. button: null,
  37307. buttons: null,
  37308. relatedTarget: function (event) {
  37309. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  37310. },
  37311. movementX: function (event) {
  37312. if ('movementX' in event) {
  37313. return event.movementX;
  37314. }
  37315. var screenX = previousScreenX;
  37316. previousScreenX = event.screenX;
  37317. if (!isMovementXSet) {
  37318. isMovementXSet = true;
  37319. return 0;
  37320. }
  37321. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  37322. },
  37323. movementY: function (event) {
  37324. if ('movementY' in event) {
  37325. return event.movementY;
  37326. }
  37327. var screenY = previousScreenY;
  37328. previousScreenY = event.screenY;
  37329. if (!isMovementYSet) {
  37330. isMovementYSet = true;
  37331. return 0;
  37332. }
  37333. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  37334. }
  37335. });
  37336. /**
  37337. * @interface PointerEvent
  37338. * @see http://www.w3.org/TR/pointerevents/
  37339. */
  37340. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  37341. pointerId: null,
  37342. width: null,
  37343. height: null,
  37344. pressure: null,
  37345. tangentialPressure: null,
  37346. tiltX: null,
  37347. tiltY: null,
  37348. twist: null,
  37349. pointerType: null,
  37350. isPrimary: null
  37351. });
  37352. var eventTypes$2 = {
  37353. mouseEnter: {
  37354. registrationName: 'onMouseEnter',
  37355. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37356. },
  37357. mouseLeave: {
  37358. registrationName: 'onMouseLeave',
  37359. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37360. },
  37361. pointerEnter: {
  37362. registrationName: 'onPointerEnter',
  37363. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37364. },
  37365. pointerLeave: {
  37366. registrationName: 'onPointerLeave',
  37367. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37368. }
  37369. };
  37370. var EnterLeaveEventPlugin = {
  37371. eventTypes: eventTypes$2,
  37372. /**
  37373. * For almost every interaction we care about, there will be both a top-level
  37374. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  37375. * we do not extract duplicate events. However, moving the mouse into the
  37376. * browser from outside will not fire a `mouseout` event. In this case, we use
  37377. * the `mouseover` top-level event.
  37378. */
  37379. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37380. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  37381. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  37382. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  37383. return null;
  37384. }
  37385. if (!isOutEvent && !isOverEvent) {
  37386. // Must not be a mouse or pointer in or out - ignoring.
  37387. return null;
  37388. }
  37389. var win = void 0;
  37390. if (nativeEventTarget.window === nativeEventTarget) {
  37391. // `nativeEventTarget` is probably a window object.
  37392. win = nativeEventTarget;
  37393. } else {
  37394. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  37395. var doc = nativeEventTarget.ownerDocument;
  37396. if (doc) {
  37397. win = doc.defaultView || doc.parentWindow;
  37398. } else {
  37399. win = window;
  37400. }
  37401. }
  37402. var from = void 0;
  37403. var to = void 0;
  37404. if (isOutEvent) {
  37405. from = targetInst;
  37406. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  37407. to = related ? getClosestInstanceFromNode(related) : null;
  37408. } else {
  37409. // Moving to a node from outside the window.
  37410. from = null;
  37411. to = targetInst;
  37412. }
  37413. if (from === to) {
  37414. // Nothing pertains to our managed components.
  37415. return null;
  37416. }
  37417. var eventInterface = void 0,
  37418. leaveEventType = void 0,
  37419. enterEventType = void 0,
  37420. eventTypePrefix = void 0;
  37421. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  37422. eventInterface = SyntheticMouseEvent;
  37423. leaveEventType = eventTypes$2.mouseLeave;
  37424. enterEventType = eventTypes$2.mouseEnter;
  37425. eventTypePrefix = 'mouse';
  37426. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  37427. eventInterface = SyntheticPointerEvent;
  37428. leaveEventType = eventTypes$2.pointerLeave;
  37429. enterEventType = eventTypes$2.pointerEnter;
  37430. eventTypePrefix = 'pointer';
  37431. }
  37432. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  37433. var toNode = to == null ? win : getNodeFromInstance$1(to);
  37434. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  37435. leave.type = eventTypePrefix + 'leave';
  37436. leave.target = fromNode;
  37437. leave.relatedTarget = toNode;
  37438. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  37439. enter.type = eventTypePrefix + 'enter';
  37440. enter.target = toNode;
  37441. enter.relatedTarget = fromNode;
  37442. accumulateEnterLeaveDispatches(leave, enter, from, to);
  37443. return [leave, enter];
  37444. }
  37445. };
  37446. /*eslint-disable no-self-compare */
  37447. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  37448. /**
  37449. * inlined Object.is polyfill to avoid requiring consumers ship their own
  37450. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  37451. */
  37452. function is(x, y) {
  37453. // SameValue algorithm
  37454. if (x === y) {
  37455. // Steps 1-5, 7-10
  37456. // Steps 6.b-6.e: +0 != -0
  37457. // Added the nonzero y check to make Flow happy, but it is redundant
  37458. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  37459. } else {
  37460. // Step 6.a: NaN == NaN
  37461. return x !== x && y !== y;
  37462. }
  37463. }
  37464. /**
  37465. * Performs equality by iterating through keys on an object and returning false
  37466. * when any key has values which are not strictly equal between the arguments.
  37467. * Returns true when the values of all keys are strictly equal.
  37468. */
  37469. function shallowEqual(objA, objB) {
  37470. if (is(objA, objB)) {
  37471. return true;
  37472. }
  37473. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  37474. return false;
  37475. }
  37476. var keysA = Object.keys(objA);
  37477. var keysB = Object.keys(objB);
  37478. if (keysA.length !== keysB.length) {
  37479. return false;
  37480. }
  37481. // Test for A's keys different from B.
  37482. for (var i = 0; i < keysA.length; i++) {
  37483. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  37484. return false;
  37485. }
  37486. }
  37487. return true;
  37488. }
  37489. /**
  37490. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  37491. * instance (key) and the internal representation (value). This allows public
  37492. * methods to accept the user facing instance as an argument and map them back
  37493. * to internal methods.
  37494. *
  37495. * Note that this module is currently shared and assumed to be stateless.
  37496. * If this becomes an actual Map, that will break.
  37497. */
  37498. /**
  37499. * This API should be called `delete` but we'd have to make sure to always
  37500. * transform these to strings for IE support. When this transform is fully
  37501. * supported we can rename it.
  37502. */
  37503. function get(key) {
  37504. return key._reactInternalFiber;
  37505. }
  37506. function has(key) {
  37507. return key._reactInternalFiber !== undefined;
  37508. }
  37509. function set(key, value) {
  37510. key._reactInternalFiber = value;
  37511. }
  37512. // Don't change these two values. They're used by React Dev Tools.
  37513. var NoEffect = /* */0;
  37514. var PerformedWork = /* */1;
  37515. // You can change the rest (and add more).
  37516. var Placement = /* */2;
  37517. var Update = /* */4;
  37518. var PlacementAndUpdate = /* */6;
  37519. var Deletion = /* */8;
  37520. var ContentReset = /* */16;
  37521. var Callback = /* */32;
  37522. var DidCapture = /* */64;
  37523. var Ref = /* */128;
  37524. var Snapshot = /* */256;
  37525. var Passive = /* */512;
  37526. // Passive & Update & Callback & Ref & Snapshot
  37527. var LifecycleEffectMask = /* */932;
  37528. // Union of all host effects
  37529. var HostEffectMask = /* */1023;
  37530. var Incomplete = /* */1024;
  37531. var ShouldCapture = /* */2048;
  37532. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  37533. var MOUNTING = 1;
  37534. var MOUNTED = 2;
  37535. var UNMOUNTED = 3;
  37536. function isFiberMountedImpl(fiber) {
  37537. var node = fiber;
  37538. if (!fiber.alternate) {
  37539. // If there is no alternate, this might be a new tree that isn't inserted
  37540. // yet. If it is, then it will have a pending insertion effect on it.
  37541. if ((node.effectTag & Placement) !== NoEffect) {
  37542. return MOUNTING;
  37543. }
  37544. while (node.return) {
  37545. node = node.return;
  37546. if ((node.effectTag & Placement) !== NoEffect) {
  37547. return MOUNTING;
  37548. }
  37549. }
  37550. } else {
  37551. while (node.return) {
  37552. node = node.return;
  37553. }
  37554. }
  37555. if (node.tag === HostRoot) {
  37556. // TODO: Check if this was a nested HostRoot when used with
  37557. // renderContainerIntoSubtree.
  37558. return MOUNTED;
  37559. }
  37560. // If we didn't hit the root, that means that we're in an disconnected tree
  37561. // that has been unmounted.
  37562. return UNMOUNTED;
  37563. }
  37564. function isFiberMounted(fiber) {
  37565. return isFiberMountedImpl(fiber) === MOUNTED;
  37566. }
  37567. function isMounted(component) {
  37568. {
  37569. var owner = ReactCurrentOwner$1.current;
  37570. if (owner !== null && owner.tag === ClassComponent) {
  37571. var ownerFiber = owner;
  37572. var instance = ownerFiber.stateNode;
  37573. !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;
  37574. instance._warnedAboutRefsInRender = true;
  37575. }
  37576. }
  37577. var fiber = get(component);
  37578. if (!fiber) {
  37579. return false;
  37580. }
  37581. return isFiberMountedImpl(fiber) === MOUNTED;
  37582. }
  37583. function assertIsMounted(fiber) {
  37584. !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  37585. }
  37586. function findCurrentFiberUsingSlowPath(fiber) {
  37587. var alternate = fiber.alternate;
  37588. if (!alternate) {
  37589. // If there is no alternate, then we only need to check if it is mounted.
  37590. var state = isFiberMountedImpl(fiber);
  37591. !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  37592. if (state === MOUNTING) {
  37593. return null;
  37594. }
  37595. return fiber;
  37596. }
  37597. // If we have two possible branches, we'll walk backwards up to the root
  37598. // to see what path the root points to. On the way we may hit one of the
  37599. // special cases and we'll deal with them.
  37600. var a = fiber;
  37601. var b = alternate;
  37602. while (true) {
  37603. var parentA = a.return;
  37604. var parentB = parentA ? parentA.alternate : null;
  37605. if (!parentA || !parentB) {
  37606. // We're at the root.
  37607. break;
  37608. }
  37609. // If both copies of the parent fiber point to the same child, we can
  37610. // assume that the child is current. This happens when we bailout on low
  37611. // priority: the bailed out fiber's child reuses the current child.
  37612. if (parentA.child === parentB.child) {
  37613. var child = parentA.child;
  37614. while (child) {
  37615. if (child === a) {
  37616. // We've determined that A is the current branch.
  37617. assertIsMounted(parentA);
  37618. return fiber;
  37619. }
  37620. if (child === b) {
  37621. // We've determined that B is the current branch.
  37622. assertIsMounted(parentA);
  37623. return alternate;
  37624. }
  37625. child = child.sibling;
  37626. }
  37627. // We should never have an alternate for any mounting node. So the only
  37628. // way this could possibly happen is if this was unmounted, if at all.
  37629. invariant(false, 'Unable to find node on an unmounted component.');
  37630. }
  37631. if (a.return !== b.return) {
  37632. // The return pointer of A and the return pointer of B point to different
  37633. // fibers. We assume that return pointers never criss-cross, so A must
  37634. // belong to the child set of A.return, and B must belong to the child
  37635. // set of B.return.
  37636. a = parentA;
  37637. b = parentB;
  37638. } else {
  37639. // The return pointers point to the same fiber. We'll have to use the
  37640. // default, slow path: scan the child sets of each parent alternate to see
  37641. // which child belongs to which set.
  37642. //
  37643. // Search parent A's child set
  37644. var didFindChild = false;
  37645. var _child = parentA.child;
  37646. while (_child) {
  37647. if (_child === a) {
  37648. didFindChild = true;
  37649. a = parentA;
  37650. b = parentB;
  37651. break;
  37652. }
  37653. if (_child === b) {
  37654. didFindChild = true;
  37655. b = parentA;
  37656. a = parentB;
  37657. break;
  37658. }
  37659. _child = _child.sibling;
  37660. }
  37661. if (!didFindChild) {
  37662. // Search parent B's child set
  37663. _child = parentB.child;
  37664. while (_child) {
  37665. if (_child === a) {
  37666. didFindChild = true;
  37667. a = parentB;
  37668. b = parentA;
  37669. break;
  37670. }
  37671. if (_child === b) {
  37672. didFindChild = true;
  37673. b = parentB;
  37674. a = parentA;
  37675. break;
  37676. }
  37677. _child = _child.sibling;
  37678. }
  37679. !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;
  37680. }
  37681. }
  37682. !(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;
  37683. }
  37684. // If the root is not a host container, we're in a disconnected tree. I.e.
  37685. // unmounted.
  37686. !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  37687. if (a.stateNode.current === a) {
  37688. // We've determined that A is the current branch.
  37689. return fiber;
  37690. }
  37691. // Otherwise B has to be current branch.
  37692. return alternate;
  37693. }
  37694. function findCurrentHostFiber(parent) {
  37695. var currentParent = findCurrentFiberUsingSlowPath(parent);
  37696. if (!currentParent) {
  37697. return null;
  37698. }
  37699. // Next we'll drill down this component to find the first HostComponent/Text.
  37700. var node = currentParent;
  37701. while (true) {
  37702. if (node.tag === HostComponent || node.tag === HostText) {
  37703. return node;
  37704. } else if (node.child) {
  37705. node.child.return = node;
  37706. node = node.child;
  37707. continue;
  37708. }
  37709. if (node === currentParent) {
  37710. return null;
  37711. }
  37712. while (!node.sibling) {
  37713. if (!node.return || node.return === currentParent) {
  37714. return null;
  37715. }
  37716. node = node.return;
  37717. }
  37718. node.sibling.return = node.return;
  37719. node = node.sibling;
  37720. }
  37721. // Flow needs the return null here, but ESLint complains about it.
  37722. // eslint-disable-next-line no-unreachable
  37723. return null;
  37724. }
  37725. function findCurrentHostFiberWithNoPortals(parent) {
  37726. var currentParent = findCurrentFiberUsingSlowPath(parent);
  37727. if (!currentParent) {
  37728. return null;
  37729. }
  37730. // Next we'll drill down this component to find the first HostComponent/Text.
  37731. var node = currentParent;
  37732. while (true) {
  37733. if (node.tag === HostComponent || node.tag === HostText) {
  37734. return node;
  37735. } else if (node.child && node.tag !== HostPortal) {
  37736. node.child.return = node;
  37737. node = node.child;
  37738. continue;
  37739. }
  37740. if (node === currentParent) {
  37741. return null;
  37742. }
  37743. while (!node.sibling) {
  37744. if (!node.return || node.return === currentParent) {
  37745. return null;
  37746. }
  37747. node = node.return;
  37748. }
  37749. node.sibling.return = node.return;
  37750. node = node.sibling;
  37751. }
  37752. // Flow needs the return null here, but ESLint complains about it.
  37753. // eslint-disable-next-line no-unreachable
  37754. return null;
  37755. }
  37756. function addEventBubbleListener(element, eventType, listener) {
  37757. element.addEventListener(eventType, listener, false);
  37758. }
  37759. function addEventCaptureListener(element, eventType, listener) {
  37760. element.addEventListener(eventType, listener, true);
  37761. }
  37762. /**
  37763. * @interface Event
  37764. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  37765. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  37766. */
  37767. var SyntheticAnimationEvent = SyntheticEvent.extend({
  37768. animationName: null,
  37769. elapsedTime: null,
  37770. pseudoElement: null
  37771. });
  37772. /**
  37773. * @interface Event
  37774. * @see http://www.w3.org/TR/clipboard-apis/
  37775. */
  37776. var SyntheticClipboardEvent = SyntheticEvent.extend({
  37777. clipboardData: function (event) {
  37778. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  37779. }
  37780. });
  37781. /**
  37782. * @interface FocusEvent
  37783. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37784. */
  37785. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  37786. relatedTarget: null
  37787. });
  37788. /**
  37789. * `charCode` represents the actual "character code" and is safe to use with
  37790. * `String.fromCharCode`. As such, only keys that correspond to printable
  37791. * characters produce a valid `charCode`, the only exception to this is Enter.
  37792. * The Tab-key is considered non-printable and does not have a `charCode`,
  37793. * presumably because it does not produce a tab-character in browsers.
  37794. *
  37795. * @param {object} nativeEvent Native browser event.
  37796. * @return {number} Normalized `charCode` property.
  37797. */
  37798. function getEventCharCode(nativeEvent) {
  37799. var charCode = void 0;
  37800. var keyCode = nativeEvent.keyCode;
  37801. if ('charCode' in nativeEvent) {
  37802. charCode = nativeEvent.charCode;
  37803. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  37804. if (charCode === 0 && keyCode === 13) {
  37805. charCode = 13;
  37806. }
  37807. } else {
  37808. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  37809. charCode = keyCode;
  37810. }
  37811. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  37812. // report Enter as charCode 10 when ctrl is pressed.
  37813. if (charCode === 10) {
  37814. charCode = 13;
  37815. }
  37816. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  37817. // Must not discard the (non-)printable Enter-key.
  37818. if (charCode >= 32 || charCode === 13) {
  37819. return charCode;
  37820. }
  37821. return 0;
  37822. }
  37823. /**
  37824. * Normalization of deprecated HTML5 `key` values
  37825. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  37826. */
  37827. var normalizeKey = {
  37828. Esc: 'Escape',
  37829. Spacebar: ' ',
  37830. Left: 'ArrowLeft',
  37831. Up: 'ArrowUp',
  37832. Right: 'ArrowRight',
  37833. Down: 'ArrowDown',
  37834. Del: 'Delete',
  37835. Win: 'OS',
  37836. Menu: 'ContextMenu',
  37837. Apps: 'ContextMenu',
  37838. Scroll: 'ScrollLock',
  37839. MozPrintableKey: 'Unidentified'
  37840. };
  37841. /**
  37842. * Translation from legacy `keyCode` to HTML5 `key`
  37843. * Only special keys supported, all others depend on keyboard layout or browser
  37844. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  37845. */
  37846. var translateToKey = {
  37847. '8': 'Backspace',
  37848. '9': 'Tab',
  37849. '12': 'Clear',
  37850. '13': 'Enter',
  37851. '16': 'Shift',
  37852. '17': 'Control',
  37853. '18': 'Alt',
  37854. '19': 'Pause',
  37855. '20': 'CapsLock',
  37856. '27': 'Escape',
  37857. '32': ' ',
  37858. '33': 'PageUp',
  37859. '34': 'PageDown',
  37860. '35': 'End',
  37861. '36': 'Home',
  37862. '37': 'ArrowLeft',
  37863. '38': 'ArrowUp',
  37864. '39': 'ArrowRight',
  37865. '40': 'ArrowDown',
  37866. '45': 'Insert',
  37867. '46': 'Delete',
  37868. '112': 'F1',
  37869. '113': 'F2',
  37870. '114': 'F3',
  37871. '115': 'F4',
  37872. '116': 'F5',
  37873. '117': 'F6',
  37874. '118': 'F7',
  37875. '119': 'F8',
  37876. '120': 'F9',
  37877. '121': 'F10',
  37878. '122': 'F11',
  37879. '123': 'F12',
  37880. '144': 'NumLock',
  37881. '145': 'ScrollLock',
  37882. '224': 'Meta'
  37883. };
  37884. /**
  37885. * @param {object} nativeEvent Native browser event.
  37886. * @return {string} Normalized `key` property.
  37887. */
  37888. function getEventKey(nativeEvent) {
  37889. if (nativeEvent.key) {
  37890. // Normalize inconsistent values reported by browsers due to
  37891. // implementations of a working draft specification.
  37892. // FireFox implements `key` but returns `MozPrintableKey` for all
  37893. // printable characters (normalized to `Unidentified`), ignore it.
  37894. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  37895. if (key !== 'Unidentified') {
  37896. return key;
  37897. }
  37898. }
  37899. // Browser does not implement `key`, polyfill as much of it as we can.
  37900. if (nativeEvent.type === 'keypress') {
  37901. var charCode = getEventCharCode(nativeEvent);
  37902. // The enter-key is technically both printable and non-printable and can
  37903. // thus be captured by `keypress`, no other non-printable key should.
  37904. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  37905. }
  37906. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  37907. // While user keyboard layout determines the actual meaning of each
  37908. // `keyCode` value, almost all function keys have a universal value.
  37909. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  37910. }
  37911. return '';
  37912. }
  37913. /**
  37914. * @interface KeyboardEvent
  37915. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37916. */
  37917. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  37918. key: getEventKey,
  37919. location: null,
  37920. ctrlKey: null,
  37921. shiftKey: null,
  37922. altKey: null,
  37923. metaKey: null,
  37924. repeat: null,
  37925. locale: null,
  37926. getModifierState: getEventModifierState,
  37927. // Legacy Interface
  37928. charCode: function (event) {
  37929. // `charCode` is the result of a KeyPress event and represents the value of
  37930. // the actual printable character.
  37931. // KeyPress is deprecated, but its replacement is not yet final and not
  37932. // implemented in any major browser. Only KeyPress has charCode.
  37933. if (event.type === 'keypress') {
  37934. return getEventCharCode(event);
  37935. }
  37936. return 0;
  37937. },
  37938. keyCode: function (event) {
  37939. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  37940. // physical keyboard key.
  37941. // The actual meaning of the value depends on the users' keyboard layout
  37942. // which cannot be detected. Assuming that it is a US keyboard layout
  37943. // provides a surprisingly accurate mapping for US and European users.
  37944. // Due to this, it is left to the user to implement at this time.
  37945. if (event.type === 'keydown' || event.type === 'keyup') {
  37946. return event.keyCode;
  37947. }
  37948. return 0;
  37949. },
  37950. which: function (event) {
  37951. // `which` is an alias for either `keyCode` or `charCode` depending on the
  37952. // type of the event.
  37953. if (event.type === 'keypress') {
  37954. return getEventCharCode(event);
  37955. }
  37956. if (event.type === 'keydown' || event.type === 'keyup') {
  37957. return event.keyCode;
  37958. }
  37959. return 0;
  37960. }
  37961. });
  37962. /**
  37963. * @interface DragEvent
  37964. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37965. */
  37966. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  37967. dataTransfer: null
  37968. });
  37969. /**
  37970. * @interface TouchEvent
  37971. * @see http://www.w3.org/TR/touch-events/
  37972. */
  37973. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  37974. touches: null,
  37975. targetTouches: null,
  37976. changedTouches: null,
  37977. altKey: null,
  37978. metaKey: null,
  37979. ctrlKey: null,
  37980. shiftKey: null,
  37981. getModifierState: getEventModifierState
  37982. });
  37983. /**
  37984. * @interface Event
  37985. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  37986. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  37987. */
  37988. var SyntheticTransitionEvent = SyntheticEvent.extend({
  37989. propertyName: null,
  37990. elapsedTime: null,
  37991. pseudoElement: null
  37992. });
  37993. /**
  37994. * @interface WheelEvent
  37995. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37996. */
  37997. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  37998. deltaX: function (event) {
  37999. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  38000. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  38001. },
  38002. deltaY: function (event) {
  38003. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  38004. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  38005. 'wheelDelta' in event ? -event.wheelDelta : 0;
  38006. },
  38007. deltaZ: null,
  38008. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  38009. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  38010. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  38011. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  38012. deltaMode: null
  38013. });
  38014. /**
  38015. * Turns
  38016. * ['abort', ...]
  38017. * into
  38018. * eventTypes = {
  38019. * 'abort': {
  38020. * phasedRegistrationNames: {
  38021. * bubbled: 'onAbort',
  38022. * captured: 'onAbortCapture',
  38023. * },
  38024. * dependencies: [TOP_ABORT],
  38025. * },
  38026. * ...
  38027. * };
  38028. * topLevelEventsToDispatchConfig = new Map([
  38029. * [TOP_ABORT, { sameConfig }],
  38030. * ]);
  38031. */
  38032. 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']];
  38033. 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']];
  38034. var eventTypes$4 = {};
  38035. var topLevelEventsToDispatchConfig = {};
  38036. function addEventTypeNameToConfig(_ref, isInteractive) {
  38037. var topEvent = _ref[0],
  38038. event = _ref[1];
  38039. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  38040. var onEvent = 'on' + capitalizedEvent;
  38041. var type = {
  38042. phasedRegistrationNames: {
  38043. bubbled: onEvent,
  38044. captured: onEvent + 'Capture'
  38045. },
  38046. dependencies: [topEvent],
  38047. isInteractive: isInteractive
  38048. };
  38049. eventTypes$4[event] = type;
  38050. topLevelEventsToDispatchConfig[topEvent] = type;
  38051. }
  38052. interactiveEventTypeNames.forEach(function (eventTuple) {
  38053. addEventTypeNameToConfig(eventTuple, true);
  38054. });
  38055. nonInteractiveEventTypeNames.forEach(function (eventTuple) {
  38056. addEventTypeNameToConfig(eventTuple, false);
  38057. });
  38058. // Only used in DEV for exhaustiveness validation.
  38059. 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];
  38060. var SimpleEventPlugin = {
  38061. eventTypes: eventTypes$4,
  38062. isInteractiveTopLevelEventType: function (topLevelType) {
  38063. var config = topLevelEventsToDispatchConfig[topLevelType];
  38064. return config !== undefined && config.isInteractive === true;
  38065. },
  38066. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  38067. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  38068. if (!dispatchConfig) {
  38069. return null;
  38070. }
  38071. var EventConstructor = void 0;
  38072. switch (topLevelType) {
  38073. case TOP_KEY_PRESS:
  38074. // Firefox creates a keypress event for function keys too. This removes
  38075. // the unwanted keypress events. Enter is however both printable and
  38076. // non-printable. One would expect Tab to be as well (but it isn't).
  38077. if (getEventCharCode(nativeEvent) === 0) {
  38078. return null;
  38079. }
  38080. /* falls through */
  38081. case TOP_KEY_DOWN:
  38082. case TOP_KEY_UP:
  38083. EventConstructor = SyntheticKeyboardEvent;
  38084. break;
  38085. case TOP_BLUR:
  38086. case TOP_FOCUS:
  38087. EventConstructor = SyntheticFocusEvent;
  38088. break;
  38089. case TOP_CLICK:
  38090. // Firefox creates a click event on right mouse clicks. This removes the
  38091. // unwanted click events.
  38092. if (nativeEvent.button === 2) {
  38093. return null;
  38094. }
  38095. /* falls through */
  38096. case TOP_AUX_CLICK:
  38097. case TOP_DOUBLE_CLICK:
  38098. case TOP_MOUSE_DOWN:
  38099. case TOP_MOUSE_MOVE:
  38100. case TOP_MOUSE_UP:
  38101. // TODO: Disabled elements should not respond to mouse events
  38102. /* falls through */
  38103. case TOP_MOUSE_OUT:
  38104. case TOP_MOUSE_OVER:
  38105. case TOP_CONTEXT_MENU:
  38106. EventConstructor = SyntheticMouseEvent;
  38107. break;
  38108. case TOP_DRAG:
  38109. case TOP_DRAG_END:
  38110. case TOP_DRAG_ENTER:
  38111. case TOP_DRAG_EXIT:
  38112. case TOP_DRAG_LEAVE:
  38113. case TOP_DRAG_OVER:
  38114. case TOP_DRAG_START:
  38115. case TOP_DROP:
  38116. EventConstructor = SyntheticDragEvent;
  38117. break;
  38118. case TOP_TOUCH_CANCEL:
  38119. case TOP_TOUCH_END:
  38120. case TOP_TOUCH_MOVE:
  38121. case TOP_TOUCH_START:
  38122. EventConstructor = SyntheticTouchEvent;
  38123. break;
  38124. case TOP_ANIMATION_END:
  38125. case TOP_ANIMATION_ITERATION:
  38126. case TOP_ANIMATION_START:
  38127. EventConstructor = SyntheticAnimationEvent;
  38128. break;
  38129. case TOP_TRANSITION_END:
  38130. EventConstructor = SyntheticTransitionEvent;
  38131. break;
  38132. case TOP_SCROLL:
  38133. EventConstructor = SyntheticUIEvent;
  38134. break;
  38135. case TOP_WHEEL:
  38136. EventConstructor = SyntheticWheelEvent;
  38137. break;
  38138. case TOP_COPY:
  38139. case TOP_CUT:
  38140. case TOP_PASTE:
  38141. EventConstructor = SyntheticClipboardEvent;
  38142. break;
  38143. case TOP_GOT_POINTER_CAPTURE:
  38144. case TOP_LOST_POINTER_CAPTURE:
  38145. case TOP_POINTER_CANCEL:
  38146. case TOP_POINTER_DOWN:
  38147. case TOP_POINTER_MOVE:
  38148. case TOP_POINTER_OUT:
  38149. case TOP_POINTER_OVER:
  38150. case TOP_POINTER_UP:
  38151. EventConstructor = SyntheticPointerEvent;
  38152. break;
  38153. default:
  38154. {
  38155. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  38156. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  38157. }
  38158. }
  38159. // HTML Events
  38160. // @see http://www.w3.org/TR/html5/index.html#events-0
  38161. EventConstructor = SyntheticEvent;
  38162. break;
  38163. }
  38164. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  38165. accumulateTwoPhaseDispatches(event);
  38166. return event;
  38167. }
  38168. };
  38169. var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;
  38170. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  38171. var callbackBookkeepingPool = [];
  38172. /**
  38173. * Find the deepest React component completely containing the root of the
  38174. * passed-in instance (for use when entire React trees are nested within each
  38175. * other). If React trees are not nested, returns null.
  38176. */
  38177. function findRootContainerNode(inst) {
  38178. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  38179. // traversal, but caching is difficult to do correctly without using a
  38180. // mutation observer to listen for all DOM changes.
  38181. while (inst.return) {
  38182. inst = inst.return;
  38183. }
  38184. if (inst.tag !== HostRoot) {
  38185. // This can happen if we're in a detached tree.
  38186. return null;
  38187. }
  38188. return inst.stateNode.containerInfo;
  38189. }
  38190. // Used to store ancestor hierarchy in top level callback
  38191. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  38192. if (callbackBookkeepingPool.length) {
  38193. var instance = callbackBookkeepingPool.pop();
  38194. instance.topLevelType = topLevelType;
  38195. instance.nativeEvent = nativeEvent;
  38196. instance.targetInst = targetInst;
  38197. return instance;
  38198. }
  38199. return {
  38200. topLevelType: topLevelType,
  38201. nativeEvent: nativeEvent,
  38202. targetInst: targetInst,
  38203. ancestors: []
  38204. };
  38205. }
  38206. function releaseTopLevelCallbackBookKeeping(instance) {
  38207. instance.topLevelType = null;
  38208. instance.nativeEvent = null;
  38209. instance.targetInst = null;
  38210. instance.ancestors.length = 0;
  38211. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  38212. callbackBookkeepingPool.push(instance);
  38213. }
  38214. }
  38215. function handleTopLevel(bookKeeping) {
  38216. var targetInst = bookKeeping.targetInst;
  38217. // Loop through the hierarchy, in case there's any nested components.
  38218. // It's important that we build the array of ancestors before calling any
  38219. // event handlers, because event handlers can modify the DOM, leading to
  38220. // inconsistencies with ReactMount's node cache. See #1105.
  38221. var ancestor = targetInst;
  38222. do {
  38223. if (!ancestor) {
  38224. bookKeeping.ancestors.push(ancestor);
  38225. break;
  38226. }
  38227. var root = findRootContainerNode(ancestor);
  38228. if (!root) {
  38229. break;
  38230. }
  38231. bookKeeping.ancestors.push(ancestor);
  38232. ancestor = getClosestInstanceFromNode(root);
  38233. } while (ancestor);
  38234. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  38235. targetInst = bookKeeping.ancestors[i];
  38236. runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  38237. }
  38238. }
  38239. // TODO: can we stop exporting these?
  38240. var _enabled = true;
  38241. function setEnabled(enabled) {
  38242. _enabled = !!enabled;
  38243. }
  38244. function isEnabled() {
  38245. return _enabled;
  38246. }
  38247. /**
  38248. * Traps top-level events by using event bubbling.
  38249. *
  38250. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  38251. * @param {object} element Element on which to attach listener.
  38252. * @return {?object} An object with a remove function which will forcefully
  38253. * remove the listener.
  38254. * @internal
  38255. */
  38256. function trapBubbledEvent(topLevelType, element) {
  38257. if (!element) {
  38258. return null;
  38259. }
  38260. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  38261. addEventBubbleListener(element, getRawEventName(topLevelType),
  38262. // Check if interactive and wrap in interactiveUpdates
  38263. dispatch.bind(null, topLevelType));
  38264. }
  38265. /**
  38266. * Traps a top-level event by using event capturing.
  38267. *
  38268. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  38269. * @param {object} element Element on which to attach listener.
  38270. * @return {?object} An object with a remove function which will forcefully
  38271. * remove the listener.
  38272. * @internal
  38273. */
  38274. function trapCapturedEvent(topLevelType, element) {
  38275. if (!element) {
  38276. return null;
  38277. }
  38278. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  38279. addEventCaptureListener(element, getRawEventName(topLevelType),
  38280. // Check if interactive and wrap in interactiveUpdates
  38281. dispatch.bind(null, topLevelType));
  38282. }
  38283. function dispatchInteractiveEvent(topLevelType, nativeEvent) {
  38284. interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);
  38285. }
  38286. function dispatchEvent(topLevelType, nativeEvent) {
  38287. if (!_enabled) {
  38288. return;
  38289. }
  38290. var nativeEventTarget = getEventTarget(nativeEvent);
  38291. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  38292. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  38293. // If we get an event (ex: img onload) before committing that
  38294. // component's mount, ignore it for now (that is, treat it as if it was an
  38295. // event on a non-React tree). We might also consider queueing events and
  38296. // dispatching them after the mount.
  38297. targetInst = null;
  38298. }
  38299. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  38300. try {
  38301. // Event queue being processed in the same cycle allows
  38302. // `preventDefault`.
  38303. batchedUpdates(handleTopLevel, bookKeeping);
  38304. } finally {
  38305. releaseTopLevelCallbackBookKeeping(bookKeeping);
  38306. }
  38307. }
  38308. /**
  38309. * Summary of `ReactBrowserEventEmitter` event handling:
  38310. *
  38311. * - Top-level delegation is used to trap most native browser events. This
  38312. * may only occur in the main thread and is the responsibility of
  38313. * ReactDOMEventListener, which is injected and can therefore support
  38314. * pluggable event sources. This is the only work that occurs in the main
  38315. * thread.
  38316. *
  38317. * - We normalize and de-duplicate events to account for browser quirks. This
  38318. * may be done in the worker thread.
  38319. *
  38320. * - Forward these native events (with the associated top-level type used to
  38321. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  38322. * to extract any synthetic events.
  38323. *
  38324. * - The `EventPluginHub` will then process each event by annotating them with
  38325. * "dispatches", a sequence of listeners and IDs that care about that event.
  38326. *
  38327. * - The `EventPluginHub` then dispatches the events.
  38328. *
  38329. * Overview of React and the event system:
  38330. *
  38331. * +------------+ .
  38332. * | DOM | .
  38333. * +------------+ .
  38334. * | .
  38335. * v .
  38336. * +------------+ .
  38337. * | ReactEvent | .
  38338. * | Listener | .
  38339. * +------------+ . +-----------+
  38340. * | . +--------+|SimpleEvent|
  38341. * | . | |Plugin |
  38342. * +-----|------+ . v +-----------+
  38343. * | | | . +--------------+ +------------+
  38344. * | +-----------.--->|EventPluginHub| | Event |
  38345. * | | . | | +-----------+ | Propagators|
  38346. * | ReactEvent | . | | |TapEvent | |------------|
  38347. * | Emitter | . | |<---+|Plugin | |other plugin|
  38348. * | | . | | +-----------+ | utilities |
  38349. * | +-----------.--->| | +------------+
  38350. * | | | . +--------------+
  38351. * +-----|------+ . ^ +-----------+
  38352. * | . | |Enter/Leave|
  38353. * + . +-------+|Plugin |
  38354. * +-------------+ . +-----------+
  38355. * | application | .
  38356. * |-------------| .
  38357. * | | .
  38358. * | | .
  38359. * +-------------+ .
  38360. * .
  38361. * React Core . General Purpose Event Plugin System
  38362. */
  38363. var alreadyListeningTo = {};
  38364. var reactTopListenersCounter = 0;
  38365. /**
  38366. * To ensure no conflicts with other potential React instances on the page
  38367. */
  38368. var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);
  38369. function getListeningForDocument(mountAt) {
  38370. // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  38371. // directly.
  38372. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
  38373. mountAt[topListenersIDKey] = reactTopListenersCounter++;
  38374. alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  38375. }
  38376. return alreadyListeningTo[mountAt[topListenersIDKey]];
  38377. }
  38378. /**
  38379. * We listen for bubbled touch events on the document object.
  38380. *
  38381. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  38382. * mounting `onmousemove` events at some node that was not the document
  38383. * element. The symptoms were that if your mouse is not moving over something
  38384. * contained within that mount point (for example on the background) the
  38385. * top-level listeners for `onmousemove` won't be called. However, if you
  38386. * register the `mousemove` on the document object, then it will of course
  38387. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  38388. * top-level listeners to the document object only, at least for these
  38389. * movement types of events and possibly all events.
  38390. *
  38391. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  38392. *
  38393. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  38394. * they bubble to document.
  38395. *
  38396. * @param {string} registrationName Name of listener (e.g. `onClick`).
  38397. * @param {object} mountAt Container where to mount the listener
  38398. */
  38399. function listenTo(registrationName, mountAt) {
  38400. var isListening = getListeningForDocument(mountAt);
  38401. var dependencies = registrationNameDependencies[registrationName];
  38402. for (var i = 0; i < dependencies.length; i++) {
  38403. var dependency = dependencies[i];
  38404. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  38405. switch (dependency) {
  38406. case TOP_SCROLL:
  38407. trapCapturedEvent(TOP_SCROLL, mountAt);
  38408. break;
  38409. case TOP_FOCUS:
  38410. case TOP_BLUR:
  38411. trapCapturedEvent(TOP_FOCUS, mountAt);
  38412. trapCapturedEvent(TOP_BLUR, mountAt);
  38413. // We set the flag for a single dependency later in this function,
  38414. // but this ensures we mark both as attached rather than just one.
  38415. isListening[TOP_BLUR] = true;
  38416. isListening[TOP_FOCUS] = true;
  38417. break;
  38418. case TOP_CANCEL:
  38419. case TOP_CLOSE:
  38420. if (isEventSupported(getRawEventName(dependency))) {
  38421. trapCapturedEvent(dependency, mountAt);
  38422. }
  38423. break;
  38424. case TOP_INVALID:
  38425. case TOP_SUBMIT:
  38426. case TOP_RESET:
  38427. // We listen to them on the target DOM elements.
  38428. // Some of them bubble so we don't want them to fire twice.
  38429. break;
  38430. default:
  38431. // By default, listen on the top level to all non-media events.
  38432. // Media events don't bubble so adding the listener wouldn't do anything.
  38433. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  38434. if (!isMediaEvent) {
  38435. trapBubbledEvent(dependency, mountAt);
  38436. }
  38437. break;
  38438. }
  38439. isListening[dependency] = true;
  38440. }
  38441. }
  38442. }
  38443. function isListeningToAllDependencies(registrationName, mountAt) {
  38444. var isListening = getListeningForDocument(mountAt);
  38445. var dependencies = registrationNameDependencies[registrationName];
  38446. for (var i = 0; i < dependencies.length; i++) {
  38447. var dependency = dependencies[i];
  38448. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  38449. return false;
  38450. }
  38451. }
  38452. return true;
  38453. }
  38454. function getActiveElement(doc) {
  38455. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  38456. if (typeof doc === 'undefined') {
  38457. return null;
  38458. }
  38459. try {
  38460. return doc.activeElement || doc.body;
  38461. } catch (e) {
  38462. return doc.body;
  38463. }
  38464. }
  38465. /**
  38466. * Given any node return the first leaf node without children.
  38467. *
  38468. * @param {DOMElement|DOMTextNode} node
  38469. * @return {DOMElement|DOMTextNode}
  38470. */
  38471. function getLeafNode(node) {
  38472. while (node && node.firstChild) {
  38473. node = node.firstChild;
  38474. }
  38475. return node;
  38476. }
  38477. /**
  38478. * Get the next sibling within a container. This will walk up the
  38479. * DOM if a node's siblings have been exhausted.
  38480. *
  38481. * @param {DOMElement|DOMTextNode} node
  38482. * @return {?DOMElement|DOMTextNode}
  38483. */
  38484. function getSiblingNode(node) {
  38485. while (node) {
  38486. if (node.nextSibling) {
  38487. return node.nextSibling;
  38488. }
  38489. node = node.parentNode;
  38490. }
  38491. }
  38492. /**
  38493. * Get object describing the nodes which contain characters at offset.
  38494. *
  38495. * @param {DOMElement|DOMTextNode} root
  38496. * @param {number} offset
  38497. * @return {?object}
  38498. */
  38499. function getNodeForCharacterOffset(root, offset) {
  38500. var node = getLeafNode(root);
  38501. var nodeStart = 0;
  38502. var nodeEnd = 0;
  38503. while (node) {
  38504. if (node.nodeType === TEXT_NODE) {
  38505. nodeEnd = nodeStart + node.textContent.length;
  38506. if (nodeStart <= offset && nodeEnd >= offset) {
  38507. return {
  38508. node: node,
  38509. offset: offset - nodeStart
  38510. };
  38511. }
  38512. nodeStart = nodeEnd;
  38513. }
  38514. node = getLeafNode(getSiblingNode(node));
  38515. }
  38516. }
  38517. /**
  38518. * @param {DOMElement} outerNode
  38519. * @return {?object}
  38520. */
  38521. function getOffsets(outerNode) {
  38522. var ownerDocument = outerNode.ownerDocument;
  38523. var win = ownerDocument && ownerDocument.defaultView || window;
  38524. var selection = win.getSelection && win.getSelection();
  38525. if (!selection || selection.rangeCount === 0) {
  38526. return null;
  38527. }
  38528. var anchorNode = selection.anchorNode,
  38529. anchorOffset = selection.anchorOffset,
  38530. focusNode = selection.focusNode,
  38531. focusOffset = selection.focusOffset;
  38532. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  38533. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  38534. // expose properties, triggering a "Permission denied error" if any of its
  38535. // properties are accessed. The only seemingly possible way to avoid erroring
  38536. // is to access a property that typically works for non-anonymous divs and
  38537. // catch any error that may otherwise arise. See
  38538. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  38539. try {
  38540. /* eslint-disable no-unused-expressions */
  38541. anchorNode.nodeType;
  38542. focusNode.nodeType;
  38543. /* eslint-enable no-unused-expressions */
  38544. } catch (e) {
  38545. return null;
  38546. }
  38547. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  38548. }
  38549. /**
  38550. * Returns {start, end} where `start` is the character/codepoint index of
  38551. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  38552. * `end` is the index of (focusNode, focusOffset).
  38553. *
  38554. * Returns null if you pass in garbage input but we should probably just crash.
  38555. *
  38556. * Exported only for testing.
  38557. */
  38558. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  38559. var length = 0;
  38560. var start = -1;
  38561. var end = -1;
  38562. var indexWithinAnchor = 0;
  38563. var indexWithinFocus = 0;
  38564. var node = outerNode;
  38565. var parentNode = null;
  38566. outer: while (true) {
  38567. var next = null;
  38568. while (true) {
  38569. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  38570. start = length + anchorOffset;
  38571. }
  38572. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  38573. end = length + focusOffset;
  38574. }
  38575. if (node.nodeType === TEXT_NODE) {
  38576. length += node.nodeValue.length;
  38577. }
  38578. if ((next = node.firstChild) === null) {
  38579. break;
  38580. }
  38581. // Moving from `node` to its first child `next`.
  38582. parentNode = node;
  38583. node = next;
  38584. }
  38585. while (true) {
  38586. if (node === outerNode) {
  38587. // If `outerNode` has children, this is always the second time visiting
  38588. // it. If it has no children, this is still the first loop, and the only
  38589. // valid selection is anchorNode and focusNode both equal to this node
  38590. // and both offsets 0, in which case we will have handled above.
  38591. break outer;
  38592. }
  38593. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  38594. start = length;
  38595. }
  38596. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  38597. end = length;
  38598. }
  38599. if ((next = node.nextSibling) !== null) {
  38600. break;
  38601. }
  38602. node = parentNode;
  38603. parentNode = node.parentNode;
  38604. }
  38605. // Moving from `node` to its next sibling `next`.
  38606. node = next;
  38607. }
  38608. if (start === -1 || end === -1) {
  38609. // This should never happen. (Would happen if the anchor/focus nodes aren't
  38610. // actually inside the passed-in node.)
  38611. return null;
  38612. }
  38613. return {
  38614. start: start,
  38615. end: end
  38616. };
  38617. }
  38618. /**
  38619. * In modern non-IE browsers, we can support both forward and backward
  38620. * selections.
  38621. *
  38622. * Note: IE10+ supports the Selection object, but it does not support
  38623. * the `extend` method, which means that even in modern IE, it's not possible
  38624. * to programmatically create a backward selection. Thus, for all IE
  38625. * versions, we use the old IE API to create our selections.
  38626. *
  38627. * @param {DOMElement|DOMTextNode} node
  38628. * @param {object} offsets
  38629. */
  38630. function setOffsets(node, offsets) {
  38631. var doc = node.ownerDocument || document;
  38632. var win = doc && doc.defaultView || window;
  38633. // Edge fails with "Object expected" in some scenarios.
  38634. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  38635. // fails when pasting 100+ items)
  38636. if (!win.getSelection) {
  38637. return;
  38638. }
  38639. var selection = win.getSelection();
  38640. var length = node.textContent.length;
  38641. var start = Math.min(offsets.start, length);
  38642. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  38643. // IE 11 uses modern selection, but doesn't support the extend method.
  38644. // Flip backward selections, so we can set with a single range.
  38645. if (!selection.extend && start > end) {
  38646. var temp = end;
  38647. end = start;
  38648. start = temp;
  38649. }
  38650. var startMarker = getNodeForCharacterOffset(node, start);
  38651. var endMarker = getNodeForCharacterOffset(node, end);
  38652. if (startMarker && endMarker) {
  38653. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  38654. return;
  38655. }
  38656. var range = doc.createRange();
  38657. range.setStart(startMarker.node, startMarker.offset);
  38658. selection.removeAllRanges();
  38659. if (start > end) {
  38660. selection.addRange(range);
  38661. selection.extend(endMarker.node, endMarker.offset);
  38662. } else {
  38663. range.setEnd(endMarker.node, endMarker.offset);
  38664. selection.addRange(range);
  38665. }
  38666. }
  38667. }
  38668. function isTextNode(node) {
  38669. return node && node.nodeType === TEXT_NODE;
  38670. }
  38671. function containsNode(outerNode, innerNode) {
  38672. if (!outerNode || !innerNode) {
  38673. return false;
  38674. } else if (outerNode === innerNode) {
  38675. return true;
  38676. } else if (isTextNode(outerNode)) {
  38677. return false;
  38678. } else if (isTextNode(innerNode)) {
  38679. return containsNode(outerNode, innerNode.parentNode);
  38680. } else if ('contains' in outerNode) {
  38681. return outerNode.contains(innerNode);
  38682. } else if (outerNode.compareDocumentPosition) {
  38683. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  38684. } else {
  38685. return false;
  38686. }
  38687. }
  38688. function isInDocument(node) {
  38689. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  38690. }
  38691. function getActiveElementDeep() {
  38692. var win = window;
  38693. var element = getActiveElement();
  38694. while (element instanceof win.HTMLIFrameElement) {
  38695. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  38696. // to throw, e.g. if it has a cross-origin src attribute
  38697. try {
  38698. win = element.contentDocument.defaultView;
  38699. } catch (e) {
  38700. return element;
  38701. }
  38702. element = getActiveElement(win.document);
  38703. }
  38704. return element;
  38705. }
  38706. /**
  38707. * @ReactInputSelection: React input selection module. Based on Selection.js,
  38708. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  38709. * assume buttons have range selections allowed).
  38710. * Input selection module for React.
  38711. */
  38712. /**
  38713. * @hasSelectionCapabilities: we get the element types that support selection
  38714. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  38715. * and `selectionEnd` rows.
  38716. */
  38717. function hasSelectionCapabilities(elem) {
  38718. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  38719. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  38720. }
  38721. function getSelectionInformation() {
  38722. var focusedElem = getActiveElementDeep();
  38723. return {
  38724. focusedElem: focusedElem,
  38725. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  38726. };
  38727. }
  38728. /**
  38729. * @restoreSelection: If any selection information was potentially lost,
  38730. * restore it. This is useful when performing operations that could remove dom
  38731. * nodes and place them back in, resulting in focus being lost.
  38732. */
  38733. function restoreSelection(priorSelectionInformation) {
  38734. var curFocusedElem = getActiveElementDeep();
  38735. var priorFocusedElem = priorSelectionInformation.focusedElem;
  38736. var priorSelectionRange = priorSelectionInformation.selectionRange;
  38737. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  38738. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  38739. setSelection(priorFocusedElem, priorSelectionRange);
  38740. }
  38741. // Focusing a node can change the scroll position, which is undesirable
  38742. var ancestors = [];
  38743. var ancestor = priorFocusedElem;
  38744. while (ancestor = ancestor.parentNode) {
  38745. if (ancestor.nodeType === ELEMENT_NODE) {
  38746. ancestors.push({
  38747. element: ancestor,
  38748. left: ancestor.scrollLeft,
  38749. top: ancestor.scrollTop
  38750. });
  38751. }
  38752. }
  38753. if (typeof priorFocusedElem.focus === 'function') {
  38754. priorFocusedElem.focus();
  38755. }
  38756. for (var i = 0; i < ancestors.length; i++) {
  38757. var info = ancestors[i];
  38758. info.element.scrollLeft = info.left;
  38759. info.element.scrollTop = info.top;
  38760. }
  38761. }
  38762. }
  38763. /**
  38764. * @getSelection: Gets the selection bounds of a focused textarea, input or
  38765. * contentEditable node.
  38766. * -@input: Look up selection bounds of this input
  38767. * -@return {start: selectionStart, end: selectionEnd}
  38768. */
  38769. function getSelection$1(input) {
  38770. var selection = void 0;
  38771. if ('selectionStart' in input) {
  38772. // Modern browser with input or textarea.
  38773. selection = {
  38774. start: input.selectionStart,
  38775. end: input.selectionEnd
  38776. };
  38777. } else {
  38778. // Content editable or old IE textarea.
  38779. selection = getOffsets(input);
  38780. }
  38781. return selection || { start: 0, end: 0 };
  38782. }
  38783. /**
  38784. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  38785. * the input.
  38786. * -@input Set selection bounds of this input or textarea
  38787. * -@offsets Object of same form that is returned from get*
  38788. */
  38789. function setSelection(input, offsets) {
  38790. var start = offsets.start,
  38791. end = offsets.end;
  38792. if (end === undefined) {
  38793. end = start;
  38794. }
  38795. if ('selectionStart' in input) {
  38796. input.selectionStart = start;
  38797. input.selectionEnd = Math.min(end, input.value.length);
  38798. } else {
  38799. setOffsets(input, offsets);
  38800. }
  38801. }
  38802. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  38803. var eventTypes$3 = {
  38804. select: {
  38805. phasedRegistrationNames: {
  38806. bubbled: 'onSelect',
  38807. captured: 'onSelectCapture'
  38808. },
  38809. 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]
  38810. }
  38811. };
  38812. var activeElement$1 = null;
  38813. var activeElementInst$1 = null;
  38814. var lastSelection = null;
  38815. var mouseDown = false;
  38816. /**
  38817. * Get an object which is a unique representation of the current selection.
  38818. *
  38819. * The return value will not be consistent across nodes or browsers, but
  38820. * two identical selections on the same node will return identical objects.
  38821. *
  38822. * @param {DOMElement} node
  38823. * @return {object}
  38824. */
  38825. function getSelection(node) {
  38826. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  38827. return {
  38828. start: node.selectionStart,
  38829. end: node.selectionEnd
  38830. };
  38831. } else {
  38832. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  38833. var selection = win.getSelection();
  38834. return {
  38835. anchorNode: selection.anchorNode,
  38836. anchorOffset: selection.anchorOffset,
  38837. focusNode: selection.focusNode,
  38838. focusOffset: selection.focusOffset
  38839. };
  38840. }
  38841. }
  38842. /**
  38843. * Get document associated with the event target.
  38844. *
  38845. * @param {object} nativeEventTarget
  38846. * @return {Document}
  38847. */
  38848. function getEventTargetDocument(eventTarget) {
  38849. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  38850. }
  38851. /**
  38852. * Poll selection to see whether it's changed.
  38853. *
  38854. * @param {object} nativeEvent
  38855. * @param {object} nativeEventTarget
  38856. * @return {?SyntheticEvent}
  38857. */
  38858. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  38859. // Ensure we have the right element, and that the user is not dragging a
  38860. // selection (this matches native `select` event behavior). In HTML5, select
  38861. // fires only on input and textarea thus if there's no focused element we
  38862. // won't dispatch.
  38863. var doc = getEventTargetDocument(nativeEventTarget);
  38864. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  38865. return null;
  38866. }
  38867. // Only fire when selection has actually changed.
  38868. var currentSelection = getSelection(activeElement$1);
  38869. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  38870. lastSelection = currentSelection;
  38871. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  38872. syntheticEvent.type = 'select';
  38873. syntheticEvent.target = activeElement$1;
  38874. accumulateTwoPhaseDispatches(syntheticEvent);
  38875. return syntheticEvent;
  38876. }
  38877. return null;
  38878. }
  38879. /**
  38880. * This plugin creates an `onSelect` event that normalizes select events
  38881. * across form elements.
  38882. *
  38883. * Supported elements are:
  38884. * - input (see `isTextInputElement`)
  38885. * - textarea
  38886. * - contentEditable
  38887. *
  38888. * This differs from native browser implementations in the following ways:
  38889. * - Fires on contentEditable fields as well as inputs.
  38890. * - Fires for collapsed selection.
  38891. * - Fires after user input.
  38892. */
  38893. var SelectEventPlugin = {
  38894. eventTypes: eventTypes$3,
  38895. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  38896. var doc = getEventTargetDocument(nativeEventTarget);
  38897. // Track whether all listeners exists for this plugin. If none exist, we do
  38898. // not extract events. See #3639.
  38899. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  38900. return null;
  38901. }
  38902. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  38903. switch (topLevelType) {
  38904. // Track the input node that has focus.
  38905. case TOP_FOCUS:
  38906. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  38907. activeElement$1 = targetNode;
  38908. activeElementInst$1 = targetInst;
  38909. lastSelection = null;
  38910. }
  38911. break;
  38912. case TOP_BLUR:
  38913. activeElement$1 = null;
  38914. activeElementInst$1 = null;
  38915. lastSelection = null;
  38916. break;
  38917. // Don't fire the event while the user is dragging. This matches the
  38918. // semantics of the native select event.
  38919. case TOP_MOUSE_DOWN:
  38920. mouseDown = true;
  38921. break;
  38922. case TOP_CONTEXT_MENU:
  38923. case TOP_MOUSE_UP:
  38924. case TOP_DRAG_END:
  38925. mouseDown = false;
  38926. return constructSelectEvent(nativeEvent, nativeEventTarget);
  38927. // Chrome and IE fire non-standard event when selection is changed (and
  38928. // sometimes when it hasn't). IE's event fires out of order with respect
  38929. // to key and input events on deletion, so we discard it.
  38930. //
  38931. // Firefox doesn't support selectionchange, so check selection status
  38932. // after each key entry. The selection changes after keydown and before
  38933. // keyup, but we check on keydown as well in the case of holding down a
  38934. // key, when multiple keydown events are fired but only one keyup is.
  38935. // This is also our approach for IE handling, for the reason above.
  38936. case TOP_SELECTION_CHANGE:
  38937. if (skipSelectionChangeEvent) {
  38938. break;
  38939. }
  38940. // falls through
  38941. case TOP_KEY_DOWN:
  38942. case TOP_KEY_UP:
  38943. return constructSelectEvent(nativeEvent, nativeEventTarget);
  38944. }
  38945. return null;
  38946. }
  38947. };
  38948. /**
  38949. * Inject modules for resolving DOM hierarchy and plugin ordering.
  38950. */
  38951. injection.injectEventPluginOrder(DOMEventPluginOrder);
  38952. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  38953. /**
  38954. * Some important event plugins included by default (without having to require
  38955. * them).
  38956. */
  38957. injection.injectEventPluginsByName({
  38958. SimpleEventPlugin: SimpleEventPlugin,
  38959. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  38960. ChangeEventPlugin: ChangeEventPlugin,
  38961. SelectEventPlugin: SelectEventPlugin,
  38962. BeforeInputEventPlugin: BeforeInputEventPlugin
  38963. });
  38964. var didWarnSelectedSetOnOption = false;
  38965. var didWarnInvalidChild = false;
  38966. function flattenChildren(children) {
  38967. var content = '';
  38968. // Flatten children. We'll warn if they are invalid
  38969. // during validateProps() which runs for hydration too.
  38970. // Note that this would throw on non-element objects.
  38971. // Elements are stringified (which is normally irrelevant
  38972. // but matters for <fbt>).
  38973. React.Children.forEach(children, function (child) {
  38974. if (child == null) {
  38975. return;
  38976. }
  38977. content += child;
  38978. // Note: we don't warn about invalid children here.
  38979. // Instead, this is done separately below so that
  38980. // it happens during the hydration codepath too.
  38981. });
  38982. return content;
  38983. }
  38984. /**
  38985. * Implements an <option> host component that warns when `selected` is set.
  38986. */
  38987. function validateProps(element, props) {
  38988. {
  38989. // This mirrors the codepath above, but runs for hydration too.
  38990. // Warn about invalid children here so that client and hydration are consistent.
  38991. // TODO: this seems like it could cause a DEV-only throw for hydration
  38992. // if children contains a non-element object. We should try to avoid that.
  38993. if (typeof props.children === 'object' && props.children !== null) {
  38994. React.Children.forEach(props.children, function (child) {
  38995. if (child == null) {
  38996. return;
  38997. }
  38998. if (typeof child === 'string' || typeof child === 'number') {
  38999. return;
  39000. }
  39001. if (typeof child.type !== 'string') {
  39002. return;
  39003. }
  39004. if (!didWarnInvalidChild) {
  39005. didWarnInvalidChild = true;
  39006. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  39007. }
  39008. });
  39009. }
  39010. // TODO: Remove support for `selected` in <option>.
  39011. if (props.selected != null && !didWarnSelectedSetOnOption) {
  39012. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  39013. didWarnSelectedSetOnOption = true;
  39014. }
  39015. }
  39016. }
  39017. function postMountWrapper$1(element, props) {
  39018. // value="" should make a value attribute (#6219)
  39019. if (props.value != null) {
  39020. element.setAttribute('value', toString(getToStringValue(props.value)));
  39021. }
  39022. }
  39023. function getHostProps$1(element, props) {
  39024. var hostProps = _assign({ children: undefined }, props);
  39025. var content = flattenChildren(props.children);
  39026. if (content) {
  39027. hostProps.children = content;
  39028. }
  39029. return hostProps;
  39030. }
  39031. // TODO: direct imports like some-package/src/* are bad. Fix me.
  39032. var didWarnValueDefaultValue$1 = void 0;
  39033. {
  39034. didWarnValueDefaultValue$1 = false;
  39035. }
  39036. function getDeclarationErrorAddendum() {
  39037. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  39038. if (ownerName) {
  39039. return '\n\nCheck the render method of `' + ownerName + '`.';
  39040. }
  39041. return '';
  39042. }
  39043. var valuePropNames = ['value', 'defaultValue'];
  39044. /**
  39045. * Validation function for `value` and `defaultValue`.
  39046. */
  39047. function checkSelectPropTypes(props) {
  39048. ReactControlledValuePropTypes.checkPropTypes('select', props);
  39049. for (var i = 0; i < valuePropNames.length; i++) {
  39050. var propName = valuePropNames[i];
  39051. if (props[propName] == null) {
  39052. continue;
  39053. }
  39054. var isArray = Array.isArray(props[propName]);
  39055. if (props.multiple && !isArray) {
  39056. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  39057. } else if (!props.multiple && isArray) {
  39058. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  39059. }
  39060. }
  39061. }
  39062. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  39063. var options = node.options;
  39064. if (multiple) {
  39065. var selectedValues = propValue;
  39066. var selectedValue = {};
  39067. for (var i = 0; i < selectedValues.length; i++) {
  39068. // Prefix to avoid chaos with special keys.
  39069. selectedValue['$' + selectedValues[i]] = true;
  39070. }
  39071. for (var _i = 0; _i < options.length; _i++) {
  39072. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  39073. if (options[_i].selected !== selected) {
  39074. options[_i].selected = selected;
  39075. }
  39076. if (selected && setDefaultSelected) {
  39077. options[_i].defaultSelected = true;
  39078. }
  39079. }
  39080. } else {
  39081. // Do not set `select.value` as exact behavior isn't consistent across all
  39082. // browsers for all cases.
  39083. var _selectedValue = toString(getToStringValue(propValue));
  39084. var defaultSelected = null;
  39085. for (var _i2 = 0; _i2 < options.length; _i2++) {
  39086. if (options[_i2].value === _selectedValue) {
  39087. options[_i2].selected = true;
  39088. if (setDefaultSelected) {
  39089. options[_i2].defaultSelected = true;
  39090. }
  39091. return;
  39092. }
  39093. if (defaultSelected === null && !options[_i2].disabled) {
  39094. defaultSelected = options[_i2];
  39095. }
  39096. }
  39097. if (defaultSelected !== null) {
  39098. defaultSelected.selected = true;
  39099. }
  39100. }
  39101. }
  39102. /**
  39103. * Implements a <select> host component that allows optionally setting the
  39104. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  39105. * stringable. If `multiple` is true, the prop must be an array of stringables.
  39106. *
  39107. * If `value` is not supplied (or null/undefined), user actions that change the
  39108. * selected option will trigger updates to the rendered options.
  39109. *
  39110. * If it is supplied (and not null/undefined), the rendered options will not
  39111. * update in response to user actions. Instead, the `value` prop must change in
  39112. * order for the rendered options to update.
  39113. *
  39114. * If `defaultValue` is provided, any options with the supplied values will be
  39115. * selected.
  39116. */
  39117. function getHostProps$2(element, props) {
  39118. return _assign({}, props, {
  39119. value: undefined
  39120. });
  39121. }
  39122. function initWrapperState$1(element, props) {
  39123. var node = element;
  39124. {
  39125. checkSelectPropTypes(props);
  39126. }
  39127. node._wrapperState = {
  39128. wasMultiple: !!props.multiple
  39129. };
  39130. {
  39131. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  39132. 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');
  39133. didWarnValueDefaultValue$1 = true;
  39134. }
  39135. }
  39136. }
  39137. function postMountWrapper$2(element, props) {
  39138. var node = element;
  39139. node.multiple = !!props.multiple;
  39140. var value = props.value;
  39141. if (value != null) {
  39142. updateOptions(node, !!props.multiple, value, false);
  39143. } else if (props.defaultValue != null) {
  39144. updateOptions(node, !!props.multiple, props.defaultValue, true);
  39145. }
  39146. }
  39147. function postUpdateWrapper(element, props) {
  39148. var node = element;
  39149. var wasMultiple = node._wrapperState.wasMultiple;
  39150. node._wrapperState.wasMultiple = !!props.multiple;
  39151. var value = props.value;
  39152. if (value != null) {
  39153. updateOptions(node, !!props.multiple, value, false);
  39154. } else if (wasMultiple !== !!props.multiple) {
  39155. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  39156. if (props.defaultValue != null) {
  39157. updateOptions(node, !!props.multiple, props.defaultValue, true);
  39158. } else {
  39159. // Revert the select back to its default unselected state.
  39160. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  39161. }
  39162. }
  39163. }
  39164. function restoreControlledState$2(element, props) {
  39165. var node = element;
  39166. var value = props.value;
  39167. if (value != null) {
  39168. updateOptions(node, !!props.multiple, value, false);
  39169. }
  39170. }
  39171. var didWarnValDefaultVal = false;
  39172. /**
  39173. * Implements a <textarea> host component that allows setting `value`, and
  39174. * `defaultValue`. This differs from the traditional DOM API because value is
  39175. * usually set as PCDATA children.
  39176. *
  39177. * If `value` is not supplied (or null/undefined), user actions that affect the
  39178. * value will trigger updates to the element.
  39179. *
  39180. * If `value` is supplied (and not null/undefined), the rendered element will
  39181. * not trigger updates to the element. Instead, the `value` prop must change in
  39182. * order for the rendered element to be updated.
  39183. *
  39184. * The rendered element will be initialized with an empty value, the prop
  39185. * `defaultValue` if specified, or the children content (deprecated).
  39186. */
  39187. function getHostProps$3(element, props) {
  39188. var node = element;
  39189. !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;
  39190. // Always set children to the same thing. In IE9, the selection range will
  39191. // get reset if `textContent` is mutated. We could add a check in setTextContent
  39192. // to only set the value if/when the value differs from the node value (which would
  39193. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  39194. // solution. The value can be a boolean or object so that's why it's forced
  39195. // to be a string.
  39196. var hostProps = _assign({}, props, {
  39197. value: undefined,
  39198. defaultValue: undefined,
  39199. children: toString(node._wrapperState.initialValue)
  39200. });
  39201. return hostProps;
  39202. }
  39203. function initWrapperState$2(element, props) {
  39204. var node = element;
  39205. {
  39206. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  39207. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  39208. 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');
  39209. didWarnValDefaultVal = true;
  39210. }
  39211. }
  39212. var initialValue = props.value;
  39213. // Only bother fetching default value if we're going to use it
  39214. if (initialValue == null) {
  39215. var defaultValue = props.defaultValue;
  39216. // TODO (yungsters): Remove support for children content in <textarea>.
  39217. var children = props.children;
  39218. if (children != null) {
  39219. {
  39220. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  39221. }
  39222. !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
  39223. if (Array.isArray(children)) {
  39224. !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;
  39225. children = children[0];
  39226. }
  39227. defaultValue = children;
  39228. }
  39229. if (defaultValue == null) {
  39230. defaultValue = '';
  39231. }
  39232. initialValue = defaultValue;
  39233. }
  39234. node._wrapperState = {
  39235. initialValue: getToStringValue(initialValue)
  39236. };
  39237. }
  39238. function updateWrapper$1(element, props) {
  39239. var node = element;
  39240. var value = getToStringValue(props.value);
  39241. var defaultValue = getToStringValue(props.defaultValue);
  39242. if (value != null) {
  39243. // Cast `value` to a string to ensure the value is set correctly. While
  39244. // browsers typically do this as necessary, jsdom doesn't.
  39245. var newValue = toString(value);
  39246. // To avoid side effects (such as losing text selection), only set value if changed
  39247. if (newValue !== node.value) {
  39248. node.value = newValue;
  39249. }
  39250. if (props.defaultValue == null && node.defaultValue !== newValue) {
  39251. node.defaultValue = newValue;
  39252. }
  39253. }
  39254. if (defaultValue != null) {
  39255. node.defaultValue = toString(defaultValue);
  39256. }
  39257. }
  39258. function postMountWrapper$3(element, props) {
  39259. var node = element;
  39260. // This is in postMount because we need access to the DOM node, which is not
  39261. // available until after the component has mounted.
  39262. var textContent = node.textContent;
  39263. // Only set node.value if textContent is equal to the expected
  39264. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  39265. // will populate textContent as well.
  39266. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  39267. if (textContent === node._wrapperState.initialValue) {
  39268. node.value = textContent;
  39269. }
  39270. }
  39271. function restoreControlledState$3(element, props) {
  39272. // DOM component is still mounted; update
  39273. updateWrapper$1(element, props);
  39274. }
  39275. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  39276. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  39277. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  39278. var Namespaces = {
  39279. html: HTML_NAMESPACE$1,
  39280. mathml: MATH_NAMESPACE,
  39281. svg: SVG_NAMESPACE
  39282. };
  39283. // Assumes there is no parent namespace.
  39284. function getIntrinsicNamespace(type) {
  39285. switch (type) {
  39286. case 'svg':
  39287. return SVG_NAMESPACE;
  39288. case 'math':
  39289. return MATH_NAMESPACE;
  39290. default:
  39291. return HTML_NAMESPACE$1;
  39292. }
  39293. }
  39294. function getChildNamespace(parentNamespace, type) {
  39295. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  39296. // No (or default) parent namespace: potential entry point.
  39297. return getIntrinsicNamespace(type);
  39298. }
  39299. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  39300. // We're leaving SVG.
  39301. return HTML_NAMESPACE$1;
  39302. }
  39303. // By default, pass namespace below.
  39304. return parentNamespace;
  39305. }
  39306. /* globals MSApp */
  39307. /**
  39308. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  39309. */
  39310. var createMicrosoftUnsafeLocalFunction = function (func) {
  39311. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  39312. return function (arg0, arg1, arg2, arg3) {
  39313. MSApp.execUnsafeLocalFunction(function () {
  39314. return func(arg0, arg1, arg2, arg3);
  39315. });
  39316. };
  39317. } else {
  39318. return func;
  39319. }
  39320. };
  39321. // SVG temp container for IE lacking innerHTML
  39322. var reusableSVGContainer = void 0;
  39323. /**
  39324. * Set the innerHTML property of a node
  39325. *
  39326. * @param {DOMElement} node
  39327. * @param {string} html
  39328. * @internal
  39329. */
  39330. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  39331. // IE does not have innerHTML for SVG nodes, so instead we inject the
  39332. // new markup in a temp node and then move the child nodes across into
  39333. // the target node
  39334. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  39335. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  39336. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  39337. var svgNode = reusableSVGContainer.firstChild;
  39338. while (node.firstChild) {
  39339. node.removeChild(node.firstChild);
  39340. }
  39341. while (svgNode.firstChild) {
  39342. node.appendChild(svgNode.firstChild);
  39343. }
  39344. } else {
  39345. node.innerHTML = html;
  39346. }
  39347. });
  39348. /**
  39349. * Set the textContent property of a node. For text updates, it's faster
  39350. * to set the `nodeValue` of the Text node directly instead of using
  39351. * `.textContent` which will remove the existing node and create a new one.
  39352. *
  39353. * @param {DOMElement} node
  39354. * @param {string} text
  39355. * @internal
  39356. */
  39357. var setTextContent = function (node, text) {
  39358. if (text) {
  39359. var firstChild = node.firstChild;
  39360. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  39361. firstChild.nodeValue = text;
  39362. return;
  39363. }
  39364. }
  39365. node.textContent = text;
  39366. };
  39367. /**
  39368. * CSS properties which accept numbers but are not in units of "px".
  39369. */
  39370. var isUnitlessNumber = {
  39371. animationIterationCount: true,
  39372. borderImageOutset: true,
  39373. borderImageSlice: true,
  39374. borderImageWidth: true,
  39375. boxFlex: true,
  39376. boxFlexGroup: true,
  39377. boxOrdinalGroup: true,
  39378. columnCount: true,
  39379. columns: true,
  39380. flex: true,
  39381. flexGrow: true,
  39382. flexPositive: true,
  39383. flexShrink: true,
  39384. flexNegative: true,
  39385. flexOrder: true,
  39386. gridArea: true,
  39387. gridRow: true,
  39388. gridRowEnd: true,
  39389. gridRowSpan: true,
  39390. gridRowStart: true,
  39391. gridColumn: true,
  39392. gridColumnEnd: true,
  39393. gridColumnSpan: true,
  39394. gridColumnStart: true,
  39395. fontWeight: true,
  39396. lineClamp: true,
  39397. lineHeight: true,
  39398. opacity: true,
  39399. order: true,
  39400. orphans: true,
  39401. tabSize: true,
  39402. widows: true,
  39403. zIndex: true,
  39404. zoom: true,
  39405. // SVG-related properties
  39406. fillOpacity: true,
  39407. floodOpacity: true,
  39408. stopOpacity: true,
  39409. strokeDasharray: true,
  39410. strokeDashoffset: true,
  39411. strokeMiterlimit: true,
  39412. strokeOpacity: true,
  39413. strokeWidth: true
  39414. };
  39415. /**
  39416. * @param {string} prefix vendor-specific prefix, eg: Webkit
  39417. * @param {string} key style name, eg: transitionDuration
  39418. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  39419. * WebkitTransitionDuration
  39420. */
  39421. function prefixKey(prefix, key) {
  39422. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  39423. }
  39424. /**
  39425. * Support style names that may come passed in prefixed by adding permutations
  39426. * of vendor prefixes.
  39427. */
  39428. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  39429. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  39430. // infinite loop, because it iterates over the newly added props too.
  39431. Object.keys(isUnitlessNumber).forEach(function (prop) {
  39432. prefixes.forEach(function (prefix) {
  39433. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  39434. });
  39435. });
  39436. /**
  39437. * Convert a value into the proper css writable value. The style name `name`
  39438. * should be logical (no hyphens), as specified
  39439. * in `CSSProperty.isUnitlessNumber`.
  39440. *
  39441. * @param {string} name CSS property name such as `topMargin`.
  39442. * @param {*} value CSS property value such as `10px`.
  39443. * @return {string} Normalized style value with dimensions applied.
  39444. */
  39445. function dangerousStyleValue(name, value, isCustomProperty) {
  39446. // Note that we've removed escapeTextForBrowser() calls here since the
  39447. // whole string will be escaped when the attribute is injected into
  39448. // the markup. If you provide unsafe user data here they can inject
  39449. // arbitrary CSS which may be problematic (I couldn't repro this):
  39450. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  39451. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  39452. // This is not an XSS hole but instead a potential CSS injection issue
  39453. // which has lead to a greater discussion about how we're going to
  39454. // trust URLs moving forward. See #2115901
  39455. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  39456. if (isEmpty) {
  39457. return '';
  39458. }
  39459. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  39460. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  39461. }
  39462. return ('' + value).trim();
  39463. }
  39464. var uppercasePattern = /([A-Z])/g;
  39465. var msPattern = /^ms-/;
  39466. /**
  39467. * Hyphenates a camelcased CSS property name, for example:
  39468. *
  39469. * > hyphenateStyleName('backgroundColor')
  39470. * < "background-color"
  39471. * > hyphenateStyleName('MozTransition')
  39472. * < "-moz-transition"
  39473. * > hyphenateStyleName('msTransition')
  39474. * < "-ms-transition"
  39475. *
  39476. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  39477. * is converted to `-ms-`.
  39478. */
  39479. function hyphenateStyleName(name) {
  39480. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  39481. }
  39482. var warnValidStyle = function () {};
  39483. {
  39484. // 'msTransform' is correct, but the other prefixes should be capitalized
  39485. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  39486. var msPattern$1 = /^-ms-/;
  39487. var hyphenPattern = /-(.)/g;
  39488. // style values shouldn't contain a semicolon
  39489. var badStyleValueWithSemicolonPattern = /;\s*$/;
  39490. var warnedStyleNames = {};
  39491. var warnedStyleValues = {};
  39492. var warnedForNaNValue = false;
  39493. var warnedForInfinityValue = false;
  39494. var camelize = function (string) {
  39495. return string.replace(hyphenPattern, function (_, character) {
  39496. return character.toUpperCase();
  39497. });
  39498. };
  39499. var warnHyphenatedStyleName = function (name) {
  39500. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  39501. return;
  39502. }
  39503. warnedStyleNames[name] = true;
  39504. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  39505. // As Andi Smith suggests
  39506. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  39507. // is converted to lowercase `ms`.
  39508. camelize(name.replace(msPattern$1, 'ms-')));
  39509. };
  39510. var warnBadVendoredStyleName = function (name) {
  39511. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  39512. return;
  39513. }
  39514. warnedStyleNames[name] = true;
  39515. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  39516. };
  39517. var warnStyleValueWithSemicolon = function (name, value) {
  39518. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  39519. return;
  39520. }
  39521. warnedStyleValues[value] = true;
  39522. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  39523. };
  39524. var warnStyleValueIsNaN = function (name, value) {
  39525. if (warnedForNaNValue) {
  39526. return;
  39527. }
  39528. warnedForNaNValue = true;
  39529. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  39530. };
  39531. var warnStyleValueIsInfinity = function (name, value) {
  39532. if (warnedForInfinityValue) {
  39533. return;
  39534. }
  39535. warnedForInfinityValue = true;
  39536. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  39537. };
  39538. warnValidStyle = function (name, value) {
  39539. if (name.indexOf('-') > -1) {
  39540. warnHyphenatedStyleName(name);
  39541. } else if (badVendoredStyleNamePattern.test(name)) {
  39542. warnBadVendoredStyleName(name);
  39543. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  39544. warnStyleValueWithSemicolon(name, value);
  39545. }
  39546. if (typeof value === 'number') {
  39547. if (isNaN(value)) {
  39548. warnStyleValueIsNaN(name, value);
  39549. } else if (!isFinite(value)) {
  39550. warnStyleValueIsInfinity(name, value);
  39551. }
  39552. }
  39553. };
  39554. }
  39555. var warnValidStyle$1 = warnValidStyle;
  39556. /**
  39557. * Operations for dealing with CSS properties.
  39558. */
  39559. /**
  39560. * This creates a string that is expected to be equivalent to the style
  39561. * attribute generated by server-side rendering. It by-passes warnings and
  39562. * security checks so it's not safe to use this value for anything other than
  39563. * comparison. It is only used in DEV for SSR validation.
  39564. */
  39565. function createDangerousStringForStyles(styles) {
  39566. {
  39567. var serialized = '';
  39568. var delimiter = '';
  39569. for (var styleName in styles) {
  39570. if (!styles.hasOwnProperty(styleName)) {
  39571. continue;
  39572. }
  39573. var styleValue = styles[styleName];
  39574. if (styleValue != null) {
  39575. var isCustomProperty = styleName.indexOf('--') === 0;
  39576. serialized += delimiter + hyphenateStyleName(styleName) + ':';
  39577. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  39578. delimiter = ';';
  39579. }
  39580. }
  39581. return serialized || null;
  39582. }
  39583. }
  39584. /**
  39585. * Sets the value for multiple styles on a node. If a value is specified as
  39586. * '' (empty string), the corresponding style property will be unset.
  39587. *
  39588. * @param {DOMElement} node
  39589. * @param {object} styles
  39590. */
  39591. function setValueForStyles(node, styles) {
  39592. var style = node.style;
  39593. for (var styleName in styles) {
  39594. if (!styles.hasOwnProperty(styleName)) {
  39595. continue;
  39596. }
  39597. var isCustomProperty = styleName.indexOf('--') === 0;
  39598. {
  39599. if (!isCustomProperty) {
  39600. warnValidStyle$1(styleName, styles[styleName]);
  39601. }
  39602. }
  39603. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  39604. if (styleName === 'float') {
  39605. styleName = 'cssFloat';
  39606. }
  39607. if (isCustomProperty) {
  39608. style.setProperty(styleName, styleValue);
  39609. } else {
  39610. style[styleName] = styleValue;
  39611. }
  39612. }
  39613. }
  39614. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  39615. // those special-case tags.
  39616. var omittedCloseTags = {
  39617. area: true,
  39618. base: true,
  39619. br: true,
  39620. col: true,
  39621. embed: true,
  39622. hr: true,
  39623. img: true,
  39624. input: true,
  39625. keygen: true,
  39626. link: true,
  39627. meta: true,
  39628. param: true,
  39629. source: true,
  39630. track: true,
  39631. wbr: true
  39632. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  39633. };
  39634. // For HTML, certain tags cannot have children. This has the same purpose as
  39635. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  39636. var voidElementTags = _assign({
  39637. menuitem: true
  39638. }, omittedCloseTags);
  39639. // TODO: We can remove this if we add invariantWithStack()
  39640. // or add stack by default to invariants where possible.
  39641. var HTML$1 = '__html';
  39642. var ReactDebugCurrentFrame$2 = null;
  39643. {
  39644. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  39645. }
  39646. function assertValidProps(tag, props) {
  39647. if (!props) {
  39648. return;
  39649. }
  39650. // Note the use of `==` which checks for null or undefined.
  39651. if (voidElementTags[tag]) {
  39652. !(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;
  39653. }
  39654. if (props.dangerouslySetInnerHTML != null) {
  39655. !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;
  39656. !(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;
  39657. }
  39658. {
  39659. !(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;
  39660. }
  39661. !(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;
  39662. }
  39663. function isCustomComponent(tagName, props) {
  39664. if (tagName.indexOf('-') === -1) {
  39665. return typeof props.is === 'string';
  39666. }
  39667. switch (tagName) {
  39668. // These are reserved SVG and MathML elements.
  39669. // We don't mind this whitelist too much because we expect it to never grow.
  39670. // The alternative is to track the namespace in a few places which is convoluted.
  39671. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  39672. case 'annotation-xml':
  39673. case 'color-profile':
  39674. case 'font-face':
  39675. case 'font-face-src':
  39676. case 'font-face-uri':
  39677. case 'font-face-format':
  39678. case 'font-face-name':
  39679. case 'missing-glyph':
  39680. return false;
  39681. default:
  39682. return true;
  39683. }
  39684. }
  39685. // When adding attributes to the HTML or SVG whitelist, be sure to
  39686. // also add them to this module to ensure casing and incorrect name
  39687. // warnings.
  39688. var possibleStandardNames = {
  39689. // HTML
  39690. accept: 'accept',
  39691. acceptcharset: 'acceptCharset',
  39692. 'accept-charset': 'acceptCharset',
  39693. accesskey: 'accessKey',
  39694. action: 'action',
  39695. allowfullscreen: 'allowFullScreen',
  39696. alt: 'alt',
  39697. as: 'as',
  39698. async: 'async',
  39699. autocapitalize: 'autoCapitalize',
  39700. autocomplete: 'autoComplete',
  39701. autocorrect: 'autoCorrect',
  39702. autofocus: 'autoFocus',
  39703. autoplay: 'autoPlay',
  39704. autosave: 'autoSave',
  39705. capture: 'capture',
  39706. cellpadding: 'cellPadding',
  39707. cellspacing: 'cellSpacing',
  39708. challenge: 'challenge',
  39709. charset: 'charSet',
  39710. checked: 'checked',
  39711. children: 'children',
  39712. cite: 'cite',
  39713. class: 'className',
  39714. classid: 'classID',
  39715. classname: 'className',
  39716. cols: 'cols',
  39717. colspan: 'colSpan',
  39718. content: 'content',
  39719. contenteditable: 'contentEditable',
  39720. contextmenu: 'contextMenu',
  39721. controls: 'controls',
  39722. controlslist: 'controlsList',
  39723. coords: 'coords',
  39724. crossorigin: 'crossOrigin',
  39725. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  39726. data: 'data',
  39727. datetime: 'dateTime',
  39728. default: 'default',
  39729. defaultchecked: 'defaultChecked',
  39730. defaultvalue: 'defaultValue',
  39731. defer: 'defer',
  39732. dir: 'dir',
  39733. disabled: 'disabled',
  39734. download: 'download',
  39735. draggable: 'draggable',
  39736. enctype: 'encType',
  39737. for: 'htmlFor',
  39738. form: 'form',
  39739. formmethod: 'formMethod',
  39740. formaction: 'formAction',
  39741. formenctype: 'formEncType',
  39742. formnovalidate: 'formNoValidate',
  39743. formtarget: 'formTarget',
  39744. frameborder: 'frameBorder',
  39745. headers: 'headers',
  39746. height: 'height',
  39747. hidden: 'hidden',
  39748. high: 'high',
  39749. href: 'href',
  39750. hreflang: 'hrefLang',
  39751. htmlfor: 'htmlFor',
  39752. httpequiv: 'httpEquiv',
  39753. 'http-equiv': 'httpEquiv',
  39754. icon: 'icon',
  39755. id: 'id',
  39756. innerhtml: 'innerHTML',
  39757. inputmode: 'inputMode',
  39758. integrity: 'integrity',
  39759. is: 'is',
  39760. itemid: 'itemID',
  39761. itemprop: 'itemProp',
  39762. itemref: 'itemRef',
  39763. itemscope: 'itemScope',
  39764. itemtype: 'itemType',
  39765. keyparams: 'keyParams',
  39766. keytype: 'keyType',
  39767. kind: 'kind',
  39768. label: 'label',
  39769. lang: 'lang',
  39770. list: 'list',
  39771. loop: 'loop',
  39772. low: 'low',
  39773. manifest: 'manifest',
  39774. marginwidth: 'marginWidth',
  39775. marginheight: 'marginHeight',
  39776. max: 'max',
  39777. maxlength: 'maxLength',
  39778. media: 'media',
  39779. mediagroup: 'mediaGroup',
  39780. method: 'method',
  39781. min: 'min',
  39782. minlength: 'minLength',
  39783. multiple: 'multiple',
  39784. muted: 'muted',
  39785. name: 'name',
  39786. nomodule: 'noModule',
  39787. nonce: 'nonce',
  39788. novalidate: 'noValidate',
  39789. open: 'open',
  39790. optimum: 'optimum',
  39791. pattern: 'pattern',
  39792. placeholder: 'placeholder',
  39793. playsinline: 'playsInline',
  39794. poster: 'poster',
  39795. preload: 'preload',
  39796. profile: 'profile',
  39797. radiogroup: 'radioGroup',
  39798. readonly: 'readOnly',
  39799. referrerpolicy: 'referrerPolicy',
  39800. rel: 'rel',
  39801. required: 'required',
  39802. reversed: 'reversed',
  39803. role: 'role',
  39804. rows: 'rows',
  39805. rowspan: 'rowSpan',
  39806. sandbox: 'sandbox',
  39807. scope: 'scope',
  39808. scoped: 'scoped',
  39809. scrolling: 'scrolling',
  39810. seamless: 'seamless',
  39811. selected: 'selected',
  39812. shape: 'shape',
  39813. size: 'size',
  39814. sizes: 'sizes',
  39815. span: 'span',
  39816. spellcheck: 'spellCheck',
  39817. src: 'src',
  39818. srcdoc: 'srcDoc',
  39819. srclang: 'srcLang',
  39820. srcset: 'srcSet',
  39821. start: 'start',
  39822. step: 'step',
  39823. style: 'style',
  39824. summary: 'summary',
  39825. tabindex: 'tabIndex',
  39826. target: 'target',
  39827. title: 'title',
  39828. type: 'type',
  39829. usemap: 'useMap',
  39830. value: 'value',
  39831. width: 'width',
  39832. wmode: 'wmode',
  39833. wrap: 'wrap',
  39834. // SVG
  39835. about: 'about',
  39836. accentheight: 'accentHeight',
  39837. 'accent-height': 'accentHeight',
  39838. accumulate: 'accumulate',
  39839. additive: 'additive',
  39840. alignmentbaseline: 'alignmentBaseline',
  39841. 'alignment-baseline': 'alignmentBaseline',
  39842. allowreorder: 'allowReorder',
  39843. alphabetic: 'alphabetic',
  39844. amplitude: 'amplitude',
  39845. arabicform: 'arabicForm',
  39846. 'arabic-form': 'arabicForm',
  39847. ascent: 'ascent',
  39848. attributename: 'attributeName',
  39849. attributetype: 'attributeType',
  39850. autoreverse: 'autoReverse',
  39851. azimuth: 'azimuth',
  39852. basefrequency: 'baseFrequency',
  39853. baselineshift: 'baselineShift',
  39854. 'baseline-shift': 'baselineShift',
  39855. baseprofile: 'baseProfile',
  39856. bbox: 'bbox',
  39857. begin: 'begin',
  39858. bias: 'bias',
  39859. by: 'by',
  39860. calcmode: 'calcMode',
  39861. capheight: 'capHeight',
  39862. 'cap-height': 'capHeight',
  39863. clip: 'clip',
  39864. clippath: 'clipPath',
  39865. 'clip-path': 'clipPath',
  39866. clippathunits: 'clipPathUnits',
  39867. cliprule: 'clipRule',
  39868. 'clip-rule': 'clipRule',
  39869. color: 'color',
  39870. colorinterpolation: 'colorInterpolation',
  39871. 'color-interpolation': 'colorInterpolation',
  39872. colorinterpolationfilters: 'colorInterpolationFilters',
  39873. 'color-interpolation-filters': 'colorInterpolationFilters',
  39874. colorprofile: 'colorProfile',
  39875. 'color-profile': 'colorProfile',
  39876. colorrendering: 'colorRendering',
  39877. 'color-rendering': 'colorRendering',
  39878. contentscripttype: 'contentScriptType',
  39879. contentstyletype: 'contentStyleType',
  39880. cursor: 'cursor',
  39881. cx: 'cx',
  39882. cy: 'cy',
  39883. d: 'd',
  39884. datatype: 'datatype',
  39885. decelerate: 'decelerate',
  39886. descent: 'descent',
  39887. diffuseconstant: 'diffuseConstant',
  39888. direction: 'direction',
  39889. display: 'display',
  39890. divisor: 'divisor',
  39891. dominantbaseline: 'dominantBaseline',
  39892. 'dominant-baseline': 'dominantBaseline',
  39893. dur: 'dur',
  39894. dx: 'dx',
  39895. dy: 'dy',
  39896. edgemode: 'edgeMode',
  39897. elevation: 'elevation',
  39898. enablebackground: 'enableBackground',
  39899. 'enable-background': 'enableBackground',
  39900. end: 'end',
  39901. exponent: 'exponent',
  39902. externalresourcesrequired: 'externalResourcesRequired',
  39903. fill: 'fill',
  39904. fillopacity: 'fillOpacity',
  39905. 'fill-opacity': 'fillOpacity',
  39906. fillrule: 'fillRule',
  39907. 'fill-rule': 'fillRule',
  39908. filter: 'filter',
  39909. filterres: 'filterRes',
  39910. filterunits: 'filterUnits',
  39911. floodopacity: 'floodOpacity',
  39912. 'flood-opacity': 'floodOpacity',
  39913. floodcolor: 'floodColor',
  39914. 'flood-color': 'floodColor',
  39915. focusable: 'focusable',
  39916. fontfamily: 'fontFamily',
  39917. 'font-family': 'fontFamily',
  39918. fontsize: 'fontSize',
  39919. 'font-size': 'fontSize',
  39920. fontsizeadjust: 'fontSizeAdjust',
  39921. 'font-size-adjust': 'fontSizeAdjust',
  39922. fontstretch: 'fontStretch',
  39923. 'font-stretch': 'fontStretch',
  39924. fontstyle: 'fontStyle',
  39925. 'font-style': 'fontStyle',
  39926. fontvariant: 'fontVariant',
  39927. 'font-variant': 'fontVariant',
  39928. fontweight: 'fontWeight',
  39929. 'font-weight': 'fontWeight',
  39930. format: 'format',
  39931. from: 'from',
  39932. fx: 'fx',
  39933. fy: 'fy',
  39934. g1: 'g1',
  39935. g2: 'g2',
  39936. glyphname: 'glyphName',
  39937. 'glyph-name': 'glyphName',
  39938. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  39939. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  39940. glyphorientationvertical: 'glyphOrientationVertical',
  39941. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  39942. glyphref: 'glyphRef',
  39943. gradienttransform: 'gradientTransform',
  39944. gradientunits: 'gradientUnits',
  39945. hanging: 'hanging',
  39946. horizadvx: 'horizAdvX',
  39947. 'horiz-adv-x': 'horizAdvX',
  39948. horizoriginx: 'horizOriginX',
  39949. 'horiz-origin-x': 'horizOriginX',
  39950. ideographic: 'ideographic',
  39951. imagerendering: 'imageRendering',
  39952. 'image-rendering': 'imageRendering',
  39953. in2: 'in2',
  39954. in: 'in',
  39955. inlist: 'inlist',
  39956. intercept: 'intercept',
  39957. k1: 'k1',
  39958. k2: 'k2',
  39959. k3: 'k3',
  39960. k4: 'k4',
  39961. k: 'k',
  39962. kernelmatrix: 'kernelMatrix',
  39963. kernelunitlength: 'kernelUnitLength',
  39964. kerning: 'kerning',
  39965. keypoints: 'keyPoints',
  39966. keysplines: 'keySplines',
  39967. keytimes: 'keyTimes',
  39968. lengthadjust: 'lengthAdjust',
  39969. letterspacing: 'letterSpacing',
  39970. 'letter-spacing': 'letterSpacing',
  39971. lightingcolor: 'lightingColor',
  39972. 'lighting-color': 'lightingColor',
  39973. limitingconeangle: 'limitingConeAngle',
  39974. local: 'local',
  39975. markerend: 'markerEnd',
  39976. 'marker-end': 'markerEnd',
  39977. markerheight: 'markerHeight',
  39978. markermid: 'markerMid',
  39979. 'marker-mid': 'markerMid',
  39980. markerstart: 'markerStart',
  39981. 'marker-start': 'markerStart',
  39982. markerunits: 'markerUnits',
  39983. markerwidth: 'markerWidth',
  39984. mask: 'mask',
  39985. maskcontentunits: 'maskContentUnits',
  39986. maskunits: 'maskUnits',
  39987. mathematical: 'mathematical',
  39988. mode: 'mode',
  39989. numoctaves: 'numOctaves',
  39990. offset: 'offset',
  39991. opacity: 'opacity',
  39992. operator: 'operator',
  39993. order: 'order',
  39994. orient: 'orient',
  39995. orientation: 'orientation',
  39996. origin: 'origin',
  39997. overflow: 'overflow',
  39998. overlineposition: 'overlinePosition',
  39999. 'overline-position': 'overlinePosition',
  40000. overlinethickness: 'overlineThickness',
  40001. 'overline-thickness': 'overlineThickness',
  40002. paintorder: 'paintOrder',
  40003. 'paint-order': 'paintOrder',
  40004. panose1: 'panose1',
  40005. 'panose-1': 'panose1',
  40006. pathlength: 'pathLength',
  40007. patterncontentunits: 'patternContentUnits',
  40008. patterntransform: 'patternTransform',
  40009. patternunits: 'patternUnits',
  40010. pointerevents: 'pointerEvents',
  40011. 'pointer-events': 'pointerEvents',
  40012. points: 'points',
  40013. pointsatx: 'pointsAtX',
  40014. pointsaty: 'pointsAtY',
  40015. pointsatz: 'pointsAtZ',
  40016. prefix: 'prefix',
  40017. preservealpha: 'preserveAlpha',
  40018. preserveaspectratio: 'preserveAspectRatio',
  40019. primitiveunits: 'primitiveUnits',
  40020. property: 'property',
  40021. r: 'r',
  40022. radius: 'radius',
  40023. refx: 'refX',
  40024. refy: 'refY',
  40025. renderingintent: 'renderingIntent',
  40026. 'rendering-intent': 'renderingIntent',
  40027. repeatcount: 'repeatCount',
  40028. repeatdur: 'repeatDur',
  40029. requiredextensions: 'requiredExtensions',
  40030. requiredfeatures: 'requiredFeatures',
  40031. resource: 'resource',
  40032. restart: 'restart',
  40033. result: 'result',
  40034. results: 'results',
  40035. rotate: 'rotate',
  40036. rx: 'rx',
  40037. ry: 'ry',
  40038. scale: 'scale',
  40039. security: 'security',
  40040. seed: 'seed',
  40041. shaperendering: 'shapeRendering',
  40042. 'shape-rendering': 'shapeRendering',
  40043. slope: 'slope',
  40044. spacing: 'spacing',
  40045. specularconstant: 'specularConstant',
  40046. specularexponent: 'specularExponent',
  40047. speed: 'speed',
  40048. spreadmethod: 'spreadMethod',
  40049. startoffset: 'startOffset',
  40050. stddeviation: 'stdDeviation',
  40051. stemh: 'stemh',
  40052. stemv: 'stemv',
  40053. stitchtiles: 'stitchTiles',
  40054. stopcolor: 'stopColor',
  40055. 'stop-color': 'stopColor',
  40056. stopopacity: 'stopOpacity',
  40057. 'stop-opacity': 'stopOpacity',
  40058. strikethroughposition: 'strikethroughPosition',
  40059. 'strikethrough-position': 'strikethroughPosition',
  40060. strikethroughthickness: 'strikethroughThickness',
  40061. 'strikethrough-thickness': 'strikethroughThickness',
  40062. string: 'string',
  40063. stroke: 'stroke',
  40064. strokedasharray: 'strokeDasharray',
  40065. 'stroke-dasharray': 'strokeDasharray',
  40066. strokedashoffset: 'strokeDashoffset',
  40067. 'stroke-dashoffset': 'strokeDashoffset',
  40068. strokelinecap: 'strokeLinecap',
  40069. 'stroke-linecap': 'strokeLinecap',
  40070. strokelinejoin: 'strokeLinejoin',
  40071. 'stroke-linejoin': 'strokeLinejoin',
  40072. strokemiterlimit: 'strokeMiterlimit',
  40073. 'stroke-miterlimit': 'strokeMiterlimit',
  40074. strokewidth: 'strokeWidth',
  40075. 'stroke-width': 'strokeWidth',
  40076. strokeopacity: 'strokeOpacity',
  40077. 'stroke-opacity': 'strokeOpacity',
  40078. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  40079. suppresshydrationwarning: 'suppressHydrationWarning',
  40080. surfacescale: 'surfaceScale',
  40081. systemlanguage: 'systemLanguage',
  40082. tablevalues: 'tableValues',
  40083. targetx: 'targetX',
  40084. targety: 'targetY',
  40085. textanchor: 'textAnchor',
  40086. 'text-anchor': 'textAnchor',
  40087. textdecoration: 'textDecoration',
  40088. 'text-decoration': 'textDecoration',
  40089. textlength: 'textLength',
  40090. textrendering: 'textRendering',
  40091. 'text-rendering': 'textRendering',
  40092. to: 'to',
  40093. transform: 'transform',
  40094. typeof: 'typeof',
  40095. u1: 'u1',
  40096. u2: 'u2',
  40097. underlineposition: 'underlinePosition',
  40098. 'underline-position': 'underlinePosition',
  40099. underlinethickness: 'underlineThickness',
  40100. 'underline-thickness': 'underlineThickness',
  40101. unicode: 'unicode',
  40102. unicodebidi: 'unicodeBidi',
  40103. 'unicode-bidi': 'unicodeBidi',
  40104. unicoderange: 'unicodeRange',
  40105. 'unicode-range': 'unicodeRange',
  40106. unitsperem: 'unitsPerEm',
  40107. 'units-per-em': 'unitsPerEm',
  40108. unselectable: 'unselectable',
  40109. valphabetic: 'vAlphabetic',
  40110. 'v-alphabetic': 'vAlphabetic',
  40111. values: 'values',
  40112. vectoreffect: 'vectorEffect',
  40113. 'vector-effect': 'vectorEffect',
  40114. version: 'version',
  40115. vertadvy: 'vertAdvY',
  40116. 'vert-adv-y': 'vertAdvY',
  40117. vertoriginx: 'vertOriginX',
  40118. 'vert-origin-x': 'vertOriginX',
  40119. vertoriginy: 'vertOriginY',
  40120. 'vert-origin-y': 'vertOriginY',
  40121. vhanging: 'vHanging',
  40122. 'v-hanging': 'vHanging',
  40123. videographic: 'vIdeographic',
  40124. 'v-ideographic': 'vIdeographic',
  40125. viewbox: 'viewBox',
  40126. viewtarget: 'viewTarget',
  40127. visibility: 'visibility',
  40128. vmathematical: 'vMathematical',
  40129. 'v-mathematical': 'vMathematical',
  40130. vocab: 'vocab',
  40131. widths: 'widths',
  40132. wordspacing: 'wordSpacing',
  40133. 'word-spacing': 'wordSpacing',
  40134. writingmode: 'writingMode',
  40135. 'writing-mode': 'writingMode',
  40136. x1: 'x1',
  40137. x2: 'x2',
  40138. x: 'x',
  40139. xchannelselector: 'xChannelSelector',
  40140. xheight: 'xHeight',
  40141. 'x-height': 'xHeight',
  40142. xlinkactuate: 'xlinkActuate',
  40143. 'xlink:actuate': 'xlinkActuate',
  40144. xlinkarcrole: 'xlinkArcrole',
  40145. 'xlink:arcrole': 'xlinkArcrole',
  40146. xlinkhref: 'xlinkHref',
  40147. 'xlink:href': 'xlinkHref',
  40148. xlinkrole: 'xlinkRole',
  40149. 'xlink:role': 'xlinkRole',
  40150. xlinkshow: 'xlinkShow',
  40151. 'xlink:show': 'xlinkShow',
  40152. xlinktitle: 'xlinkTitle',
  40153. 'xlink:title': 'xlinkTitle',
  40154. xlinktype: 'xlinkType',
  40155. 'xlink:type': 'xlinkType',
  40156. xmlbase: 'xmlBase',
  40157. 'xml:base': 'xmlBase',
  40158. xmllang: 'xmlLang',
  40159. 'xml:lang': 'xmlLang',
  40160. xmlns: 'xmlns',
  40161. 'xml:space': 'xmlSpace',
  40162. xmlnsxlink: 'xmlnsXlink',
  40163. 'xmlns:xlink': 'xmlnsXlink',
  40164. xmlspace: 'xmlSpace',
  40165. y1: 'y1',
  40166. y2: 'y2',
  40167. y: 'y',
  40168. ychannelselector: 'yChannelSelector',
  40169. z: 'z',
  40170. zoomandpan: 'zoomAndPan'
  40171. };
  40172. var ariaProperties = {
  40173. 'aria-current': 0, // state
  40174. 'aria-details': 0,
  40175. 'aria-disabled': 0, // state
  40176. 'aria-hidden': 0, // state
  40177. 'aria-invalid': 0, // state
  40178. 'aria-keyshortcuts': 0,
  40179. 'aria-label': 0,
  40180. 'aria-roledescription': 0,
  40181. // Widget Attributes
  40182. 'aria-autocomplete': 0,
  40183. 'aria-checked': 0,
  40184. 'aria-expanded': 0,
  40185. 'aria-haspopup': 0,
  40186. 'aria-level': 0,
  40187. 'aria-modal': 0,
  40188. 'aria-multiline': 0,
  40189. 'aria-multiselectable': 0,
  40190. 'aria-orientation': 0,
  40191. 'aria-placeholder': 0,
  40192. 'aria-pressed': 0,
  40193. 'aria-readonly': 0,
  40194. 'aria-required': 0,
  40195. 'aria-selected': 0,
  40196. 'aria-sort': 0,
  40197. 'aria-valuemax': 0,
  40198. 'aria-valuemin': 0,
  40199. 'aria-valuenow': 0,
  40200. 'aria-valuetext': 0,
  40201. // Live Region Attributes
  40202. 'aria-atomic': 0,
  40203. 'aria-busy': 0,
  40204. 'aria-live': 0,
  40205. 'aria-relevant': 0,
  40206. // Drag-and-Drop Attributes
  40207. 'aria-dropeffect': 0,
  40208. 'aria-grabbed': 0,
  40209. // Relationship Attributes
  40210. 'aria-activedescendant': 0,
  40211. 'aria-colcount': 0,
  40212. 'aria-colindex': 0,
  40213. 'aria-colspan': 0,
  40214. 'aria-controls': 0,
  40215. 'aria-describedby': 0,
  40216. 'aria-errormessage': 0,
  40217. 'aria-flowto': 0,
  40218. 'aria-labelledby': 0,
  40219. 'aria-owns': 0,
  40220. 'aria-posinset': 0,
  40221. 'aria-rowcount': 0,
  40222. 'aria-rowindex': 0,
  40223. 'aria-rowspan': 0,
  40224. 'aria-setsize': 0
  40225. };
  40226. var warnedProperties = {};
  40227. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  40228. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  40229. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  40230. function validateProperty(tagName, name) {
  40231. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  40232. return true;
  40233. }
  40234. if (rARIACamel.test(name)) {
  40235. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  40236. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  40237. // If this is an aria-* attribute, but is not listed in the known DOM
  40238. // DOM properties, then it is an invalid aria-* attribute.
  40239. if (correctName == null) {
  40240. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  40241. warnedProperties[name] = true;
  40242. return true;
  40243. }
  40244. // aria-* attributes should be lowercase; suggest the lowercase version.
  40245. if (name !== correctName) {
  40246. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  40247. warnedProperties[name] = true;
  40248. return true;
  40249. }
  40250. }
  40251. if (rARIA.test(name)) {
  40252. var lowerCasedName = name.toLowerCase();
  40253. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  40254. // If this is an aria-* attribute, but is not listed in the known DOM
  40255. // DOM properties, then it is an invalid aria-* attribute.
  40256. if (standardName == null) {
  40257. warnedProperties[name] = true;
  40258. return false;
  40259. }
  40260. // aria-* attributes should be lowercase; suggest the lowercase version.
  40261. if (name !== standardName) {
  40262. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  40263. warnedProperties[name] = true;
  40264. return true;
  40265. }
  40266. }
  40267. return true;
  40268. }
  40269. function warnInvalidARIAProps(type, props) {
  40270. var invalidProps = [];
  40271. for (var key in props) {
  40272. var isValid = validateProperty(type, key);
  40273. if (!isValid) {
  40274. invalidProps.push(key);
  40275. }
  40276. }
  40277. var unknownPropString = invalidProps.map(function (prop) {
  40278. return '`' + prop + '`';
  40279. }).join(', ');
  40280. if (invalidProps.length === 1) {
  40281. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  40282. } else if (invalidProps.length > 1) {
  40283. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  40284. }
  40285. }
  40286. function validateProperties(type, props) {
  40287. if (isCustomComponent(type, props)) {
  40288. return;
  40289. }
  40290. warnInvalidARIAProps(type, props);
  40291. }
  40292. var didWarnValueNull = false;
  40293. function validateProperties$1(type, props) {
  40294. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  40295. return;
  40296. }
  40297. if (props != null && props.value === null && !didWarnValueNull) {
  40298. didWarnValueNull = true;
  40299. if (type === 'select' && props.multiple) {
  40300. 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);
  40301. } else {
  40302. 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);
  40303. }
  40304. }
  40305. }
  40306. var validateProperty$1 = function () {};
  40307. {
  40308. var warnedProperties$1 = {};
  40309. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  40310. var EVENT_NAME_REGEX = /^on./;
  40311. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  40312. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  40313. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  40314. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  40315. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  40316. return true;
  40317. }
  40318. var lowerCasedName = name.toLowerCase();
  40319. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  40320. 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.');
  40321. warnedProperties$1[name] = true;
  40322. return true;
  40323. }
  40324. // We can't rely on the event system being injected on the server.
  40325. if (canUseEventSystem) {
  40326. if (registrationNameModules.hasOwnProperty(name)) {
  40327. return true;
  40328. }
  40329. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  40330. if (registrationName != null) {
  40331. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  40332. warnedProperties$1[name] = true;
  40333. return true;
  40334. }
  40335. if (EVENT_NAME_REGEX.test(name)) {
  40336. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  40337. warnedProperties$1[name] = true;
  40338. return true;
  40339. }
  40340. } else if (EVENT_NAME_REGEX.test(name)) {
  40341. // If no event plugins have been injected, we are in a server environment.
  40342. // So we can't tell if the event name is correct for sure, but we can filter
  40343. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  40344. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  40345. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  40346. }
  40347. warnedProperties$1[name] = true;
  40348. return true;
  40349. }
  40350. // Let the ARIA attribute hook validate ARIA attributes
  40351. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  40352. return true;
  40353. }
  40354. if (lowerCasedName === 'innerhtml') {
  40355. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  40356. warnedProperties$1[name] = true;
  40357. return true;
  40358. }
  40359. if (lowerCasedName === 'aria') {
  40360. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  40361. warnedProperties$1[name] = true;
  40362. return true;
  40363. }
  40364. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  40365. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  40366. warnedProperties$1[name] = true;
  40367. return true;
  40368. }
  40369. if (typeof value === 'number' && isNaN(value)) {
  40370. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  40371. warnedProperties$1[name] = true;
  40372. return true;
  40373. }
  40374. var propertyInfo = getPropertyInfo(name);
  40375. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  40376. // Known attributes should match the casing specified in the property config.
  40377. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  40378. var standardName = possibleStandardNames[lowerCasedName];
  40379. if (standardName !== name) {
  40380. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  40381. warnedProperties$1[name] = true;
  40382. return true;
  40383. }
  40384. } else if (!isReserved && name !== lowerCasedName) {
  40385. // Unknown attributes should have lowercase casing since that's how they
  40386. // will be cased anyway with server rendering.
  40387. 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);
  40388. warnedProperties$1[name] = true;
  40389. return true;
  40390. }
  40391. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  40392. if (value) {
  40393. 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);
  40394. } else {
  40395. 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);
  40396. }
  40397. warnedProperties$1[name] = true;
  40398. return true;
  40399. }
  40400. // Now that we've validated casing, do not validate
  40401. // data types for reserved props
  40402. if (isReserved) {
  40403. return true;
  40404. }
  40405. // Warn when a known attribute is a bad type
  40406. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  40407. warnedProperties$1[name] = true;
  40408. return false;
  40409. }
  40410. // Warn when passing the strings 'false' or 'true' into a boolean prop
  40411. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  40412. 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);
  40413. warnedProperties$1[name] = true;
  40414. return true;
  40415. }
  40416. return true;
  40417. };
  40418. }
  40419. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  40420. var unknownProps = [];
  40421. for (var key in props) {
  40422. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  40423. if (!isValid) {
  40424. unknownProps.push(key);
  40425. }
  40426. }
  40427. var unknownPropString = unknownProps.map(function (prop) {
  40428. return '`' + prop + '`';
  40429. }).join(', ');
  40430. if (unknownProps.length === 1) {
  40431. 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);
  40432. } else if (unknownProps.length > 1) {
  40433. 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);
  40434. }
  40435. };
  40436. function validateProperties$2(type, props, canUseEventSystem) {
  40437. if (isCustomComponent(type, props)) {
  40438. return;
  40439. }
  40440. warnUnknownProperties(type, props, canUseEventSystem);
  40441. }
  40442. // TODO: direct imports like some-package/src/* are bad. Fix me.
  40443. var didWarnInvalidHydration = false;
  40444. var didWarnShadyDOM = false;
  40445. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  40446. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  40447. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  40448. var AUTOFOCUS = 'autoFocus';
  40449. var CHILDREN = 'children';
  40450. var STYLE$1 = 'style';
  40451. var HTML = '__html';
  40452. var HTML_NAMESPACE = Namespaces.html;
  40453. var warnedUnknownTags = void 0;
  40454. var suppressHydrationWarning = void 0;
  40455. var validatePropertiesInDevelopment = void 0;
  40456. var warnForTextDifference = void 0;
  40457. var warnForPropDifference = void 0;
  40458. var warnForExtraAttributes = void 0;
  40459. var warnForInvalidEventListener = void 0;
  40460. var canDiffStyleForHydrationWarning = void 0;
  40461. var normalizeMarkupForTextOrAttribute = void 0;
  40462. var normalizeHTML = void 0;
  40463. {
  40464. warnedUnknownTags = {
  40465. // Chrome is the only major browser not shipping <time>. But as of July
  40466. // 2017 it intends to ship it due to widespread usage. We intentionally
  40467. // *don't* warn for <time> even if it's unrecognized by Chrome because
  40468. // it soon will be, and many apps have been using it anyway.
  40469. time: true,
  40470. // There are working polyfills for <dialog>. Let people use it.
  40471. dialog: true,
  40472. // Electron ships a custom <webview> tag to display external web content in
  40473. // an isolated frame and process.
  40474. // This tag is not present in non Electron environments such as JSDom which
  40475. // is often used for testing purposes.
  40476. // @see https://electronjs.org/docs/api/webview-tag
  40477. webview: true
  40478. };
  40479. validatePropertiesInDevelopment = function (type, props) {
  40480. validateProperties(type, props);
  40481. validateProperties$1(type, props);
  40482. validateProperties$2(type, props, /* canUseEventSystem */true);
  40483. };
  40484. // IE 11 parses & normalizes the style attribute as opposed to other
  40485. // browsers. It adds spaces and sorts the properties in some
  40486. // non-alphabetical order. Handling that would require sorting CSS
  40487. // properties in the client & server versions or applying
  40488. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  40489. // normalized. Since it only affects IE, we're skipping style warnings
  40490. // in that browser completely in favor of doing all that work.
  40491. // See https://github.com/facebook/react/issues/11807
  40492. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  40493. // HTML parsing normalizes CR and CRLF to LF.
  40494. // It also can turn \u0000 into \uFFFD inside attributes.
  40495. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  40496. // If we have a mismatch, it might be caused by that.
  40497. // We will still patch up in this case but not fire the warning.
  40498. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  40499. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  40500. normalizeMarkupForTextOrAttribute = function (markup) {
  40501. var markupString = typeof markup === 'string' ? markup : '' + markup;
  40502. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  40503. };
  40504. warnForTextDifference = function (serverText, clientText) {
  40505. if (didWarnInvalidHydration) {
  40506. return;
  40507. }
  40508. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  40509. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  40510. if (normalizedServerText === normalizedClientText) {
  40511. return;
  40512. }
  40513. didWarnInvalidHydration = true;
  40514. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  40515. };
  40516. warnForPropDifference = function (propName, serverValue, clientValue) {
  40517. if (didWarnInvalidHydration) {
  40518. return;
  40519. }
  40520. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  40521. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  40522. if (normalizedServerValue === normalizedClientValue) {
  40523. return;
  40524. }
  40525. didWarnInvalidHydration = true;
  40526. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  40527. };
  40528. warnForExtraAttributes = function (attributeNames) {
  40529. if (didWarnInvalidHydration) {
  40530. return;
  40531. }
  40532. didWarnInvalidHydration = true;
  40533. var names = [];
  40534. attributeNames.forEach(function (name) {
  40535. names.push(name);
  40536. });
  40537. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  40538. };
  40539. warnForInvalidEventListener = function (registrationName, listener) {
  40540. if (listener === false) {
  40541. 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);
  40542. } else {
  40543. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  40544. }
  40545. };
  40546. // Parse the HTML and read it back to normalize the HTML string so that it
  40547. // can be used for comparison.
  40548. normalizeHTML = function (parent, html) {
  40549. // We could have created a separate document here to avoid
  40550. // re-initializing custom elements if they exist. But this breaks
  40551. // how <noscript> is being handled. So we use the same document.
  40552. // See the discussion in https://github.com/facebook/react/pull/11157.
  40553. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  40554. testElement.innerHTML = html;
  40555. return testElement.innerHTML;
  40556. };
  40557. }
  40558. function ensureListeningTo(rootContainerElement, registrationName) {
  40559. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  40560. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  40561. listenTo(registrationName, doc);
  40562. }
  40563. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  40564. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  40565. }
  40566. function noop() {}
  40567. function trapClickOnNonInteractiveElement(node) {
  40568. // Mobile Safari does not fire properly bubble click events on
  40569. // non-interactive elements, which means delegated click listeners do not
  40570. // fire. The workaround for this bug involves attaching an empty click
  40571. // listener on the target node.
  40572. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  40573. // Just set it using the onclick property so that we don't have to manage any
  40574. // bookkeeping for it. Not sure if we need to clear it when the listener is
  40575. // removed.
  40576. // TODO: Only do this for the relevant Safaris maybe?
  40577. node.onclick = noop;
  40578. }
  40579. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  40580. for (var propKey in nextProps) {
  40581. if (!nextProps.hasOwnProperty(propKey)) {
  40582. continue;
  40583. }
  40584. var nextProp = nextProps[propKey];
  40585. if (propKey === STYLE$1) {
  40586. {
  40587. if (nextProp) {
  40588. // Freeze the next style object so that we can assume it won't be
  40589. // mutated. We have already warned for this in the past.
  40590. Object.freeze(nextProp);
  40591. }
  40592. }
  40593. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  40594. setValueForStyles(domElement, nextProp);
  40595. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  40596. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  40597. if (nextHtml != null) {
  40598. setInnerHTML(domElement, nextHtml);
  40599. }
  40600. } else if (propKey === CHILDREN) {
  40601. if (typeof nextProp === 'string') {
  40602. // Avoid setting initial textContent when the text is empty. In IE11 setting
  40603. // textContent on a <textarea> will cause the placeholder to not
  40604. // show within the <textarea> until it has been focused and blurred again.
  40605. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  40606. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  40607. if (canSetTextContent) {
  40608. setTextContent(domElement, nextProp);
  40609. }
  40610. } else if (typeof nextProp === 'number') {
  40611. setTextContent(domElement, '' + nextProp);
  40612. }
  40613. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  40614. // Noop
  40615. } else if (propKey === AUTOFOCUS) {
  40616. // We polyfill it separately on the client during commit.
  40617. // We could have excluded it in the property list instead of
  40618. // adding a special case here, but then it wouldn't be emitted
  40619. // on server rendering (but we *do* want to emit it in SSR).
  40620. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  40621. if (nextProp != null) {
  40622. if ( true && typeof nextProp !== 'function') {
  40623. warnForInvalidEventListener(propKey, nextProp);
  40624. }
  40625. ensureListeningTo(rootContainerElement, propKey);
  40626. }
  40627. } else if (nextProp != null) {
  40628. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  40629. }
  40630. }
  40631. }
  40632. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  40633. // TODO: Handle wasCustomComponentTag
  40634. for (var i = 0; i < updatePayload.length; i += 2) {
  40635. var propKey = updatePayload[i];
  40636. var propValue = updatePayload[i + 1];
  40637. if (propKey === STYLE$1) {
  40638. setValueForStyles(domElement, propValue);
  40639. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  40640. setInnerHTML(domElement, propValue);
  40641. } else if (propKey === CHILDREN) {
  40642. setTextContent(domElement, propValue);
  40643. } else {
  40644. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  40645. }
  40646. }
  40647. }
  40648. function createElement(type, props, rootContainerElement, parentNamespace) {
  40649. var isCustomComponentTag = void 0;
  40650. // We create tags in the namespace of their parent container, except HTML
  40651. // tags get no namespace.
  40652. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  40653. var domElement = void 0;
  40654. var namespaceURI = parentNamespace;
  40655. if (namespaceURI === HTML_NAMESPACE) {
  40656. namespaceURI = getIntrinsicNamespace(type);
  40657. }
  40658. if (namespaceURI === HTML_NAMESPACE) {
  40659. {
  40660. isCustomComponentTag = isCustomComponent(type, props);
  40661. // Should this check be gated by parent namespace? Not sure we want to
  40662. // allow <SVG> or <mATH>.
  40663. !(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;
  40664. }
  40665. if (type === 'script') {
  40666. // Create the script via .innerHTML so its "parser-inserted" flag is
  40667. // set to true and it does not execute
  40668. var div = ownerDocument.createElement('div');
  40669. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  40670. // This is guaranteed to yield a script element.
  40671. var firstChild = div.firstChild;
  40672. domElement = div.removeChild(firstChild);
  40673. } else if (typeof props.is === 'string') {
  40674. // $FlowIssue `createElement` should be updated for Web Components
  40675. domElement = ownerDocument.createElement(type, { is: props.is });
  40676. } else {
  40677. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  40678. // See discussion in https://github.com/facebook/react/pull/6896
  40679. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  40680. domElement = ownerDocument.createElement(type);
  40681. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`
  40682. // attribute on `select`s needs to be added before `option`s are inserted. This prevents
  40683. // a bug where the `select` does not scroll to the correct option because singular
  40684. // `select` elements automatically pick the first item.
  40685. // See https://github.com/facebook/react/issues/13222
  40686. if (type === 'select' && props.multiple) {
  40687. var node = domElement;
  40688. node.multiple = true;
  40689. }
  40690. }
  40691. } else {
  40692. domElement = ownerDocument.createElementNS(namespaceURI, type);
  40693. }
  40694. {
  40695. if (namespaceURI === HTML_NAMESPACE) {
  40696. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  40697. warnedUnknownTags[type] = true;
  40698. 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);
  40699. }
  40700. }
  40701. }
  40702. return domElement;
  40703. }
  40704. function createTextNode(text, rootContainerElement) {
  40705. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  40706. }
  40707. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  40708. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  40709. {
  40710. validatePropertiesInDevelopment(tag, rawProps);
  40711. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  40712. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  40713. didWarnShadyDOM = true;
  40714. }
  40715. }
  40716. // TODO: Make sure that we check isMounted before firing any of these events.
  40717. var props = void 0;
  40718. switch (tag) {
  40719. case 'iframe':
  40720. case 'object':
  40721. trapBubbledEvent(TOP_LOAD, domElement);
  40722. props = rawProps;
  40723. break;
  40724. case 'video':
  40725. case 'audio':
  40726. // Create listener for each media event
  40727. for (var i = 0; i < mediaEventTypes.length; i++) {
  40728. trapBubbledEvent(mediaEventTypes[i], domElement);
  40729. }
  40730. props = rawProps;
  40731. break;
  40732. case 'source':
  40733. trapBubbledEvent(TOP_ERROR, domElement);
  40734. props = rawProps;
  40735. break;
  40736. case 'img':
  40737. case 'image':
  40738. case 'link':
  40739. trapBubbledEvent(TOP_ERROR, domElement);
  40740. trapBubbledEvent(TOP_LOAD, domElement);
  40741. props = rawProps;
  40742. break;
  40743. case 'form':
  40744. trapBubbledEvent(TOP_RESET, domElement);
  40745. trapBubbledEvent(TOP_SUBMIT, domElement);
  40746. props = rawProps;
  40747. break;
  40748. case 'details':
  40749. trapBubbledEvent(TOP_TOGGLE, domElement);
  40750. props = rawProps;
  40751. break;
  40752. case 'input':
  40753. initWrapperState(domElement, rawProps);
  40754. props = getHostProps(domElement, rawProps);
  40755. trapBubbledEvent(TOP_INVALID, domElement);
  40756. // For controlled components we always need to ensure we're listening
  40757. // to onChange. Even if there is no listener.
  40758. ensureListeningTo(rootContainerElement, 'onChange');
  40759. break;
  40760. case 'option':
  40761. validateProps(domElement, rawProps);
  40762. props = getHostProps$1(domElement, rawProps);
  40763. break;
  40764. case 'select':
  40765. initWrapperState$1(domElement, rawProps);
  40766. props = getHostProps$2(domElement, rawProps);
  40767. trapBubbledEvent(TOP_INVALID, domElement);
  40768. // For controlled components we always need to ensure we're listening
  40769. // to onChange. Even if there is no listener.
  40770. ensureListeningTo(rootContainerElement, 'onChange');
  40771. break;
  40772. case 'textarea':
  40773. initWrapperState$2(domElement, rawProps);
  40774. props = getHostProps$3(domElement, rawProps);
  40775. trapBubbledEvent(TOP_INVALID, domElement);
  40776. // For controlled components we always need to ensure we're listening
  40777. // to onChange. Even if there is no listener.
  40778. ensureListeningTo(rootContainerElement, 'onChange');
  40779. break;
  40780. default:
  40781. props = rawProps;
  40782. }
  40783. assertValidProps(tag, props);
  40784. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  40785. switch (tag) {
  40786. case 'input':
  40787. // TODO: Make sure we check if this is still unmounted or do any clean
  40788. // up necessary since we never stop tracking anymore.
  40789. track(domElement);
  40790. postMountWrapper(domElement, rawProps, false);
  40791. break;
  40792. case 'textarea':
  40793. // TODO: Make sure we check if this is still unmounted or do any clean
  40794. // up necessary since we never stop tracking anymore.
  40795. track(domElement);
  40796. postMountWrapper$3(domElement, rawProps);
  40797. break;
  40798. case 'option':
  40799. postMountWrapper$1(domElement, rawProps);
  40800. break;
  40801. case 'select':
  40802. postMountWrapper$2(domElement, rawProps);
  40803. break;
  40804. default:
  40805. if (typeof props.onClick === 'function') {
  40806. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  40807. trapClickOnNonInteractiveElement(domElement);
  40808. }
  40809. break;
  40810. }
  40811. }
  40812. // Calculate the diff between the two objects.
  40813. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  40814. {
  40815. validatePropertiesInDevelopment(tag, nextRawProps);
  40816. }
  40817. var updatePayload = null;
  40818. var lastProps = void 0;
  40819. var nextProps = void 0;
  40820. switch (tag) {
  40821. case 'input':
  40822. lastProps = getHostProps(domElement, lastRawProps);
  40823. nextProps = getHostProps(domElement, nextRawProps);
  40824. updatePayload = [];
  40825. break;
  40826. case 'option':
  40827. lastProps = getHostProps$1(domElement, lastRawProps);
  40828. nextProps = getHostProps$1(domElement, nextRawProps);
  40829. updatePayload = [];
  40830. break;
  40831. case 'select':
  40832. lastProps = getHostProps$2(domElement, lastRawProps);
  40833. nextProps = getHostProps$2(domElement, nextRawProps);
  40834. updatePayload = [];
  40835. break;
  40836. case 'textarea':
  40837. lastProps = getHostProps$3(domElement, lastRawProps);
  40838. nextProps = getHostProps$3(domElement, nextRawProps);
  40839. updatePayload = [];
  40840. break;
  40841. default:
  40842. lastProps = lastRawProps;
  40843. nextProps = nextRawProps;
  40844. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  40845. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  40846. trapClickOnNonInteractiveElement(domElement);
  40847. }
  40848. break;
  40849. }
  40850. assertValidProps(tag, nextProps);
  40851. var propKey = void 0;
  40852. var styleName = void 0;
  40853. var styleUpdates = null;
  40854. for (propKey in lastProps) {
  40855. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  40856. continue;
  40857. }
  40858. if (propKey === STYLE$1) {
  40859. var lastStyle = lastProps[propKey];
  40860. for (styleName in lastStyle) {
  40861. if (lastStyle.hasOwnProperty(styleName)) {
  40862. if (!styleUpdates) {
  40863. styleUpdates = {};
  40864. }
  40865. styleUpdates[styleName] = '';
  40866. }
  40867. }
  40868. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  40869. // Noop. This is handled by the clear text mechanism.
  40870. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  40871. // Noop
  40872. } else if (propKey === AUTOFOCUS) {
  40873. // Noop. It doesn't work on updates anyway.
  40874. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  40875. // This is a special case. If any listener updates we need to ensure
  40876. // that the "current" fiber pointer gets updated so we need a commit
  40877. // to update this element.
  40878. if (!updatePayload) {
  40879. updatePayload = [];
  40880. }
  40881. } else {
  40882. // For all other deleted properties we add it to the queue. We use
  40883. // the whitelist in the commit phase instead.
  40884. (updatePayload = updatePayload || []).push(propKey, null);
  40885. }
  40886. }
  40887. for (propKey in nextProps) {
  40888. var nextProp = nextProps[propKey];
  40889. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  40890. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  40891. continue;
  40892. }
  40893. if (propKey === STYLE$1) {
  40894. {
  40895. if (nextProp) {
  40896. // Freeze the next style object so that we can assume it won't be
  40897. // mutated. We have already warned for this in the past.
  40898. Object.freeze(nextProp);
  40899. }
  40900. }
  40901. if (lastProp) {
  40902. // Unset styles on `lastProp` but not on `nextProp`.
  40903. for (styleName in lastProp) {
  40904. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  40905. if (!styleUpdates) {
  40906. styleUpdates = {};
  40907. }
  40908. styleUpdates[styleName] = '';
  40909. }
  40910. }
  40911. // Update styles that changed since `lastProp`.
  40912. for (styleName in nextProp) {
  40913. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  40914. if (!styleUpdates) {
  40915. styleUpdates = {};
  40916. }
  40917. styleUpdates[styleName] = nextProp[styleName];
  40918. }
  40919. }
  40920. } else {
  40921. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  40922. if (!styleUpdates) {
  40923. if (!updatePayload) {
  40924. updatePayload = [];
  40925. }
  40926. updatePayload.push(propKey, styleUpdates);
  40927. }
  40928. styleUpdates = nextProp;
  40929. }
  40930. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  40931. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  40932. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  40933. if (nextHtml != null) {
  40934. if (lastHtml !== nextHtml) {
  40935. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  40936. }
  40937. } else {
  40938. // TODO: It might be too late to clear this if we have children
  40939. // inserted already.
  40940. }
  40941. } else if (propKey === CHILDREN) {
  40942. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  40943. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  40944. }
  40945. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  40946. // Noop
  40947. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  40948. if (nextProp != null) {
  40949. // We eagerly listen to this even though we haven't committed yet.
  40950. if ( true && typeof nextProp !== 'function') {
  40951. warnForInvalidEventListener(propKey, nextProp);
  40952. }
  40953. ensureListeningTo(rootContainerElement, propKey);
  40954. }
  40955. if (!updatePayload && lastProp !== nextProp) {
  40956. // This is a special case. If any listener updates we need to ensure
  40957. // that the "current" props pointer gets updated so we need a commit
  40958. // to update this element.
  40959. updatePayload = [];
  40960. }
  40961. } else {
  40962. // For any other property we always add it to the queue and then we
  40963. // filter it out using the whitelist during the commit.
  40964. (updatePayload = updatePayload || []).push(propKey, nextProp);
  40965. }
  40966. }
  40967. if (styleUpdates) {
  40968. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  40969. }
  40970. return updatePayload;
  40971. }
  40972. // Apply the diff.
  40973. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  40974. // Update checked *before* name.
  40975. // In the middle of an update, it is possible to have multiple checked.
  40976. // When a checked radio tries to change name, browser makes another radio's checked false.
  40977. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  40978. updateChecked(domElement, nextRawProps);
  40979. }
  40980. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  40981. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  40982. // Apply the diff.
  40983. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  40984. // TODO: Ensure that an update gets scheduled if any of the special props
  40985. // changed.
  40986. switch (tag) {
  40987. case 'input':
  40988. // Update the wrapper around inputs *after* updating props. This has to
  40989. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  40990. // raise warnings and prevent the new value from being assigned.
  40991. updateWrapper(domElement, nextRawProps);
  40992. break;
  40993. case 'textarea':
  40994. updateWrapper$1(domElement, nextRawProps);
  40995. break;
  40996. case 'select':
  40997. // <select> value update needs to occur after <option> children
  40998. // reconciliation
  40999. postUpdateWrapper(domElement, nextRawProps);
  41000. break;
  41001. }
  41002. }
  41003. function getPossibleStandardName(propName) {
  41004. {
  41005. var lowerCasedName = propName.toLowerCase();
  41006. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  41007. return null;
  41008. }
  41009. return possibleStandardNames[lowerCasedName] || null;
  41010. }
  41011. return null;
  41012. }
  41013. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  41014. var isCustomComponentTag = void 0;
  41015. var extraAttributeNames = void 0;
  41016. {
  41017. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  41018. isCustomComponentTag = isCustomComponent(tag, rawProps);
  41019. validatePropertiesInDevelopment(tag, rawProps);
  41020. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  41021. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  41022. didWarnShadyDOM = true;
  41023. }
  41024. }
  41025. // TODO: Make sure that we check isMounted before firing any of these events.
  41026. switch (tag) {
  41027. case 'iframe':
  41028. case 'object':
  41029. trapBubbledEvent(TOP_LOAD, domElement);
  41030. break;
  41031. case 'video':
  41032. case 'audio':
  41033. // Create listener for each media event
  41034. for (var i = 0; i < mediaEventTypes.length; i++) {
  41035. trapBubbledEvent(mediaEventTypes[i], domElement);
  41036. }
  41037. break;
  41038. case 'source':
  41039. trapBubbledEvent(TOP_ERROR, domElement);
  41040. break;
  41041. case 'img':
  41042. case 'image':
  41043. case 'link':
  41044. trapBubbledEvent(TOP_ERROR, domElement);
  41045. trapBubbledEvent(TOP_LOAD, domElement);
  41046. break;
  41047. case 'form':
  41048. trapBubbledEvent(TOP_RESET, domElement);
  41049. trapBubbledEvent(TOP_SUBMIT, domElement);
  41050. break;
  41051. case 'details':
  41052. trapBubbledEvent(TOP_TOGGLE, domElement);
  41053. break;
  41054. case 'input':
  41055. initWrapperState(domElement, rawProps);
  41056. trapBubbledEvent(TOP_INVALID, domElement);
  41057. // For controlled components we always need to ensure we're listening
  41058. // to onChange. Even if there is no listener.
  41059. ensureListeningTo(rootContainerElement, 'onChange');
  41060. break;
  41061. case 'option':
  41062. validateProps(domElement, rawProps);
  41063. break;
  41064. case 'select':
  41065. initWrapperState$1(domElement, rawProps);
  41066. trapBubbledEvent(TOP_INVALID, domElement);
  41067. // For controlled components we always need to ensure we're listening
  41068. // to onChange. Even if there is no listener.
  41069. ensureListeningTo(rootContainerElement, 'onChange');
  41070. break;
  41071. case 'textarea':
  41072. initWrapperState$2(domElement, rawProps);
  41073. trapBubbledEvent(TOP_INVALID, domElement);
  41074. // For controlled components we always need to ensure we're listening
  41075. // to onChange. Even if there is no listener.
  41076. ensureListeningTo(rootContainerElement, 'onChange');
  41077. break;
  41078. }
  41079. assertValidProps(tag, rawProps);
  41080. {
  41081. extraAttributeNames = new Set();
  41082. var attributes = domElement.attributes;
  41083. for (var _i = 0; _i < attributes.length; _i++) {
  41084. var name = attributes[_i].name.toLowerCase();
  41085. switch (name) {
  41086. // Built-in SSR attribute is whitelisted
  41087. case 'data-reactroot':
  41088. break;
  41089. // Controlled attributes are not validated
  41090. // TODO: Only ignore them on controlled tags.
  41091. case 'value':
  41092. break;
  41093. case 'checked':
  41094. break;
  41095. case 'selected':
  41096. break;
  41097. default:
  41098. // Intentionally use the original name.
  41099. // See discussion in https://github.com/facebook/react/pull/10676.
  41100. extraAttributeNames.add(attributes[_i].name);
  41101. }
  41102. }
  41103. }
  41104. var updatePayload = null;
  41105. for (var propKey in rawProps) {
  41106. if (!rawProps.hasOwnProperty(propKey)) {
  41107. continue;
  41108. }
  41109. var nextProp = rawProps[propKey];
  41110. if (propKey === CHILDREN) {
  41111. // For text content children we compare against textContent. This
  41112. // might match additional HTML that is hidden when we read it using
  41113. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  41114. // satisfies our requirement. Our requirement is not to produce perfect
  41115. // HTML and attributes. Ideally we should preserve structure but it's
  41116. // ok not to if the visible content is still enough to indicate what
  41117. // even listeners these nodes might be wired up to.
  41118. // TODO: Warn if there is more than a single textNode as a child.
  41119. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  41120. if (typeof nextProp === 'string') {
  41121. if (domElement.textContent !== nextProp) {
  41122. if ( true && !suppressHydrationWarning) {
  41123. warnForTextDifference(domElement.textContent, nextProp);
  41124. }
  41125. updatePayload = [CHILDREN, nextProp];
  41126. }
  41127. } else if (typeof nextProp === 'number') {
  41128. if (domElement.textContent !== '' + nextProp) {
  41129. if ( true && !suppressHydrationWarning) {
  41130. warnForTextDifference(domElement.textContent, nextProp);
  41131. }
  41132. updatePayload = [CHILDREN, '' + nextProp];
  41133. }
  41134. }
  41135. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  41136. if (nextProp != null) {
  41137. if ( true && typeof nextProp !== 'function') {
  41138. warnForInvalidEventListener(propKey, nextProp);
  41139. }
  41140. ensureListeningTo(rootContainerElement, propKey);
  41141. }
  41142. } else if ( true &&
  41143. // Convince Flow we've calculated it (it's DEV-only in this method.)
  41144. typeof isCustomComponentTag === 'boolean') {
  41145. // Validate that the properties correspond to their expected values.
  41146. var serverValue = void 0;
  41147. var propertyInfo = getPropertyInfo(propKey);
  41148. if (suppressHydrationWarning) {
  41149. // Don't bother comparing. We're ignoring all these warnings.
  41150. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  41151. // Controlled attributes are not validated
  41152. // TODO: Only ignore them on controlled tags.
  41153. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  41154. // Noop
  41155. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  41156. var serverHTML = domElement.innerHTML;
  41157. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  41158. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  41159. if (expectedHTML !== serverHTML) {
  41160. warnForPropDifference(propKey, serverHTML, expectedHTML);
  41161. }
  41162. } else if (propKey === STYLE$1) {
  41163. // $FlowFixMe - Should be inferred as not undefined.
  41164. extraAttributeNames.delete(propKey);
  41165. if (canDiffStyleForHydrationWarning) {
  41166. var expectedStyle = createDangerousStringForStyles(nextProp);
  41167. serverValue = domElement.getAttribute('style');
  41168. if (expectedStyle !== serverValue) {
  41169. warnForPropDifference(propKey, serverValue, expectedStyle);
  41170. }
  41171. }
  41172. } else if (isCustomComponentTag) {
  41173. // $FlowFixMe - Should be inferred as not undefined.
  41174. extraAttributeNames.delete(propKey.toLowerCase());
  41175. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  41176. if (nextProp !== serverValue) {
  41177. warnForPropDifference(propKey, serverValue, nextProp);
  41178. }
  41179. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  41180. var isMismatchDueToBadCasing = false;
  41181. if (propertyInfo !== null) {
  41182. // $FlowFixMe - Should be inferred as not undefined.
  41183. extraAttributeNames.delete(propertyInfo.attributeName);
  41184. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  41185. } else {
  41186. var ownNamespace = parentNamespace;
  41187. if (ownNamespace === HTML_NAMESPACE) {
  41188. ownNamespace = getIntrinsicNamespace(tag);
  41189. }
  41190. if (ownNamespace === HTML_NAMESPACE) {
  41191. // $FlowFixMe - Should be inferred as not undefined.
  41192. extraAttributeNames.delete(propKey.toLowerCase());
  41193. } else {
  41194. var standardName = getPossibleStandardName(propKey);
  41195. if (standardName !== null && standardName !== propKey) {
  41196. // If an SVG prop is supplied with bad casing, it will
  41197. // be successfully parsed from HTML, but will produce a mismatch
  41198. // (and would be incorrectly rendered on the client).
  41199. // However, we already warn about bad casing elsewhere.
  41200. // So we'll skip the misleading extra mismatch warning in this case.
  41201. isMismatchDueToBadCasing = true;
  41202. // $FlowFixMe - Should be inferred as not undefined.
  41203. extraAttributeNames.delete(standardName);
  41204. }
  41205. // $FlowFixMe - Should be inferred as not undefined.
  41206. extraAttributeNames.delete(propKey);
  41207. }
  41208. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  41209. }
  41210. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  41211. warnForPropDifference(propKey, serverValue, nextProp);
  41212. }
  41213. }
  41214. }
  41215. }
  41216. {
  41217. // $FlowFixMe - Should be inferred as not undefined.
  41218. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  41219. // $FlowFixMe - Should be inferred as not undefined.
  41220. warnForExtraAttributes(extraAttributeNames);
  41221. }
  41222. }
  41223. switch (tag) {
  41224. case 'input':
  41225. // TODO: Make sure we check if this is still unmounted or do any clean
  41226. // up necessary since we never stop tracking anymore.
  41227. track(domElement);
  41228. postMountWrapper(domElement, rawProps, true);
  41229. break;
  41230. case 'textarea':
  41231. // TODO: Make sure we check if this is still unmounted or do any clean
  41232. // up necessary since we never stop tracking anymore.
  41233. track(domElement);
  41234. postMountWrapper$3(domElement, rawProps);
  41235. break;
  41236. case 'select':
  41237. case 'option':
  41238. // For input and textarea we current always set the value property at
  41239. // post mount to force it to diverge from attributes. However, for
  41240. // option and select we don't quite do the same thing and select
  41241. // is not resilient to the DOM state changing so we don't do that here.
  41242. // TODO: Consider not doing this for input and textarea.
  41243. break;
  41244. default:
  41245. if (typeof rawProps.onClick === 'function') {
  41246. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  41247. trapClickOnNonInteractiveElement(domElement);
  41248. }
  41249. break;
  41250. }
  41251. return updatePayload;
  41252. }
  41253. function diffHydratedText(textNode, text) {
  41254. var isDifferent = textNode.nodeValue !== text;
  41255. return isDifferent;
  41256. }
  41257. function warnForUnmatchedText(textNode, text) {
  41258. {
  41259. warnForTextDifference(textNode.nodeValue, text);
  41260. }
  41261. }
  41262. function warnForDeletedHydratableElement(parentNode, child) {
  41263. {
  41264. if (didWarnInvalidHydration) {
  41265. return;
  41266. }
  41267. didWarnInvalidHydration = true;
  41268. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  41269. }
  41270. }
  41271. function warnForDeletedHydratableText(parentNode, child) {
  41272. {
  41273. if (didWarnInvalidHydration) {
  41274. return;
  41275. }
  41276. didWarnInvalidHydration = true;
  41277. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  41278. }
  41279. }
  41280. function warnForInsertedHydratedElement(parentNode, tag, props) {
  41281. {
  41282. if (didWarnInvalidHydration) {
  41283. return;
  41284. }
  41285. didWarnInvalidHydration = true;
  41286. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  41287. }
  41288. }
  41289. function warnForInsertedHydratedText(parentNode, text) {
  41290. {
  41291. if (text === '') {
  41292. // We expect to insert empty text nodes since they're not represented in
  41293. // the HTML.
  41294. // TODO: Remove this special case if we can just avoid inserting empty
  41295. // text nodes.
  41296. return;
  41297. }
  41298. if (didWarnInvalidHydration) {
  41299. return;
  41300. }
  41301. didWarnInvalidHydration = true;
  41302. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  41303. }
  41304. }
  41305. function restoreControlledState$1(domElement, tag, props) {
  41306. switch (tag) {
  41307. case 'input':
  41308. restoreControlledState(domElement, props);
  41309. return;
  41310. case 'textarea':
  41311. restoreControlledState$3(domElement, props);
  41312. return;
  41313. case 'select':
  41314. restoreControlledState$2(domElement, props);
  41315. return;
  41316. }
  41317. }
  41318. // TODO: direct imports like some-package/src/* are bad. Fix me.
  41319. var validateDOMNesting = function () {};
  41320. var updatedAncestorInfo = function () {};
  41321. {
  41322. // This validation code was written based on the HTML5 parsing spec:
  41323. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  41324. //
  41325. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  41326. // not clear what practical benefit doing so provides); instead, we warn only
  41327. // for cases where the parser will give a parse tree differing from what React
  41328. // intended. For example, <b><div></div></b> is invalid but we don't warn
  41329. // because it still parses correctly; we do warn for other cases like nested
  41330. // <p> tags where the beginning of the second element implicitly closes the
  41331. // first, causing a confusing mess.
  41332. // https://html.spec.whatwg.org/multipage/syntax.html#special
  41333. 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'];
  41334. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  41335. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  41336. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  41337. // TODO: Distinguish by namespace here -- for <title>, including it here
  41338. // errs on the side of fewer warnings
  41339. 'foreignObject', 'desc', 'title'];
  41340. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  41341. var buttonScopeTags = inScopeTags.concat(['button']);
  41342. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  41343. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  41344. var emptyAncestorInfo = {
  41345. current: null,
  41346. formTag: null,
  41347. aTagInScope: null,
  41348. buttonTagInScope: null,
  41349. nobrTagInScope: null,
  41350. pTagInButtonScope: null,
  41351. listItemTagAutoclosing: null,
  41352. dlItemTagAutoclosing: null
  41353. };
  41354. updatedAncestorInfo = function (oldInfo, tag) {
  41355. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  41356. var info = { tag: tag };
  41357. if (inScopeTags.indexOf(tag) !== -1) {
  41358. ancestorInfo.aTagInScope = null;
  41359. ancestorInfo.buttonTagInScope = null;
  41360. ancestorInfo.nobrTagInScope = null;
  41361. }
  41362. if (buttonScopeTags.indexOf(tag) !== -1) {
  41363. ancestorInfo.pTagInButtonScope = null;
  41364. }
  41365. // See rules for 'li', 'dd', 'dt' start tags in
  41366. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  41367. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  41368. ancestorInfo.listItemTagAutoclosing = null;
  41369. ancestorInfo.dlItemTagAutoclosing = null;
  41370. }
  41371. ancestorInfo.current = info;
  41372. if (tag === 'form') {
  41373. ancestorInfo.formTag = info;
  41374. }
  41375. if (tag === 'a') {
  41376. ancestorInfo.aTagInScope = info;
  41377. }
  41378. if (tag === 'button') {
  41379. ancestorInfo.buttonTagInScope = info;
  41380. }
  41381. if (tag === 'nobr') {
  41382. ancestorInfo.nobrTagInScope = info;
  41383. }
  41384. if (tag === 'p') {
  41385. ancestorInfo.pTagInButtonScope = info;
  41386. }
  41387. if (tag === 'li') {
  41388. ancestorInfo.listItemTagAutoclosing = info;
  41389. }
  41390. if (tag === 'dd' || tag === 'dt') {
  41391. ancestorInfo.dlItemTagAutoclosing = info;
  41392. }
  41393. return ancestorInfo;
  41394. };
  41395. /**
  41396. * Returns whether
  41397. */
  41398. var isTagValidWithParent = function (tag, parentTag) {
  41399. // First, let's check if we're in an unusual parsing mode...
  41400. switch (parentTag) {
  41401. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  41402. case 'select':
  41403. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  41404. case 'optgroup':
  41405. return tag === 'option' || tag === '#text';
  41406. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  41407. // but
  41408. case 'option':
  41409. return tag === '#text';
  41410. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  41411. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  41412. // No special behavior since these rules fall back to "in body" mode for
  41413. // all except special table nodes which cause bad parsing behavior anyway.
  41414. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  41415. case 'tr':
  41416. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  41417. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  41418. case 'tbody':
  41419. case 'thead':
  41420. case 'tfoot':
  41421. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  41422. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  41423. case 'colgroup':
  41424. return tag === 'col' || tag === 'template';
  41425. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  41426. case 'table':
  41427. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  41428. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  41429. case 'head':
  41430. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  41431. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  41432. case 'html':
  41433. return tag === 'head' || tag === 'body';
  41434. case '#document':
  41435. return tag === 'html';
  41436. }
  41437. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  41438. // where the parsing rules cause implicit opens or closes to be added.
  41439. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  41440. switch (tag) {
  41441. case 'h1':
  41442. case 'h2':
  41443. case 'h3':
  41444. case 'h4':
  41445. case 'h5':
  41446. case 'h6':
  41447. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  41448. case 'rp':
  41449. case 'rt':
  41450. return impliedEndTags.indexOf(parentTag) === -1;
  41451. case 'body':
  41452. case 'caption':
  41453. case 'col':
  41454. case 'colgroup':
  41455. case 'frame':
  41456. case 'head':
  41457. case 'html':
  41458. case 'tbody':
  41459. case 'td':
  41460. case 'tfoot':
  41461. case 'th':
  41462. case 'thead':
  41463. case 'tr':
  41464. // These tags are only valid with a few parents that have special child
  41465. // parsing rules -- if we're down here, then none of those matched and
  41466. // so we allow it only if we don't know what the parent is, as all other
  41467. // cases are invalid.
  41468. return parentTag == null;
  41469. }
  41470. return true;
  41471. };
  41472. /**
  41473. * Returns whether
  41474. */
  41475. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  41476. switch (tag) {
  41477. case 'address':
  41478. case 'article':
  41479. case 'aside':
  41480. case 'blockquote':
  41481. case 'center':
  41482. case 'details':
  41483. case 'dialog':
  41484. case 'dir':
  41485. case 'div':
  41486. case 'dl':
  41487. case 'fieldset':
  41488. case 'figcaption':
  41489. case 'figure':
  41490. case 'footer':
  41491. case 'header':
  41492. case 'hgroup':
  41493. case 'main':
  41494. case 'menu':
  41495. case 'nav':
  41496. case 'ol':
  41497. case 'p':
  41498. case 'section':
  41499. case 'summary':
  41500. case 'ul':
  41501. case 'pre':
  41502. case 'listing':
  41503. case 'table':
  41504. case 'hr':
  41505. case 'xmp':
  41506. case 'h1':
  41507. case 'h2':
  41508. case 'h3':
  41509. case 'h4':
  41510. case 'h5':
  41511. case 'h6':
  41512. return ancestorInfo.pTagInButtonScope;
  41513. case 'form':
  41514. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  41515. case 'li':
  41516. return ancestorInfo.listItemTagAutoclosing;
  41517. case 'dd':
  41518. case 'dt':
  41519. return ancestorInfo.dlItemTagAutoclosing;
  41520. case 'button':
  41521. return ancestorInfo.buttonTagInScope;
  41522. case 'a':
  41523. // Spec says something about storing a list of markers, but it sounds
  41524. // equivalent to this check.
  41525. return ancestorInfo.aTagInScope;
  41526. case 'nobr':
  41527. return ancestorInfo.nobrTagInScope;
  41528. }
  41529. return null;
  41530. };
  41531. var didWarn = {};
  41532. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  41533. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  41534. var parentInfo = ancestorInfo.current;
  41535. var parentTag = parentInfo && parentInfo.tag;
  41536. if (childText != null) {
  41537. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  41538. childTag = '#text';
  41539. }
  41540. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  41541. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  41542. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  41543. if (!invalidParentOrAncestor) {
  41544. return;
  41545. }
  41546. var ancestorTag = invalidParentOrAncestor.tag;
  41547. var addendum = getCurrentFiberStackInDev();
  41548. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  41549. if (didWarn[warnKey]) {
  41550. return;
  41551. }
  41552. didWarn[warnKey] = true;
  41553. var tagDisplayName = childTag;
  41554. var whitespaceInfo = '';
  41555. if (childTag === '#text') {
  41556. if (/\S/.test(childText)) {
  41557. tagDisplayName = 'Text nodes';
  41558. } else {
  41559. tagDisplayName = 'Whitespace text nodes';
  41560. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  41561. }
  41562. } else {
  41563. tagDisplayName = '<' + childTag + '>';
  41564. }
  41565. if (invalidParent) {
  41566. var info = '';
  41567. if (ancestorTag === 'table' && childTag === 'tr') {
  41568. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  41569. }
  41570. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  41571. } else {
  41572. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  41573. }
  41574. };
  41575. }
  41576. // Renderers that don't support persistence
  41577. // can re-export everything from this module.
  41578. function shim() {
  41579. invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');
  41580. }
  41581. // Persistence (when unsupported)
  41582. var supportsPersistence = false;
  41583. var cloneInstance = shim;
  41584. var createContainerChildSet = shim;
  41585. var appendChildToContainerChildSet = shim;
  41586. var finalizeContainerChildren = shim;
  41587. var replaceContainerChildren = shim;
  41588. var cloneHiddenInstance = shim;
  41589. var cloneUnhiddenInstance = shim;
  41590. var createHiddenTextInstance = shim;
  41591. var SUPPRESS_HYDRATION_WARNING = void 0;
  41592. {
  41593. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  41594. }
  41595. var STYLE = 'style';
  41596. var eventsEnabled = null;
  41597. var selectionInformation = null;
  41598. function shouldAutoFocusHostComponent(type, props) {
  41599. switch (type) {
  41600. case 'button':
  41601. case 'input':
  41602. case 'select':
  41603. case 'textarea':
  41604. return !!props.autoFocus;
  41605. }
  41606. return false;
  41607. }
  41608. function getRootHostContext(rootContainerInstance) {
  41609. var type = void 0;
  41610. var namespace = void 0;
  41611. var nodeType = rootContainerInstance.nodeType;
  41612. switch (nodeType) {
  41613. case DOCUMENT_NODE:
  41614. case DOCUMENT_FRAGMENT_NODE:
  41615. {
  41616. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  41617. var root = rootContainerInstance.documentElement;
  41618. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  41619. break;
  41620. }
  41621. default:
  41622. {
  41623. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  41624. var ownNamespace = container.namespaceURI || null;
  41625. type = container.tagName;
  41626. namespace = getChildNamespace(ownNamespace, type);
  41627. break;
  41628. }
  41629. }
  41630. {
  41631. var validatedTag = type.toLowerCase();
  41632. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  41633. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  41634. }
  41635. return namespace;
  41636. }
  41637. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  41638. {
  41639. var parentHostContextDev = parentHostContext;
  41640. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  41641. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  41642. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  41643. }
  41644. var parentNamespace = parentHostContext;
  41645. return getChildNamespace(parentNamespace, type);
  41646. }
  41647. function getPublicInstance(instance) {
  41648. return instance;
  41649. }
  41650. function prepareForCommit(containerInfo) {
  41651. eventsEnabled = isEnabled();
  41652. selectionInformation = getSelectionInformation();
  41653. setEnabled(false);
  41654. }
  41655. function resetAfterCommit(containerInfo) {
  41656. restoreSelection(selectionInformation);
  41657. selectionInformation = null;
  41658. setEnabled(eventsEnabled);
  41659. eventsEnabled = null;
  41660. }
  41661. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  41662. var parentNamespace = void 0;
  41663. {
  41664. // TODO: take namespace into account when validating.
  41665. var hostContextDev = hostContext;
  41666. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  41667. if (typeof props.children === 'string' || typeof props.children === 'number') {
  41668. var string = '' + props.children;
  41669. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  41670. validateDOMNesting(null, string, ownAncestorInfo);
  41671. }
  41672. parentNamespace = hostContextDev.namespace;
  41673. }
  41674. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  41675. precacheFiberNode(internalInstanceHandle, domElement);
  41676. updateFiberProps(domElement, props);
  41677. return domElement;
  41678. }
  41679. function appendInitialChild(parentInstance, child) {
  41680. parentInstance.appendChild(child);
  41681. }
  41682. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  41683. setInitialProperties(domElement, type, props, rootContainerInstance);
  41684. return shouldAutoFocusHostComponent(type, props);
  41685. }
  41686. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  41687. {
  41688. var hostContextDev = hostContext;
  41689. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  41690. var string = '' + newProps.children;
  41691. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  41692. validateDOMNesting(null, string, ownAncestorInfo);
  41693. }
  41694. }
  41695. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  41696. }
  41697. function shouldSetTextContent(type, props) {
  41698. 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;
  41699. }
  41700. function shouldDeprioritizeSubtree(type, props) {
  41701. return !!props.hidden;
  41702. }
  41703. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  41704. {
  41705. var hostContextDev = hostContext;
  41706. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  41707. }
  41708. var textNode = createTextNode(text, rootContainerInstance);
  41709. precacheFiberNode(internalInstanceHandle, textNode);
  41710. return textNode;
  41711. }
  41712. var isPrimaryRenderer = true;
  41713. // This initialization code may run even on server environments
  41714. // if a component just imports ReactDOM (e.g. for findDOMNode).
  41715. // Some environments might not have setTimeout or clearTimeout.
  41716. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  41717. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  41718. var noTimeout = -1;
  41719. // -------------------
  41720. // Mutation
  41721. // -------------------
  41722. var supportsMutation = true;
  41723. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  41724. // Despite the naming that might imply otherwise, this method only
  41725. // fires if there is an `Update` effect scheduled during mounting.
  41726. // This happens if `finalizeInitialChildren` returns `true` (which it
  41727. // does to implement the `autoFocus` attribute on the client). But
  41728. // there are also other cases when this might happen (such as patching
  41729. // up text content during hydration mismatch). So we'll check this again.
  41730. if (shouldAutoFocusHostComponent(type, newProps)) {
  41731. domElement.focus();
  41732. }
  41733. }
  41734. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  41735. // Update the props handle so that we know which props are the ones with
  41736. // with current event handlers.
  41737. updateFiberProps(domElement, newProps);
  41738. // Apply the diff to the DOM node.
  41739. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  41740. }
  41741. function resetTextContent(domElement) {
  41742. setTextContent(domElement, '');
  41743. }
  41744. function commitTextUpdate(textInstance, oldText, newText) {
  41745. textInstance.nodeValue = newText;
  41746. }
  41747. function appendChild(parentInstance, child) {
  41748. parentInstance.appendChild(child);
  41749. }
  41750. function appendChildToContainer(container, child) {
  41751. var parentNode = void 0;
  41752. if (container.nodeType === COMMENT_NODE) {
  41753. parentNode = container.parentNode;
  41754. parentNode.insertBefore(child, container);
  41755. } else {
  41756. parentNode = container;
  41757. parentNode.appendChild(child);
  41758. }
  41759. // This container might be used for a portal.
  41760. // If something inside a portal is clicked, that click should bubble
  41761. // through the React tree. However, on Mobile Safari the click would
  41762. // never bubble through the *DOM* tree unless an ancestor with onclick
  41763. // event exists. So we wouldn't see it and dispatch it.
  41764. // This is why we ensure that non React root containers have inline onclick
  41765. // defined.
  41766. // https://github.com/facebook/react/issues/11918
  41767. var reactRootContainer = container._reactRootContainer;
  41768. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  41769. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  41770. trapClickOnNonInteractiveElement(parentNode);
  41771. }
  41772. }
  41773. function insertBefore(parentInstance, child, beforeChild) {
  41774. parentInstance.insertBefore(child, beforeChild);
  41775. }
  41776. function insertInContainerBefore(container, child, beforeChild) {
  41777. if (container.nodeType === COMMENT_NODE) {
  41778. container.parentNode.insertBefore(child, beforeChild);
  41779. } else {
  41780. container.insertBefore(child, beforeChild);
  41781. }
  41782. }
  41783. function removeChild(parentInstance, child) {
  41784. parentInstance.removeChild(child);
  41785. }
  41786. function removeChildFromContainer(container, child) {
  41787. if (container.nodeType === COMMENT_NODE) {
  41788. container.parentNode.removeChild(child);
  41789. } else {
  41790. container.removeChild(child);
  41791. }
  41792. }
  41793. function hideInstance(instance) {
  41794. // TODO: Does this work for all element types? What about MathML? Should we
  41795. // pass host context to this method?
  41796. instance = instance;
  41797. instance.style.display = 'none';
  41798. }
  41799. function hideTextInstance(textInstance) {
  41800. textInstance.nodeValue = '';
  41801. }
  41802. function unhideInstance(instance, props) {
  41803. instance = instance;
  41804. var styleProp = props[STYLE];
  41805. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  41806. instance.style.display = dangerousStyleValue('display', display);
  41807. }
  41808. function unhideTextInstance(textInstance, text) {
  41809. textInstance.nodeValue = text;
  41810. }
  41811. // -------------------
  41812. // Hydration
  41813. // -------------------
  41814. var supportsHydration = true;
  41815. function canHydrateInstance(instance, type, props) {
  41816. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  41817. return null;
  41818. }
  41819. // This has now been refined to an element node.
  41820. return instance;
  41821. }
  41822. function canHydrateTextInstance(instance, text) {
  41823. if (text === '' || instance.nodeType !== TEXT_NODE) {
  41824. // Empty strings are not parsed by HTML so there won't be a correct match here.
  41825. return null;
  41826. }
  41827. // This has now been refined to a text node.
  41828. return instance;
  41829. }
  41830. function getNextHydratableSibling(instance) {
  41831. var node = instance.nextSibling;
  41832. // Skip non-hydratable nodes.
  41833. while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) {
  41834. node = node.nextSibling;
  41835. }
  41836. return node;
  41837. }
  41838. function getFirstHydratableChild(parentInstance) {
  41839. var next = parentInstance.firstChild;
  41840. // Skip non-hydratable nodes.
  41841. while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) {
  41842. next = next.nextSibling;
  41843. }
  41844. return next;
  41845. }
  41846. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  41847. precacheFiberNode(internalInstanceHandle, instance);
  41848. // TODO: Possibly defer this until the commit phase where all the events
  41849. // get attached.
  41850. updateFiberProps(instance, props);
  41851. var parentNamespace = void 0;
  41852. {
  41853. var hostContextDev = hostContext;
  41854. parentNamespace = hostContextDev.namespace;
  41855. }
  41856. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  41857. }
  41858. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  41859. precacheFiberNode(internalInstanceHandle, textInstance);
  41860. return diffHydratedText(textInstance, text);
  41861. }
  41862. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  41863. {
  41864. warnForUnmatchedText(textInstance, text);
  41865. }
  41866. }
  41867. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  41868. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41869. warnForUnmatchedText(textInstance, text);
  41870. }
  41871. }
  41872. function didNotHydrateContainerInstance(parentContainer, instance) {
  41873. {
  41874. if (instance.nodeType === ELEMENT_NODE) {
  41875. warnForDeletedHydratableElement(parentContainer, instance);
  41876. } else {
  41877. warnForDeletedHydratableText(parentContainer, instance);
  41878. }
  41879. }
  41880. }
  41881. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  41882. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41883. if (instance.nodeType === ELEMENT_NODE) {
  41884. warnForDeletedHydratableElement(parentInstance, instance);
  41885. } else {
  41886. warnForDeletedHydratableText(parentInstance, instance);
  41887. }
  41888. }
  41889. }
  41890. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  41891. {
  41892. warnForInsertedHydratedElement(parentContainer, type, props);
  41893. }
  41894. }
  41895. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  41896. {
  41897. warnForInsertedHydratedText(parentContainer, text);
  41898. }
  41899. }
  41900. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  41901. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41902. warnForInsertedHydratedElement(parentInstance, type, props);
  41903. }
  41904. }
  41905. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  41906. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41907. warnForInsertedHydratedText(parentInstance, text);
  41908. }
  41909. }
  41910. // Prefix measurements so that it's possible to filter them.
  41911. // Longer prefixes are hard to read in DevTools.
  41912. var reactEmoji = '\u269B';
  41913. var warningEmoji = '\u26D4';
  41914. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  41915. // Keep track of current fiber so that we know the path to unwind on pause.
  41916. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  41917. var currentFiber = null;
  41918. // If we're in the middle of user code, which fiber and method is it?
  41919. // Reusing `currentFiber` would be confusing for this because user code fiber
  41920. // can change during commit phase too, but we don't need to unwind it (since
  41921. // lifecycles in the commit phase don't resemble a tree).
  41922. var currentPhase = null;
  41923. var currentPhaseFiber = null;
  41924. // Did lifecycle hook schedule an update? This is often a performance problem,
  41925. // so we will keep track of it, and include it in the report.
  41926. // Track commits caused by cascading updates.
  41927. var isCommitting = false;
  41928. var hasScheduledUpdateInCurrentCommit = false;
  41929. var hasScheduledUpdateInCurrentPhase = false;
  41930. var commitCountInCurrentWorkLoop = 0;
  41931. var effectCountInCurrentCommit = 0;
  41932. var isWaitingForCallback = false;
  41933. // During commits, we only show a measurement once per method name
  41934. // to avoid stretch the commit phase with measurement overhead.
  41935. var labelsInCurrentCommit = new Set();
  41936. var formatMarkName = function (markName) {
  41937. return reactEmoji + ' ' + markName;
  41938. };
  41939. var formatLabel = function (label, warning) {
  41940. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  41941. var suffix = warning ? ' Warning: ' + warning : '';
  41942. return '' + prefix + label + suffix;
  41943. };
  41944. var beginMark = function (markName) {
  41945. performance.mark(formatMarkName(markName));
  41946. };
  41947. var clearMark = function (markName) {
  41948. performance.clearMarks(formatMarkName(markName));
  41949. };
  41950. var endMark = function (label, markName, warning) {
  41951. var formattedMarkName = formatMarkName(markName);
  41952. var formattedLabel = formatLabel(label, warning);
  41953. try {
  41954. performance.measure(formattedLabel, formattedMarkName);
  41955. } catch (err) {}
  41956. // If previous mark was missing for some reason, this will throw.
  41957. // This could only happen if React crashed in an unexpected place earlier.
  41958. // Don't pile on with more errors.
  41959. // Clear marks immediately to avoid growing buffer.
  41960. performance.clearMarks(formattedMarkName);
  41961. performance.clearMeasures(formattedLabel);
  41962. };
  41963. var getFiberMarkName = function (label, debugID) {
  41964. return label + ' (#' + debugID + ')';
  41965. };
  41966. var getFiberLabel = function (componentName, isMounted, phase) {
  41967. if (phase === null) {
  41968. // These are composite component total time measurements.
  41969. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  41970. } else {
  41971. // Composite component methods.
  41972. return componentName + '.' + phase;
  41973. }
  41974. };
  41975. var beginFiberMark = function (fiber, phase) {
  41976. var componentName = getComponentName(fiber.type) || 'Unknown';
  41977. var debugID = fiber._debugID;
  41978. var isMounted = fiber.alternate !== null;
  41979. var label = getFiberLabel(componentName, isMounted, phase);
  41980. if (isCommitting && labelsInCurrentCommit.has(label)) {
  41981. // During the commit phase, we don't show duplicate labels because
  41982. // there is a fixed overhead for every measurement, and we don't
  41983. // want to stretch the commit phase beyond necessary.
  41984. return false;
  41985. }
  41986. labelsInCurrentCommit.add(label);
  41987. var markName = getFiberMarkName(label, debugID);
  41988. beginMark(markName);
  41989. return true;
  41990. };
  41991. var clearFiberMark = function (fiber, phase) {
  41992. var componentName = getComponentName(fiber.type) || 'Unknown';
  41993. var debugID = fiber._debugID;
  41994. var isMounted = fiber.alternate !== null;
  41995. var label = getFiberLabel(componentName, isMounted, phase);
  41996. var markName = getFiberMarkName(label, debugID);
  41997. clearMark(markName);
  41998. };
  41999. var endFiberMark = function (fiber, phase, warning) {
  42000. var componentName = getComponentName(fiber.type) || 'Unknown';
  42001. var debugID = fiber._debugID;
  42002. var isMounted = fiber.alternate !== null;
  42003. var label = getFiberLabel(componentName, isMounted, phase);
  42004. var markName = getFiberMarkName(label, debugID);
  42005. endMark(label, markName, warning);
  42006. };
  42007. var shouldIgnoreFiber = function (fiber) {
  42008. // Host components should be skipped in the timeline.
  42009. // We could check typeof fiber.type, but does this work with RN?
  42010. switch (fiber.tag) {
  42011. case HostRoot:
  42012. case HostComponent:
  42013. case HostText:
  42014. case HostPortal:
  42015. case Fragment:
  42016. case ContextProvider:
  42017. case ContextConsumer:
  42018. case Mode:
  42019. return true;
  42020. default:
  42021. return false;
  42022. }
  42023. };
  42024. var clearPendingPhaseMeasurement = function () {
  42025. if (currentPhase !== null && currentPhaseFiber !== null) {
  42026. clearFiberMark(currentPhaseFiber, currentPhase);
  42027. }
  42028. currentPhaseFiber = null;
  42029. currentPhase = null;
  42030. hasScheduledUpdateInCurrentPhase = false;
  42031. };
  42032. var pauseTimers = function () {
  42033. // Stops all currently active measurements so that they can be resumed
  42034. // if we continue in a later deferred loop from the same unit of work.
  42035. var fiber = currentFiber;
  42036. while (fiber) {
  42037. if (fiber._debugIsCurrentlyTiming) {
  42038. endFiberMark(fiber, null, null);
  42039. }
  42040. fiber = fiber.return;
  42041. }
  42042. };
  42043. var resumeTimersRecursively = function (fiber) {
  42044. if (fiber.return !== null) {
  42045. resumeTimersRecursively(fiber.return);
  42046. }
  42047. if (fiber._debugIsCurrentlyTiming) {
  42048. beginFiberMark(fiber, null);
  42049. }
  42050. };
  42051. var resumeTimers = function () {
  42052. // Resumes all measurements that were active during the last deferred loop.
  42053. if (currentFiber !== null) {
  42054. resumeTimersRecursively(currentFiber);
  42055. }
  42056. };
  42057. function recordEffect() {
  42058. if (enableUserTimingAPI) {
  42059. effectCountInCurrentCommit++;
  42060. }
  42061. }
  42062. function recordScheduleUpdate() {
  42063. if (enableUserTimingAPI) {
  42064. if (isCommitting) {
  42065. hasScheduledUpdateInCurrentCommit = true;
  42066. }
  42067. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  42068. hasScheduledUpdateInCurrentPhase = true;
  42069. }
  42070. }
  42071. }
  42072. function startRequestCallbackTimer() {
  42073. if (enableUserTimingAPI) {
  42074. if (supportsUserTiming && !isWaitingForCallback) {
  42075. isWaitingForCallback = true;
  42076. beginMark('(Waiting for async callback...)');
  42077. }
  42078. }
  42079. }
  42080. function stopRequestCallbackTimer(didExpire, expirationTime) {
  42081. if (enableUserTimingAPI) {
  42082. if (supportsUserTiming) {
  42083. isWaitingForCallback = false;
  42084. var warning = didExpire ? 'React was blocked by main thread' : null;
  42085. endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);
  42086. }
  42087. }
  42088. }
  42089. function startWorkTimer(fiber) {
  42090. if (enableUserTimingAPI) {
  42091. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42092. return;
  42093. }
  42094. // If we pause, this is the fiber to unwind from.
  42095. currentFiber = fiber;
  42096. if (!beginFiberMark(fiber, null)) {
  42097. return;
  42098. }
  42099. fiber._debugIsCurrentlyTiming = true;
  42100. }
  42101. }
  42102. function cancelWorkTimer(fiber) {
  42103. if (enableUserTimingAPI) {
  42104. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42105. return;
  42106. }
  42107. // Remember we shouldn't complete measurement for this fiber.
  42108. // Otherwise flamechart will be deep even for small updates.
  42109. fiber._debugIsCurrentlyTiming = false;
  42110. clearFiberMark(fiber, null);
  42111. }
  42112. }
  42113. function stopWorkTimer(fiber) {
  42114. if (enableUserTimingAPI) {
  42115. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42116. return;
  42117. }
  42118. // If we pause, its parent is the fiber to unwind from.
  42119. currentFiber = fiber.return;
  42120. if (!fiber._debugIsCurrentlyTiming) {
  42121. return;
  42122. }
  42123. fiber._debugIsCurrentlyTiming = false;
  42124. endFiberMark(fiber, null, null);
  42125. }
  42126. }
  42127. function stopFailedWorkTimer(fiber) {
  42128. if (enableUserTimingAPI) {
  42129. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42130. return;
  42131. }
  42132. // If we pause, its parent is the fiber to unwind from.
  42133. currentFiber = fiber.return;
  42134. if (!fiber._debugIsCurrentlyTiming) {
  42135. return;
  42136. }
  42137. fiber._debugIsCurrentlyTiming = false;
  42138. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  42139. endFiberMark(fiber, null, warning);
  42140. }
  42141. }
  42142. function startPhaseTimer(fiber, phase) {
  42143. if (enableUserTimingAPI) {
  42144. if (!supportsUserTiming) {
  42145. return;
  42146. }
  42147. clearPendingPhaseMeasurement();
  42148. if (!beginFiberMark(fiber, phase)) {
  42149. return;
  42150. }
  42151. currentPhaseFiber = fiber;
  42152. currentPhase = phase;
  42153. }
  42154. }
  42155. function stopPhaseTimer() {
  42156. if (enableUserTimingAPI) {
  42157. if (!supportsUserTiming) {
  42158. return;
  42159. }
  42160. if (currentPhase !== null && currentPhaseFiber !== null) {
  42161. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  42162. endFiberMark(currentPhaseFiber, currentPhase, warning);
  42163. }
  42164. currentPhase = null;
  42165. currentPhaseFiber = null;
  42166. }
  42167. }
  42168. function startWorkLoopTimer(nextUnitOfWork) {
  42169. if (enableUserTimingAPI) {
  42170. currentFiber = nextUnitOfWork;
  42171. if (!supportsUserTiming) {
  42172. return;
  42173. }
  42174. commitCountInCurrentWorkLoop = 0;
  42175. // This is top level call.
  42176. // Any other measurements are performed within.
  42177. beginMark('(React Tree Reconciliation)');
  42178. // Resume any measurements that were in progress during the last loop.
  42179. resumeTimers();
  42180. }
  42181. }
  42182. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  42183. if (enableUserTimingAPI) {
  42184. if (!supportsUserTiming) {
  42185. return;
  42186. }
  42187. var warning = null;
  42188. if (interruptedBy !== null) {
  42189. if (interruptedBy.tag === HostRoot) {
  42190. warning = 'A top-level update interrupted the previous render';
  42191. } else {
  42192. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  42193. warning = 'An update to ' + componentName + ' interrupted the previous render';
  42194. }
  42195. } else if (commitCountInCurrentWorkLoop > 1) {
  42196. warning = 'There were cascading updates';
  42197. }
  42198. commitCountInCurrentWorkLoop = 0;
  42199. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  42200. // Pause any measurements until the next loop.
  42201. pauseTimers();
  42202. endMark(label, '(React Tree Reconciliation)', warning);
  42203. }
  42204. }
  42205. function startCommitTimer() {
  42206. if (enableUserTimingAPI) {
  42207. if (!supportsUserTiming) {
  42208. return;
  42209. }
  42210. isCommitting = true;
  42211. hasScheduledUpdateInCurrentCommit = false;
  42212. labelsInCurrentCommit.clear();
  42213. beginMark('(Committing Changes)');
  42214. }
  42215. }
  42216. function stopCommitTimer() {
  42217. if (enableUserTimingAPI) {
  42218. if (!supportsUserTiming) {
  42219. return;
  42220. }
  42221. var warning = null;
  42222. if (hasScheduledUpdateInCurrentCommit) {
  42223. warning = 'Lifecycle hook scheduled a cascading update';
  42224. } else if (commitCountInCurrentWorkLoop > 0) {
  42225. warning = 'Caused by a cascading update in earlier commit';
  42226. }
  42227. hasScheduledUpdateInCurrentCommit = false;
  42228. commitCountInCurrentWorkLoop++;
  42229. isCommitting = false;
  42230. labelsInCurrentCommit.clear();
  42231. endMark('(Committing Changes)', '(Committing Changes)', warning);
  42232. }
  42233. }
  42234. function startCommitSnapshotEffectsTimer() {
  42235. if (enableUserTimingAPI) {
  42236. if (!supportsUserTiming) {
  42237. return;
  42238. }
  42239. effectCountInCurrentCommit = 0;
  42240. beginMark('(Committing Snapshot Effects)');
  42241. }
  42242. }
  42243. function stopCommitSnapshotEffectsTimer() {
  42244. if (enableUserTimingAPI) {
  42245. if (!supportsUserTiming) {
  42246. return;
  42247. }
  42248. var count = effectCountInCurrentCommit;
  42249. effectCountInCurrentCommit = 0;
  42250. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  42251. }
  42252. }
  42253. function startCommitHostEffectsTimer() {
  42254. if (enableUserTimingAPI) {
  42255. if (!supportsUserTiming) {
  42256. return;
  42257. }
  42258. effectCountInCurrentCommit = 0;
  42259. beginMark('(Committing Host Effects)');
  42260. }
  42261. }
  42262. function stopCommitHostEffectsTimer() {
  42263. if (enableUserTimingAPI) {
  42264. if (!supportsUserTiming) {
  42265. return;
  42266. }
  42267. var count = effectCountInCurrentCommit;
  42268. effectCountInCurrentCommit = 0;
  42269. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  42270. }
  42271. }
  42272. function startCommitLifeCyclesTimer() {
  42273. if (enableUserTimingAPI) {
  42274. if (!supportsUserTiming) {
  42275. return;
  42276. }
  42277. effectCountInCurrentCommit = 0;
  42278. beginMark('(Calling Lifecycle Methods)');
  42279. }
  42280. }
  42281. function stopCommitLifeCyclesTimer() {
  42282. if (enableUserTimingAPI) {
  42283. if (!supportsUserTiming) {
  42284. return;
  42285. }
  42286. var count = effectCountInCurrentCommit;
  42287. effectCountInCurrentCommit = 0;
  42288. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  42289. }
  42290. }
  42291. var valueStack = [];
  42292. var fiberStack = void 0;
  42293. {
  42294. fiberStack = [];
  42295. }
  42296. var index = -1;
  42297. function createCursor(defaultValue) {
  42298. return {
  42299. current: defaultValue
  42300. };
  42301. }
  42302. function pop(cursor, fiber) {
  42303. if (index < 0) {
  42304. {
  42305. warningWithoutStack$1(false, 'Unexpected pop.');
  42306. }
  42307. return;
  42308. }
  42309. {
  42310. if (fiber !== fiberStack[index]) {
  42311. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  42312. }
  42313. }
  42314. cursor.current = valueStack[index];
  42315. valueStack[index] = null;
  42316. {
  42317. fiberStack[index] = null;
  42318. }
  42319. index--;
  42320. }
  42321. function push(cursor, value, fiber) {
  42322. index++;
  42323. valueStack[index] = cursor.current;
  42324. {
  42325. fiberStack[index] = fiber;
  42326. }
  42327. cursor.current = value;
  42328. }
  42329. function checkThatStackIsEmpty() {
  42330. {
  42331. if (index !== -1) {
  42332. warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');
  42333. }
  42334. }
  42335. }
  42336. function resetStackAfterFatalErrorInDev() {
  42337. {
  42338. index = -1;
  42339. valueStack.length = 0;
  42340. fiberStack.length = 0;
  42341. }
  42342. }
  42343. var warnedAboutMissingGetChildContext = void 0;
  42344. {
  42345. warnedAboutMissingGetChildContext = {};
  42346. }
  42347. var emptyContextObject = {};
  42348. {
  42349. Object.freeze(emptyContextObject);
  42350. }
  42351. // A cursor to the current merged context object on the stack.
  42352. var contextStackCursor = createCursor(emptyContextObject);
  42353. // A cursor to a boolean indicating whether the context has changed.
  42354. var didPerformWorkStackCursor = createCursor(false);
  42355. // Keep track of the previous context object that was on the stack.
  42356. // We use this to get access to the parent context after we have already
  42357. // pushed the next context provider, and now need to merge their contexts.
  42358. var previousContext = emptyContextObject;
  42359. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  42360. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  42361. // If the fiber is a context provider itself, when we read its context
  42362. // we may have already pushed its own child context on the stack. A context
  42363. // provider should not "see" its own child context. Therefore we read the
  42364. // previous (parent) context instead for a context provider.
  42365. return previousContext;
  42366. }
  42367. return contextStackCursor.current;
  42368. }
  42369. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  42370. var instance = workInProgress.stateNode;
  42371. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  42372. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  42373. }
  42374. function getMaskedContext(workInProgress, unmaskedContext) {
  42375. var type = workInProgress.type;
  42376. var contextTypes = type.contextTypes;
  42377. if (!contextTypes) {
  42378. return emptyContextObject;
  42379. }
  42380. // Avoid recreating masked context unless unmasked context has changed.
  42381. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  42382. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  42383. var instance = workInProgress.stateNode;
  42384. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  42385. return instance.__reactInternalMemoizedMaskedChildContext;
  42386. }
  42387. var context = {};
  42388. for (var key in contextTypes) {
  42389. context[key] = unmaskedContext[key];
  42390. }
  42391. {
  42392. var name = getComponentName(type) || 'Unknown';
  42393. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  42394. }
  42395. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  42396. // Context is created before the class component is instantiated so check for instance.
  42397. if (instance) {
  42398. cacheContext(workInProgress, unmaskedContext, context);
  42399. }
  42400. return context;
  42401. }
  42402. function hasContextChanged() {
  42403. return didPerformWorkStackCursor.current;
  42404. }
  42405. function isContextProvider(type) {
  42406. var childContextTypes = type.childContextTypes;
  42407. return childContextTypes !== null && childContextTypes !== undefined;
  42408. }
  42409. function popContext(fiber) {
  42410. pop(didPerformWorkStackCursor, fiber);
  42411. pop(contextStackCursor, fiber);
  42412. }
  42413. function popTopLevelContextObject(fiber) {
  42414. pop(didPerformWorkStackCursor, fiber);
  42415. pop(contextStackCursor, fiber);
  42416. }
  42417. function pushTopLevelContextObject(fiber, context, didChange) {
  42418. !(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;
  42419. push(contextStackCursor, context, fiber);
  42420. push(didPerformWorkStackCursor, didChange, fiber);
  42421. }
  42422. function processChildContext(fiber, type, parentContext) {
  42423. var instance = fiber.stateNode;
  42424. var childContextTypes = type.childContextTypes;
  42425. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  42426. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  42427. if (typeof instance.getChildContext !== 'function') {
  42428. {
  42429. var componentName = getComponentName(type) || 'Unknown';
  42430. if (!warnedAboutMissingGetChildContext[componentName]) {
  42431. warnedAboutMissingGetChildContext[componentName] = true;
  42432. 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);
  42433. }
  42434. }
  42435. return parentContext;
  42436. }
  42437. var childContext = void 0;
  42438. {
  42439. setCurrentPhase('getChildContext');
  42440. }
  42441. startPhaseTimer(fiber, 'getChildContext');
  42442. childContext = instance.getChildContext();
  42443. stopPhaseTimer();
  42444. {
  42445. setCurrentPhase(null);
  42446. }
  42447. for (var contextKey in childContext) {
  42448. !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;
  42449. }
  42450. {
  42451. var name = getComponentName(type) || 'Unknown';
  42452. checkPropTypes(childContextTypes, childContext, 'child context', name,
  42453. // In practice, there is one case in which we won't get a stack. It's when
  42454. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  42455. // context from the parent component instance. The stack will be missing
  42456. // because it's outside of the reconciliation, and so the pointer has not
  42457. // been set. This is rare and doesn't matter. We'll also remove that API.
  42458. getCurrentFiberStackInDev);
  42459. }
  42460. return _assign({}, parentContext, childContext);
  42461. }
  42462. function pushContextProvider(workInProgress) {
  42463. var instance = workInProgress.stateNode;
  42464. // We push the context as early as possible to ensure stack integrity.
  42465. // If the instance does not exist yet, we will push null at first,
  42466. // and replace it on the stack later when invalidating the context.
  42467. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  42468. // Remember the parent context so we can merge with it later.
  42469. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  42470. previousContext = contextStackCursor.current;
  42471. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  42472. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  42473. return true;
  42474. }
  42475. function invalidateContextProvider(workInProgress, type, didChange) {
  42476. var instance = workInProgress.stateNode;
  42477. !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;
  42478. if (didChange) {
  42479. // Merge parent and own context.
  42480. // Skip this if we're not updating due to sCU.
  42481. // This avoids unnecessarily recomputing memoized values.
  42482. var mergedContext = processChildContext(workInProgress, type, previousContext);
  42483. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  42484. // Replace the old (or empty) context with the new one.
  42485. // It is important to unwind the context in the reverse order.
  42486. pop(didPerformWorkStackCursor, workInProgress);
  42487. pop(contextStackCursor, workInProgress);
  42488. // Now push the new context and mark that it has changed.
  42489. push(contextStackCursor, mergedContext, workInProgress);
  42490. push(didPerformWorkStackCursor, didChange, workInProgress);
  42491. } else {
  42492. pop(didPerformWorkStackCursor, workInProgress);
  42493. push(didPerformWorkStackCursor, didChange, workInProgress);
  42494. }
  42495. }
  42496. function findCurrentUnmaskedContext(fiber) {
  42497. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  42498. // makes sense elsewhere
  42499. !(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;
  42500. var node = fiber;
  42501. do {
  42502. switch (node.tag) {
  42503. case HostRoot:
  42504. return node.stateNode.context;
  42505. case ClassComponent:
  42506. {
  42507. var Component = node.type;
  42508. if (isContextProvider(Component)) {
  42509. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  42510. }
  42511. break;
  42512. }
  42513. }
  42514. node = node.return;
  42515. } while (node !== null);
  42516. invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');
  42517. }
  42518. var onCommitFiberRoot = null;
  42519. var onCommitFiberUnmount = null;
  42520. var hasLoggedError = false;
  42521. function catchErrors(fn) {
  42522. return function (arg) {
  42523. try {
  42524. return fn(arg);
  42525. } catch (err) {
  42526. if ( true && !hasLoggedError) {
  42527. hasLoggedError = true;
  42528. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  42529. }
  42530. }
  42531. };
  42532. }
  42533. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  42534. function injectInternals(internals) {
  42535. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  42536. // No DevTools
  42537. return false;
  42538. }
  42539. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  42540. if (hook.isDisabled) {
  42541. // This isn't a real property on the hook, but it can be set to opt out
  42542. // of DevTools integration and associated warnings and logs.
  42543. // https://github.com/facebook/react/issues/3877
  42544. return true;
  42545. }
  42546. if (!hook.supportsFiber) {
  42547. {
  42548. 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');
  42549. }
  42550. // DevTools exists, even though it doesn't support Fiber.
  42551. return true;
  42552. }
  42553. try {
  42554. var rendererID = hook.inject(internals);
  42555. // We have successfully injected, so now it is safe to set up hooks.
  42556. onCommitFiberRoot = catchErrors(function (root) {
  42557. return hook.onCommitFiberRoot(rendererID, root);
  42558. });
  42559. onCommitFiberUnmount = catchErrors(function (fiber) {
  42560. return hook.onCommitFiberUnmount(rendererID, fiber);
  42561. });
  42562. } catch (err) {
  42563. // Catch all errors because it is unsafe to throw during initialization.
  42564. {
  42565. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  42566. }
  42567. }
  42568. // DevTools exists
  42569. return true;
  42570. }
  42571. function onCommitRoot(root) {
  42572. if (typeof onCommitFiberRoot === 'function') {
  42573. onCommitFiberRoot(root);
  42574. }
  42575. }
  42576. function onCommitUnmount(fiber) {
  42577. if (typeof onCommitFiberUnmount === 'function') {
  42578. onCommitFiberUnmount(fiber);
  42579. }
  42580. }
  42581. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  42582. // Math.pow(2, 30) - 1
  42583. // 0b111111111111111111111111111111
  42584. var maxSigned31BitInt = 1073741823;
  42585. var NoWork = 0;
  42586. var Never = 1;
  42587. var Sync = maxSigned31BitInt;
  42588. var UNIT_SIZE = 10;
  42589. var MAGIC_NUMBER_OFFSET = maxSigned31BitInt - 1;
  42590. // 1 unit of expiration time represents 10ms.
  42591. function msToExpirationTime(ms) {
  42592. // Always add an offset so that we don't clash with the magic number for NoWork.
  42593. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  42594. }
  42595. function expirationTimeToMs(expirationTime) {
  42596. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  42597. }
  42598. function ceiling(num, precision) {
  42599. return ((num / precision | 0) + 1) * precision;
  42600. }
  42601. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  42602. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  42603. }
  42604. var LOW_PRIORITY_EXPIRATION = 5000;
  42605. var LOW_PRIORITY_BATCH_SIZE = 250;
  42606. function computeAsyncExpiration(currentTime) {
  42607. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  42608. }
  42609. // We intentionally set a higher expiration time for interactive updates in
  42610. // dev than in production.
  42611. //
  42612. // If the main thread is being blocked so long that you hit the expiration,
  42613. // it's a problem that could be solved with better scheduling.
  42614. //
  42615. // People will be more likely to notice this and fix it with the long
  42616. // expiration time in development.
  42617. //
  42618. // In production we opt for better UX at the risk of masking scheduling
  42619. // problems, by expiring fast.
  42620. var HIGH_PRIORITY_EXPIRATION = 500;
  42621. var HIGH_PRIORITY_BATCH_SIZE = 100;
  42622. function computeInteractiveExpiration(currentTime) {
  42623. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  42624. }
  42625. var NoContext = 0;
  42626. var ConcurrentMode = 1;
  42627. var StrictMode = 2;
  42628. var ProfileMode = 4;
  42629. var hasBadMapPolyfill = void 0;
  42630. {
  42631. hasBadMapPolyfill = false;
  42632. try {
  42633. var nonExtensibleObject = Object.preventExtensions({});
  42634. var testMap = new Map([[nonExtensibleObject, null]]);
  42635. var testSet = new Set([nonExtensibleObject]);
  42636. // This is necessary for Rollup to not consider these unused.
  42637. // https://github.com/rollup/rollup/issues/1771
  42638. // TODO: we can remove these if Rollup fixes the bug.
  42639. testMap.set(0, 0);
  42640. testSet.add(0);
  42641. } catch (e) {
  42642. // TODO: Consider warning about bad polyfills
  42643. hasBadMapPolyfill = true;
  42644. }
  42645. }
  42646. // A Fiber is work on a Component that needs to be done or was done. There can
  42647. // be more than one per component.
  42648. var debugCounter = void 0;
  42649. {
  42650. debugCounter = 1;
  42651. }
  42652. function FiberNode(tag, pendingProps, key, mode) {
  42653. // Instance
  42654. this.tag = tag;
  42655. this.key = key;
  42656. this.elementType = null;
  42657. this.type = null;
  42658. this.stateNode = null;
  42659. // Fiber
  42660. this.return = null;
  42661. this.child = null;
  42662. this.sibling = null;
  42663. this.index = 0;
  42664. this.ref = null;
  42665. this.pendingProps = pendingProps;
  42666. this.memoizedProps = null;
  42667. this.updateQueue = null;
  42668. this.memoizedState = null;
  42669. this.firstContextDependency = null;
  42670. this.mode = mode;
  42671. // Effects
  42672. this.effectTag = NoEffect;
  42673. this.nextEffect = null;
  42674. this.firstEffect = null;
  42675. this.lastEffect = null;
  42676. this.expirationTime = NoWork;
  42677. this.childExpirationTime = NoWork;
  42678. this.alternate = null;
  42679. if (enableProfilerTimer) {
  42680. this.actualDuration = 0;
  42681. this.actualStartTime = -1;
  42682. this.selfBaseDuration = 0;
  42683. this.treeBaseDuration = 0;
  42684. }
  42685. {
  42686. this._debugID = debugCounter++;
  42687. this._debugSource = null;
  42688. this._debugOwner = null;
  42689. this._debugIsCurrentlyTiming = false;
  42690. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  42691. Object.preventExtensions(this);
  42692. }
  42693. }
  42694. }
  42695. // This is a constructor function, rather than a POJO constructor, still
  42696. // please ensure we do the following:
  42697. // 1) Nobody should add any instance methods on this. Instance methods can be
  42698. // more difficult to predict when they get optimized and they are almost
  42699. // never inlined properly in static compilers.
  42700. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  42701. // always know when it is a fiber.
  42702. // 3) We might want to experiment with using numeric keys since they are easier
  42703. // to optimize in a non-JIT environment.
  42704. // 4) We can easily go from a constructor to a createFiber object literal if that
  42705. // is faster.
  42706. // 5) It should be easy to port this to a C struct and keep a C implementation
  42707. // compatible.
  42708. var createFiber = function (tag, pendingProps, key, mode) {
  42709. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  42710. return new FiberNode(tag, pendingProps, key, mode);
  42711. };
  42712. function shouldConstruct(Component) {
  42713. var prototype = Component.prototype;
  42714. return !!(prototype && prototype.isReactComponent);
  42715. }
  42716. function isSimpleFunctionComponent(type) {
  42717. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  42718. }
  42719. function resolveLazyComponentTag(Component) {
  42720. if (typeof Component === 'function') {
  42721. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  42722. } else if (Component !== undefined && Component !== null) {
  42723. var $$typeof = Component.$$typeof;
  42724. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  42725. return ForwardRef;
  42726. }
  42727. if ($$typeof === REACT_MEMO_TYPE) {
  42728. return MemoComponent;
  42729. }
  42730. }
  42731. return IndeterminateComponent;
  42732. }
  42733. // This is used to create an alternate fiber to do work on.
  42734. function createWorkInProgress(current, pendingProps, expirationTime) {
  42735. var workInProgress = current.alternate;
  42736. if (workInProgress === null) {
  42737. // We use a double buffering pooling technique because we know that we'll
  42738. // only ever need at most two versions of a tree. We pool the "other" unused
  42739. // node that we're free to reuse. This is lazily created to avoid allocating
  42740. // extra objects for things that are never updated. It also allow us to
  42741. // reclaim the extra memory if needed.
  42742. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  42743. workInProgress.elementType = current.elementType;
  42744. workInProgress.type = current.type;
  42745. workInProgress.stateNode = current.stateNode;
  42746. {
  42747. // DEV-only fields
  42748. workInProgress._debugID = current._debugID;
  42749. workInProgress._debugSource = current._debugSource;
  42750. workInProgress._debugOwner = current._debugOwner;
  42751. }
  42752. workInProgress.alternate = current;
  42753. current.alternate = workInProgress;
  42754. } else {
  42755. workInProgress.pendingProps = pendingProps;
  42756. // We already have an alternate.
  42757. // Reset the effect tag.
  42758. workInProgress.effectTag = NoEffect;
  42759. // The effect list is no longer valid.
  42760. workInProgress.nextEffect = null;
  42761. workInProgress.firstEffect = null;
  42762. workInProgress.lastEffect = null;
  42763. if (enableProfilerTimer) {
  42764. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  42765. // This prevents time from endlessly accumulating in new commits.
  42766. // This has the downside of resetting values for different priority renders,
  42767. // But works for yielding (the common case) and should support resuming.
  42768. workInProgress.actualDuration = 0;
  42769. workInProgress.actualStartTime = -1;
  42770. }
  42771. }
  42772. workInProgress.childExpirationTime = current.childExpirationTime;
  42773. workInProgress.expirationTime = current.expirationTime;
  42774. workInProgress.child = current.child;
  42775. workInProgress.memoizedProps = current.memoizedProps;
  42776. workInProgress.memoizedState = current.memoizedState;
  42777. workInProgress.updateQueue = current.updateQueue;
  42778. workInProgress.firstContextDependency = current.firstContextDependency;
  42779. // These will be overridden during the parent's reconciliation
  42780. workInProgress.sibling = current.sibling;
  42781. workInProgress.index = current.index;
  42782. workInProgress.ref = current.ref;
  42783. if (enableProfilerTimer) {
  42784. workInProgress.selfBaseDuration = current.selfBaseDuration;
  42785. workInProgress.treeBaseDuration = current.treeBaseDuration;
  42786. }
  42787. return workInProgress;
  42788. }
  42789. function createHostRootFiber(isConcurrent) {
  42790. var mode = isConcurrent ? ConcurrentMode | StrictMode : NoContext;
  42791. if (enableProfilerTimer && isDevToolsPresent) {
  42792. // Always collect profile timings when DevTools are present.
  42793. // This enables DevTools to start capturing timing at any point–
  42794. // Without some nodes in the tree having empty base times.
  42795. mode |= ProfileMode;
  42796. }
  42797. return createFiber(HostRoot, null, null, mode);
  42798. }
  42799. function createFiberFromTypeAndProps(type, // React$ElementType
  42800. key, pendingProps, owner, mode, expirationTime) {
  42801. var fiber = void 0;
  42802. var fiberTag = IndeterminateComponent;
  42803. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  42804. var resolvedType = type;
  42805. if (typeof type === 'function') {
  42806. if (shouldConstruct(type)) {
  42807. fiberTag = ClassComponent;
  42808. }
  42809. } else if (typeof type === 'string') {
  42810. fiberTag = HostComponent;
  42811. } else {
  42812. getTag: switch (type) {
  42813. case REACT_FRAGMENT_TYPE:
  42814. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  42815. case REACT_CONCURRENT_MODE_TYPE:
  42816. return createFiberFromMode(pendingProps, mode | ConcurrentMode | StrictMode, expirationTime, key);
  42817. case REACT_STRICT_MODE_TYPE:
  42818. return createFiberFromMode(pendingProps, mode | StrictMode, expirationTime, key);
  42819. case REACT_PROFILER_TYPE:
  42820. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  42821. case REACT_SUSPENSE_TYPE:
  42822. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  42823. default:
  42824. {
  42825. if (typeof type === 'object' && type !== null) {
  42826. switch (type.$$typeof) {
  42827. case REACT_PROVIDER_TYPE:
  42828. fiberTag = ContextProvider;
  42829. break getTag;
  42830. case REACT_CONTEXT_TYPE:
  42831. // This is a consumer
  42832. fiberTag = ContextConsumer;
  42833. break getTag;
  42834. case REACT_FORWARD_REF_TYPE:
  42835. fiberTag = ForwardRef;
  42836. break getTag;
  42837. case REACT_MEMO_TYPE:
  42838. fiberTag = MemoComponent;
  42839. break getTag;
  42840. case REACT_LAZY_TYPE:
  42841. fiberTag = LazyComponent;
  42842. resolvedType = null;
  42843. break getTag;
  42844. }
  42845. }
  42846. var info = '';
  42847. {
  42848. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  42849. 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.';
  42850. }
  42851. var ownerName = owner ? getComponentName(owner.type) : null;
  42852. if (ownerName) {
  42853. info += '\n\nCheck the render method of `' + ownerName + '`.';
  42854. }
  42855. }
  42856. 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);
  42857. }
  42858. }
  42859. }
  42860. fiber = createFiber(fiberTag, pendingProps, key, mode);
  42861. fiber.elementType = type;
  42862. fiber.type = resolvedType;
  42863. fiber.expirationTime = expirationTime;
  42864. return fiber;
  42865. }
  42866. function createFiberFromElement(element, mode, expirationTime) {
  42867. var owner = null;
  42868. {
  42869. owner = element._owner;
  42870. }
  42871. var type = element.type;
  42872. var key = element.key;
  42873. var pendingProps = element.props;
  42874. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  42875. {
  42876. fiber._debugSource = element._source;
  42877. fiber._debugOwner = element._owner;
  42878. }
  42879. return fiber;
  42880. }
  42881. function createFiberFromFragment(elements, mode, expirationTime, key) {
  42882. var fiber = createFiber(Fragment, elements, key, mode);
  42883. fiber.expirationTime = expirationTime;
  42884. return fiber;
  42885. }
  42886. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  42887. {
  42888. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  42889. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  42890. }
  42891. }
  42892. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  42893. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  42894. fiber.elementType = REACT_PROFILER_TYPE;
  42895. fiber.type = REACT_PROFILER_TYPE;
  42896. fiber.expirationTime = expirationTime;
  42897. return fiber;
  42898. }
  42899. function createFiberFromMode(pendingProps, mode, expirationTime, key) {
  42900. var fiber = createFiber(Mode, pendingProps, key, mode);
  42901. // TODO: The Mode fiber shouldn't have a type. It has a tag.
  42902. var type = (mode & ConcurrentMode) === NoContext ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;
  42903. fiber.elementType = type;
  42904. fiber.type = type;
  42905. fiber.expirationTime = expirationTime;
  42906. return fiber;
  42907. }
  42908. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  42909. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  42910. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  42911. var type = REACT_SUSPENSE_TYPE;
  42912. fiber.elementType = type;
  42913. fiber.type = type;
  42914. fiber.expirationTime = expirationTime;
  42915. return fiber;
  42916. }
  42917. function createFiberFromText(content, mode, expirationTime) {
  42918. var fiber = createFiber(HostText, content, null, mode);
  42919. fiber.expirationTime = expirationTime;
  42920. return fiber;
  42921. }
  42922. function createFiberFromHostInstanceForDeletion() {
  42923. var fiber = createFiber(HostComponent, null, null, NoContext);
  42924. // TODO: These should not need a type.
  42925. fiber.elementType = 'DELETED';
  42926. fiber.type = 'DELETED';
  42927. return fiber;
  42928. }
  42929. function createFiberFromPortal(portal, mode, expirationTime) {
  42930. var pendingProps = portal.children !== null ? portal.children : [];
  42931. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  42932. fiber.expirationTime = expirationTime;
  42933. fiber.stateNode = {
  42934. containerInfo: portal.containerInfo,
  42935. pendingChildren: null, // Used by persistent updates
  42936. implementation: portal.implementation
  42937. };
  42938. return fiber;
  42939. }
  42940. // Used for stashing WIP properties to replay failed work in DEV.
  42941. function assignFiberPropertiesInDEV(target, source) {
  42942. if (target === null) {
  42943. // This Fiber's initial properties will always be overwritten.
  42944. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  42945. target = createFiber(IndeterminateComponent, null, null, NoContext);
  42946. }
  42947. // This is intentionally written as a list of all properties.
  42948. // We tried to use Object.assign() instead but this is called in
  42949. // the hottest path, and Object.assign() was too slow:
  42950. // https://github.com/facebook/react/issues/12502
  42951. // This code is DEV-only so size is not a concern.
  42952. target.tag = source.tag;
  42953. target.key = source.key;
  42954. target.elementType = source.elementType;
  42955. target.type = source.type;
  42956. target.stateNode = source.stateNode;
  42957. target.return = source.return;
  42958. target.child = source.child;
  42959. target.sibling = source.sibling;
  42960. target.index = source.index;
  42961. target.ref = source.ref;
  42962. target.pendingProps = source.pendingProps;
  42963. target.memoizedProps = source.memoizedProps;
  42964. target.updateQueue = source.updateQueue;
  42965. target.memoizedState = source.memoizedState;
  42966. target.firstContextDependency = source.firstContextDependency;
  42967. target.mode = source.mode;
  42968. target.effectTag = source.effectTag;
  42969. target.nextEffect = source.nextEffect;
  42970. target.firstEffect = source.firstEffect;
  42971. target.lastEffect = source.lastEffect;
  42972. target.expirationTime = source.expirationTime;
  42973. target.childExpirationTime = source.childExpirationTime;
  42974. target.alternate = source.alternate;
  42975. if (enableProfilerTimer) {
  42976. target.actualDuration = source.actualDuration;
  42977. target.actualStartTime = source.actualStartTime;
  42978. target.selfBaseDuration = source.selfBaseDuration;
  42979. target.treeBaseDuration = source.treeBaseDuration;
  42980. }
  42981. target._debugID = source._debugID;
  42982. target._debugSource = source._debugSource;
  42983. target._debugOwner = source._debugOwner;
  42984. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  42985. return target;
  42986. }
  42987. // TODO: This should be lifted into the renderer.
  42988. // The following attributes are only used by interaction tracing builds.
  42989. // They enable interactions to be associated with their async work,
  42990. // And expose interaction metadata to the React DevTools Profiler plugin.
  42991. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  42992. // Exported FiberRoot type includes all properties,
  42993. // To avoid requiring potentially error-prone :any casts throughout the project.
  42994. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  42995. // The types are defined separately within this file to ensure they stay in sync.
  42996. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  42997. function createFiberRoot(containerInfo, isConcurrent, hydrate) {
  42998. // Cyclic construction. This cheats the type system right now because
  42999. // stateNode is any.
  43000. var uninitializedFiber = createHostRootFiber(isConcurrent);
  43001. var root = void 0;
  43002. if (enableSchedulerTracing) {
  43003. root = {
  43004. current: uninitializedFiber,
  43005. containerInfo: containerInfo,
  43006. pendingChildren: null,
  43007. earliestPendingTime: NoWork,
  43008. latestPendingTime: NoWork,
  43009. earliestSuspendedTime: NoWork,
  43010. latestSuspendedTime: NoWork,
  43011. latestPingedTime: NoWork,
  43012. didError: false,
  43013. pendingCommitExpirationTime: NoWork,
  43014. finishedWork: null,
  43015. timeoutHandle: noTimeout,
  43016. context: null,
  43017. pendingContext: null,
  43018. hydrate: hydrate,
  43019. nextExpirationTimeToWorkOn: NoWork,
  43020. expirationTime: NoWork,
  43021. firstBatch: null,
  43022. nextScheduledRoot: null,
  43023. interactionThreadID: tracing.unstable_getThreadID(),
  43024. memoizedInteractions: new Set(),
  43025. pendingInteractionMap: new Map()
  43026. };
  43027. } else {
  43028. root = {
  43029. current: uninitializedFiber,
  43030. containerInfo: containerInfo,
  43031. pendingChildren: null,
  43032. earliestPendingTime: NoWork,
  43033. latestPendingTime: NoWork,
  43034. earliestSuspendedTime: NoWork,
  43035. latestSuspendedTime: NoWork,
  43036. latestPingedTime: NoWork,
  43037. didError: false,
  43038. pendingCommitExpirationTime: NoWork,
  43039. finishedWork: null,
  43040. timeoutHandle: noTimeout,
  43041. context: null,
  43042. pendingContext: null,
  43043. hydrate: hydrate,
  43044. nextExpirationTimeToWorkOn: NoWork,
  43045. expirationTime: NoWork,
  43046. firstBatch: null,
  43047. nextScheduledRoot: null
  43048. };
  43049. }
  43050. uninitializedFiber.stateNode = root;
  43051. // The reason for the way the Flow types are structured in this file,
  43052. // Is to avoid needing :any casts everywhere interaction tracing fields are used.
  43053. // Unfortunately that requires an :any cast for non-interaction tracing capable builds.
  43054. // $FlowFixMe Remove this :any cast and replace it with something better.
  43055. return root;
  43056. }
  43057. /**
  43058. * Forked from fbjs/warning:
  43059. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  43060. *
  43061. * Only change is we use console.warn instead of console.error,
  43062. * and do nothing when 'console' is not supported.
  43063. * This really simplifies the code.
  43064. * ---
  43065. * Similar to invariant but only logs a warning if the condition is not met.
  43066. * This can be used to log issues in development environments in critical
  43067. * paths. Removing the logging code for production environments will keep the
  43068. * same logic and follow the same code paths.
  43069. */
  43070. var lowPriorityWarning = function () {};
  43071. {
  43072. var printWarning = function (format) {
  43073. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  43074. args[_key - 1] = arguments[_key];
  43075. }
  43076. var argIndex = 0;
  43077. var message = 'Warning: ' + format.replace(/%s/g, function () {
  43078. return args[argIndex++];
  43079. });
  43080. if (typeof console !== 'undefined') {
  43081. console.warn(message);
  43082. }
  43083. try {
  43084. // --- Welcome to debugging React ---
  43085. // This error was thrown as a convenience so that you can use this stack
  43086. // to find the callsite that caused this warning to fire.
  43087. throw new Error(message);
  43088. } catch (x) {}
  43089. };
  43090. lowPriorityWarning = function (condition, format) {
  43091. if (format === undefined) {
  43092. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  43093. }
  43094. if (!condition) {
  43095. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  43096. args[_key2 - 2] = arguments[_key2];
  43097. }
  43098. printWarning.apply(undefined, [format].concat(args));
  43099. }
  43100. };
  43101. }
  43102. var lowPriorityWarning$1 = lowPriorityWarning;
  43103. var ReactStrictModeWarnings = {
  43104. discardPendingWarnings: function () {},
  43105. flushPendingDeprecationWarnings: function () {},
  43106. flushPendingUnsafeLifecycleWarnings: function () {},
  43107. recordDeprecationWarnings: function (fiber, instance) {},
  43108. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  43109. recordLegacyContextWarning: function (fiber, instance) {},
  43110. flushLegacyContextWarning: function () {}
  43111. };
  43112. {
  43113. var LIFECYCLE_SUGGESTIONS = {
  43114. UNSAFE_componentWillMount: 'componentDidMount',
  43115. UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',
  43116. UNSAFE_componentWillUpdate: 'componentDidUpdate'
  43117. };
  43118. var pendingComponentWillMountWarnings = [];
  43119. var pendingComponentWillReceivePropsWarnings = [];
  43120. var pendingComponentWillUpdateWarnings = [];
  43121. var pendingUnsafeLifecycleWarnings = new Map();
  43122. var pendingLegacyContextWarning = new Map();
  43123. // Tracks components we have already warned about.
  43124. var didWarnAboutDeprecatedLifecycles = new Set();
  43125. var didWarnAboutUnsafeLifecycles = new Set();
  43126. var didWarnAboutLegacyContext = new Set();
  43127. var setToSortedString = function (set) {
  43128. var array = [];
  43129. set.forEach(function (value) {
  43130. array.push(value);
  43131. });
  43132. return array.sort().join(', ');
  43133. };
  43134. ReactStrictModeWarnings.discardPendingWarnings = function () {
  43135. pendingComponentWillMountWarnings = [];
  43136. pendingComponentWillReceivePropsWarnings = [];
  43137. pendingComponentWillUpdateWarnings = [];
  43138. pendingUnsafeLifecycleWarnings = new Map();
  43139. pendingLegacyContextWarning = new Map();
  43140. };
  43141. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  43142. pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {
  43143. var lifecyclesWarningMesages = [];
  43144. Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {
  43145. var lifecycleWarnings = lifecycleWarningsMap[lifecycle];
  43146. if (lifecycleWarnings.length > 0) {
  43147. var componentNames = new Set();
  43148. lifecycleWarnings.forEach(function (fiber) {
  43149. componentNames.add(getComponentName(fiber.type) || 'Component');
  43150. didWarnAboutUnsafeLifecycles.add(fiber.type);
  43151. });
  43152. var formatted = lifecycle.replace('UNSAFE_', '');
  43153. var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
  43154. var sortedComponentNames = setToSortedString(componentNames);
  43155. lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));
  43156. }
  43157. });
  43158. if (lifecyclesWarningMesages.length > 0) {
  43159. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  43160. 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'));
  43161. }
  43162. });
  43163. pendingUnsafeLifecycleWarnings = new Map();
  43164. };
  43165. var findStrictRoot = function (fiber) {
  43166. var maybeStrictRoot = null;
  43167. var node = fiber;
  43168. while (node !== null) {
  43169. if (node.mode & StrictMode) {
  43170. maybeStrictRoot = node;
  43171. }
  43172. node = node.return;
  43173. }
  43174. return maybeStrictRoot;
  43175. };
  43176. ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {
  43177. if (pendingComponentWillMountWarnings.length > 0) {
  43178. var uniqueNames = new Set();
  43179. pendingComponentWillMountWarnings.forEach(function (fiber) {
  43180. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  43181. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  43182. });
  43183. var sortedNames = setToSortedString(uniqueNames);
  43184. 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);
  43185. pendingComponentWillMountWarnings = [];
  43186. }
  43187. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  43188. var _uniqueNames = new Set();
  43189. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  43190. _uniqueNames.add(getComponentName(fiber.type) || 'Component');
  43191. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  43192. });
  43193. var _sortedNames = setToSortedString(_uniqueNames);
  43194. 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);
  43195. pendingComponentWillReceivePropsWarnings = [];
  43196. }
  43197. if (pendingComponentWillUpdateWarnings.length > 0) {
  43198. var _uniqueNames2 = new Set();
  43199. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  43200. _uniqueNames2.add(getComponentName(fiber.type) || 'Component');
  43201. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  43202. });
  43203. var _sortedNames2 = setToSortedString(_uniqueNames2);
  43204. 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);
  43205. pendingComponentWillUpdateWarnings = [];
  43206. }
  43207. };
  43208. ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {
  43209. // Dedup strategy: Warn once per component.
  43210. if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {
  43211. return;
  43212. }
  43213. // Don't warn about react-lifecycles-compat polyfilled components.
  43214. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  43215. pendingComponentWillMountWarnings.push(fiber);
  43216. }
  43217. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  43218. pendingComponentWillReceivePropsWarnings.push(fiber);
  43219. }
  43220. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  43221. pendingComponentWillUpdateWarnings.push(fiber);
  43222. }
  43223. };
  43224. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  43225. var strictRoot = findStrictRoot(fiber);
  43226. if (strictRoot === null) {
  43227. 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.');
  43228. return;
  43229. }
  43230. // Dedup strategy: Warn once per component.
  43231. // This is difficult to track any other way since component names
  43232. // are often vague and are likely to collide between 3rd party libraries.
  43233. // An expand property is probably okay to use here since it's DEV-only,
  43234. // and will only be set in the event of serious warnings.
  43235. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  43236. return;
  43237. }
  43238. var warningsForRoot = void 0;
  43239. if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {
  43240. warningsForRoot = {
  43241. UNSAFE_componentWillMount: [],
  43242. UNSAFE_componentWillReceiveProps: [],
  43243. UNSAFE_componentWillUpdate: []
  43244. };
  43245. pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);
  43246. } else {
  43247. warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);
  43248. }
  43249. var unsafeLifecycles = [];
  43250. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {
  43251. unsafeLifecycles.push('UNSAFE_componentWillMount');
  43252. }
  43253. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  43254. unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');
  43255. }
  43256. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {
  43257. unsafeLifecycles.push('UNSAFE_componentWillUpdate');
  43258. }
  43259. if (unsafeLifecycles.length > 0) {
  43260. unsafeLifecycles.forEach(function (lifecycle) {
  43261. warningsForRoot[lifecycle].push(fiber);
  43262. });
  43263. }
  43264. };
  43265. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  43266. var strictRoot = findStrictRoot(fiber);
  43267. if (strictRoot === null) {
  43268. 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.');
  43269. return;
  43270. }
  43271. // Dedup strategy: Warn once per component.
  43272. if (didWarnAboutLegacyContext.has(fiber.type)) {
  43273. return;
  43274. }
  43275. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  43276. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  43277. if (warningsForRoot === undefined) {
  43278. warningsForRoot = [];
  43279. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  43280. }
  43281. warningsForRoot.push(fiber);
  43282. }
  43283. };
  43284. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  43285. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  43286. var uniqueNames = new Set();
  43287. fiberArray.forEach(function (fiber) {
  43288. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  43289. didWarnAboutLegacyContext.add(fiber.type);
  43290. });
  43291. var sortedNames = setToSortedString(uniqueNames);
  43292. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  43293. 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);
  43294. });
  43295. };
  43296. }
  43297. // This lets us hook into Fiber to debug what it's doing.
  43298. // See https://github.com/facebook/react/pull/8033.
  43299. // This is not part of the public API, not even for React DevTools.
  43300. // You may only inject a debugTool if you work on React Fiber itself.
  43301. var ReactFiberInstrumentation = {
  43302. debugTool: null
  43303. };
  43304. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  43305. // TODO: Offscreen updates should never suspend. However, a promise that
  43306. // suspended inside an offscreen subtree should be able to ping at the priority
  43307. // of the outer render.
  43308. function markPendingPriorityLevel(root, expirationTime) {
  43309. // If there's a gap between completing a failed root and retrying it,
  43310. // additional updates may be scheduled. Clear `didError`, in case the update
  43311. // is sufficient to fix the error.
  43312. root.didError = false;
  43313. // Update the latest and earliest pending times
  43314. var earliestPendingTime = root.earliestPendingTime;
  43315. if (earliestPendingTime === NoWork) {
  43316. // No other pending updates.
  43317. root.earliestPendingTime = root.latestPendingTime = expirationTime;
  43318. } else {
  43319. if (earliestPendingTime < expirationTime) {
  43320. // This is the earliest pending update.
  43321. root.earliestPendingTime = expirationTime;
  43322. } else {
  43323. var latestPendingTime = root.latestPendingTime;
  43324. if (latestPendingTime > expirationTime) {
  43325. // This is the latest pending update
  43326. root.latestPendingTime = expirationTime;
  43327. }
  43328. }
  43329. }
  43330. findNextExpirationTimeToWorkOn(expirationTime, root);
  43331. }
  43332. function markCommittedPriorityLevels(root, earliestRemainingTime) {
  43333. root.didError = false;
  43334. if (earliestRemainingTime === NoWork) {
  43335. // Fast path. There's no remaining work. Clear everything.
  43336. root.earliestPendingTime = NoWork;
  43337. root.latestPendingTime = NoWork;
  43338. root.earliestSuspendedTime = NoWork;
  43339. root.latestSuspendedTime = NoWork;
  43340. root.latestPingedTime = NoWork;
  43341. findNextExpirationTimeToWorkOn(NoWork, root);
  43342. return;
  43343. }
  43344. // Let's see if the previous latest known pending level was just flushed.
  43345. var latestPendingTime = root.latestPendingTime;
  43346. if (latestPendingTime !== NoWork) {
  43347. if (latestPendingTime > earliestRemainingTime) {
  43348. // We've flushed all the known pending levels.
  43349. root.earliestPendingTime = root.latestPendingTime = NoWork;
  43350. } else {
  43351. var earliestPendingTime = root.earliestPendingTime;
  43352. if (earliestPendingTime > earliestRemainingTime) {
  43353. // We've flushed the earliest known pending level. Set this to the
  43354. // latest pending time.
  43355. root.earliestPendingTime = root.latestPendingTime;
  43356. }
  43357. }
  43358. }
  43359. // Now let's handle the earliest remaining level in the whole tree. We need to
  43360. // decide whether to treat it as a pending level or as suspended. Check
  43361. // it falls within the range of known suspended levels.
  43362. var earliestSuspendedTime = root.earliestSuspendedTime;
  43363. if (earliestSuspendedTime === NoWork) {
  43364. // There's no suspended work. Treat the earliest remaining level as a
  43365. // pending level.
  43366. markPendingPriorityLevel(root, earliestRemainingTime);
  43367. findNextExpirationTimeToWorkOn(NoWork, root);
  43368. return;
  43369. }
  43370. var latestSuspendedTime = root.latestSuspendedTime;
  43371. if (earliestRemainingTime < latestSuspendedTime) {
  43372. // The earliest remaining level is later than all the suspended work. That
  43373. // means we've flushed all the suspended work.
  43374. root.earliestSuspendedTime = NoWork;
  43375. root.latestSuspendedTime = NoWork;
  43376. root.latestPingedTime = NoWork;
  43377. // There's no suspended work. Treat the earliest remaining level as a
  43378. // pending level.
  43379. markPendingPriorityLevel(root, earliestRemainingTime);
  43380. findNextExpirationTimeToWorkOn(NoWork, root);
  43381. return;
  43382. }
  43383. if (earliestRemainingTime > earliestSuspendedTime) {
  43384. // The earliest remaining time is earlier than all the suspended work.
  43385. // Treat it as a pending update.
  43386. markPendingPriorityLevel(root, earliestRemainingTime);
  43387. findNextExpirationTimeToWorkOn(NoWork, root);
  43388. return;
  43389. }
  43390. // The earliest remaining time falls within the range of known suspended
  43391. // levels. We should treat this as suspended work.
  43392. findNextExpirationTimeToWorkOn(NoWork, root);
  43393. }
  43394. function hasLowerPriorityWork(root, erroredExpirationTime) {
  43395. var latestPendingTime = root.latestPendingTime;
  43396. var latestSuspendedTime = root.latestSuspendedTime;
  43397. var latestPingedTime = root.latestPingedTime;
  43398. return latestPendingTime !== NoWork && latestPendingTime < erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime < erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime < erroredExpirationTime;
  43399. }
  43400. function isPriorityLevelSuspended(root, expirationTime) {
  43401. var earliestSuspendedTime = root.earliestSuspendedTime;
  43402. var latestSuspendedTime = root.latestSuspendedTime;
  43403. return earliestSuspendedTime !== NoWork && expirationTime <= earliestSuspendedTime && expirationTime >= latestSuspendedTime;
  43404. }
  43405. function markSuspendedPriorityLevel(root, suspendedTime) {
  43406. root.didError = false;
  43407. clearPing(root, suspendedTime);
  43408. // First, check the known pending levels and update them if needed.
  43409. var earliestPendingTime = root.earliestPendingTime;
  43410. var latestPendingTime = root.latestPendingTime;
  43411. if (earliestPendingTime === suspendedTime) {
  43412. if (latestPendingTime === suspendedTime) {
  43413. // Both known pending levels were suspended. Clear them.
  43414. root.earliestPendingTime = root.latestPendingTime = NoWork;
  43415. } else {
  43416. // The earliest pending level was suspended. Clear by setting it to the
  43417. // latest pending level.
  43418. root.earliestPendingTime = latestPendingTime;
  43419. }
  43420. } else if (latestPendingTime === suspendedTime) {
  43421. // The latest pending level was suspended. Clear by setting it to the
  43422. // latest pending level.
  43423. root.latestPendingTime = earliestPendingTime;
  43424. }
  43425. // Finally, update the known suspended levels.
  43426. var earliestSuspendedTime = root.earliestSuspendedTime;
  43427. var latestSuspendedTime = root.latestSuspendedTime;
  43428. if (earliestSuspendedTime === NoWork) {
  43429. // No other suspended levels.
  43430. root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;
  43431. } else {
  43432. if (earliestSuspendedTime < suspendedTime) {
  43433. // This is the earliest suspended level.
  43434. root.earliestSuspendedTime = suspendedTime;
  43435. } else if (latestSuspendedTime > suspendedTime) {
  43436. // This is the latest suspended level
  43437. root.latestSuspendedTime = suspendedTime;
  43438. }
  43439. }
  43440. findNextExpirationTimeToWorkOn(suspendedTime, root);
  43441. }
  43442. function markPingedPriorityLevel(root, pingedTime) {
  43443. root.didError = false;
  43444. // TODO: When we add back resuming, we need to ensure the progressed work
  43445. // is thrown out and not reused during the restarted render. One way to
  43446. // invalidate the progressed work is to restart at expirationTime + 1.
  43447. var latestPingedTime = root.latestPingedTime;
  43448. if (latestPingedTime === NoWork || latestPingedTime > pingedTime) {
  43449. root.latestPingedTime = pingedTime;
  43450. }
  43451. findNextExpirationTimeToWorkOn(pingedTime, root);
  43452. }
  43453. function clearPing(root, completedTime) {
  43454. // TODO: Track whether the root was pinged during the render phase. If so,
  43455. // we need to make sure we don't lose track of it.
  43456. var latestPingedTime = root.latestPingedTime;
  43457. if (latestPingedTime !== NoWork && latestPingedTime >= completedTime) {
  43458. root.latestPingedTime = NoWork;
  43459. }
  43460. }
  43461. function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
  43462. var earliestExpirationTime = renderExpirationTime;
  43463. var earliestPendingTime = root.earliestPendingTime;
  43464. var earliestSuspendedTime = root.earliestSuspendedTime;
  43465. if (earliestPendingTime > earliestExpirationTime) {
  43466. earliestExpirationTime = earliestPendingTime;
  43467. }
  43468. if (earliestSuspendedTime > earliestExpirationTime) {
  43469. earliestExpirationTime = earliestSuspendedTime;
  43470. }
  43471. return earliestExpirationTime;
  43472. }
  43473. function didExpireAtExpirationTime(root, currentTime) {
  43474. var expirationTime = root.expirationTime;
  43475. if (expirationTime !== NoWork && currentTime <= expirationTime) {
  43476. // The root has expired. Flush all work up to the current time.
  43477. root.nextExpirationTimeToWorkOn = currentTime;
  43478. }
  43479. }
  43480. function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
  43481. var earliestSuspendedTime = root.earliestSuspendedTime;
  43482. var latestSuspendedTime = root.latestSuspendedTime;
  43483. var earliestPendingTime = root.earliestPendingTime;
  43484. var latestPingedTime = root.latestPingedTime;
  43485. // Work on the earliest pending time. Failing that, work on the latest
  43486. // pinged time.
  43487. var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;
  43488. // If there is no pending or pinged work, check if there's suspended work
  43489. // that's lower priority than what we just completed.
  43490. if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime < completedExpirationTime)) {
  43491. // The lowest priority suspended work is the work most likely to be
  43492. // committed next. Let's start rendering it again, so that if it times out,
  43493. // it's ready to commit.
  43494. nextExpirationTimeToWorkOn = latestSuspendedTime;
  43495. }
  43496. var expirationTime = nextExpirationTimeToWorkOn;
  43497. if (expirationTime !== NoWork && earliestSuspendedTime > expirationTime) {
  43498. // Expire using the earliest known expiration time.
  43499. expirationTime = earliestSuspendedTime;
  43500. }
  43501. root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;
  43502. root.expirationTime = expirationTime;
  43503. }
  43504. // UpdateQueue is a linked list of prioritized updates.
  43505. //
  43506. // Like fibers, update queues come in pairs: a current queue, which represents
  43507. // the visible state of the screen, and a work-in-progress queue, which is
  43508. // can be mutated and processed asynchronously before it is committed — a form
  43509. // of double buffering. If a work-in-progress render is discarded before
  43510. // finishing, we create a new work-in-progress by cloning the current queue.
  43511. //
  43512. // Both queues share a persistent, singly-linked list structure. To schedule an
  43513. // update, we append it to the end of both queues. Each queue maintains a
  43514. // pointer to first update in the persistent list that hasn't been processed.
  43515. // The work-in-progress pointer always has a position equal to or greater than
  43516. // the current queue, since we always work on that one. The current queue's
  43517. // pointer is only updated during the commit phase, when we swap in the
  43518. // work-in-progress.
  43519. //
  43520. // For example:
  43521. //
  43522. // Current pointer: A - B - C - D - E - F
  43523. // Work-in-progress pointer: D - E - F
  43524. // ^
  43525. // The work-in-progress queue has
  43526. // processed more updates than current.
  43527. //
  43528. // The reason we append to both queues is because otherwise we might drop
  43529. // updates without ever processing them. For example, if we only add updates to
  43530. // the work-in-progress queue, some updates could be lost whenever a work-in
  43531. // -progress render restarts by cloning from current. Similarly, if we only add
  43532. // updates to the current queue, the updates will be lost whenever an already
  43533. // in-progress queue commits and swaps with the current queue. However, by
  43534. // adding to both queues, we guarantee that the update will be part of the next
  43535. // work-in-progress. (And because the work-in-progress queue becomes the
  43536. // current queue once it commits, there's no danger of applying the same
  43537. // update twice.)
  43538. //
  43539. // Prioritization
  43540. // --------------
  43541. //
  43542. // Updates are not sorted by priority, but by insertion; new updates are always
  43543. // appended to the end of the list.
  43544. //
  43545. // The priority is still important, though. When processing the update queue
  43546. // during the render phase, only the updates with sufficient priority are
  43547. // included in the result. If we skip an update because it has insufficient
  43548. // priority, it remains in the queue to be processed later, during a lower
  43549. // priority render. Crucially, all updates subsequent to a skipped update also
  43550. // remain in the queue *regardless of their priority*. That means high priority
  43551. // updates are sometimes processed twice, at two separate priorities. We also
  43552. // keep track of a base state, that represents the state before the first
  43553. // update in the queue is applied.
  43554. //
  43555. // For example:
  43556. //
  43557. // Given a base state of '', and the following queue of updates
  43558. //
  43559. // A1 - B2 - C1 - D2
  43560. //
  43561. // where the number indicates the priority, and the update is applied to the
  43562. // previous state by appending a letter, React will process these updates as
  43563. // two separate renders, one per distinct priority level:
  43564. //
  43565. // First render, at priority 1:
  43566. // Base state: ''
  43567. // Updates: [A1, C1]
  43568. // Result state: 'AC'
  43569. //
  43570. // Second render, at priority 2:
  43571. // Base state: 'A' <- The base state does not include C1,
  43572. // because B2 was skipped.
  43573. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  43574. // Result state: 'ABCD'
  43575. //
  43576. // Because we process updates in insertion order, and rebase high priority
  43577. // updates when preceding updates are skipped, the final result is deterministic
  43578. // regardless of priority. Intermediate state may vary according to system
  43579. // resources, but the final state is always the same.
  43580. var UpdateState = 0;
  43581. var ReplaceState = 1;
  43582. var ForceUpdate = 2;
  43583. var CaptureUpdate = 3;
  43584. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  43585. // It should only be read right after calling `processUpdateQueue`, via
  43586. // `checkHasForceUpdateAfterProcessing`.
  43587. var hasForceUpdate = false;
  43588. var didWarnUpdateInsideUpdate = void 0;
  43589. var currentlyProcessingQueue = void 0;
  43590. var resetCurrentlyProcessingQueue = void 0;
  43591. {
  43592. didWarnUpdateInsideUpdate = false;
  43593. currentlyProcessingQueue = null;
  43594. resetCurrentlyProcessingQueue = function () {
  43595. currentlyProcessingQueue = null;
  43596. };
  43597. }
  43598. function createUpdateQueue(baseState) {
  43599. var queue = {
  43600. baseState: baseState,
  43601. firstUpdate: null,
  43602. lastUpdate: null,
  43603. firstCapturedUpdate: null,
  43604. lastCapturedUpdate: null,
  43605. firstEffect: null,
  43606. lastEffect: null,
  43607. firstCapturedEffect: null,
  43608. lastCapturedEffect: null
  43609. };
  43610. return queue;
  43611. }
  43612. function cloneUpdateQueue(currentQueue) {
  43613. var queue = {
  43614. baseState: currentQueue.baseState,
  43615. firstUpdate: currentQueue.firstUpdate,
  43616. lastUpdate: currentQueue.lastUpdate,
  43617. // TODO: With resuming, if we bail out and resuse the child tree, we should
  43618. // keep these effects.
  43619. firstCapturedUpdate: null,
  43620. lastCapturedUpdate: null,
  43621. firstEffect: null,
  43622. lastEffect: null,
  43623. firstCapturedEffect: null,
  43624. lastCapturedEffect: null
  43625. };
  43626. return queue;
  43627. }
  43628. function createUpdate(expirationTime) {
  43629. return {
  43630. expirationTime: expirationTime,
  43631. tag: UpdateState,
  43632. payload: null,
  43633. callback: null,
  43634. next: null,
  43635. nextEffect: null
  43636. };
  43637. }
  43638. function appendUpdateToQueue(queue, update) {
  43639. // Append the update to the end of the list.
  43640. if (queue.lastUpdate === null) {
  43641. // Queue is empty
  43642. queue.firstUpdate = queue.lastUpdate = update;
  43643. } else {
  43644. queue.lastUpdate.next = update;
  43645. queue.lastUpdate = update;
  43646. }
  43647. }
  43648. function enqueueUpdate(fiber, update) {
  43649. // Update queues are created lazily.
  43650. var alternate = fiber.alternate;
  43651. var queue1 = void 0;
  43652. var queue2 = void 0;
  43653. if (alternate === null) {
  43654. // There's only one fiber.
  43655. queue1 = fiber.updateQueue;
  43656. queue2 = null;
  43657. if (queue1 === null) {
  43658. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  43659. }
  43660. } else {
  43661. // There are two owners.
  43662. queue1 = fiber.updateQueue;
  43663. queue2 = alternate.updateQueue;
  43664. if (queue1 === null) {
  43665. if (queue2 === null) {
  43666. // Neither fiber has an update queue. Create new ones.
  43667. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  43668. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  43669. } else {
  43670. // Only one fiber has an update queue. Clone to create a new one.
  43671. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  43672. }
  43673. } else {
  43674. if (queue2 === null) {
  43675. // Only one fiber has an update queue. Clone to create a new one.
  43676. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  43677. } else {
  43678. // Both owners have an update queue.
  43679. }
  43680. }
  43681. }
  43682. if (queue2 === null || queue1 === queue2) {
  43683. // There's only a single queue.
  43684. appendUpdateToQueue(queue1, update);
  43685. } else {
  43686. // There are two queues. We need to append the update to both queues,
  43687. // while accounting for the persistent structure of the list — we don't
  43688. // want the same update to be added multiple times.
  43689. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  43690. // One of the queues is not empty. We must add the update to both queues.
  43691. appendUpdateToQueue(queue1, update);
  43692. appendUpdateToQueue(queue2, update);
  43693. } else {
  43694. // Both queues are non-empty. The last update is the same in both lists,
  43695. // because of structural sharing. So, only append to one of the lists.
  43696. appendUpdateToQueue(queue1, update);
  43697. // But we still need to update the `lastUpdate` pointer of queue2.
  43698. queue2.lastUpdate = update;
  43699. }
  43700. }
  43701. {
  43702. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  43703. 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.');
  43704. didWarnUpdateInsideUpdate = true;
  43705. }
  43706. }
  43707. }
  43708. function enqueueCapturedUpdate(workInProgress, update) {
  43709. // Captured updates go into a separate list, and only on the work-in-
  43710. // progress queue.
  43711. var workInProgressQueue = workInProgress.updateQueue;
  43712. if (workInProgressQueue === null) {
  43713. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  43714. } else {
  43715. // TODO: I put this here rather than createWorkInProgress so that we don't
  43716. // clone the queue unnecessarily. There's probably a better way to
  43717. // structure this.
  43718. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  43719. }
  43720. // Append the update to the end of the list.
  43721. if (workInProgressQueue.lastCapturedUpdate === null) {
  43722. // This is the first render phase update
  43723. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  43724. } else {
  43725. workInProgressQueue.lastCapturedUpdate.next = update;
  43726. workInProgressQueue.lastCapturedUpdate = update;
  43727. }
  43728. }
  43729. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  43730. var current = workInProgress.alternate;
  43731. if (current !== null) {
  43732. // If the work-in-progress queue is equal to the current queue,
  43733. // we need to clone it first.
  43734. if (queue === current.updateQueue) {
  43735. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  43736. }
  43737. }
  43738. return queue;
  43739. }
  43740. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  43741. switch (update.tag) {
  43742. case ReplaceState:
  43743. {
  43744. var _payload = update.payload;
  43745. if (typeof _payload === 'function') {
  43746. // Updater function
  43747. {
  43748. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  43749. _payload.call(instance, prevState, nextProps);
  43750. }
  43751. }
  43752. return _payload.call(instance, prevState, nextProps);
  43753. }
  43754. // State object
  43755. return _payload;
  43756. }
  43757. case CaptureUpdate:
  43758. {
  43759. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  43760. }
  43761. // Intentional fallthrough
  43762. case UpdateState:
  43763. {
  43764. var _payload2 = update.payload;
  43765. var partialState = void 0;
  43766. if (typeof _payload2 === 'function') {
  43767. // Updater function
  43768. {
  43769. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  43770. _payload2.call(instance, prevState, nextProps);
  43771. }
  43772. }
  43773. partialState = _payload2.call(instance, prevState, nextProps);
  43774. } else {
  43775. // Partial state object
  43776. partialState = _payload2;
  43777. }
  43778. if (partialState === null || partialState === undefined) {
  43779. // Null and undefined are treated as no-ops.
  43780. return prevState;
  43781. }
  43782. // Merge the partial state and the previous state.
  43783. return _assign({}, prevState, partialState);
  43784. }
  43785. case ForceUpdate:
  43786. {
  43787. hasForceUpdate = true;
  43788. return prevState;
  43789. }
  43790. }
  43791. return prevState;
  43792. }
  43793. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  43794. hasForceUpdate = false;
  43795. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  43796. {
  43797. currentlyProcessingQueue = queue;
  43798. }
  43799. // These values may change as we process the queue.
  43800. var newBaseState = queue.baseState;
  43801. var newFirstUpdate = null;
  43802. var newExpirationTime = NoWork;
  43803. // Iterate through the list of updates to compute the result.
  43804. var update = queue.firstUpdate;
  43805. var resultState = newBaseState;
  43806. while (update !== null) {
  43807. var updateExpirationTime = update.expirationTime;
  43808. if (updateExpirationTime < renderExpirationTime) {
  43809. // This update does not have sufficient priority. Skip it.
  43810. if (newFirstUpdate === null) {
  43811. // This is the first skipped update. It will be the first update in
  43812. // the new list.
  43813. newFirstUpdate = update;
  43814. // Since this is the first update that was skipped, the current result
  43815. // is the new base state.
  43816. newBaseState = resultState;
  43817. }
  43818. // Since this update will remain in the list, update the remaining
  43819. // expiration time.
  43820. if (newExpirationTime < updateExpirationTime) {
  43821. newExpirationTime = updateExpirationTime;
  43822. }
  43823. } else {
  43824. // This update does have sufficient priority. Process it and compute
  43825. // a new result.
  43826. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  43827. var _callback = update.callback;
  43828. if (_callback !== null) {
  43829. workInProgress.effectTag |= Callback;
  43830. // Set this to null, in case it was mutated during an aborted render.
  43831. update.nextEffect = null;
  43832. if (queue.lastEffect === null) {
  43833. queue.firstEffect = queue.lastEffect = update;
  43834. } else {
  43835. queue.lastEffect.nextEffect = update;
  43836. queue.lastEffect = update;
  43837. }
  43838. }
  43839. }
  43840. // Continue to the next update.
  43841. update = update.next;
  43842. }
  43843. // Separately, iterate though the list of captured updates.
  43844. var newFirstCapturedUpdate = null;
  43845. update = queue.firstCapturedUpdate;
  43846. while (update !== null) {
  43847. var _updateExpirationTime = update.expirationTime;
  43848. if (_updateExpirationTime < renderExpirationTime) {
  43849. // This update does not have sufficient priority. Skip it.
  43850. if (newFirstCapturedUpdate === null) {
  43851. // This is the first skipped captured update. It will be the first
  43852. // update in the new list.
  43853. newFirstCapturedUpdate = update;
  43854. // If this is the first update that was skipped, the current result is
  43855. // the new base state.
  43856. if (newFirstUpdate === null) {
  43857. newBaseState = resultState;
  43858. }
  43859. }
  43860. // Since this update will remain in the list, update the remaining
  43861. // expiration time.
  43862. if (newExpirationTime < _updateExpirationTime) {
  43863. newExpirationTime = _updateExpirationTime;
  43864. }
  43865. } else {
  43866. // This update does have sufficient priority. Process it and compute
  43867. // a new result.
  43868. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  43869. var _callback2 = update.callback;
  43870. if (_callback2 !== null) {
  43871. workInProgress.effectTag |= Callback;
  43872. // Set this to null, in case it was mutated during an aborted render.
  43873. update.nextEffect = null;
  43874. if (queue.lastCapturedEffect === null) {
  43875. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  43876. } else {
  43877. queue.lastCapturedEffect.nextEffect = update;
  43878. queue.lastCapturedEffect = update;
  43879. }
  43880. }
  43881. }
  43882. update = update.next;
  43883. }
  43884. if (newFirstUpdate === null) {
  43885. queue.lastUpdate = null;
  43886. }
  43887. if (newFirstCapturedUpdate === null) {
  43888. queue.lastCapturedUpdate = null;
  43889. } else {
  43890. workInProgress.effectTag |= Callback;
  43891. }
  43892. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  43893. // We processed every update, without skipping. That means the new base
  43894. // state is the same as the result state.
  43895. newBaseState = resultState;
  43896. }
  43897. queue.baseState = newBaseState;
  43898. queue.firstUpdate = newFirstUpdate;
  43899. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  43900. // Set the remaining expiration time to be whatever is remaining in the queue.
  43901. // This should be fine because the only two other things that contribute to
  43902. // expiration time are props and context. We're already in the middle of the
  43903. // begin phase by the time we start processing the queue, so we've already
  43904. // dealt with the props. Context in components that specify
  43905. // shouldComponentUpdate is tricky; but we'll have to account for
  43906. // that regardless.
  43907. workInProgress.expirationTime = newExpirationTime;
  43908. workInProgress.memoizedState = resultState;
  43909. {
  43910. currentlyProcessingQueue = null;
  43911. }
  43912. }
  43913. function callCallback(callback, context) {
  43914. !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;
  43915. callback.call(context);
  43916. }
  43917. function resetHasForceUpdateBeforeProcessing() {
  43918. hasForceUpdate = false;
  43919. }
  43920. function checkHasForceUpdateAfterProcessing() {
  43921. return hasForceUpdate;
  43922. }
  43923. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  43924. // If the finished render included captured updates, and there are still
  43925. // lower priority updates left over, we need to keep the captured updates
  43926. // in the queue so that they are rebased and not dropped once we process the
  43927. // queue again at the lower priority.
  43928. if (finishedQueue.firstCapturedUpdate !== null) {
  43929. // Join the captured update list to the end of the normal list.
  43930. if (finishedQueue.lastUpdate !== null) {
  43931. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  43932. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  43933. }
  43934. // Clear the list of captured updates.
  43935. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  43936. }
  43937. // Commit the effects
  43938. commitUpdateEffects(finishedQueue.firstEffect, instance);
  43939. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  43940. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  43941. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  43942. }
  43943. function commitUpdateEffects(effect, instance) {
  43944. while (effect !== null) {
  43945. var _callback3 = effect.callback;
  43946. if (_callback3 !== null) {
  43947. effect.callback = null;
  43948. callCallback(_callback3, instance);
  43949. }
  43950. effect = effect.nextEffect;
  43951. }
  43952. }
  43953. function createCapturedValue(value, source) {
  43954. // If the value is an error, call this function immediately after it is thrown
  43955. // so the stack is accurate.
  43956. return {
  43957. value: value,
  43958. source: source,
  43959. stack: getStackByFiberInDevAndProd(source)
  43960. };
  43961. }
  43962. var valueCursor = createCursor(null);
  43963. var rendererSigil = void 0;
  43964. {
  43965. // Use this to detect multiple renderers using the same context
  43966. rendererSigil = {};
  43967. }
  43968. var currentlyRenderingFiber = null;
  43969. var lastContextDependency = null;
  43970. var lastContextWithAllBitsObserved = null;
  43971. function resetContextDependences() {
  43972. // This is called right before React yields execution, to ensure `readContext`
  43973. // cannot be called outside the render phase.
  43974. currentlyRenderingFiber = null;
  43975. lastContextDependency = null;
  43976. lastContextWithAllBitsObserved = null;
  43977. }
  43978. function pushProvider(providerFiber, nextValue) {
  43979. var context = providerFiber.type._context;
  43980. if (isPrimaryRenderer) {
  43981. push(valueCursor, context._currentValue, providerFiber);
  43982. context._currentValue = nextValue;
  43983. {
  43984. !(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;
  43985. context._currentRenderer = rendererSigil;
  43986. }
  43987. } else {
  43988. push(valueCursor, context._currentValue2, providerFiber);
  43989. context._currentValue2 = nextValue;
  43990. {
  43991. !(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;
  43992. context._currentRenderer2 = rendererSigil;
  43993. }
  43994. }
  43995. }
  43996. function popProvider(providerFiber) {
  43997. var currentValue = valueCursor.current;
  43998. pop(valueCursor, providerFiber);
  43999. var context = providerFiber.type._context;
  44000. if (isPrimaryRenderer) {
  44001. context._currentValue = currentValue;
  44002. } else {
  44003. context._currentValue2 = currentValue;
  44004. }
  44005. }
  44006. function calculateChangedBits(context, newValue, oldValue) {
  44007. // Use Object.is to compare the new context value to the old value. Inlined
  44008. // Object.is polyfill.
  44009. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  44010. if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare
  44011. ) {
  44012. // No change
  44013. return 0;
  44014. } else {
  44015. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;
  44016. {
  44017. !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  44018. }
  44019. return changedBits | 0;
  44020. }
  44021. }
  44022. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  44023. var fiber = workInProgress.child;
  44024. if (fiber !== null) {
  44025. // Set the return pointer of the child to the work-in-progress fiber.
  44026. fiber.return = workInProgress;
  44027. }
  44028. while (fiber !== null) {
  44029. var nextFiber = void 0;
  44030. // Visit this fiber.
  44031. var dependency = fiber.firstContextDependency;
  44032. if (dependency !== null) {
  44033. do {
  44034. // Check if the context matches.
  44035. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  44036. // Match! Schedule an update on this fiber.
  44037. if (fiber.tag === ClassComponent) {
  44038. // Schedule a force update on the work-in-progress.
  44039. var update = createUpdate(renderExpirationTime);
  44040. update.tag = ForceUpdate;
  44041. // TODO: Because we don't have a work-in-progress, this will add the
  44042. // update to the current fiber, too, which means it will persist even if
  44043. // this render is thrown away. Since it's a race condition, not sure it's
  44044. // worth fixing.
  44045. enqueueUpdate(fiber, update);
  44046. }
  44047. if (fiber.expirationTime < renderExpirationTime) {
  44048. fiber.expirationTime = renderExpirationTime;
  44049. }
  44050. var alternate = fiber.alternate;
  44051. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  44052. alternate.expirationTime = renderExpirationTime;
  44053. }
  44054. // Update the child expiration time of all the ancestors, including
  44055. // the alternates.
  44056. var node = fiber.return;
  44057. while (node !== null) {
  44058. alternate = node.alternate;
  44059. if (node.childExpirationTime < renderExpirationTime) {
  44060. node.childExpirationTime = renderExpirationTime;
  44061. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44062. alternate.childExpirationTime = renderExpirationTime;
  44063. }
  44064. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44065. alternate.childExpirationTime = renderExpirationTime;
  44066. } else {
  44067. // Neither alternate was updated, which means the rest of the
  44068. // ancestor path already has sufficient priority.
  44069. break;
  44070. }
  44071. node = node.return;
  44072. }
  44073. }
  44074. nextFiber = fiber.child;
  44075. dependency = dependency.next;
  44076. } while (dependency !== null);
  44077. } else if (fiber.tag === ContextProvider) {
  44078. // Don't scan deeper if this is a matching provider
  44079. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  44080. } else {
  44081. // Traverse down.
  44082. nextFiber = fiber.child;
  44083. }
  44084. if (nextFiber !== null) {
  44085. // Set the return pointer of the child to the work-in-progress fiber.
  44086. nextFiber.return = fiber;
  44087. } else {
  44088. // No child. Traverse to next sibling.
  44089. nextFiber = fiber;
  44090. while (nextFiber !== null) {
  44091. if (nextFiber === workInProgress) {
  44092. // We're back to the root of this subtree. Exit.
  44093. nextFiber = null;
  44094. break;
  44095. }
  44096. var sibling = nextFiber.sibling;
  44097. if (sibling !== null) {
  44098. // Set the return pointer of the sibling to the work-in-progress fiber.
  44099. sibling.return = nextFiber.return;
  44100. nextFiber = sibling;
  44101. break;
  44102. }
  44103. // No more siblings. Traverse up.
  44104. nextFiber = nextFiber.return;
  44105. }
  44106. }
  44107. fiber = nextFiber;
  44108. }
  44109. }
  44110. function prepareToReadContext(workInProgress, renderExpirationTime) {
  44111. currentlyRenderingFiber = workInProgress;
  44112. lastContextDependency = null;
  44113. lastContextWithAllBitsObserved = null;
  44114. // Reset the work-in-progress list
  44115. workInProgress.firstContextDependency = null;
  44116. }
  44117. function readContext(context, observedBits) {
  44118. if (lastContextWithAllBitsObserved === context) {
  44119. // Nothing to do. We already observe everything in this context.
  44120. } else if (observedBits === false || observedBits === 0) {
  44121. // Do not observe any updates.
  44122. } else {
  44123. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  44124. if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {
  44125. // Observe all updates.
  44126. lastContextWithAllBitsObserved = context;
  44127. resolvedObservedBits = maxSigned31BitInt;
  44128. } else {
  44129. resolvedObservedBits = observedBits;
  44130. }
  44131. var contextItem = {
  44132. context: context,
  44133. observedBits: resolvedObservedBits,
  44134. next: null
  44135. };
  44136. if (lastContextDependency === null) {
  44137. !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
  44138. // This is the first dependency in the list
  44139. currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem;
  44140. } else {
  44141. // Append a new context item.
  44142. lastContextDependency = lastContextDependency.next = contextItem;
  44143. }
  44144. }
  44145. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  44146. }
  44147. var NoEffect$1 = /* */0;
  44148. var UnmountSnapshot = /* */2;
  44149. var UnmountMutation = /* */4;
  44150. var MountMutation = /* */8;
  44151. var UnmountLayout = /* */16;
  44152. var MountLayout = /* */32;
  44153. var MountPassive = /* */64;
  44154. var UnmountPassive = /* */128;
  44155. function areHookInputsEqual(arr1, arr2) {
  44156. // Don't bother comparing lengths in prod because these arrays should be
  44157. // passed inline.
  44158. {
  44159. !(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;
  44160. }
  44161. for (var i = 0; i < arr1.length; i++) {
  44162. // Inlined Object.is polyfill.
  44163. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  44164. var val1 = arr1[i];
  44165. var val2 = arr2[i];
  44166. if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare
  44167. ) {
  44168. continue;
  44169. }
  44170. return false;
  44171. }
  44172. return true;
  44173. }
  44174. // These are set right before calling the component.
  44175. var renderExpirationTime = NoWork;
  44176. // The work-in-progress fiber. I've named it differently to distinguish it from
  44177. // the work-in-progress hook.
  44178. var currentlyRenderingFiber$1 = null;
  44179. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  44180. // current hook list is the list that belongs to the current fiber. The
  44181. // work-in-progress hook list is a new list that will be added to the
  44182. // work-in-progress fiber.
  44183. var firstCurrentHook = null;
  44184. var currentHook = null;
  44185. var firstWorkInProgressHook = null;
  44186. var workInProgressHook = null;
  44187. var remainingExpirationTime = NoWork;
  44188. var componentUpdateQueue = null;
  44189. // Updates scheduled during render will trigger an immediate re-render at the
  44190. // end of the current pass. We can't store these updates on the normal queue,
  44191. // because if the work is aborted, they should be discarded. Because this is
  44192. // a relatively rare case, we also don't want to add an additional field to
  44193. // either the hook or queue object types. So we store them in a lazily create
  44194. // map of queue -> render-phase updates, which are discarded once the component
  44195. // completes without re-rendering.
  44196. // Whether the work-in-progress hook is a re-rendered hook
  44197. var isReRender = false;
  44198. // Whether an update was scheduled during the currently executing render pass.
  44199. var didScheduleRenderPhaseUpdate = false;
  44200. // Lazily created map of render-phase updates
  44201. var renderPhaseUpdates = null;
  44202. // Counter to prevent infinite loops.
  44203. var numberOfReRenders = 0;
  44204. var RE_RENDER_LIMIT = 25;
  44205. function resolveCurrentlyRenderingFiber() {
  44206. !(currentlyRenderingFiber$1 !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  44207. return currentlyRenderingFiber$1;
  44208. }
  44209. function prepareToUseHooks(current, workInProgress, nextRenderExpirationTime) {
  44210. if (!enableHooks) {
  44211. return;
  44212. }
  44213. renderExpirationTime = nextRenderExpirationTime;
  44214. currentlyRenderingFiber$1 = workInProgress;
  44215. firstCurrentHook = current !== null ? current.memoizedState : null;
  44216. // The following should have already been reset
  44217. // currentHook = null;
  44218. // workInProgressHook = null;
  44219. // remainingExpirationTime = NoWork;
  44220. // componentUpdateQueue = null;
  44221. // isReRender = false;
  44222. // didScheduleRenderPhaseUpdate = false;
  44223. // renderPhaseUpdates = null;
  44224. // numberOfReRenders = 0;
  44225. }
  44226. function finishHooks(Component, props, children, refOrContext) {
  44227. if (!enableHooks) {
  44228. return children;
  44229. }
  44230. // This must be called after every function component to prevent hooks from
  44231. // being used in classes.
  44232. while (didScheduleRenderPhaseUpdate) {
  44233. // Updates were scheduled during the render phase. They are stored in
  44234. // the `renderPhaseUpdates` map. Call the component again, reusing the
  44235. // work-in-progress hooks and applying the additional updates on top. Keep
  44236. // restarting until no more updates are scheduled.
  44237. didScheduleRenderPhaseUpdate = false;
  44238. numberOfReRenders += 1;
  44239. // Start over from the beginning of the list
  44240. currentHook = null;
  44241. workInProgressHook = null;
  44242. componentUpdateQueue = null;
  44243. children = Component(props, refOrContext);
  44244. }
  44245. renderPhaseUpdates = null;
  44246. numberOfReRenders = 0;
  44247. var renderedWork = currentlyRenderingFiber$1;
  44248. renderedWork.memoizedState = firstWorkInProgressHook;
  44249. renderedWork.expirationTime = remainingExpirationTime;
  44250. renderedWork.updateQueue = componentUpdateQueue;
  44251. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  44252. renderExpirationTime = NoWork;
  44253. currentlyRenderingFiber$1 = null;
  44254. firstCurrentHook = null;
  44255. currentHook = null;
  44256. firstWorkInProgressHook = null;
  44257. workInProgressHook = null;
  44258. remainingExpirationTime = NoWork;
  44259. componentUpdateQueue = null;
  44260. // Always set during createWorkInProgress
  44261. // isReRender = false;
  44262. // These were reset above
  44263. // didScheduleRenderPhaseUpdate = false;
  44264. // renderPhaseUpdates = null;
  44265. // numberOfReRenders = 0;
  44266. !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0;
  44267. return children;
  44268. }
  44269. function resetHooks() {
  44270. if (!enableHooks) {
  44271. return;
  44272. }
  44273. // This is called instead of `finishHooks` if the component throws. It's also
  44274. // called inside mountIndeterminateComponent if we determine the component
  44275. // is a module-style component.
  44276. renderExpirationTime = NoWork;
  44277. currentlyRenderingFiber$1 = null;
  44278. firstCurrentHook = null;
  44279. currentHook = null;
  44280. firstWorkInProgressHook = null;
  44281. workInProgressHook = null;
  44282. remainingExpirationTime = NoWork;
  44283. componentUpdateQueue = null;
  44284. // Always set during createWorkInProgress
  44285. // isReRender = false;
  44286. didScheduleRenderPhaseUpdate = false;
  44287. renderPhaseUpdates = null;
  44288. numberOfReRenders = 0;
  44289. }
  44290. function createHook() {
  44291. return {
  44292. memoizedState: null,
  44293. baseState: null,
  44294. queue: null,
  44295. baseUpdate: null,
  44296. next: null
  44297. };
  44298. }
  44299. function cloneHook(hook) {
  44300. return {
  44301. memoizedState: hook.memoizedState,
  44302. baseState: hook.memoizedState,
  44303. queue: hook.queue,
  44304. baseUpdate: hook.baseUpdate,
  44305. next: null
  44306. };
  44307. }
  44308. function createWorkInProgressHook() {
  44309. if (workInProgressHook === null) {
  44310. // This is the first hook in the list
  44311. if (firstWorkInProgressHook === null) {
  44312. isReRender = false;
  44313. currentHook = firstCurrentHook;
  44314. if (currentHook === null) {
  44315. // This is a newly mounted hook
  44316. workInProgressHook = createHook();
  44317. } else {
  44318. // Clone the current hook.
  44319. workInProgressHook = cloneHook(currentHook);
  44320. }
  44321. firstWorkInProgressHook = workInProgressHook;
  44322. } else {
  44323. // There's already a work-in-progress. Reuse it.
  44324. isReRender = true;
  44325. currentHook = firstCurrentHook;
  44326. workInProgressHook = firstWorkInProgressHook;
  44327. }
  44328. } else {
  44329. if (workInProgressHook.next === null) {
  44330. isReRender = false;
  44331. var hook = void 0;
  44332. if (currentHook === null) {
  44333. // This is a newly mounted hook
  44334. hook = createHook();
  44335. } else {
  44336. currentHook = currentHook.next;
  44337. if (currentHook === null) {
  44338. // This is a newly mounted hook
  44339. hook = createHook();
  44340. } else {
  44341. // Clone the current hook.
  44342. hook = cloneHook(currentHook);
  44343. }
  44344. }
  44345. // Append to the end of the list
  44346. workInProgressHook = workInProgressHook.next = hook;
  44347. } else {
  44348. // There's already a work-in-progress. Reuse it.
  44349. isReRender = true;
  44350. workInProgressHook = workInProgressHook.next;
  44351. currentHook = currentHook !== null ? currentHook.next : null;
  44352. }
  44353. }
  44354. return workInProgressHook;
  44355. }
  44356. function createFunctionComponentUpdateQueue() {
  44357. return {
  44358. lastEffect: null
  44359. };
  44360. }
  44361. function basicStateReducer(state, action) {
  44362. return typeof action === 'function' ? action(state) : action;
  44363. }
  44364. function useContext(context, observedBits) {
  44365. // Ensure we're in a function component (class components support only the
  44366. // .unstable_read() form)
  44367. resolveCurrentlyRenderingFiber();
  44368. return readContext(context, observedBits);
  44369. }
  44370. function useState(initialState) {
  44371. return useReducer(basicStateReducer,
  44372. // useReducer has a special case to support lazy useState initializers
  44373. initialState);
  44374. }
  44375. function useReducer(reducer, initialState, initialAction) {
  44376. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44377. workInProgressHook = createWorkInProgressHook();
  44378. var queue = workInProgressHook.queue;
  44379. if (queue !== null) {
  44380. // Already have a queue, so this is an update.
  44381. if (isReRender) {
  44382. // This is a re-render. Apply the new render phase updates to the previous
  44383. var _dispatch2 = queue.dispatch;
  44384. if (renderPhaseUpdates !== null) {
  44385. // Render phase updates are stored in a map of queue -> linked list
  44386. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  44387. if (firstRenderPhaseUpdate !== undefined) {
  44388. renderPhaseUpdates.delete(queue);
  44389. var newState = workInProgressHook.memoizedState;
  44390. var update = firstRenderPhaseUpdate;
  44391. do {
  44392. // Process this render phase update. We don't have to check the
  44393. // priority because it will always be the same as the current
  44394. // render's.
  44395. var _action = update.action;
  44396. newState = reducer(newState, _action);
  44397. update = update.next;
  44398. } while (update !== null);
  44399. workInProgressHook.memoizedState = newState;
  44400. // Don't persist the state accumlated from the render phase updates to
  44401. // the base state unless the queue is empty.
  44402. // TODO: Not sure if this is the desired semantics, but it's what we
  44403. // do for gDSFP. I can't remember why.
  44404. if (workInProgressHook.baseUpdate === queue.last) {
  44405. workInProgressHook.baseState = newState;
  44406. }
  44407. return [newState, _dispatch2];
  44408. }
  44409. }
  44410. return [workInProgressHook.memoizedState, _dispatch2];
  44411. }
  44412. // The last update in the entire queue
  44413. var _last = queue.last;
  44414. // The last update that is part of the base state.
  44415. var _baseUpdate = workInProgressHook.baseUpdate;
  44416. // Find the first unprocessed update.
  44417. var first = void 0;
  44418. if (_baseUpdate !== null) {
  44419. if (_last !== null) {
  44420. // For the first update, the queue is a circular linked list where
  44421. // `queue.last.next = queue.first`. Once the first update commits, and
  44422. // the `baseUpdate` is no longer empty, we can unravel the list.
  44423. _last.next = null;
  44424. }
  44425. first = _baseUpdate.next;
  44426. } else {
  44427. first = _last !== null ? _last.next : null;
  44428. }
  44429. if (first !== null) {
  44430. var _newState = workInProgressHook.baseState;
  44431. var newBaseState = null;
  44432. var newBaseUpdate = null;
  44433. var prevUpdate = _baseUpdate;
  44434. var _update = first;
  44435. var didSkip = false;
  44436. do {
  44437. var updateExpirationTime = _update.expirationTime;
  44438. if (updateExpirationTime < renderExpirationTime) {
  44439. // Priority is insufficient. Skip this update. If this is the first
  44440. // skipped update, the previous update/state is the new base
  44441. // update/state.
  44442. if (!didSkip) {
  44443. didSkip = true;
  44444. newBaseUpdate = prevUpdate;
  44445. newBaseState = _newState;
  44446. }
  44447. // Update the remaining priority in the queue.
  44448. if (updateExpirationTime > remainingExpirationTime) {
  44449. remainingExpirationTime = updateExpirationTime;
  44450. }
  44451. } else {
  44452. // Process this update.
  44453. var _action2 = _update.action;
  44454. _newState = reducer(_newState, _action2);
  44455. }
  44456. prevUpdate = _update;
  44457. _update = _update.next;
  44458. } while (_update !== null && _update !== first);
  44459. if (!didSkip) {
  44460. newBaseUpdate = prevUpdate;
  44461. newBaseState = _newState;
  44462. }
  44463. workInProgressHook.memoizedState = _newState;
  44464. workInProgressHook.baseUpdate = newBaseUpdate;
  44465. workInProgressHook.baseState = newBaseState;
  44466. }
  44467. var _dispatch = queue.dispatch;
  44468. return [workInProgressHook.memoizedState, _dispatch];
  44469. }
  44470. // There's no existing queue, so this is the initial render.
  44471. if (reducer === basicStateReducer) {
  44472. // Special case for `useState`.
  44473. if (typeof initialState === 'function') {
  44474. initialState = initialState();
  44475. }
  44476. } else if (initialAction !== undefined && initialAction !== null) {
  44477. initialState = reducer(initialState, initialAction);
  44478. }
  44479. workInProgressHook.memoizedState = workInProgressHook.baseState = initialState;
  44480. queue = workInProgressHook.queue = {
  44481. last: null,
  44482. dispatch: null
  44483. };
  44484. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  44485. return [workInProgressHook.memoizedState, dispatch];
  44486. }
  44487. function pushEffect(tag, create, destroy, inputs) {
  44488. var effect = {
  44489. tag: tag,
  44490. create: create,
  44491. destroy: destroy,
  44492. inputs: inputs,
  44493. // Circular
  44494. next: null
  44495. };
  44496. if (componentUpdateQueue === null) {
  44497. componentUpdateQueue = createFunctionComponentUpdateQueue();
  44498. componentUpdateQueue.lastEffect = effect.next = effect;
  44499. } else {
  44500. var _lastEffect = componentUpdateQueue.lastEffect;
  44501. if (_lastEffect === null) {
  44502. componentUpdateQueue.lastEffect = effect.next = effect;
  44503. } else {
  44504. var firstEffect = _lastEffect.next;
  44505. _lastEffect.next = effect;
  44506. effect.next = firstEffect;
  44507. componentUpdateQueue.lastEffect = effect;
  44508. }
  44509. }
  44510. return effect;
  44511. }
  44512. function useRef(initialValue) {
  44513. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44514. workInProgressHook = createWorkInProgressHook();
  44515. var ref = void 0;
  44516. if (workInProgressHook.memoizedState === null) {
  44517. ref = { current: initialValue };
  44518. {
  44519. Object.seal(ref);
  44520. }
  44521. workInProgressHook.memoizedState = ref;
  44522. } else {
  44523. ref = workInProgressHook.memoizedState;
  44524. }
  44525. return ref;
  44526. }
  44527. function useMutationEffect(create, inputs) {
  44528. useEffectImpl(Snapshot | Update, UnmountSnapshot | MountMutation, create, inputs);
  44529. }
  44530. function useLayoutEffect(create, inputs) {
  44531. useEffectImpl(Update, UnmountMutation | MountLayout, create, inputs);
  44532. }
  44533. function useEffect(create, inputs) {
  44534. useEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, inputs);
  44535. }
  44536. function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) {
  44537. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44538. workInProgressHook = createWorkInProgressHook();
  44539. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [create];
  44540. var destroy = null;
  44541. if (currentHook !== null) {
  44542. var prevEffect = currentHook.memoizedState;
  44543. destroy = prevEffect.destroy;
  44544. if (areHookInputsEqual(nextInputs, prevEffect.inputs)) {
  44545. pushEffect(NoEffect$1, create, destroy, nextInputs);
  44546. return;
  44547. }
  44548. }
  44549. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  44550. workInProgressHook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextInputs);
  44551. }
  44552. function useImperativeMethods(ref, create, inputs) {
  44553. // TODO: If inputs are provided, should we skip comparing the ref itself?
  44554. var nextInputs = inputs !== null && inputs !== undefined ? inputs.concat([ref]) : [ref, create];
  44555. // TODO: I've implemented this on top of useEffect because it's almost the
  44556. // same thing, and it would require an equal amount of code. It doesn't seem
  44557. // like a common enough use case to justify the additional size.
  44558. useEffectImpl(Update, UnmountMutation | MountLayout, function () {
  44559. if (typeof ref === 'function') {
  44560. var refCallback = ref;
  44561. var _inst = create();
  44562. refCallback(_inst);
  44563. return function () {
  44564. return refCallback(null);
  44565. };
  44566. } else if (ref !== null && ref !== undefined) {
  44567. var refObject = ref;
  44568. var _inst2 = create();
  44569. refObject.current = _inst2;
  44570. return function () {
  44571. refObject.current = null;
  44572. };
  44573. }
  44574. }, nextInputs);
  44575. }
  44576. function useCallback(callback, inputs) {
  44577. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44578. workInProgressHook = createWorkInProgressHook();
  44579. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [callback];
  44580. var prevState = workInProgressHook.memoizedState;
  44581. if (prevState !== null) {
  44582. var prevInputs = prevState[1];
  44583. if (areHookInputsEqual(nextInputs, prevInputs)) {
  44584. return prevState[0];
  44585. }
  44586. }
  44587. workInProgressHook.memoizedState = [callback, nextInputs];
  44588. return callback;
  44589. }
  44590. function useMemo(nextCreate, inputs) {
  44591. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44592. workInProgressHook = createWorkInProgressHook();
  44593. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [nextCreate];
  44594. var prevState = workInProgressHook.memoizedState;
  44595. if (prevState !== null) {
  44596. var prevInputs = prevState[1];
  44597. if (areHookInputsEqual(nextInputs, prevInputs)) {
  44598. return prevState[0];
  44599. }
  44600. }
  44601. var nextValue = nextCreate();
  44602. workInProgressHook.memoizedState = [nextValue, nextInputs];
  44603. return nextValue;
  44604. }
  44605. function dispatchAction(fiber, queue, action) {
  44606. !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0;
  44607. var alternate = fiber.alternate;
  44608. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  44609. // This is a render phase update. Stash it in a lazily-created map of
  44610. // queue -> linked list of updates. After this render pass, we'll restart
  44611. // and apply the stashed updates on top of the work-in-progress hook.
  44612. didScheduleRenderPhaseUpdate = true;
  44613. var update = {
  44614. expirationTime: renderExpirationTime,
  44615. action: action,
  44616. next: null
  44617. };
  44618. if (renderPhaseUpdates === null) {
  44619. renderPhaseUpdates = new Map();
  44620. }
  44621. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  44622. if (firstRenderPhaseUpdate === undefined) {
  44623. renderPhaseUpdates.set(queue, update);
  44624. } else {
  44625. // Append the update to the end of the list.
  44626. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  44627. while (lastRenderPhaseUpdate.next !== null) {
  44628. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  44629. }
  44630. lastRenderPhaseUpdate.next = update;
  44631. }
  44632. } else {
  44633. var currentTime = requestCurrentTime();
  44634. var _expirationTime = computeExpirationForFiber(currentTime, fiber);
  44635. var _update2 = {
  44636. expirationTime: _expirationTime,
  44637. action: action,
  44638. next: null
  44639. };
  44640. flushPassiveEffects();
  44641. // Append the update to the end of the list.
  44642. var _last2 = queue.last;
  44643. if (_last2 === null) {
  44644. // This is the first update. Create a circular list.
  44645. _update2.next = _update2;
  44646. } else {
  44647. var first = _last2.next;
  44648. if (first !== null) {
  44649. // Still circular.
  44650. _update2.next = first;
  44651. }
  44652. _last2.next = _update2;
  44653. }
  44654. queue.last = _update2;
  44655. scheduleWork(fiber, _expirationTime);
  44656. }
  44657. }
  44658. var NO_CONTEXT = {};
  44659. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  44660. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  44661. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  44662. function requiredContext(c) {
  44663. !(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;
  44664. return c;
  44665. }
  44666. function getRootHostContainer() {
  44667. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  44668. return rootInstance;
  44669. }
  44670. function pushHostContainer(fiber, nextRootInstance) {
  44671. // Push current root instance onto the stack;
  44672. // This allows us to reset root when portals are popped.
  44673. push(rootInstanceStackCursor, nextRootInstance, fiber);
  44674. // Track the context and the Fiber that provided it.
  44675. // This enables us to pop only Fibers that provide unique contexts.
  44676. push(contextFiberStackCursor, fiber, fiber);
  44677. // Finally, we need to push the host context to the stack.
  44678. // However, we can't just call getRootHostContext() and push it because
  44679. // we'd have a different number of entries on the stack depending on
  44680. // whether getRootHostContext() throws somewhere in renderer code or not.
  44681. // So we push an empty value first. This lets us safely unwind on errors.
  44682. push(contextStackCursor$1, NO_CONTEXT, fiber);
  44683. var nextRootContext = getRootHostContext(nextRootInstance);
  44684. // Now that we know this function doesn't throw, replace it.
  44685. pop(contextStackCursor$1, fiber);
  44686. push(contextStackCursor$1, nextRootContext, fiber);
  44687. }
  44688. function popHostContainer(fiber) {
  44689. pop(contextStackCursor$1, fiber);
  44690. pop(contextFiberStackCursor, fiber);
  44691. pop(rootInstanceStackCursor, fiber);
  44692. }
  44693. function getHostContext() {
  44694. var context = requiredContext(contextStackCursor$1.current);
  44695. return context;
  44696. }
  44697. function pushHostContext(fiber) {
  44698. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  44699. var context = requiredContext(contextStackCursor$1.current);
  44700. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  44701. // Don't push this Fiber's context unless it's unique.
  44702. if (context === nextContext) {
  44703. return;
  44704. }
  44705. // Track the context and the Fiber that provided it.
  44706. // This enables us to pop only Fibers that provide unique contexts.
  44707. push(contextFiberStackCursor, fiber, fiber);
  44708. push(contextStackCursor$1, nextContext, fiber);
  44709. }
  44710. function popHostContext(fiber) {
  44711. // Do not pop unless this Fiber provided the current context.
  44712. // pushHostContext() only pushes Fibers that provide unique contexts.
  44713. if (contextFiberStackCursor.current !== fiber) {
  44714. return;
  44715. }
  44716. pop(contextStackCursor$1, fiber);
  44717. pop(contextFiberStackCursor, fiber);
  44718. }
  44719. var commitTime = 0;
  44720. var profilerStartTime = -1;
  44721. function getCommitTime() {
  44722. return commitTime;
  44723. }
  44724. function recordCommitTime() {
  44725. if (!enableProfilerTimer) {
  44726. return;
  44727. }
  44728. commitTime = scheduler.unstable_now();
  44729. }
  44730. function startProfilerTimer(fiber) {
  44731. if (!enableProfilerTimer) {
  44732. return;
  44733. }
  44734. profilerStartTime = scheduler.unstable_now();
  44735. if (fiber.actualStartTime < 0) {
  44736. fiber.actualStartTime = scheduler.unstable_now();
  44737. }
  44738. }
  44739. function stopProfilerTimerIfRunning(fiber) {
  44740. if (!enableProfilerTimer) {
  44741. return;
  44742. }
  44743. profilerStartTime = -1;
  44744. }
  44745. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  44746. if (!enableProfilerTimer) {
  44747. return;
  44748. }
  44749. if (profilerStartTime >= 0) {
  44750. var elapsedTime = scheduler.unstable_now() - profilerStartTime;
  44751. fiber.actualDuration += elapsedTime;
  44752. if (overrideBaseTime) {
  44753. fiber.selfBaseDuration = elapsedTime;
  44754. }
  44755. profilerStartTime = -1;
  44756. }
  44757. }
  44758. function resolveDefaultProps(Component, baseProps) {
  44759. if (Component && Component.defaultProps) {
  44760. // Resolve default props. Taken from ReactElement
  44761. var props = _assign({}, baseProps);
  44762. var defaultProps = Component.defaultProps;
  44763. for (var propName in defaultProps) {
  44764. if (props[propName] === undefined) {
  44765. props[propName] = defaultProps[propName];
  44766. }
  44767. }
  44768. return props;
  44769. }
  44770. return baseProps;
  44771. }
  44772. function readLazyComponentType(lazyComponent) {
  44773. var status = lazyComponent._status;
  44774. var result = lazyComponent._result;
  44775. switch (status) {
  44776. case Resolved:
  44777. {
  44778. var Component = result;
  44779. return Component;
  44780. }
  44781. case Rejected:
  44782. {
  44783. var error = result;
  44784. throw error;
  44785. }
  44786. case Pending:
  44787. {
  44788. var thenable = result;
  44789. throw thenable;
  44790. }
  44791. default:
  44792. {
  44793. lazyComponent._status = Pending;
  44794. var ctor = lazyComponent._ctor;
  44795. var _thenable = ctor();
  44796. _thenable.then(function (moduleObject) {
  44797. if (lazyComponent._status === Pending) {
  44798. var defaultExport = moduleObject.default;
  44799. {
  44800. if (defaultExport === undefined) {
  44801. 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);
  44802. }
  44803. }
  44804. lazyComponent._status = Resolved;
  44805. lazyComponent._result = defaultExport;
  44806. }
  44807. }, function (error) {
  44808. if (lazyComponent._status === Pending) {
  44809. lazyComponent._status = Rejected;
  44810. lazyComponent._result = error;
  44811. }
  44812. });
  44813. lazyComponent._result = _thenable;
  44814. throw _thenable;
  44815. }
  44816. }
  44817. }
  44818. var ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner;
  44819. function readContext$1(contextType) {
  44820. var dispatcher = ReactCurrentOwner$4.currentDispatcher;
  44821. return dispatcher.readContext(contextType);
  44822. }
  44823. var fakeInternalInstance = {};
  44824. var isArray$1 = Array.isArray;
  44825. // React.Component uses a shared frozen object by default.
  44826. // We'll use it to determine whether we need to initialize legacy refs.
  44827. var emptyRefsObject = new React.Component().refs;
  44828. var didWarnAboutStateAssignmentForComponent = void 0;
  44829. var didWarnAboutUninitializedState = void 0;
  44830. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  44831. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  44832. var didWarnAboutUndefinedDerivedState = void 0;
  44833. var warnOnUndefinedDerivedState = void 0;
  44834. var warnOnInvalidCallback$1 = void 0;
  44835. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  44836. var didWarnAboutContextTypeAndContextTypes = void 0;
  44837. var didWarnAboutInvalidateContextType = void 0;
  44838. {
  44839. didWarnAboutStateAssignmentForComponent = new Set();
  44840. didWarnAboutUninitializedState = new Set();
  44841. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  44842. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  44843. didWarnAboutDirectlyAssigningPropsToState = new Set();
  44844. didWarnAboutUndefinedDerivedState = new Set();
  44845. didWarnAboutContextTypeAndContextTypes = new Set();
  44846. didWarnAboutInvalidateContextType = new Set();
  44847. var didWarnOnInvalidCallback = new Set();
  44848. warnOnInvalidCallback$1 = function (callback, callerName) {
  44849. if (callback === null || typeof callback === 'function') {
  44850. return;
  44851. }
  44852. var key = callerName + '_' + callback;
  44853. if (!didWarnOnInvalidCallback.has(key)) {
  44854. didWarnOnInvalidCallback.add(key);
  44855. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  44856. }
  44857. };
  44858. warnOnUndefinedDerivedState = function (type, partialState) {
  44859. if (partialState === undefined) {
  44860. var componentName = getComponentName(type) || 'Component';
  44861. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  44862. didWarnAboutUndefinedDerivedState.add(componentName);
  44863. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  44864. }
  44865. }
  44866. };
  44867. // This is so gross but it's at least non-critical and can be removed if
  44868. // it causes problems. This is meant to give a nicer error message for
  44869. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  44870. // ...)) which otherwise throws a "_processChildContext is not a function"
  44871. // exception.
  44872. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  44873. enumerable: false,
  44874. value: function () {
  44875. 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).');
  44876. }
  44877. });
  44878. Object.freeze(fakeInternalInstance);
  44879. }
  44880. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  44881. var prevState = workInProgress.memoizedState;
  44882. {
  44883. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  44884. // Invoke the function an extra time to help detect side-effects.
  44885. getDerivedStateFromProps(nextProps, prevState);
  44886. }
  44887. }
  44888. var partialState = getDerivedStateFromProps(nextProps, prevState);
  44889. {
  44890. warnOnUndefinedDerivedState(ctor, partialState);
  44891. }
  44892. // Merge the partial state and the previous state.
  44893. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  44894. workInProgress.memoizedState = memoizedState;
  44895. // Once the update queue is empty, persist the derived state onto the
  44896. // base state.
  44897. var updateQueue = workInProgress.updateQueue;
  44898. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  44899. updateQueue.baseState = memoizedState;
  44900. }
  44901. }
  44902. var classComponentUpdater = {
  44903. isMounted: isMounted,
  44904. enqueueSetState: function (inst, payload, callback) {
  44905. var fiber = get(inst);
  44906. var currentTime = requestCurrentTime();
  44907. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  44908. var update = createUpdate(expirationTime);
  44909. update.payload = payload;
  44910. if (callback !== undefined && callback !== null) {
  44911. {
  44912. warnOnInvalidCallback$1(callback, 'setState');
  44913. }
  44914. update.callback = callback;
  44915. }
  44916. flushPassiveEffects();
  44917. enqueueUpdate(fiber, update);
  44918. scheduleWork(fiber, expirationTime);
  44919. },
  44920. enqueueReplaceState: function (inst, payload, callback) {
  44921. var fiber = get(inst);
  44922. var currentTime = requestCurrentTime();
  44923. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  44924. var update = createUpdate(expirationTime);
  44925. update.tag = ReplaceState;
  44926. update.payload = payload;
  44927. if (callback !== undefined && callback !== null) {
  44928. {
  44929. warnOnInvalidCallback$1(callback, 'replaceState');
  44930. }
  44931. update.callback = callback;
  44932. }
  44933. flushPassiveEffects();
  44934. enqueueUpdate(fiber, update);
  44935. scheduleWork(fiber, expirationTime);
  44936. },
  44937. enqueueForceUpdate: function (inst, callback) {
  44938. var fiber = get(inst);
  44939. var currentTime = requestCurrentTime();
  44940. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  44941. var update = createUpdate(expirationTime);
  44942. update.tag = ForceUpdate;
  44943. if (callback !== undefined && callback !== null) {
  44944. {
  44945. warnOnInvalidCallback$1(callback, 'forceUpdate');
  44946. }
  44947. update.callback = callback;
  44948. }
  44949. flushPassiveEffects();
  44950. enqueueUpdate(fiber, update);
  44951. scheduleWork(fiber, expirationTime);
  44952. }
  44953. };
  44954. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  44955. var instance = workInProgress.stateNode;
  44956. if (typeof instance.shouldComponentUpdate === 'function') {
  44957. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  44958. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  44959. stopPhaseTimer();
  44960. {
  44961. !(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;
  44962. }
  44963. return shouldUpdate;
  44964. }
  44965. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  44966. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  44967. }
  44968. return true;
  44969. }
  44970. function checkClassInstance(workInProgress, ctor, newProps) {
  44971. var instance = workInProgress.stateNode;
  44972. {
  44973. var name = getComponentName(ctor) || 'Component';
  44974. var renderPresent = instance.render;
  44975. if (!renderPresent) {
  44976. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  44977. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  44978. } else {
  44979. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  44980. }
  44981. }
  44982. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  44983. !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;
  44984. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  44985. !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;
  44986. var noInstancePropTypes = !instance.propTypes;
  44987. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  44988. var noInstanceContextType = !instance.contextType;
  44989. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  44990. var noInstanceContextTypes = !instance.contextTypes;
  44991. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  44992. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  44993. didWarnAboutContextTypeAndContextTypes.add(ctor);
  44994. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  44995. }
  44996. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  44997. !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;
  44998. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  44999. 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');
  45000. }
  45001. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  45002. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  45003. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  45004. !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;
  45005. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  45006. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  45007. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  45008. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  45009. var hasMutatedProps = instance.props !== newProps;
  45010. !(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;
  45011. var noInstanceDefaultProps = !instance.defaultProps;
  45012. !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;
  45013. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  45014. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  45015. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  45016. }
  45017. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  45018. !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;
  45019. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  45020. !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;
  45021. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  45022. !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;
  45023. var _state = instance.state;
  45024. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  45025. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  45026. }
  45027. if (typeof instance.getChildContext === 'function') {
  45028. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  45029. }
  45030. }
  45031. }
  45032. function adoptClassInstance(workInProgress, instance) {
  45033. instance.updater = classComponentUpdater;
  45034. workInProgress.stateNode = instance;
  45035. // The instance needs access to the fiber so that it can schedule updates
  45036. set(instance, workInProgress);
  45037. {
  45038. instance._reactInternalInstance = fakeInternalInstance;
  45039. }
  45040. }
  45041. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  45042. var isLegacyContextConsumer = false;
  45043. var unmaskedContext = emptyContextObject;
  45044. var context = null;
  45045. var contextType = ctor.contextType;
  45046. if (typeof contextType === 'object' && contextType !== null) {
  45047. {
  45048. if (contextType.$$typeof !== REACT_CONTEXT_TYPE && !didWarnAboutInvalidateContextType.has(ctor)) {
  45049. didWarnAboutInvalidateContextType.add(ctor);
  45050. 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');
  45051. }
  45052. }
  45053. context = readContext$1(contextType);
  45054. } else {
  45055. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45056. var contextTypes = ctor.contextTypes;
  45057. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  45058. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  45059. }
  45060. // Instantiate twice to help detect side-effects.
  45061. {
  45062. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45063. new ctor(props, context); // eslint-disable-line no-new
  45064. }
  45065. }
  45066. var instance = new ctor(props, context);
  45067. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  45068. adoptClassInstance(workInProgress, instance);
  45069. {
  45070. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  45071. var componentName = getComponentName(ctor) || 'Component';
  45072. if (!didWarnAboutUninitializedState.has(componentName)) {
  45073. didWarnAboutUninitializedState.add(componentName);
  45074. 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);
  45075. }
  45076. }
  45077. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  45078. // Warn about these lifecycles if they are present.
  45079. // Don't warn about react-lifecycles-compat polyfilled methods though.
  45080. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  45081. var foundWillMountName = null;
  45082. var foundWillReceivePropsName = null;
  45083. var foundWillUpdateName = null;
  45084. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  45085. foundWillMountName = 'componentWillMount';
  45086. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45087. foundWillMountName = 'UNSAFE_componentWillMount';
  45088. }
  45089. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  45090. foundWillReceivePropsName = 'componentWillReceiveProps';
  45091. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45092. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  45093. }
  45094. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  45095. foundWillUpdateName = 'componentWillUpdate';
  45096. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  45097. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  45098. }
  45099. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  45100. var _componentName = getComponentName(ctor) || 'Component';
  45101. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  45102. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  45103. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  45104. 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 : '');
  45105. }
  45106. }
  45107. }
  45108. }
  45109. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  45110. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  45111. if (isLegacyContextConsumer) {
  45112. cacheContext(workInProgress, unmaskedContext, context);
  45113. }
  45114. return instance;
  45115. }
  45116. function callComponentWillMount(workInProgress, instance) {
  45117. startPhaseTimer(workInProgress, 'componentWillMount');
  45118. var oldState = instance.state;
  45119. if (typeof instance.componentWillMount === 'function') {
  45120. instance.componentWillMount();
  45121. }
  45122. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45123. instance.UNSAFE_componentWillMount();
  45124. }
  45125. stopPhaseTimer();
  45126. if (oldState !== instance.state) {
  45127. {
  45128. 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');
  45129. }
  45130. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45131. }
  45132. }
  45133. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  45134. var oldState = instance.state;
  45135. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  45136. if (typeof instance.componentWillReceiveProps === 'function') {
  45137. instance.componentWillReceiveProps(newProps, nextContext);
  45138. }
  45139. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45140. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  45141. }
  45142. stopPhaseTimer();
  45143. if (instance.state !== oldState) {
  45144. {
  45145. var componentName = getComponentName(workInProgress.type) || 'Component';
  45146. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  45147. didWarnAboutStateAssignmentForComponent.add(componentName);
  45148. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  45149. }
  45150. }
  45151. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45152. }
  45153. }
  45154. // Invokes the mount life-cycles on a previously never rendered instance.
  45155. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  45156. {
  45157. checkClassInstance(workInProgress, ctor, newProps);
  45158. }
  45159. var instance = workInProgress.stateNode;
  45160. instance.props = newProps;
  45161. instance.state = workInProgress.memoizedState;
  45162. instance.refs = emptyRefsObject;
  45163. var contextType = ctor.contextType;
  45164. if (typeof contextType === 'object' && contextType !== null) {
  45165. instance.context = readContext$1(contextType);
  45166. } else {
  45167. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45168. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  45169. }
  45170. {
  45171. if (instance.state === newProps) {
  45172. var componentName = getComponentName(ctor) || 'Component';
  45173. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  45174. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  45175. 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);
  45176. }
  45177. }
  45178. if (workInProgress.mode & StrictMode) {
  45179. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  45180. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  45181. }
  45182. if (warnAboutDeprecatedLifecycles) {
  45183. ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
  45184. }
  45185. }
  45186. var updateQueue = workInProgress.updateQueue;
  45187. if (updateQueue !== null) {
  45188. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45189. instance.state = workInProgress.memoizedState;
  45190. }
  45191. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  45192. if (typeof getDerivedStateFromProps === 'function') {
  45193. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  45194. instance.state = workInProgress.memoizedState;
  45195. }
  45196. // In order to support react-lifecycles-compat polyfilled components,
  45197. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45198. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  45199. callComponentWillMount(workInProgress, instance);
  45200. // If we had additional state updates during this life-cycle, let's
  45201. // process them now.
  45202. updateQueue = workInProgress.updateQueue;
  45203. if (updateQueue !== null) {
  45204. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45205. instance.state = workInProgress.memoizedState;
  45206. }
  45207. }
  45208. if (typeof instance.componentDidMount === 'function') {
  45209. workInProgress.effectTag |= Update;
  45210. }
  45211. }
  45212. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  45213. var instance = workInProgress.stateNode;
  45214. var oldProps = workInProgress.memoizedProps;
  45215. instance.props = oldProps;
  45216. var oldContext = instance.context;
  45217. var contextType = ctor.contextType;
  45218. var nextContext = void 0;
  45219. if (typeof contextType === 'object' && contextType !== null) {
  45220. nextContext = readContext$1(contextType);
  45221. } else {
  45222. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45223. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  45224. }
  45225. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  45226. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  45227. // Note: During these life-cycles, instance.props/instance.state are what
  45228. // ever the previously attempted to render - not the "current". However,
  45229. // during componentDidUpdate we pass the "current" props.
  45230. // In order to support react-lifecycles-compat polyfilled components,
  45231. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45232. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  45233. if (oldProps !== newProps || oldContext !== nextContext) {
  45234. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  45235. }
  45236. }
  45237. resetHasForceUpdateBeforeProcessing();
  45238. var oldState = workInProgress.memoizedState;
  45239. var newState = instance.state = oldState;
  45240. var updateQueue = workInProgress.updateQueue;
  45241. if (updateQueue !== null) {
  45242. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45243. newState = workInProgress.memoizedState;
  45244. }
  45245. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  45246. // If an update was already in progress, we should schedule an Update
  45247. // effect even though we're bailing out, so that cWU/cDU are called.
  45248. if (typeof instance.componentDidMount === 'function') {
  45249. workInProgress.effectTag |= Update;
  45250. }
  45251. return false;
  45252. }
  45253. if (typeof getDerivedStateFromProps === 'function') {
  45254. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  45255. newState = workInProgress.memoizedState;
  45256. }
  45257. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  45258. if (shouldUpdate) {
  45259. // In order to support react-lifecycles-compat polyfilled components,
  45260. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45261. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  45262. startPhaseTimer(workInProgress, 'componentWillMount');
  45263. if (typeof instance.componentWillMount === 'function') {
  45264. instance.componentWillMount();
  45265. }
  45266. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45267. instance.UNSAFE_componentWillMount();
  45268. }
  45269. stopPhaseTimer();
  45270. }
  45271. if (typeof instance.componentDidMount === 'function') {
  45272. workInProgress.effectTag |= Update;
  45273. }
  45274. } else {
  45275. // If an update was already in progress, we should schedule an Update
  45276. // effect even though we're bailing out, so that cWU/cDU are called.
  45277. if (typeof instance.componentDidMount === 'function') {
  45278. workInProgress.effectTag |= Update;
  45279. }
  45280. // If shouldComponentUpdate returned false, we should still update the
  45281. // memoized state to indicate that this work can be reused.
  45282. workInProgress.memoizedProps = newProps;
  45283. workInProgress.memoizedState = newState;
  45284. }
  45285. // Update the existing instance's state, props, and context pointers even
  45286. // if shouldComponentUpdate returns false.
  45287. instance.props = newProps;
  45288. instance.state = newState;
  45289. instance.context = nextContext;
  45290. return shouldUpdate;
  45291. }
  45292. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  45293. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  45294. var instance = workInProgress.stateNode;
  45295. var oldProps = workInProgress.memoizedProps;
  45296. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  45297. var oldContext = instance.context;
  45298. var contextType = ctor.contextType;
  45299. var nextContext = void 0;
  45300. if (typeof contextType === 'object' && contextType !== null) {
  45301. nextContext = readContext$1(contextType);
  45302. } else {
  45303. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45304. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  45305. }
  45306. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  45307. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  45308. // Note: During these life-cycles, instance.props/instance.state are what
  45309. // ever the previously attempted to render - not the "current". However,
  45310. // during componentDidUpdate we pass the "current" props.
  45311. // In order to support react-lifecycles-compat polyfilled components,
  45312. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45313. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  45314. if (oldProps !== newProps || oldContext !== nextContext) {
  45315. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  45316. }
  45317. }
  45318. resetHasForceUpdateBeforeProcessing();
  45319. var oldState = workInProgress.memoizedState;
  45320. var newState = instance.state = oldState;
  45321. var updateQueue = workInProgress.updateQueue;
  45322. if (updateQueue !== null) {
  45323. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45324. newState = workInProgress.memoizedState;
  45325. }
  45326. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  45327. // If an update was already in progress, we should schedule an Update
  45328. // effect even though we're bailing out, so that cWU/cDU are called.
  45329. if (typeof instance.componentDidUpdate === 'function') {
  45330. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45331. workInProgress.effectTag |= Update;
  45332. }
  45333. }
  45334. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  45335. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45336. workInProgress.effectTag |= Snapshot;
  45337. }
  45338. }
  45339. return false;
  45340. }
  45341. if (typeof getDerivedStateFromProps === 'function') {
  45342. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  45343. newState = workInProgress.memoizedState;
  45344. }
  45345. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  45346. if (shouldUpdate) {
  45347. // In order to support react-lifecycles-compat polyfilled components,
  45348. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45349. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  45350. startPhaseTimer(workInProgress, 'componentWillUpdate');
  45351. if (typeof instance.componentWillUpdate === 'function') {
  45352. instance.componentWillUpdate(newProps, newState, nextContext);
  45353. }
  45354. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  45355. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  45356. }
  45357. stopPhaseTimer();
  45358. }
  45359. if (typeof instance.componentDidUpdate === 'function') {
  45360. workInProgress.effectTag |= Update;
  45361. }
  45362. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  45363. workInProgress.effectTag |= Snapshot;
  45364. }
  45365. } else {
  45366. // If an update was already in progress, we should schedule an Update
  45367. // effect even though we're bailing out, so that cWU/cDU are called.
  45368. if (typeof instance.componentDidUpdate === 'function') {
  45369. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45370. workInProgress.effectTag |= Update;
  45371. }
  45372. }
  45373. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  45374. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45375. workInProgress.effectTag |= Snapshot;
  45376. }
  45377. }
  45378. // If shouldComponentUpdate returned false, we should still update the
  45379. // memoized props/state to indicate that this work can be reused.
  45380. workInProgress.memoizedProps = newProps;
  45381. workInProgress.memoizedState = newState;
  45382. }
  45383. // Update the existing instance's state, props, and context pointers even
  45384. // if shouldComponentUpdate returns false.
  45385. instance.props = newProps;
  45386. instance.state = newState;
  45387. instance.context = nextContext;
  45388. return shouldUpdate;
  45389. }
  45390. var didWarnAboutMaps = void 0;
  45391. var didWarnAboutGenerators = void 0;
  45392. var didWarnAboutStringRefInStrictMode = void 0;
  45393. var ownerHasKeyUseWarning = void 0;
  45394. var ownerHasFunctionTypeWarning = void 0;
  45395. var warnForMissingKey = function (child) {};
  45396. {
  45397. didWarnAboutMaps = false;
  45398. didWarnAboutGenerators = false;
  45399. didWarnAboutStringRefInStrictMode = {};
  45400. /**
  45401. * Warn if there's no key explicitly set on dynamic arrays of children or
  45402. * object keys are not valid. This allows us to keep track of children between
  45403. * updates.
  45404. */
  45405. ownerHasKeyUseWarning = {};
  45406. ownerHasFunctionTypeWarning = {};
  45407. warnForMissingKey = function (child) {
  45408. if (child === null || typeof child !== 'object') {
  45409. return;
  45410. }
  45411. if (!child._store || child._store.validated || child.key != null) {
  45412. return;
  45413. }
  45414. !(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;
  45415. child._store.validated = true;
  45416. 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();
  45417. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  45418. return;
  45419. }
  45420. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  45421. 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.');
  45422. };
  45423. }
  45424. var isArray = Array.isArray;
  45425. function coerceRef(returnFiber, current$$1, element) {
  45426. var mixedRef = element.ref;
  45427. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  45428. {
  45429. if (returnFiber.mode & StrictMode) {
  45430. var componentName = getComponentName(returnFiber.type) || 'Component';
  45431. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  45432. 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));
  45433. didWarnAboutStringRefInStrictMode[componentName] = true;
  45434. }
  45435. }
  45436. }
  45437. if (element._owner) {
  45438. var owner = element._owner;
  45439. var inst = void 0;
  45440. if (owner) {
  45441. var ownerFiber = owner;
  45442. !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs.') : void 0;
  45443. inst = ownerFiber.stateNode;
  45444. }
  45445. !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;
  45446. var stringRef = '' + mixedRef;
  45447. // Check if previous string ref matches new string ref
  45448. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  45449. return current$$1.ref;
  45450. }
  45451. var ref = function (value) {
  45452. var refs = inst.refs;
  45453. if (refs === emptyRefsObject) {
  45454. // This is a lazy pooled frozen object, so we need to initialize.
  45455. refs = inst.refs = {};
  45456. }
  45457. if (value === null) {
  45458. delete refs[stringRef];
  45459. } else {
  45460. refs[stringRef] = value;
  45461. }
  45462. };
  45463. ref._stringRef = stringRef;
  45464. return ref;
  45465. } else {
  45466. !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;
  45467. !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;
  45468. }
  45469. }
  45470. return mixedRef;
  45471. }
  45472. function throwOnInvalidObjectType(returnFiber, newChild) {
  45473. if (returnFiber.type !== 'textarea') {
  45474. var addendum = '';
  45475. {
  45476. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  45477. }
  45478. 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);
  45479. }
  45480. }
  45481. function warnOnFunctionType() {
  45482. 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();
  45483. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  45484. return;
  45485. }
  45486. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  45487. 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.');
  45488. }
  45489. // This wrapper function exists because I expect to clone the code in each path
  45490. // to be able to optimize each path individually by branching early. This needs
  45491. // a compiler or we can do it manually. Helpers that don't need this branching
  45492. // live outside of this function.
  45493. function ChildReconciler(shouldTrackSideEffects) {
  45494. function deleteChild(returnFiber, childToDelete) {
  45495. if (!shouldTrackSideEffects) {
  45496. // Noop.
  45497. return;
  45498. }
  45499. // Deletions are added in reversed order so we add it to the front.
  45500. // At this point, the return fiber's effect list is empty except for
  45501. // deletions, so we can just append the deletion to the list. The remaining
  45502. // effects aren't added until the complete phase. Once we implement
  45503. // resuming, this may not be true.
  45504. var last = returnFiber.lastEffect;
  45505. if (last !== null) {
  45506. last.nextEffect = childToDelete;
  45507. returnFiber.lastEffect = childToDelete;
  45508. } else {
  45509. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  45510. }
  45511. childToDelete.nextEffect = null;
  45512. childToDelete.effectTag = Deletion;
  45513. }
  45514. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  45515. if (!shouldTrackSideEffects) {
  45516. // Noop.
  45517. return null;
  45518. }
  45519. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  45520. // assuming that after the first child we've already added everything.
  45521. var childToDelete = currentFirstChild;
  45522. while (childToDelete !== null) {
  45523. deleteChild(returnFiber, childToDelete);
  45524. childToDelete = childToDelete.sibling;
  45525. }
  45526. return null;
  45527. }
  45528. function mapRemainingChildren(returnFiber, currentFirstChild) {
  45529. // Add the remaining children to a temporary map so that we can find them by
  45530. // keys quickly. Implicit (null) keys get added to this set with their index
  45531. var existingChildren = new Map();
  45532. var existingChild = currentFirstChild;
  45533. while (existingChild !== null) {
  45534. if (existingChild.key !== null) {
  45535. existingChildren.set(existingChild.key, existingChild);
  45536. } else {
  45537. existingChildren.set(existingChild.index, existingChild);
  45538. }
  45539. existingChild = existingChild.sibling;
  45540. }
  45541. return existingChildren;
  45542. }
  45543. function useFiber(fiber, pendingProps, expirationTime) {
  45544. // We currently set sibling to null and index to 0 here because it is easy
  45545. // to forget to do before returning it. E.g. for the single child case.
  45546. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  45547. clone.index = 0;
  45548. clone.sibling = null;
  45549. return clone;
  45550. }
  45551. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  45552. newFiber.index = newIndex;
  45553. if (!shouldTrackSideEffects) {
  45554. // Noop.
  45555. return lastPlacedIndex;
  45556. }
  45557. var current$$1 = newFiber.alternate;
  45558. if (current$$1 !== null) {
  45559. var oldIndex = current$$1.index;
  45560. if (oldIndex < lastPlacedIndex) {
  45561. // This is a move.
  45562. newFiber.effectTag = Placement;
  45563. return lastPlacedIndex;
  45564. } else {
  45565. // This item can stay in place.
  45566. return oldIndex;
  45567. }
  45568. } else {
  45569. // This is an insertion.
  45570. newFiber.effectTag = Placement;
  45571. return lastPlacedIndex;
  45572. }
  45573. }
  45574. function placeSingleChild(newFiber) {
  45575. // This is simpler for the single child case. We only need to do a
  45576. // placement for inserting new children.
  45577. if (shouldTrackSideEffects && newFiber.alternate === null) {
  45578. newFiber.effectTag = Placement;
  45579. }
  45580. return newFiber;
  45581. }
  45582. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  45583. if (current$$1 === null || current$$1.tag !== HostText) {
  45584. // Insert
  45585. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  45586. created.return = returnFiber;
  45587. return created;
  45588. } else {
  45589. // Update
  45590. var existing = useFiber(current$$1, textContent, expirationTime);
  45591. existing.return = returnFiber;
  45592. return existing;
  45593. }
  45594. }
  45595. function updateElement(returnFiber, current$$1, element, expirationTime) {
  45596. if (current$$1 !== null && current$$1.elementType === element.type) {
  45597. // Move based on index
  45598. var existing = useFiber(current$$1, element.props, expirationTime);
  45599. existing.ref = coerceRef(returnFiber, current$$1, element);
  45600. existing.return = returnFiber;
  45601. {
  45602. existing._debugSource = element._source;
  45603. existing._debugOwner = element._owner;
  45604. }
  45605. return existing;
  45606. } else {
  45607. // Insert
  45608. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  45609. created.ref = coerceRef(returnFiber, current$$1, element);
  45610. created.return = returnFiber;
  45611. return created;
  45612. }
  45613. }
  45614. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  45615. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  45616. // Insert
  45617. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  45618. created.return = returnFiber;
  45619. return created;
  45620. } else {
  45621. // Update
  45622. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  45623. existing.return = returnFiber;
  45624. return existing;
  45625. }
  45626. }
  45627. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  45628. if (current$$1 === null || current$$1.tag !== Fragment) {
  45629. // Insert
  45630. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  45631. created.return = returnFiber;
  45632. return created;
  45633. } else {
  45634. // Update
  45635. var existing = useFiber(current$$1, fragment, expirationTime);
  45636. existing.return = returnFiber;
  45637. return existing;
  45638. }
  45639. }
  45640. function createChild(returnFiber, newChild, expirationTime) {
  45641. if (typeof newChild === 'string' || typeof newChild === 'number') {
  45642. // Text nodes don't have keys. If the previous node is implicitly keyed
  45643. // we can continue to replace it without aborting even if it is not a text
  45644. // node.
  45645. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  45646. created.return = returnFiber;
  45647. return created;
  45648. }
  45649. if (typeof newChild === 'object' && newChild !== null) {
  45650. switch (newChild.$$typeof) {
  45651. case REACT_ELEMENT_TYPE:
  45652. {
  45653. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  45654. _created.ref = coerceRef(returnFiber, null, newChild);
  45655. _created.return = returnFiber;
  45656. return _created;
  45657. }
  45658. case REACT_PORTAL_TYPE:
  45659. {
  45660. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  45661. _created2.return = returnFiber;
  45662. return _created2;
  45663. }
  45664. }
  45665. if (isArray(newChild) || getIteratorFn(newChild)) {
  45666. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  45667. _created3.return = returnFiber;
  45668. return _created3;
  45669. }
  45670. throwOnInvalidObjectType(returnFiber, newChild);
  45671. }
  45672. {
  45673. if (typeof newChild === 'function') {
  45674. warnOnFunctionType();
  45675. }
  45676. }
  45677. return null;
  45678. }
  45679. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  45680. // Update the fiber if the keys match, otherwise return null.
  45681. var key = oldFiber !== null ? oldFiber.key : null;
  45682. if (typeof newChild === 'string' || typeof newChild === 'number') {
  45683. // Text nodes don't have keys. If the previous node is implicitly keyed
  45684. // we can continue to replace it without aborting even if it is not a text
  45685. // node.
  45686. if (key !== null) {
  45687. return null;
  45688. }
  45689. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  45690. }
  45691. if (typeof newChild === 'object' && newChild !== null) {
  45692. switch (newChild.$$typeof) {
  45693. case REACT_ELEMENT_TYPE:
  45694. {
  45695. if (newChild.key === key) {
  45696. if (newChild.type === REACT_FRAGMENT_TYPE) {
  45697. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  45698. }
  45699. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  45700. } else {
  45701. return null;
  45702. }
  45703. }
  45704. case REACT_PORTAL_TYPE:
  45705. {
  45706. if (newChild.key === key) {
  45707. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  45708. } else {
  45709. return null;
  45710. }
  45711. }
  45712. }
  45713. if (isArray(newChild) || getIteratorFn(newChild)) {
  45714. if (key !== null) {
  45715. return null;
  45716. }
  45717. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  45718. }
  45719. throwOnInvalidObjectType(returnFiber, newChild);
  45720. }
  45721. {
  45722. if (typeof newChild === 'function') {
  45723. warnOnFunctionType();
  45724. }
  45725. }
  45726. return null;
  45727. }
  45728. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  45729. if (typeof newChild === 'string' || typeof newChild === 'number') {
  45730. // Text nodes don't have keys, so we neither have to check the old nor
  45731. // new node for the key. If both are text nodes, they match.
  45732. var matchedFiber = existingChildren.get(newIdx) || null;
  45733. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  45734. }
  45735. if (typeof newChild === 'object' && newChild !== null) {
  45736. switch (newChild.$$typeof) {
  45737. case REACT_ELEMENT_TYPE:
  45738. {
  45739. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  45740. if (newChild.type === REACT_FRAGMENT_TYPE) {
  45741. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  45742. }
  45743. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  45744. }
  45745. case REACT_PORTAL_TYPE:
  45746. {
  45747. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  45748. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  45749. }
  45750. }
  45751. if (isArray(newChild) || getIteratorFn(newChild)) {
  45752. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  45753. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  45754. }
  45755. throwOnInvalidObjectType(returnFiber, newChild);
  45756. }
  45757. {
  45758. if (typeof newChild === 'function') {
  45759. warnOnFunctionType();
  45760. }
  45761. }
  45762. return null;
  45763. }
  45764. /**
  45765. * Warns if there is a duplicate or missing key
  45766. */
  45767. function warnOnInvalidKey(child, knownKeys) {
  45768. {
  45769. if (typeof child !== 'object' || child === null) {
  45770. return knownKeys;
  45771. }
  45772. switch (child.$$typeof) {
  45773. case REACT_ELEMENT_TYPE:
  45774. case REACT_PORTAL_TYPE:
  45775. warnForMissingKey(child);
  45776. var key = child.key;
  45777. if (typeof key !== 'string') {
  45778. break;
  45779. }
  45780. if (knownKeys === null) {
  45781. knownKeys = new Set();
  45782. knownKeys.add(key);
  45783. break;
  45784. }
  45785. if (!knownKeys.has(key)) {
  45786. knownKeys.add(key);
  45787. break;
  45788. }
  45789. 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);
  45790. break;
  45791. default:
  45792. break;
  45793. }
  45794. }
  45795. return knownKeys;
  45796. }
  45797. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  45798. // This algorithm can't optimize by searching from boths ends since we
  45799. // don't have backpointers on fibers. I'm trying to see how far we can get
  45800. // with that model. If it ends up not being worth the tradeoffs, we can
  45801. // add it later.
  45802. // Even with a two ended optimization, we'd want to optimize for the case
  45803. // where there are few changes and brute force the comparison instead of
  45804. // going for the Map. It'd like to explore hitting that path first in
  45805. // forward-only mode and only go for the Map once we notice that we need
  45806. // lots of look ahead. This doesn't handle reversal as well as two ended
  45807. // search but that's unusual. Besides, for the two ended optimization to
  45808. // work on Iterables, we'd need to copy the whole set.
  45809. // In this first iteration, we'll just live with hitting the bad case
  45810. // (adding everything to a Map) in for every insert/move.
  45811. // If you change this code, also update reconcileChildrenIterator() which
  45812. // uses the same algorithm.
  45813. {
  45814. // First, validate keys.
  45815. var knownKeys = null;
  45816. for (var i = 0; i < newChildren.length; i++) {
  45817. var child = newChildren[i];
  45818. knownKeys = warnOnInvalidKey(child, knownKeys);
  45819. }
  45820. }
  45821. var resultingFirstChild = null;
  45822. var previousNewFiber = null;
  45823. var oldFiber = currentFirstChild;
  45824. var lastPlacedIndex = 0;
  45825. var newIdx = 0;
  45826. var nextOldFiber = null;
  45827. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  45828. if (oldFiber.index > newIdx) {
  45829. nextOldFiber = oldFiber;
  45830. oldFiber = null;
  45831. } else {
  45832. nextOldFiber = oldFiber.sibling;
  45833. }
  45834. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  45835. if (newFiber === null) {
  45836. // TODO: This breaks on empty slots like null children. That's
  45837. // unfortunate because it triggers the slow path all the time. We need
  45838. // a better way to communicate whether this was a miss or null,
  45839. // boolean, undefined, etc.
  45840. if (oldFiber === null) {
  45841. oldFiber = nextOldFiber;
  45842. }
  45843. break;
  45844. }
  45845. if (shouldTrackSideEffects) {
  45846. if (oldFiber && newFiber.alternate === null) {
  45847. // We matched the slot, but we didn't reuse the existing fiber, so we
  45848. // need to delete the existing child.
  45849. deleteChild(returnFiber, oldFiber);
  45850. }
  45851. }
  45852. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  45853. if (previousNewFiber === null) {
  45854. // TODO: Move out of the loop. This only happens for the first run.
  45855. resultingFirstChild = newFiber;
  45856. } else {
  45857. // TODO: Defer siblings if we're not at the right index for this slot.
  45858. // I.e. if we had null values before, then we want to defer this
  45859. // for each null value. However, we also don't want to call updateSlot
  45860. // with the previous one.
  45861. previousNewFiber.sibling = newFiber;
  45862. }
  45863. previousNewFiber = newFiber;
  45864. oldFiber = nextOldFiber;
  45865. }
  45866. if (newIdx === newChildren.length) {
  45867. // We've reached the end of the new children. We can delete the rest.
  45868. deleteRemainingChildren(returnFiber, oldFiber);
  45869. return resultingFirstChild;
  45870. }
  45871. if (oldFiber === null) {
  45872. // If we don't have any more existing children we can choose a fast path
  45873. // since the rest will all be insertions.
  45874. for (; newIdx < newChildren.length; newIdx++) {
  45875. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  45876. if (!_newFiber) {
  45877. continue;
  45878. }
  45879. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  45880. if (previousNewFiber === null) {
  45881. // TODO: Move out of the loop. This only happens for the first run.
  45882. resultingFirstChild = _newFiber;
  45883. } else {
  45884. previousNewFiber.sibling = _newFiber;
  45885. }
  45886. previousNewFiber = _newFiber;
  45887. }
  45888. return resultingFirstChild;
  45889. }
  45890. // Add all children to a key map for quick lookups.
  45891. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  45892. // Keep scanning and use the map to restore deleted items as moves.
  45893. for (; newIdx < newChildren.length; newIdx++) {
  45894. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  45895. if (_newFiber2) {
  45896. if (shouldTrackSideEffects) {
  45897. if (_newFiber2.alternate !== null) {
  45898. // The new fiber is a work in progress, but if there exists a
  45899. // current, that means that we reused the fiber. We need to delete
  45900. // it from the child list so that we don't add it to the deletion
  45901. // list.
  45902. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  45903. }
  45904. }
  45905. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  45906. if (previousNewFiber === null) {
  45907. resultingFirstChild = _newFiber2;
  45908. } else {
  45909. previousNewFiber.sibling = _newFiber2;
  45910. }
  45911. previousNewFiber = _newFiber2;
  45912. }
  45913. }
  45914. if (shouldTrackSideEffects) {
  45915. // Any existing children that weren't consumed above were deleted. We need
  45916. // to add them to the deletion list.
  45917. existingChildren.forEach(function (child) {
  45918. return deleteChild(returnFiber, child);
  45919. });
  45920. }
  45921. return resultingFirstChild;
  45922. }
  45923. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  45924. // This is the same implementation as reconcileChildrenArray(),
  45925. // but using the iterator instead.
  45926. var iteratorFn = getIteratorFn(newChildrenIterable);
  45927. !(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;
  45928. {
  45929. // We don't support rendering Generators because it's a mutation.
  45930. // See https://github.com/facebook/react/issues/12995
  45931. if (typeof Symbol === 'function' &&
  45932. // $FlowFixMe Flow doesn't know about toStringTag
  45933. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  45934. !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;
  45935. didWarnAboutGenerators = true;
  45936. }
  45937. // Warn about using Maps as children
  45938. if (newChildrenIterable.entries === iteratorFn) {
  45939. !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;
  45940. didWarnAboutMaps = true;
  45941. }
  45942. // First, validate keys.
  45943. // We'll get a different iterator later for the main pass.
  45944. var _newChildren = iteratorFn.call(newChildrenIterable);
  45945. if (_newChildren) {
  45946. var knownKeys = null;
  45947. var _step = _newChildren.next();
  45948. for (; !_step.done; _step = _newChildren.next()) {
  45949. var child = _step.value;
  45950. knownKeys = warnOnInvalidKey(child, knownKeys);
  45951. }
  45952. }
  45953. }
  45954. var newChildren = iteratorFn.call(newChildrenIterable);
  45955. !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;
  45956. var resultingFirstChild = null;
  45957. var previousNewFiber = null;
  45958. var oldFiber = currentFirstChild;
  45959. var lastPlacedIndex = 0;
  45960. var newIdx = 0;
  45961. var nextOldFiber = null;
  45962. var step = newChildren.next();
  45963. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  45964. if (oldFiber.index > newIdx) {
  45965. nextOldFiber = oldFiber;
  45966. oldFiber = null;
  45967. } else {
  45968. nextOldFiber = oldFiber.sibling;
  45969. }
  45970. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  45971. if (newFiber === null) {
  45972. // TODO: This breaks on empty slots like null children. That's
  45973. // unfortunate because it triggers the slow path all the time. We need
  45974. // a better way to communicate whether this was a miss or null,
  45975. // boolean, undefined, etc.
  45976. if (!oldFiber) {
  45977. oldFiber = nextOldFiber;
  45978. }
  45979. break;
  45980. }
  45981. if (shouldTrackSideEffects) {
  45982. if (oldFiber && newFiber.alternate === null) {
  45983. // We matched the slot, but we didn't reuse the existing fiber, so we
  45984. // need to delete the existing child.
  45985. deleteChild(returnFiber, oldFiber);
  45986. }
  45987. }
  45988. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  45989. if (previousNewFiber === null) {
  45990. // TODO: Move out of the loop. This only happens for the first run.
  45991. resultingFirstChild = newFiber;
  45992. } else {
  45993. // TODO: Defer siblings if we're not at the right index for this slot.
  45994. // I.e. if we had null values before, then we want to defer this
  45995. // for each null value. However, we also don't want to call updateSlot
  45996. // with the previous one.
  45997. previousNewFiber.sibling = newFiber;
  45998. }
  45999. previousNewFiber = newFiber;
  46000. oldFiber = nextOldFiber;
  46001. }
  46002. if (step.done) {
  46003. // We've reached the end of the new children. We can delete the rest.
  46004. deleteRemainingChildren(returnFiber, oldFiber);
  46005. return resultingFirstChild;
  46006. }
  46007. if (oldFiber === null) {
  46008. // If we don't have any more existing children we can choose a fast path
  46009. // since the rest will all be insertions.
  46010. for (; !step.done; newIdx++, step = newChildren.next()) {
  46011. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  46012. if (_newFiber3 === null) {
  46013. continue;
  46014. }
  46015. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  46016. if (previousNewFiber === null) {
  46017. // TODO: Move out of the loop. This only happens for the first run.
  46018. resultingFirstChild = _newFiber3;
  46019. } else {
  46020. previousNewFiber.sibling = _newFiber3;
  46021. }
  46022. previousNewFiber = _newFiber3;
  46023. }
  46024. return resultingFirstChild;
  46025. }
  46026. // Add all children to a key map for quick lookups.
  46027. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  46028. // Keep scanning and use the map to restore deleted items as moves.
  46029. for (; !step.done; newIdx++, step = newChildren.next()) {
  46030. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  46031. if (_newFiber4 !== null) {
  46032. if (shouldTrackSideEffects) {
  46033. if (_newFiber4.alternate !== null) {
  46034. // The new fiber is a work in progress, but if there exists a
  46035. // current, that means that we reused the fiber. We need to delete
  46036. // it from the child list so that we don't add it to the deletion
  46037. // list.
  46038. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  46039. }
  46040. }
  46041. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  46042. if (previousNewFiber === null) {
  46043. resultingFirstChild = _newFiber4;
  46044. } else {
  46045. previousNewFiber.sibling = _newFiber4;
  46046. }
  46047. previousNewFiber = _newFiber4;
  46048. }
  46049. }
  46050. if (shouldTrackSideEffects) {
  46051. // Any existing children that weren't consumed above were deleted. We need
  46052. // to add them to the deletion list.
  46053. existingChildren.forEach(function (child) {
  46054. return deleteChild(returnFiber, child);
  46055. });
  46056. }
  46057. return resultingFirstChild;
  46058. }
  46059. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  46060. // There's no need to check for keys on text nodes since we don't have a
  46061. // way to define them.
  46062. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  46063. // We already have an existing node so let's just update it and delete
  46064. // the rest.
  46065. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  46066. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  46067. existing.return = returnFiber;
  46068. return existing;
  46069. }
  46070. // The existing first child is not a text node so we need to create one
  46071. // and delete the existing ones.
  46072. deleteRemainingChildren(returnFiber, currentFirstChild);
  46073. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  46074. created.return = returnFiber;
  46075. return created;
  46076. }
  46077. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  46078. var key = element.key;
  46079. var child = currentFirstChild;
  46080. while (child !== null) {
  46081. // TODO: If key === null and child.key === null, then this only applies to
  46082. // the first item in the list.
  46083. if (child.key === key) {
  46084. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type) {
  46085. deleteRemainingChildren(returnFiber, child.sibling);
  46086. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  46087. existing.ref = coerceRef(returnFiber, child, element);
  46088. existing.return = returnFiber;
  46089. {
  46090. existing._debugSource = element._source;
  46091. existing._debugOwner = element._owner;
  46092. }
  46093. return existing;
  46094. } else {
  46095. deleteRemainingChildren(returnFiber, child);
  46096. break;
  46097. }
  46098. } else {
  46099. deleteChild(returnFiber, child);
  46100. }
  46101. child = child.sibling;
  46102. }
  46103. if (element.type === REACT_FRAGMENT_TYPE) {
  46104. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  46105. created.return = returnFiber;
  46106. return created;
  46107. } else {
  46108. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  46109. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  46110. _created4.return = returnFiber;
  46111. return _created4;
  46112. }
  46113. }
  46114. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  46115. var key = portal.key;
  46116. var child = currentFirstChild;
  46117. while (child !== null) {
  46118. // TODO: If key === null and child.key === null, then this only applies to
  46119. // the first item in the list.
  46120. if (child.key === key) {
  46121. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  46122. deleteRemainingChildren(returnFiber, child.sibling);
  46123. var existing = useFiber(child, portal.children || [], expirationTime);
  46124. existing.return = returnFiber;
  46125. return existing;
  46126. } else {
  46127. deleteRemainingChildren(returnFiber, child);
  46128. break;
  46129. }
  46130. } else {
  46131. deleteChild(returnFiber, child);
  46132. }
  46133. child = child.sibling;
  46134. }
  46135. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  46136. created.return = returnFiber;
  46137. return created;
  46138. }
  46139. // This API will tag the children with the side-effect of the reconciliation
  46140. // itself. They will be added to the side-effect list as we pass through the
  46141. // children and the parent.
  46142. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  46143. // This function is not recursive.
  46144. // If the top level item is an array, we treat it as a set of children,
  46145. // not as a fragment. Nested arrays on the other hand will be treated as
  46146. // fragment nodes. Recursion happens at the normal flow.
  46147. // Handle top level unkeyed fragments as if they were arrays.
  46148. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  46149. // We treat the ambiguous cases above the same.
  46150. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  46151. if (isUnkeyedTopLevelFragment) {
  46152. newChild = newChild.props.children;
  46153. }
  46154. // Handle object types
  46155. var isObject = typeof newChild === 'object' && newChild !== null;
  46156. if (isObject) {
  46157. switch (newChild.$$typeof) {
  46158. case REACT_ELEMENT_TYPE:
  46159. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  46160. case REACT_PORTAL_TYPE:
  46161. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  46162. }
  46163. }
  46164. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46165. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  46166. }
  46167. if (isArray(newChild)) {
  46168. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  46169. }
  46170. if (getIteratorFn(newChild)) {
  46171. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  46172. }
  46173. if (isObject) {
  46174. throwOnInvalidObjectType(returnFiber, newChild);
  46175. }
  46176. {
  46177. if (typeof newChild === 'function') {
  46178. warnOnFunctionType();
  46179. }
  46180. }
  46181. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  46182. // If the new child is undefined, and the return fiber is a composite
  46183. // component, throw an error. If Fiber return types are disabled,
  46184. // we already threw above.
  46185. switch (returnFiber.tag) {
  46186. case ClassComponent:
  46187. {
  46188. {
  46189. var instance = returnFiber.stateNode;
  46190. if (instance.render._isMockFunction) {
  46191. // We allow auto-mocks to proceed as if they're returning null.
  46192. break;
  46193. }
  46194. }
  46195. }
  46196. // Intentionally fall through to the next case, which handles both
  46197. // functions and classes
  46198. // eslint-disable-next-lined no-fallthrough
  46199. case FunctionComponent:
  46200. {
  46201. var Component = returnFiber.type;
  46202. 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');
  46203. }
  46204. }
  46205. }
  46206. // Remaining cases are all treated as empty.
  46207. return deleteRemainingChildren(returnFiber, currentFirstChild);
  46208. }
  46209. return reconcileChildFibers;
  46210. }
  46211. var reconcileChildFibers = ChildReconciler(true);
  46212. var mountChildFibers = ChildReconciler(false);
  46213. function cloneChildFibers(current$$1, workInProgress) {
  46214. !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;
  46215. if (workInProgress.child === null) {
  46216. return;
  46217. }
  46218. var currentChild = workInProgress.child;
  46219. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  46220. workInProgress.child = newChild;
  46221. newChild.return = workInProgress;
  46222. while (currentChild.sibling !== null) {
  46223. currentChild = currentChild.sibling;
  46224. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  46225. newChild.return = workInProgress;
  46226. }
  46227. newChild.sibling = null;
  46228. }
  46229. // The deepest Fiber on the stack involved in a hydration context.
  46230. // This may have been an insertion or a hydration.
  46231. var hydrationParentFiber = null;
  46232. var nextHydratableInstance = null;
  46233. var isHydrating = false;
  46234. function enterHydrationState(fiber) {
  46235. if (!supportsHydration) {
  46236. return false;
  46237. }
  46238. var parentInstance = fiber.stateNode.containerInfo;
  46239. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  46240. hydrationParentFiber = fiber;
  46241. isHydrating = true;
  46242. return true;
  46243. }
  46244. function deleteHydratableInstance(returnFiber, instance) {
  46245. {
  46246. switch (returnFiber.tag) {
  46247. case HostRoot:
  46248. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  46249. break;
  46250. case HostComponent:
  46251. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  46252. break;
  46253. }
  46254. }
  46255. var childToDelete = createFiberFromHostInstanceForDeletion();
  46256. childToDelete.stateNode = instance;
  46257. childToDelete.return = returnFiber;
  46258. childToDelete.effectTag = Deletion;
  46259. // This might seem like it belongs on progressedFirstDeletion. However,
  46260. // these children are not part of the reconciliation list of children.
  46261. // Even if we abort and rereconcile the children, that will try to hydrate
  46262. // again and the nodes are still in the host tree so these will be
  46263. // recreated.
  46264. if (returnFiber.lastEffect !== null) {
  46265. returnFiber.lastEffect.nextEffect = childToDelete;
  46266. returnFiber.lastEffect = childToDelete;
  46267. } else {
  46268. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  46269. }
  46270. }
  46271. function insertNonHydratedInstance(returnFiber, fiber) {
  46272. fiber.effectTag |= Placement;
  46273. {
  46274. switch (returnFiber.tag) {
  46275. case HostRoot:
  46276. {
  46277. var parentContainer = returnFiber.stateNode.containerInfo;
  46278. switch (fiber.tag) {
  46279. case HostComponent:
  46280. var type = fiber.type;
  46281. var props = fiber.pendingProps;
  46282. didNotFindHydratableContainerInstance(parentContainer, type, props);
  46283. break;
  46284. case HostText:
  46285. var text = fiber.pendingProps;
  46286. didNotFindHydratableContainerTextInstance(parentContainer, text);
  46287. break;
  46288. }
  46289. break;
  46290. }
  46291. case HostComponent:
  46292. {
  46293. var parentType = returnFiber.type;
  46294. var parentProps = returnFiber.memoizedProps;
  46295. var parentInstance = returnFiber.stateNode;
  46296. switch (fiber.tag) {
  46297. case HostComponent:
  46298. var _type = fiber.type;
  46299. var _props = fiber.pendingProps;
  46300. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  46301. break;
  46302. case HostText:
  46303. var _text = fiber.pendingProps;
  46304. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  46305. break;
  46306. }
  46307. break;
  46308. }
  46309. default:
  46310. return;
  46311. }
  46312. }
  46313. }
  46314. function tryHydrate(fiber, nextInstance) {
  46315. switch (fiber.tag) {
  46316. case HostComponent:
  46317. {
  46318. var type = fiber.type;
  46319. var props = fiber.pendingProps;
  46320. var instance = canHydrateInstance(nextInstance, type, props);
  46321. if (instance !== null) {
  46322. fiber.stateNode = instance;
  46323. return true;
  46324. }
  46325. return false;
  46326. }
  46327. case HostText:
  46328. {
  46329. var text = fiber.pendingProps;
  46330. var textInstance = canHydrateTextInstance(nextInstance, text);
  46331. if (textInstance !== null) {
  46332. fiber.stateNode = textInstance;
  46333. return true;
  46334. }
  46335. return false;
  46336. }
  46337. default:
  46338. return false;
  46339. }
  46340. }
  46341. function tryToClaimNextHydratableInstance(fiber) {
  46342. if (!isHydrating) {
  46343. return;
  46344. }
  46345. var nextInstance = nextHydratableInstance;
  46346. if (!nextInstance) {
  46347. // Nothing to hydrate. Make it an insertion.
  46348. insertNonHydratedInstance(hydrationParentFiber, fiber);
  46349. isHydrating = false;
  46350. hydrationParentFiber = fiber;
  46351. return;
  46352. }
  46353. var firstAttemptedInstance = nextInstance;
  46354. if (!tryHydrate(fiber, nextInstance)) {
  46355. // If we can't hydrate this instance let's try the next one.
  46356. // We use this as a heuristic. It's based on intuition and not data so it
  46357. // might be flawed or unnecessary.
  46358. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  46359. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  46360. // Nothing to hydrate. Make it an insertion.
  46361. insertNonHydratedInstance(hydrationParentFiber, fiber);
  46362. isHydrating = false;
  46363. hydrationParentFiber = fiber;
  46364. return;
  46365. }
  46366. // We matched the next one, we'll now assume that the first one was
  46367. // superfluous and we'll delete it. Since we can't eagerly delete it
  46368. // we'll have to schedule a deletion. To do that, this node needs a dummy
  46369. // fiber associated with it.
  46370. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  46371. }
  46372. hydrationParentFiber = fiber;
  46373. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  46374. }
  46375. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  46376. if (!supportsHydration) {
  46377. invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  46378. }
  46379. var instance = fiber.stateNode;
  46380. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  46381. // TODO: Type this specific to this type of component.
  46382. fiber.updateQueue = updatePayload;
  46383. // If the update payload indicates that there is a change or if there
  46384. // is a new ref we mark this as an update.
  46385. if (updatePayload !== null) {
  46386. return true;
  46387. }
  46388. return false;
  46389. }
  46390. function prepareToHydrateHostTextInstance(fiber) {
  46391. if (!supportsHydration) {
  46392. invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  46393. }
  46394. var textInstance = fiber.stateNode;
  46395. var textContent = fiber.memoizedProps;
  46396. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  46397. {
  46398. if (shouldUpdate) {
  46399. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  46400. // hydration parent is the parent host component of this host text.
  46401. var returnFiber = hydrationParentFiber;
  46402. if (returnFiber !== null) {
  46403. switch (returnFiber.tag) {
  46404. case HostRoot:
  46405. {
  46406. var parentContainer = returnFiber.stateNode.containerInfo;
  46407. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  46408. break;
  46409. }
  46410. case HostComponent:
  46411. {
  46412. var parentType = returnFiber.type;
  46413. var parentProps = returnFiber.memoizedProps;
  46414. var parentInstance = returnFiber.stateNode;
  46415. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  46416. break;
  46417. }
  46418. }
  46419. }
  46420. }
  46421. }
  46422. return shouldUpdate;
  46423. }
  46424. function popToNextHostParent(fiber) {
  46425. var parent = fiber.return;
  46426. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) {
  46427. parent = parent.return;
  46428. }
  46429. hydrationParentFiber = parent;
  46430. }
  46431. function popHydrationState(fiber) {
  46432. if (!supportsHydration) {
  46433. return false;
  46434. }
  46435. if (fiber !== hydrationParentFiber) {
  46436. // We're deeper than the current hydration context, inside an inserted
  46437. // tree.
  46438. return false;
  46439. }
  46440. if (!isHydrating) {
  46441. // If we're not currently hydrating but we're in a hydration context, then
  46442. // we were an insertion and now need to pop up reenter hydration of our
  46443. // siblings.
  46444. popToNextHostParent(fiber);
  46445. isHydrating = true;
  46446. return false;
  46447. }
  46448. var type = fiber.type;
  46449. // If we have any remaining hydratable nodes, we need to delete them now.
  46450. // We only do this deeper than head and body since they tend to have random
  46451. // other nodes in them. We also ignore components with pure text content in
  46452. // side of them.
  46453. // TODO: Better heuristic.
  46454. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  46455. var nextInstance = nextHydratableInstance;
  46456. while (nextInstance) {
  46457. deleteHydratableInstance(fiber, nextInstance);
  46458. nextInstance = getNextHydratableSibling(nextInstance);
  46459. }
  46460. }
  46461. popToNextHostParent(fiber);
  46462. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  46463. return true;
  46464. }
  46465. function resetHydrationState() {
  46466. if (!supportsHydration) {
  46467. return;
  46468. }
  46469. hydrationParentFiber = null;
  46470. nextHydratableInstance = null;
  46471. isHydrating = false;
  46472. }
  46473. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  46474. var didWarnAboutBadClass = void 0;
  46475. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  46476. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  46477. var didWarnAboutFunctionRefs = void 0;
  46478. {
  46479. didWarnAboutBadClass = {};
  46480. didWarnAboutContextTypeOnFunctionComponent = {};
  46481. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  46482. didWarnAboutFunctionRefs = {};
  46483. }
  46484. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  46485. if (current$$1 === null) {
  46486. // If this is a fresh new component that hasn't been rendered yet, we
  46487. // won't update its child set by applying minimal side-effects. Instead,
  46488. // we will add them all to the child before it gets rendered. That means
  46489. // we can optimize this reconciliation pass by not tracking side-effects.
  46490. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  46491. } else {
  46492. // If the current child is the same as the work in progress, it means that
  46493. // we haven't yet started any work on these children. Therefore, we use
  46494. // the clone algorithm to create a copy of all the current children.
  46495. // If we had any progressed work already, that is invalid at this point so
  46496. // let's throw it out.
  46497. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  46498. }
  46499. }
  46500. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  46501. // This function is fork of reconcileChildren. It's used in cases where we
  46502. // want to reconcile without matching against the existing set. This has the
  46503. // effect of all current children being unmounted; even if the type and key
  46504. // are the same, the old child is unmounted and a new child is created.
  46505. //
  46506. // To do this, we're going to go through the reconcile algorithm twice. In
  46507. // the first pass, we schedule a deletion for all the current children by
  46508. // passing null.
  46509. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  46510. // In the second pass, we mount the new children. The trick here is that we
  46511. // pass null in place of where we usually pass the current child set. This has
  46512. // the effect of remounting all children regardless of whether their their
  46513. // identity matches.
  46514. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  46515. }
  46516. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  46517. var render = Component.render;
  46518. var ref = workInProgress.ref;
  46519. // The rest is a fork of updateFunctionComponent
  46520. var nextChildren = void 0;
  46521. prepareToReadContext(workInProgress, renderExpirationTime);
  46522. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  46523. {
  46524. ReactCurrentOwner$3.current = workInProgress;
  46525. setCurrentPhase('render');
  46526. nextChildren = render(nextProps, ref);
  46527. setCurrentPhase(null);
  46528. }
  46529. nextChildren = finishHooks(render, nextProps, nextChildren, ref);
  46530. // React DevTools reads this flag.
  46531. workInProgress.effectTag |= PerformedWork;
  46532. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46533. return workInProgress.child;
  46534. }
  46535. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  46536. if (current$$1 === null) {
  46537. var type = Component.type;
  46538. if (isSimpleFunctionComponent(type) && Component.compare === null) {
  46539. // If this is a plain function component without default props,
  46540. // and with only the default shallow comparison, we upgrade it
  46541. // to a SimpleMemoComponent to allow fast path updates.
  46542. workInProgress.tag = SimpleMemoComponent;
  46543. workInProgress.type = type;
  46544. return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime);
  46545. }
  46546. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  46547. child.ref = workInProgress.ref;
  46548. child.return = workInProgress;
  46549. workInProgress.child = child;
  46550. return child;
  46551. }
  46552. var currentChild = current$$1.child; // This is always exactly one child
  46553. if (updateExpirationTime < renderExpirationTime) {
  46554. // This will be the props with resolved defaultProps,
  46555. // unlike current.memoizedProps which will be the unresolved ones.
  46556. var prevProps = currentChild.memoizedProps;
  46557. // Default to shallow comparison
  46558. var compare = Component.compare;
  46559. compare = compare !== null ? compare : shallowEqual;
  46560. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  46561. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46562. }
  46563. }
  46564. // React DevTools reads this flag.
  46565. workInProgress.effectTag |= PerformedWork;
  46566. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  46567. newChild.ref = workInProgress.ref;
  46568. newChild.return = workInProgress;
  46569. workInProgress.child = newChild;
  46570. return newChild;
  46571. }
  46572. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  46573. if (current$$1 !== null && updateExpirationTime < renderExpirationTime) {
  46574. var prevProps = current$$1.memoizedProps;
  46575. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  46576. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46577. }
  46578. }
  46579. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  46580. }
  46581. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  46582. var nextChildren = workInProgress.pendingProps;
  46583. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46584. return workInProgress.child;
  46585. }
  46586. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  46587. var nextChildren = workInProgress.pendingProps.children;
  46588. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46589. return workInProgress.child;
  46590. }
  46591. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  46592. if (enableProfilerTimer) {
  46593. workInProgress.effectTag |= Update;
  46594. }
  46595. var nextProps = workInProgress.pendingProps;
  46596. var nextChildren = nextProps.children;
  46597. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46598. return workInProgress.child;
  46599. }
  46600. function markRef(current$$1, workInProgress) {
  46601. var ref = workInProgress.ref;
  46602. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  46603. // Schedule a Ref effect
  46604. workInProgress.effectTag |= Ref;
  46605. }
  46606. }
  46607. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  46608. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  46609. var context = getMaskedContext(workInProgress, unmaskedContext);
  46610. var nextChildren = void 0;
  46611. prepareToReadContext(workInProgress, renderExpirationTime);
  46612. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  46613. {
  46614. ReactCurrentOwner$3.current = workInProgress;
  46615. setCurrentPhase('render');
  46616. nextChildren = Component(nextProps, context);
  46617. setCurrentPhase(null);
  46618. }
  46619. nextChildren = finishHooks(Component, nextProps, nextChildren, context);
  46620. // React DevTools reads this flag.
  46621. workInProgress.effectTag |= PerformedWork;
  46622. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46623. return workInProgress.child;
  46624. }
  46625. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  46626. // Push context providers early to prevent context stack mismatches.
  46627. // During mounting we don't know the child context yet as the instance doesn't exist.
  46628. // We will invalidate the child context in finishClassComponent() right after rendering.
  46629. var hasContext = void 0;
  46630. if (isContextProvider(Component)) {
  46631. hasContext = true;
  46632. pushContextProvider(workInProgress);
  46633. } else {
  46634. hasContext = false;
  46635. }
  46636. prepareToReadContext(workInProgress, renderExpirationTime);
  46637. var instance = workInProgress.stateNode;
  46638. var shouldUpdate = void 0;
  46639. if (instance === null) {
  46640. if (current$$1 !== null) {
  46641. // An class component without an instance only mounts if it suspended
  46642. // inside a non- concurrent tree, in an inconsistent state. We want to
  46643. // tree it like a new mount, even though an empty version of it already
  46644. // committed. Disconnect the alternate pointers.
  46645. current$$1.alternate = null;
  46646. workInProgress.alternate = null;
  46647. // Since this is conceptually a new fiber, schedule a Placement effect
  46648. workInProgress.effectTag |= Placement;
  46649. }
  46650. // In the initial pass we might need to construct the instance.
  46651. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46652. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46653. shouldUpdate = true;
  46654. } else if (current$$1 === null) {
  46655. // In a resume, we'll already have an instance we can reuse.
  46656. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46657. } else {
  46658. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  46659. }
  46660. return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  46661. }
  46662. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  46663. // Refs should update even if shouldComponentUpdate returns false
  46664. markRef(current$$1, workInProgress);
  46665. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  46666. if (!shouldUpdate && !didCaptureError) {
  46667. // Context providers should defer to sCU for rendering
  46668. if (hasContext) {
  46669. invalidateContextProvider(workInProgress, Component, false);
  46670. }
  46671. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46672. }
  46673. var instance = workInProgress.stateNode;
  46674. // Rerender
  46675. ReactCurrentOwner$3.current = workInProgress;
  46676. var nextChildren = void 0;
  46677. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  46678. // If we captured an error, but getDerivedStateFrom catch is not defined,
  46679. // unmount all the children. componentDidCatch will schedule an update to
  46680. // re-render a fallback. This is temporary until we migrate everyone to
  46681. // the new API.
  46682. // TODO: Warn in a future release.
  46683. nextChildren = null;
  46684. if (enableProfilerTimer) {
  46685. stopProfilerTimerIfRunning(workInProgress);
  46686. }
  46687. } else {
  46688. {
  46689. setCurrentPhase('render');
  46690. nextChildren = instance.render();
  46691. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  46692. instance.render();
  46693. }
  46694. setCurrentPhase(null);
  46695. }
  46696. }
  46697. // React DevTools reads this flag.
  46698. workInProgress.effectTag |= PerformedWork;
  46699. if (current$$1 !== null && didCaptureError) {
  46700. // If we're recovering from an error, reconcile without reusing any of
  46701. // the existing children. Conceptually, the normal children and the children
  46702. // that are shown on error are two different sets, so we shouldn't reuse
  46703. // normal children even if their identities match.
  46704. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46705. } else {
  46706. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46707. }
  46708. // Memoize state using the values we just used to render.
  46709. // TODO: Restructure so we never read values from the instance.
  46710. workInProgress.memoizedState = instance.state;
  46711. // The context might have changed so we need to recalculate it.
  46712. if (hasContext) {
  46713. invalidateContextProvider(workInProgress, Component, true);
  46714. }
  46715. return workInProgress.child;
  46716. }
  46717. function pushHostRootContext(workInProgress) {
  46718. var root = workInProgress.stateNode;
  46719. if (root.pendingContext) {
  46720. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  46721. } else if (root.context) {
  46722. // Should always be set
  46723. pushTopLevelContextObject(workInProgress, root.context, false);
  46724. }
  46725. pushHostContainer(workInProgress, root.containerInfo);
  46726. }
  46727. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  46728. pushHostRootContext(workInProgress);
  46729. var updateQueue = workInProgress.updateQueue;
  46730. !(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;
  46731. var nextProps = workInProgress.pendingProps;
  46732. var prevState = workInProgress.memoizedState;
  46733. var prevChildren = prevState !== null ? prevState.element : null;
  46734. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  46735. var nextState = workInProgress.memoizedState;
  46736. // Caution: React DevTools currently depends on this property
  46737. // being called "element".
  46738. var nextChildren = nextState.element;
  46739. if (nextChildren === prevChildren) {
  46740. // If the state is the same as before, that's a bailout because we had
  46741. // no work that expires at this time.
  46742. resetHydrationState();
  46743. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46744. }
  46745. var root = workInProgress.stateNode;
  46746. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  46747. // If we don't have any current children this might be the first pass.
  46748. // We always try to hydrate. If this isn't a hydration pass there won't
  46749. // be any children to hydrate which is effectively the same thing as
  46750. // not hydrating.
  46751. // This is a bit of a hack. We track the host root as a placement to
  46752. // know that we're currently in a mounting state. That way isMounted
  46753. // works as expected. We must reset this before committing.
  46754. // TODO: Delete this when we delete isMounted and findDOMNode.
  46755. workInProgress.effectTag |= Placement;
  46756. // Ensure that children mount into this root without tracking
  46757. // side-effects. This ensures that we don't store Placement effects on
  46758. // nodes that will be hydrated.
  46759. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  46760. } else {
  46761. // Otherwise reset hydration state in case we aborted and resumed another
  46762. // root.
  46763. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46764. resetHydrationState();
  46765. }
  46766. return workInProgress.child;
  46767. }
  46768. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  46769. pushHostContext(workInProgress);
  46770. if (current$$1 === null) {
  46771. tryToClaimNextHydratableInstance(workInProgress);
  46772. }
  46773. var type = workInProgress.type;
  46774. var nextProps = workInProgress.pendingProps;
  46775. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  46776. var nextChildren = nextProps.children;
  46777. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  46778. if (isDirectTextChild) {
  46779. // We special case a direct text child of a host node. This is a common
  46780. // case. We won't handle it as a reified child. We will instead handle
  46781. // this in the host environment that also have access to this prop. That
  46782. // avoids allocating another HostText fiber and traversing it.
  46783. nextChildren = null;
  46784. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  46785. // If we're switching from a direct text child to a normal child, or to
  46786. // empty, we need to schedule the text content to be reset.
  46787. workInProgress.effectTag |= ContentReset;
  46788. }
  46789. markRef(current$$1, workInProgress);
  46790. // Check the host config to see if the children are offscreen/hidden.
  46791. if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) {
  46792. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  46793. workInProgress.expirationTime = Never;
  46794. return null;
  46795. }
  46796. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46797. return workInProgress.child;
  46798. }
  46799. function updateHostText(current$$1, workInProgress) {
  46800. if (current$$1 === null) {
  46801. tryToClaimNextHydratableInstance(workInProgress);
  46802. }
  46803. // Nothing to do here. This is terminal. We'll do the completion step
  46804. // immediately after.
  46805. return null;
  46806. }
  46807. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  46808. if (_current !== null) {
  46809. // An lazy component only mounts if it suspended inside a non-
  46810. // concurrent tree, in an inconsistent state. We want to treat it like
  46811. // a new mount, even though an empty version of it already committed.
  46812. // Disconnect the alternate pointers.
  46813. _current.alternate = null;
  46814. workInProgress.alternate = null;
  46815. // Since this is conceptually a new fiber, schedule a Placement effect
  46816. workInProgress.effectTag |= Placement;
  46817. }
  46818. var props = workInProgress.pendingProps;
  46819. // We can't start a User Timing measurement with correct label yet.
  46820. // Cancel and resume right after we know the tag.
  46821. cancelWorkTimer(workInProgress);
  46822. var Component = readLazyComponentType(elementType);
  46823. // Store the unwrapped component in the type.
  46824. workInProgress.type = Component;
  46825. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  46826. startWorkTimer(workInProgress);
  46827. var resolvedProps = resolveDefaultProps(Component, props);
  46828. var child = void 0;
  46829. switch (resolvedTag) {
  46830. case FunctionComponent:
  46831. {
  46832. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  46833. break;
  46834. }
  46835. case ClassComponent:
  46836. {
  46837. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  46838. break;
  46839. }
  46840. case ForwardRef:
  46841. {
  46842. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  46843. break;
  46844. }
  46845. case MemoComponent:
  46846. {
  46847. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  46848. updateExpirationTime, renderExpirationTime);
  46849. break;
  46850. }
  46851. default:
  46852. {
  46853. // This message intentionally doesn't mention ForwardRef or MemoComponent
  46854. // because the fact that it's a separate type of work is an
  46855. // implementation detail.
  46856. invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component);
  46857. }
  46858. }
  46859. return child;
  46860. }
  46861. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  46862. if (_current !== null) {
  46863. // An incomplete component only mounts if it suspended inside a non-
  46864. // concurrent tree, in an inconsistent state. We want to treat it like
  46865. // a new mount, even though an empty version of it already committed.
  46866. // Disconnect the alternate pointers.
  46867. _current.alternate = null;
  46868. workInProgress.alternate = null;
  46869. // Since this is conceptually a new fiber, schedule a Placement effect
  46870. workInProgress.effectTag |= Placement;
  46871. }
  46872. // Promote the fiber to a class and try rendering again.
  46873. workInProgress.tag = ClassComponent;
  46874. // The rest of this function is a fork of `updateClassComponent`
  46875. // Push context providers early to prevent context stack mismatches.
  46876. // During mounting we don't know the child context yet as the instance doesn't exist.
  46877. // We will invalidate the child context in finishClassComponent() right after rendering.
  46878. var hasContext = void 0;
  46879. if (isContextProvider(Component)) {
  46880. hasContext = true;
  46881. pushContextProvider(workInProgress);
  46882. } else {
  46883. hasContext = false;
  46884. }
  46885. prepareToReadContext(workInProgress, renderExpirationTime);
  46886. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46887. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46888. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  46889. }
  46890. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  46891. if (_current !== null) {
  46892. // An indeterminate component only mounts if it suspended inside a non-
  46893. // concurrent tree, in an inconsistent state. We want to treat it like
  46894. // a new mount, even though an empty version of it already committed.
  46895. // Disconnect the alternate pointers.
  46896. _current.alternate = null;
  46897. workInProgress.alternate = null;
  46898. // Since this is conceptually a new fiber, schedule a Placement effect
  46899. workInProgress.effectTag |= Placement;
  46900. }
  46901. var props = workInProgress.pendingProps;
  46902. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  46903. var context = getMaskedContext(workInProgress, unmaskedContext);
  46904. prepareToReadContext(workInProgress, renderExpirationTime);
  46905. prepareToUseHooks(null, workInProgress, renderExpirationTime);
  46906. var value = void 0;
  46907. {
  46908. if (Component.prototype && typeof Component.prototype.render === 'function') {
  46909. var componentName = getComponentName(Component) || 'Unknown';
  46910. if (!didWarnAboutBadClass[componentName]) {
  46911. 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);
  46912. didWarnAboutBadClass[componentName] = true;
  46913. }
  46914. }
  46915. if (workInProgress.mode & StrictMode) {
  46916. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  46917. }
  46918. ReactCurrentOwner$3.current = workInProgress;
  46919. value = Component(props, context);
  46920. }
  46921. // React DevTools reads this flag.
  46922. workInProgress.effectTag |= PerformedWork;
  46923. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  46924. // Proceed under the assumption that this is a class instance
  46925. workInProgress.tag = ClassComponent;
  46926. // Throw out any hooks that were used.
  46927. resetHooks();
  46928. // Push context providers early to prevent context stack mismatches.
  46929. // During mounting we don't know the child context yet as the instance doesn't exist.
  46930. // We will invalidate the child context in finishClassComponent() right after rendering.
  46931. var hasContext = false;
  46932. if (isContextProvider(Component)) {
  46933. hasContext = true;
  46934. pushContextProvider(workInProgress);
  46935. } else {
  46936. hasContext = false;
  46937. }
  46938. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  46939. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  46940. if (typeof getDerivedStateFromProps === 'function') {
  46941. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  46942. }
  46943. adoptClassInstance(workInProgress, value);
  46944. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  46945. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  46946. } else {
  46947. // Proceed under the assumption that this is a function component
  46948. workInProgress.tag = FunctionComponent;
  46949. value = finishHooks(Component, props, value, context);
  46950. {
  46951. if (Component) {
  46952. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  46953. }
  46954. if (workInProgress.ref !== null) {
  46955. var info = '';
  46956. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  46957. if (ownerName) {
  46958. info += '\n\nCheck the render method of `' + ownerName + '`.';
  46959. }
  46960. var warningKey = ownerName || workInProgress._debugID || '';
  46961. var debugSource = workInProgress._debugSource;
  46962. if (debugSource) {
  46963. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  46964. }
  46965. if (!didWarnAboutFunctionRefs[warningKey]) {
  46966. didWarnAboutFunctionRefs[warningKey] = true;
  46967. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info);
  46968. }
  46969. }
  46970. if (typeof Component.getDerivedStateFromProps === 'function') {
  46971. var _componentName = getComponentName(Component) || 'Unknown';
  46972. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName]) {
  46973. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName);
  46974. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName] = true;
  46975. }
  46976. }
  46977. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  46978. var _componentName2 = getComponentName(Component) || 'Unknown';
  46979. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName2]) {
  46980. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName2);
  46981. didWarnAboutContextTypeOnFunctionComponent[_componentName2] = true;
  46982. }
  46983. }
  46984. }
  46985. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  46986. return workInProgress.child;
  46987. }
  46988. }
  46989. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  46990. var mode = workInProgress.mode;
  46991. var nextProps = workInProgress.pendingProps;
  46992. // We should attempt to render the primary children unless this boundary
  46993. // already suspended during this render (`alreadyCaptured` is true).
  46994. var nextState = workInProgress.memoizedState;
  46995. var nextDidTimeout = void 0;
  46996. if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  46997. // This is the first attempt.
  46998. nextState = null;
  46999. nextDidTimeout = false;
  47000. } else {
  47001. // Something in this boundary's subtree already suspended. Switch to
  47002. // rendering the fallback children.
  47003. nextState = {
  47004. timedOutAt: nextState !== null ? nextState.timedOutAt : NoWork
  47005. };
  47006. nextDidTimeout = true;
  47007. workInProgress.effectTag &= ~DidCapture;
  47008. }
  47009. // This next part is a bit confusing. If the children timeout, we switch to
  47010. // showing the fallback children in place of the "primary" children.
  47011. // However, we don't want to delete the primary children because then their
  47012. // state will be lost (both the React state and the host state, e.g.
  47013. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  47014. // Both the fallback children AND the primary children are rendered at the
  47015. // same time. Once the primary children are un-suspended, we can delete
  47016. // the fallback children — don't need to preserve their state.
  47017. //
  47018. // The two sets of children are siblings in the host environment, but
  47019. // semantically, for purposes of reconciliation, they are two separate sets.
  47020. // So we store them using two fragment fibers.
  47021. //
  47022. // However, we want to avoid allocating extra fibers for every placeholder.
  47023. // They're only necessary when the children time out, because that's the
  47024. // only time when both sets are mounted.
  47025. //
  47026. // So, the extra fragment fibers are only used if the children time out.
  47027. // Otherwise, we render the primary children directly. This requires some
  47028. // custom reconciliation logic to preserve the state of the primary
  47029. // children. It's essentially a very basic form of re-parenting.
  47030. // `child` points to the child fiber. In the normal case, this is the first
  47031. // fiber of the primary children set. In the timed-out case, it's a
  47032. // a fragment fiber containing the primary children.
  47033. var child = void 0;
  47034. // `next` points to the next fiber React should render. In the normal case,
  47035. // it's the same as `child`: the first fiber of the primary children set.
  47036. // In the timed-out case, it's a fragment fiber containing the *fallback*
  47037. // children -- we skip over the primary children entirely.
  47038. var next = void 0;
  47039. if (current$$1 === null) {
  47040. // This is the initial mount. This branch is pretty simple because there's
  47041. // no previous state that needs to be preserved.
  47042. if (nextDidTimeout) {
  47043. // Mount separate fragments for primary and fallback children.
  47044. var nextFallbackChildren = nextProps.fallback;
  47045. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  47046. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  47047. // Outside of concurrent mode, we commit the effects from the
  47048. var progressedState = workInProgress.memoizedState;
  47049. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  47050. primaryChildFragment.child = progressedPrimaryChild;
  47051. }
  47052. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  47053. primaryChildFragment.sibling = fallbackChildFragment;
  47054. child = primaryChildFragment;
  47055. // Skip the primary children, and continue working on the
  47056. // fallback children.
  47057. next = fallbackChildFragment;
  47058. child.return = next.return = workInProgress;
  47059. } else {
  47060. // Mount the primary children without an intermediate fragment fiber.
  47061. var nextPrimaryChildren = nextProps.children;
  47062. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  47063. }
  47064. } else {
  47065. // This is an update. This branch is more complicated because we need to
  47066. // ensure the state of the primary children is preserved.
  47067. var prevState = current$$1.memoizedState;
  47068. var prevDidTimeout = prevState !== null;
  47069. if (prevDidTimeout) {
  47070. // The current tree already timed out. That means each child set is
  47071. var currentPrimaryChildFragment = current$$1.child;
  47072. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  47073. if (nextDidTimeout) {
  47074. // Still timed out. Reuse the current primary children by cloning
  47075. // its fragment. We're going to skip over these entirely.
  47076. var _nextFallbackChildren = nextProps.fallback;
  47077. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  47078. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  47079. // Outside of concurrent mode, we commit the effects from the
  47080. var _progressedState = workInProgress.memoizedState;
  47081. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  47082. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  47083. _primaryChildFragment.child = _progressedPrimaryChild;
  47084. }
  47085. }
  47086. // Because primaryChildFragment is a new fiber that we're inserting as the
  47087. // parent of a new tree, we need to set its treeBaseDuration.
  47088. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  47089. // treeBaseDuration is the sum of all the child tree base durations.
  47090. var treeBaseDuration = 0;
  47091. var hiddenChild = _primaryChildFragment.child;
  47092. while (hiddenChild !== null) {
  47093. treeBaseDuration += hiddenChild.treeBaseDuration;
  47094. hiddenChild = hiddenChild.sibling;
  47095. }
  47096. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  47097. }
  47098. // Clone the fallback child fragment, too. These we'll continue
  47099. // working on.
  47100. var _fallbackChildFragment = _primaryChildFragment.sibling = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  47101. child = _primaryChildFragment;
  47102. _primaryChildFragment.childExpirationTime = NoWork;
  47103. // Skip the primary children, and continue working on the
  47104. // fallback children.
  47105. next = _fallbackChildFragment;
  47106. child.return = next.return = workInProgress;
  47107. } else {
  47108. // No longer suspended. Switch back to showing the primary children,
  47109. // and remove the intermediate fragment fiber.
  47110. var _nextPrimaryChildren = nextProps.children;
  47111. var currentPrimaryChild = currentPrimaryChildFragment.child;
  47112. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  47113. // If this render doesn't suspend, we need to delete the fallback
  47114. // children. Wait until the complete phase, after we've confirmed the
  47115. // fallback is no longer needed.
  47116. // TODO: Would it be better to store the fallback fragment on
  47117. // the stateNode?
  47118. // Continue rendering the children, like we normally do.
  47119. child = next = primaryChild;
  47120. }
  47121. } else {
  47122. // The current tree has not already timed out. That means the primary
  47123. // children are not wrapped in a fragment fiber.
  47124. var _currentPrimaryChild = current$$1.child;
  47125. if (nextDidTimeout) {
  47126. // Timed out. Wrap the children in a fragment fiber to keep them
  47127. // separate from the fallback children.
  47128. var _nextFallbackChildren2 = nextProps.fallback;
  47129. var _primaryChildFragment2 = createFiberFromFragment(
  47130. // It shouldn't matter what the pending props are because we aren't
  47131. // going to render this fragment.
  47132. null, mode, NoWork, null);
  47133. _primaryChildFragment2.child = _currentPrimaryChild;
  47134. // Even though we're creating a new fiber, there are no new children,
  47135. // because we're reusing an already mounted tree. So we don't need to
  47136. // schedule a placement.
  47137. // primaryChildFragment.effectTag |= Placement;
  47138. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  47139. // Outside of concurrent mode, we commit the effects from the
  47140. var _progressedState2 = workInProgress.memoizedState;
  47141. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  47142. _primaryChildFragment2.child = _progressedPrimaryChild2;
  47143. }
  47144. // Because primaryChildFragment is a new fiber that we're inserting as the
  47145. // parent of a new tree, we need to set its treeBaseDuration.
  47146. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  47147. // treeBaseDuration is the sum of all the child tree base durations.
  47148. var _treeBaseDuration = 0;
  47149. var _hiddenChild = _primaryChildFragment2.child;
  47150. while (_hiddenChild !== null) {
  47151. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  47152. _hiddenChild = _hiddenChild.sibling;
  47153. }
  47154. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  47155. }
  47156. // Create a fragment from the fallback children, too.
  47157. var _fallbackChildFragment2 = _primaryChildFragment2.sibling = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  47158. _fallbackChildFragment2.effectTag |= Placement;
  47159. child = _primaryChildFragment2;
  47160. _primaryChildFragment2.childExpirationTime = NoWork;
  47161. // Skip the primary children, and continue working on the
  47162. // fallback children.
  47163. next = _fallbackChildFragment2;
  47164. child.return = next.return = workInProgress;
  47165. } else {
  47166. // Still haven't timed out. Continue rendering the children, like we
  47167. // normally do.
  47168. var _nextPrimaryChildren2 = nextProps.children;
  47169. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  47170. }
  47171. }
  47172. }
  47173. workInProgress.memoizedState = nextState;
  47174. workInProgress.child = child;
  47175. return next;
  47176. }
  47177. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  47178. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  47179. var nextChildren = workInProgress.pendingProps;
  47180. if (current$$1 === null) {
  47181. // Portals are special because we don't append the children during mount
  47182. // but at commit. Therefore we need to track insertions which the normal
  47183. // flow doesn't do during mount. This doesn't happen at the root because
  47184. // the root always starts with a "current" with a null child.
  47185. // TODO: Consider unifying this with how the root works.
  47186. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  47187. } else {
  47188. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  47189. }
  47190. return workInProgress.child;
  47191. }
  47192. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  47193. var providerType = workInProgress.type;
  47194. var context = providerType._context;
  47195. var newProps = workInProgress.pendingProps;
  47196. var oldProps = workInProgress.memoizedProps;
  47197. var newValue = newProps.value;
  47198. {
  47199. var providerPropTypes = workInProgress.type.propTypes;
  47200. if (providerPropTypes) {
  47201. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  47202. }
  47203. }
  47204. pushProvider(workInProgress, newValue);
  47205. if (oldProps !== null) {
  47206. var oldValue = oldProps.value;
  47207. var changedBits = calculateChangedBits(context, newValue, oldValue);
  47208. if (changedBits === 0) {
  47209. // No change. Bailout early if children are the same.
  47210. if (oldProps.children === newProps.children && !hasContextChanged()) {
  47211. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  47212. }
  47213. } else {
  47214. // The context value changed. Search for matching consumers and schedule
  47215. // them to update.
  47216. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  47217. }
  47218. }
  47219. var newChildren = newProps.children;
  47220. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  47221. return workInProgress.child;
  47222. }
  47223. var hasWarnedAboutUsingContextAsConsumer = false;
  47224. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  47225. var context = workInProgress.type;
  47226. // The logic below for Context differs depending on PROD or DEV mode. In
  47227. // DEV mode, we create a separate object for Context.Consumer that acts
  47228. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  47229. // so we use the old behaviour (Context.Consumer references Context) to
  47230. // reduce size and overhead. The separate object references context via
  47231. // a property called "_context", which also gives us the ability to check
  47232. // in DEV mode if this property exists or not and warn if it does not.
  47233. {
  47234. if (context._context === undefined) {
  47235. // This may be because it's a Context (rather than a Consumer).
  47236. // Or it may be because it's older React where they're the same thing.
  47237. // We only want to warn if we're sure it's a new React.
  47238. if (context !== context.Consumer) {
  47239. if (!hasWarnedAboutUsingContextAsConsumer) {
  47240. hasWarnedAboutUsingContextAsConsumer = true;
  47241. 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?');
  47242. }
  47243. }
  47244. } else {
  47245. context = context._context;
  47246. }
  47247. }
  47248. var newProps = workInProgress.pendingProps;
  47249. var render = newProps.children;
  47250. {
  47251. !(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;
  47252. }
  47253. prepareToReadContext(workInProgress, renderExpirationTime);
  47254. var newValue = readContext(context, newProps.unstable_observedBits);
  47255. var newChildren = void 0;
  47256. {
  47257. ReactCurrentOwner$3.current = workInProgress;
  47258. setCurrentPhase('render');
  47259. newChildren = render(newValue);
  47260. setCurrentPhase(null);
  47261. }
  47262. // React DevTools reads this flag.
  47263. workInProgress.effectTag |= PerformedWork;
  47264. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  47265. return workInProgress.child;
  47266. }
  47267. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  47268. cancelWorkTimer(workInProgress);
  47269. if (current$$1 !== null) {
  47270. // Reuse previous context list
  47271. workInProgress.firstContextDependency = current$$1.firstContextDependency;
  47272. }
  47273. if (enableProfilerTimer) {
  47274. // Don't update "base" render times for bailouts.
  47275. stopProfilerTimerIfRunning(workInProgress);
  47276. }
  47277. // Check if the children have any pending work.
  47278. var childExpirationTime = workInProgress.childExpirationTime;
  47279. if (childExpirationTime < renderExpirationTime) {
  47280. // The children don't have any work either. We can skip them.
  47281. // TODO: Once we add back resuming, we should check if the children are
  47282. // a work-in-progress set. If so, we need to transfer their effects.
  47283. return null;
  47284. } else {
  47285. // This fiber doesn't have work, but its subtree does. Clone the child
  47286. // fibers and continue.
  47287. cloneChildFibers(current$$1, workInProgress);
  47288. return workInProgress.child;
  47289. }
  47290. }
  47291. function beginWork(current$$1, workInProgress, renderExpirationTime) {
  47292. var updateExpirationTime = workInProgress.expirationTime;
  47293. if (current$$1 !== null) {
  47294. var oldProps = current$$1.memoizedProps;
  47295. var newProps = workInProgress.pendingProps;
  47296. if (oldProps === newProps && !hasContextChanged() && updateExpirationTime < renderExpirationTime) {
  47297. // This fiber does not have any pending work. Bailout without entering
  47298. // the begin phase. There's still some bookkeeping we that needs to be done
  47299. // in this optimized path, mostly pushing stuff onto the stack.
  47300. switch (workInProgress.tag) {
  47301. case HostRoot:
  47302. pushHostRootContext(workInProgress);
  47303. resetHydrationState();
  47304. break;
  47305. case HostComponent:
  47306. pushHostContext(workInProgress);
  47307. break;
  47308. case ClassComponent:
  47309. {
  47310. var Component = workInProgress.type;
  47311. if (isContextProvider(Component)) {
  47312. pushContextProvider(workInProgress);
  47313. }
  47314. break;
  47315. }
  47316. case HostPortal:
  47317. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  47318. break;
  47319. case ContextProvider:
  47320. {
  47321. var newValue = workInProgress.memoizedProps.value;
  47322. pushProvider(workInProgress, newValue);
  47323. break;
  47324. }
  47325. case Profiler:
  47326. if (enableProfilerTimer) {
  47327. workInProgress.effectTag |= Update;
  47328. }
  47329. break;
  47330. case SuspenseComponent:
  47331. {
  47332. var state = workInProgress.memoizedState;
  47333. var didTimeout = state !== null;
  47334. if (didTimeout) {
  47335. // If this boundary is currently timed out, we need to decide
  47336. // whether to retry the primary children, or to skip over it and
  47337. // go straight to the fallback. Check the priority of the primary
  47338. var primaryChildFragment = workInProgress.child;
  47339. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  47340. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  47341. // The primary children have pending work. Use the normal path
  47342. // to attempt to render the primary children again.
  47343. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  47344. } else {
  47345. // The primary children do not have pending work with sufficient
  47346. // priority. Bailout.
  47347. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  47348. if (child !== null) {
  47349. // The fallback children have pending work. Skip over the
  47350. // primary children and work on the fallback.
  47351. return child.sibling;
  47352. } else {
  47353. return null;
  47354. }
  47355. }
  47356. }
  47357. break;
  47358. }
  47359. }
  47360. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  47361. }
  47362. }
  47363. // Before entering the begin phase, clear the expiration time.
  47364. workInProgress.expirationTime = NoWork;
  47365. switch (workInProgress.tag) {
  47366. case IndeterminateComponent:
  47367. {
  47368. var elementType = workInProgress.elementType;
  47369. return mountIndeterminateComponent(current$$1, workInProgress, elementType, renderExpirationTime);
  47370. }
  47371. case LazyComponent:
  47372. {
  47373. var _elementType = workInProgress.elementType;
  47374. return mountLazyComponent(current$$1, workInProgress, _elementType, updateExpirationTime, renderExpirationTime);
  47375. }
  47376. case FunctionComponent:
  47377. {
  47378. var _Component = workInProgress.type;
  47379. var unresolvedProps = workInProgress.pendingProps;
  47380. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  47381. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  47382. }
  47383. case ClassComponent:
  47384. {
  47385. var _Component2 = workInProgress.type;
  47386. var _unresolvedProps = workInProgress.pendingProps;
  47387. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  47388. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  47389. }
  47390. case HostRoot:
  47391. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  47392. case HostComponent:
  47393. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  47394. case HostText:
  47395. return updateHostText(current$$1, workInProgress);
  47396. case SuspenseComponent:
  47397. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  47398. case HostPortal:
  47399. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  47400. case ForwardRef:
  47401. {
  47402. var type = workInProgress.type;
  47403. var _unresolvedProps2 = workInProgress.pendingProps;
  47404. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  47405. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  47406. }
  47407. case Fragment:
  47408. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  47409. case Mode:
  47410. return updateMode(current$$1, workInProgress, renderExpirationTime);
  47411. case Profiler:
  47412. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  47413. case ContextProvider:
  47414. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  47415. case ContextConsumer:
  47416. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  47417. case MemoComponent:
  47418. {
  47419. var _type = workInProgress.type;
  47420. var _unresolvedProps3 = workInProgress.pendingProps;
  47421. var _resolvedProps3 = resolveDefaultProps(_type.type, _unresolvedProps3);
  47422. return updateMemoComponent(current$$1, workInProgress, _type, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  47423. }
  47424. case SimpleMemoComponent:
  47425. {
  47426. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  47427. }
  47428. case IncompleteClassComponent:
  47429. {
  47430. var _Component3 = workInProgress.type;
  47431. var _unresolvedProps4 = workInProgress.pendingProps;
  47432. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  47433. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  47434. }
  47435. default:
  47436. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  47437. }
  47438. }
  47439. function markUpdate(workInProgress) {
  47440. // Tag the fiber with an update effect. This turns a Placement into
  47441. // a PlacementAndUpdate.
  47442. workInProgress.effectTag |= Update;
  47443. }
  47444. function markRef$1(workInProgress) {
  47445. workInProgress.effectTag |= Ref;
  47446. }
  47447. var appendAllChildren = void 0;
  47448. var updateHostContainer = void 0;
  47449. var updateHostComponent$1 = void 0;
  47450. var updateHostText$1 = void 0;
  47451. if (supportsMutation) {
  47452. // Mutation mode
  47453. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  47454. // We only have the top Fiber that was created but we need recurse down its
  47455. // children to find all the terminal nodes.
  47456. var node = workInProgress.child;
  47457. while (node !== null) {
  47458. if (node.tag === HostComponent || node.tag === HostText) {
  47459. appendInitialChild(parent, node.stateNode);
  47460. } else if (node.tag === HostPortal) {
  47461. // If we have a portal child, then we don't want to traverse
  47462. // down its children. Instead, we'll get insertions from each child in
  47463. // the portal directly.
  47464. } else if (node.child !== null) {
  47465. node.child.return = node;
  47466. node = node.child;
  47467. continue;
  47468. }
  47469. if (node === workInProgress) {
  47470. return;
  47471. }
  47472. while (node.sibling === null) {
  47473. if (node.return === null || node.return === workInProgress) {
  47474. return;
  47475. }
  47476. node = node.return;
  47477. }
  47478. node.sibling.return = node.return;
  47479. node = node.sibling;
  47480. }
  47481. };
  47482. updateHostContainer = function (workInProgress) {
  47483. // Noop
  47484. };
  47485. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  47486. // If we have an alternate, that means this is an update and we need to
  47487. // schedule a side-effect to do the updates.
  47488. var oldProps = current.memoizedProps;
  47489. if (oldProps === newProps) {
  47490. // In mutation mode, this is sufficient for a bailout because
  47491. // we won't touch this node even if children changed.
  47492. return;
  47493. }
  47494. // If we get updated because one of our children updated, we don't
  47495. // have newProps so we'll have to reuse them.
  47496. // TODO: Split the update API as separate for the props vs. children.
  47497. // Even better would be if children weren't special cased at all tho.
  47498. var instance = workInProgress.stateNode;
  47499. var currentHostContext = getHostContext();
  47500. // TODO: Experiencing an error where oldProps is null. Suggests a host
  47501. // component is hitting the resume path. Figure out why. Possibly
  47502. // related to `hidden`.
  47503. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  47504. // TODO: Type this specific to this type of component.
  47505. workInProgress.updateQueue = updatePayload;
  47506. // If the update payload indicates that there is a change or if there
  47507. // is a new ref we mark this as an update. All the work is done in commitWork.
  47508. if (updatePayload) {
  47509. markUpdate(workInProgress);
  47510. }
  47511. };
  47512. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  47513. // If the text differs, mark it as an update. All the work in done in commitWork.
  47514. if (oldText !== newText) {
  47515. markUpdate(workInProgress);
  47516. }
  47517. };
  47518. } else if (supportsPersistence) {
  47519. // Persistent host tree mode
  47520. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  47521. // We only have the top Fiber that was created but we need recurse down its
  47522. // children to find all the terminal nodes.
  47523. var node = workInProgress.child;
  47524. while (node !== null) {
  47525. // eslint-disable-next-line no-labels
  47526. branches: if (node.tag === HostComponent) {
  47527. var instance = node.stateNode;
  47528. if (needsVisibilityToggle) {
  47529. var props = node.memoizedProps;
  47530. var type = node.type;
  47531. if (isHidden) {
  47532. // This child is inside a timed out tree. Hide it.
  47533. instance = cloneHiddenInstance(instance, type, props, node);
  47534. } else {
  47535. // This child was previously inside a timed out tree. If it was not
  47536. // updated during this render, it may need to be unhidden. Clone
  47537. // again to be sure.
  47538. instance = cloneUnhiddenInstance(instance, type, props, node);
  47539. }
  47540. node.stateNode = instance;
  47541. }
  47542. appendInitialChild(parent, instance);
  47543. } else if (node.tag === HostText) {
  47544. var _instance = node.stateNode;
  47545. if (needsVisibilityToggle) {
  47546. var text = node.memoizedProps;
  47547. var rootContainerInstance = getRootHostContainer();
  47548. var currentHostContext = getHostContext();
  47549. if (isHidden) {
  47550. _instance = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47551. } else {
  47552. _instance = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47553. }
  47554. node.stateNode = _instance;
  47555. }
  47556. appendInitialChild(parent, _instance);
  47557. } else if (node.tag === HostPortal) {
  47558. // If we have a portal child, then we don't want to traverse
  47559. // down its children. Instead, we'll get insertions from each child in
  47560. // the portal directly.
  47561. } else if (node.tag === SuspenseComponent) {
  47562. var current = node.alternate;
  47563. if (current !== null) {
  47564. var oldState = current.memoizedState;
  47565. var newState = node.memoizedState;
  47566. var oldIsHidden = oldState !== null;
  47567. var newIsHidden = newState !== null;
  47568. if (oldIsHidden !== newIsHidden) {
  47569. // The placeholder either just timed out or switched back to the normal
  47570. // children after having previously timed out. Toggle the visibility of
  47571. // the direct host children.
  47572. var primaryChildParent = newIsHidden ? node.child : node;
  47573. if (primaryChildParent !== null) {
  47574. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  47575. }
  47576. // eslint-disable-next-line no-labels
  47577. break branches;
  47578. }
  47579. }
  47580. if (node.child !== null) {
  47581. // Continue traversing like normal
  47582. node.child.return = node;
  47583. node = node.child;
  47584. continue;
  47585. }
  47586. } else if (node.child !== null) {
  47587. node.child.return = node;
  47588. node = node.child;
  47589. continue;
  47590. }
  47591. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  47592. node = node;
  47593. if (node === workInProgress) {
  47594. return;
  47595. }
  47596. while (node.sibling === null) {
  47597. if (node.return === null || node.return === workInProgress) {
  47598. return;
  47599. }
  47600. node = node.return;
  47601. }
  47602. node.sibling.return = node.return;
  47603. node = node.sibling;
  47604. }
  47605. };
  47606. // An unfortunate fork of appendAllChildren because we have two different parent types.
  47607. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  47608. // We only have the top Fiber that was created but we need recurse down its
  47609. // children to find all the terminal nodes.
  47610. var node = workInProgress.child;
  47611. while (node !== null) {
  47612. // eslint-disable-next-line no-labels
  47613. branches: if (node.tag === HostComponent) {
  47614. var instance = node.stateNode;
  47615. if (needsVisibilityToggle) {
  47616. var props = node.memoizedProps;
  47617. var type = node.type;
  47618. if (isHidden) {
  47619. // This child is inside a timed out tree. Hide it.
  47620. instance = cloneHiddenInstance(instance, type, props, node);
  47621. } else {
  47622. // This child was previously inside a timed out tree. If it was not
  47623. // updated during this render, it may need to be unhidden. Clone
  47624. // again to be sure.
  47625. instance = cloneUnhiddenInstance(instance, type, props, node);
  47626. }
  47627. node.stateNode = instance;
  47628. }
  47629. appendChildToContainerChildSet(containerChildSet, instance);
  47630. } else if (node.tag === HostText) {
  47631. var _instance2 = node.stateNode;
  47632. if (needsVisibilityToggle) {
  47633. var text = node.memoizedProps;
  47634. var rootContainerInstance = getRootHostContainer();
  47635. var currentHostContext = getHostContext();
  47636. if (isHidden) {
  47637. _instance2 = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47638. } else {
  47639. _instance2 = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47640. }
  47641. node.stateNode = _instance2;
  47642. }
  47643. appendChildToContainerChildSet(containerChildSet, _instance2);
  47644. } else if (node.tag === HostPortal) {
  47645. // If we have a portal child, then we don't want to traverse
  47646. // down its children. Instead, we'll get insertions from each child in
  47647. // the portal directly.
  47648. } else if (node.tag === SuspenseComponent) {
  47649. var current = node.alternate;
  47650. if (current !== null) {
  47651. var oldState = current.memoizedState;
  47652. var newState = node.memoizedState;
  47653. var oldIsHidden = oldState !== null;
  47654. var newIsHidden = newState !== null;
  47655. if (oldIsHidden !== newIsHidden) {
  47656. // The placeholder either just timed out or switched back to the normal
  47657. // children after having previously timed out. Toggle the visibility of
  47658. // the direct host children.
  47659. var primaryChildParent = newIsHidden ? node.child : node;
  47660. if (primaryChildParent !== null) {
  47661. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  47662. }
  47663. // eslint-disable-next-line no-labels
  47664. break branches;
  47665. }
  47666. }
  47667. if (node.child !== null) {
  47668. // Continue traversing like normal
  47669. node.child.return = node;
  47670. node = node.child;
  47671. continue;
  47672. }
  47673. } else if (node.child !== null) {
  47674. node.child.return = node;
  47675. node = node.child;
  47676. continue;
  47677. }
  47678. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  47679. node = node;
  47680. if (node === workInProgress) {
  47681. return;
  47682. }
  47683. while (node.sibling === null) {
  47684. if (node.return === null || node.return === workInProgress) {
  47685. return;
  47686. }
  47687. node = node.return;
  47688. }
  47689. node.sibling.return = node.return;
  47690. node = node.sibling;
  47691. }
  47692. };
  47693. updateHostContainer = function (workInProgress) {
  47694. var portalOrRoot = workInProgress.stateNode;
  47695. var childrenUnchanged = workInProgress.firstEffect === null;
  47696. if (childrenUnchanged) {
  47697. // No changes, just reuse the existing instance.
  47698. } else {
  47699. var container = portalOrRoot.containerInfo;
  47700. var newChildSet = createContainerChildSet(container);
  47701. // If children might have changed, we have to add them all to the set.
  47702. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  47703. portalOrRoot.pendingChildren = newChildSet;
  47704. // Schedule an update on the container to swap out the container.
  47705. markUpdate(workInProgress);
  47706. finalizeContainerChildren(container, newChildSet);
  47707. }
  47708. };
  47709. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  47710. var currentInstance = current.stateNode;
  47711. var oldProps = current.memoizedProps;
  47712. // If there are no effects associated with this node, then none of our children had any updates.
  47713. // This guarantees that we can reuse all of them.
  47714. var childrenUnchanged = workInProgress.firstEffect === null;
  47715. if (childrenUnchanged && oldProps === newProps) {
  47716. // No changes, just reuse the existing instance.
  47717. // Note that this might release a previous clone.
  47718. workInProgress.stateNode = currentInstance;
  47719. return;
  47720. }
  47721. var recyclableInstance = workInProgress.stateNode;
  47722. var currentHostContext = getHostContext();
  47723. var updatePayload = null;
  47724. if (oldProps !== newProps) {
  47725. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  47726. }
  47727. if (childrenUnchanged && updatePayload === null) {
  47728. // No changes, just reuse the existing instance.
  47729. // Note that this might release a previous clone.
  47730. workInProgress.stateNode = currentInstance;
  47731. return;
  47732. }
  47733. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  47734. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  47735. markUpdate(workInProgress);
  47736. }
  47737. workInProgress.stateNode = newInstance;
  47738. if (childrenUnchanged) {
  47739. // If there are no other effects in this tree, we need to flag this node as having one.
  47740. // Even though we're not going to use it for anything.
  47741. // Otherwise parents won't know that there are new children to propagate upwards.
  47742. markUpdate(workInProgress);
  47743. } else {
  47744. // If children might have changed, we have to add them all to the set.
  47745. appendAllChildren(newInstance, workInProgress, false, false);
  47746. }
  47747. };
  47748. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  47749. if (oldText !== newText) {
  47750. // If the text content differs, we'll create a new text instance for it.
  47751. var rootContainerInstance = getRootHostContainer();
  47752. var currentHostContext = getHostContext();
  47753. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  47754. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  47755. // This lets the parents know that at least one of their children has changed.
  47756. markUpdate(workInProgress);
  47757. }
  47758. };
  47759. } else {
  47760. // No host operations
  47761. updateHostContainer = function (workInProgress) {
  47762. // Noop
  47763. };
  47764. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  47765. // Noop
  47766. };
  47767. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  47768. // Noop
  47769. };
  47770. }
  47771. function completeWork(current, workInProgress, renderExpirationTime) {
  47772. var newProps = workInProgress.pendingProps;
  47773. switch (workInProgress.tag) {
  47774. case IndeterminateComponent:
  47775. break;
  47776. case LazyComponent:
  47777. break;
  47778. case SimpleMemoComponent:
  47779. case FunctionComponent:
  47780. break;
  47781. case ClassComponent:
  47782. {
  47783. var Component = workInProgress.type;
  47784. if (isContextProvider(Component)) {
  47785. popContext(workInProgress);
  47786. }
  47787. break;
  47788. }
  47789. case HostRoot:
  47790. {
  47791. popHostContainer(workInProgress);
  47792. popTopLevelContextObject(workInProgress);
  47793. var fiberRoot = workInProgress.stateNode;
  47794. if (fiberRoot.pendingContext) {
  47795. fiberRoot.context = fiberRoot.pendingContext;
  47796. fiberRoot.pendingContext = null;
  47797. }
  47798. if (current === null || current.child === null) {
  47799. // If we hydrated, pop so that we can delete any remaining children
  47800. // that weren't hydrated.
  47801. popHydrationState(workInProgress);
  47802. // This resets the hacky state to fix isMounted before committing.
  47803. // TODO: Delete this when we delete isMounted and findDOMNode.
  47804. workInProgress.effectTag &= ~Placement;
  47805. }
  47806. updateHostContainer(workInProgress);
  47807. break;
  47808. }
  47809. case HostComponent:
  47810. {
  47811. popHostContext(workInProgress);
  47812. var rootContainerInstance = getRootHostContainer();
  47813. var type = workInProgress.type;
  47814. if (current !== null && workInProgress.stateNode != null) {
  47815. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  47816. if (current.ref !== workInProgress.ref) {
  47817. markRef$1(workInProgress);
  47818. }
  47819. } else {
  47820. if (!newProps) {
  47821. !(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;
  47822. // This can happen when we abort work.
  47823. break;
  47824. }
  47825. var currentHostContext = getHostContext();
  47826. // TODO: Move createInstance to beginWork and keep it on a context
  47827. // "stack" as the parent. Then append children as we go in beginWork
  47828. // or completeWork depending on we want to add then top->down or
  47829. // bottom->up. Top->down is faster in IE11.
  47830. var wasHydrated = popHydrationState(workInProgress);
  47831. if (wasHydrated) {
  47832. // TODO: Move this and createInstance step into the beginPhase
  47833. // to consolidate.
  47834. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  47835. // If changes to the hydrated node needs to be applied at the
  47836. // commit-phase we mark this as such.
  47837. markUpdate(workInProgress);
  47838. }
  47839. } else {
  47840. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  47841. appendAllChildren(instance, workInProgress, false, false);
  47842. // Certain renderers require commit-time effects for initial mount.
  47843. // (eg DOM renderer supports auto-focus for certain elements).
  47844. // Make sure such renderers get scheduled for later work.
  47845. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {
  47846. markUpdate(workInProgress);
  47847. }
  47848. workInProgress.stateNode = instance;
  47849. }
  47850. if (workInProgress.ref !== null) {
  47851. // If there is a ref on a host node we need to schedule a callback
  47852. markRef$1(workInProgress);
  47853. }
  47854. }
  47855. break;
  47856. }
  47857. case HostText:
  47858. {
  47859. var newText = newProps;
  47860. if (current && workInProgress.stateNode != null) {
  47861. var oldText = current.memoizedProps;
  47862. // If we have an alternate, that means this is an update and we need
  47863. // to schedule a side-effect to do the updates.
  47864. updateHostText$1(current, workInProgress, oldText, newText);
  47865. } else {
  47866. if (typeof newText !== 'string') {
  47867. !(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;
  47868. // This can happen when we abort work.
  47869. }
  47870. var _rootContainerInstance = getRootHostContainer();
  47871. var _currentHostContext = getHostContext();
  47872. var _wasHydrated = popHydrationState(workInProgress);
  47873. if (_wasHydrated) {
  47874. if (prepareToHydrateHostTextInstance(workInProgress)) {
  47875. markUpdate(workInProgress);
  47876. }
  47877. } else {
  47878. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  47879. }
  47880. }
  47881. break;
  47882. }
  47883. case ForwardRef:
  47884. break;
  47885. case SuspenseComponent:
  47886. {
  47887. var nextState = workInProgress.memoizedState;
  47888. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  47889. // Something suspended. Re-render with the fallback children.
  47890. workInProgress.expirationTime = renderExpirationTime;
  47891. // Do not reset the effect list.
  47892. return workInProgress;
  47893. }
  47894. var nextDidTimeout = nextState !== null;
  47895. var prevDidTimeout = current !== null && current.memoizedState !== null;
  47896. if (current !== null && !nextDidTimeout && prevDidTimeout) {
  47897. // We just switched from the fallback to the normal children. Delete
  47898. // the fallback.
  47899. // TODO: Would it be better to store the fallback fragment on
  47900. var currentFallbackChild = current.child.sibling;
  47901. if (currentFallbackChild !== null) {
  47902. // Deletions go at the beginning of the return fiber's effect list
  47903. var first = workInProgress.firstEffect;
  47904. if (first !== null) {
  47905. workInProgress.firstEffect = currentFallbackChild;
  47906. currentFallbackChild.nextEffect = first;
  47907. } else {
  47908. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  47909. currentFallbackChild.nextEffect = null;
  47910. }
  47911. currentFallbackChild.effectTag = Deletion;
  47912. }
  47913. }
  47914. // The children either timed out after previously being visible, or
  47915. // were restored after previously being hidden. Schedule an effect
  47916. // to update their visiblity.
  47917. if (
  47918. //
  47919. nextDidTimeout !== prevDidTimeout ||
  47920. // Outside concurrent mode, the primary children commit in an
  47921. // inconsistent state, even if they are hidden. So if they are hidden,
  47922. // we need to schedule an effect to re-hide them, just in case.
  47923. (workInProgress.effectTag & ConcurrentMode) === NoContext && nextDidTimeout) {
  47924. workInProgress.effectTag |= Update;
  47925. }
  47926. break;
  47927. }
  47928. case Fragment:
  47929. break;
  47930. case Mode:
  47931. break;
  47932. case Profiler:
  47933. break;
  47934. case HostPortal:
  47935. popHostContainer(workInProgress);
  47936. updateHostContainer(workInProgress);
  47937. break;
  47938. case ContextProvider:
  47939. // Pop provider fiber
  47940. popProvider(workInProgress);
  47941. break;
  47942. case ContextConsumer:
  47943. break;
  47944. case MemoComponent:
  47945. break;
  47946. case IncompleteClassComponent:
  47947. {
  47948. // Same as class component case. I put it down here so that the tags are
  47949. // sequential to ensure this switch is compiled to a jump table.
  47950. var _Component = workInProgress.type;
  47951. if (isContextProvider(_Component)) {
  47952. popContext(workInProgress);
  47953. }
  47954. break;
  47955. }
  47956. default:
  47957. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  47958. }
  47959. return null;
  47960. }
  47961. function shouldCaptureSuspense(current, workInProgress) {
  47962. // In order to capture, the Suspense component must have a fallback prop.
  47963. if (workInProgress.memoizedProps.fallback === undefined) {
  47964. return false;
  47965. }
  47966. // If it was the primary children that just suspended, capture and render the
  47967. // fallback. Otherwise, don't capture and bubble to the next boundary.
  47968. var nextState = workInProgress.memoizedState;
  47969. return nextState === null;
  47970. }
  47971. // This module is forked in different environments.
  47972. // By default, return `true` to log errors to the console.
  47973. // Forks can return `false` if this isn't desirable.
  47974. function showErrorDialog(capturedError) {
  47975. return true;
  47976. }
  47977. function logCapturedError(capturedError) {
  47978. var logError = showErrorDialog(capturedError);
  47979. // Allow injected showErrorDialog() to prevent default console.error logging.
  47980. // This enables renderers like ReactNative to better manage redbox behavior.
  47981. if (logError === false) {
  47982. return;
  47983. }
  47984. var error = capturedError.error;
  47985. {
  47986. var componentName = capturedError.componentName,
  47987. componentStack = capturedError.componentStack,
  47988. errorBoundaryName = capturedError.errorBoundaryName,
  47989. errorBoundaryFound = capturedError.errorBoundaryFound,
  47990. willRetry = capturedError.willRetry;
  47991. // Browsers support silencing uncaught errors by calling
  47992. // `preventDefault()` in window `error` handler.
  47993. // We record this information as an expando on the error.
  47994. if (error != null && error._suppressLogging) {
  47995. if (errorBoundaryFound && willRetry) {
  47996. // The error is recoverable and was silenced.
  47997. // Ignore it and don't print the stack addendum.
  47998. // This is handy for testing error boundaries without noise.
  47999. return;
  48000. }
  48001. // The error is fatal. Since the silencing might have
  48002. // been accidental, we'll surface it anyway.
  48003. // However, the browser would have silenced the original error
  48004. // so we'll print it first, and then print the stack addendum.
  48005. console.error(error);
  48006. // For a more detailed description of this block, see:
  48007. // https://github.com/facebook/react/pull/13384
  48008. }
  48009. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  48010. var errorBoundaryMessage = void 0;
  48011. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  48012. if (errorBoundaryFound && errorBoundaryName) {
  48013. if (willRetry) {
  48014. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  48015. } else {
  48016. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  48017. }
  48018. } else {
  48019. 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.';
  48020. }
  48021. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  48022. // In development, we provide our own message with just the component stack.
  48023. // We don't include the original error message and JS stack because the browser
  48024. // has already printed it. Even if the application swallows the error, it is still
  48025. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  48026. console.error(combinedMessage);
  48027. }
  48028. }
  48029. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  48030. {
  48031. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  48032. }
  48033. function logError(boundary, errorInfo) {
  48034. var source = errorInfo.source;
  48035. var stack = errorInfo.stack;
  48036. if (stack === null && source !== null) {
  48037. stack = getStackByFiberInDevAndProd(source);
  48038. }
  48039. var capturedError = {
  48040. componentName: source !== null ? getComponentName(source.type) : null,
  48041. componentStack: stack !== null ? stack : '',
  48042. error: errorInfo.value,
  48043. errorBoundary: null,
  48044. errorBoundaryName: null,
  48045. errorBoundaryFound: false,
  48046. willRetry: false
  48047. };
  48048. if (boundary !== null && boundary.tag === ClassComponent) {
  48049. capturedError.errorBoundary = boundary.stateNode;
  48050. capturedError.errorBoundaryName = getComponentName(boundary.type);
  48051. capturedError.errorBoundaryFound = true;
  48052. capturedError.willRetry = true;
  48053. }
  48054. try {
  48055. logCapturedError(capturedError);
  48056. } catch (e) {
  48057. // This method must not throw, or React internal state will get messed up.
  48058. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  48059. // we want to report this error outside of the normal stack as a last resort.
  48060. // https://github.com/facebook/react/issues/13188
  48061. setTimeout(function () {
  48062. throw e;
  48063. });
  48064. }
  48065. }
  48066. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  48067. startPhaseTimer(current$$1, 'componentWillUnmount');
  48068. instance.props = current$$1.memoizedProps;
  48069. instance.state = current$$1.memoizedState;
  48070. instance.componentWillUnmount();
  48071. stopPhaseTimer();
  48072. };
  48073. // Capture errors so they don't interrupt unmounting.
  48074. function safelyCallComponentWillUnmount(current$$1, instance) {
  48075. {
  48076. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  48077. if (hasCaughtError()) {
  48078. var unmountError = clearCaughtError();
  48079. captureCommitPhaseError(current$$1, unmountError);
  48080. }
  48081. }
  48082. }
  48083. function safelyDetachRef(current$$1) {
  48084. var ref = current$$1.ref;
  48085. if (ref !== null) {
  48086. if (typeof ref === 'function') {
  48087. {
  48088. invokeGuardedCallback(null, ref, null, null);
  48089. if (hasCaughtError()) {
  48090. var refError = clearCaughtError();
  48091. captureCommitPhaseError(current$$1, refError);
  48092. }
  48093. }
  48094. } else {
  48095. ref.current = null;
  48096. }
  48097. }
  48098. }
  48099. function safelyCallDestroy(current$$1, destroy) {
  48100. {
  48101. invokeGuardedCallback(null, destroy, null);
  48102. if (hasCaughtError()) {
  48103. var error = clearCaughtError();
  48104. captureCommitPhaseError(current$$1, error);
  48105. }
  48106. }
  48107. }
  48108. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  48109. switch (finishedWork.tag) {
  48110. case FunctionComponent:
  48111. case ForwardRef:
  48112. case SimpleMemoComponent:
  48113. {
  48114. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  48115. return;
  48116. }
  48117. case ClassComponent:
  48118. {
  48119. if (finishedWork.effectTag & Snapshot) {
  48120. if (current$$1 !== null) {
  48121. var prevProps = current$$1.memoizedProps;
  48122. var prevState = current$$1.memoizedState;
  48123. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  48124. var instance = finishedWork.stateNode;
  48125. // We could update instance props and state here,
  48126. // but instead we rely on them being set during last render.
  48127. // TODO: revisit this when we implement resuming.
  48128. {
  48129. if (finishedWork.type === finishedWork.elementType) {
  48130. !(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;
  48131. !(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;
  48132. }
  48133. }
  48134. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  48135. {
  48136. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  48137. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  48138. didWarnSet.add(finishedWork.type);
  48139. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  48140. }
  48141. }
  48142. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  48143. stopPhaseTimer();
  48144. }
  48145. }
  48146. return;
  48147. }
  48148. case HostRoot:
  48149. case HostComponent:
  48150. case HostText:
  48151. case HostPortal:
  48152. case IncompleteClassComponent:
  48153. // Nothing to do for these component types
  48154. return;
  48155. default:
  48156. {
  48157. 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.');
  48158. }
  48159. }
  48160. }
  48161. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  48162. if (!enableHooks) {
  48163. return;
  48164. }
  48165. var updateQueue = finishedWork.updateQueue;
  48166. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  48167. if (lastEffect !== null) {
  48168. var firstEffect = lastEffect.next;
  48169. var effect = firstEffect;
  48170. do {
  48171. if ((effect.tag & unmountTag) !== NoEffect$1) {
  48172. // Unmount
  48173. var destroy = effect.destroy;
  48174. effect.destroy = null;
  48175. if (destroy !== null) {
  48176. destroy();
  48177. }
  48178. }
  48179. if ((effect.tag & mountTag) !== NoEffect$1) {
  48180. // Mount
  48181. var create = effect.create;
  48182. var _destroy = create();
  48183. if (typeof _destroy !== 'function') {
  48184. {
  48185. if (_destroy !== null && _destroy !== undefined) {
  48186. 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));
  48187. }
  48188. }
  48189. _destroy = null;
  48190. }
  48191. effect.destroy = _destroy;
  48192. }
  48193. effect = effect.next;
  48194. } while (effect !== firstEffect);
  48195. }
  48196. }
  48197. function commitPassiveHookEffects(finishedWork) {
  48198. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  48199. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  48200. }
  48201. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  48202. switch (finishedWork.tag) {
  48203. case FunctionComponent:
  48204. case ForwardRef:
  48205. case SimpleMemoComponent:
  48206. {
  48207. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  48208. break;
  48209. }
  48210. case ClassComponent:
  48211. {
  48212. var instance = finishedWork.stateNode;
  48213. if (finishedWork.effectTag & Update) {
  48214. if (current$$1 === null) {
  48215. startPhaseTimer(finishedWork, 'componentDidMount');
  48216. // We could update instance props and state here,
  48217. // but instead we rely on them being set during last render.
  48218. // TODO: revisit this when we implement resuming.
  48219. {
  48220. if (finishedWork.type === finishedWork.elementType) {
  48221. !(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;
  48222. !(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;
  48223. }
  48224. }
  48225. instance.componentDidMount();
  48226. stopPhaseTimer();
  48227. } else {
  48228. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  48229. var prevState = current$$1.memoizedState;
  48230. startPhaseTimer(finishedWork, 'componentDidUpdate');
  48231. // We could update instance props and state here,
  48232. // but instead we rely on them being set during last render.
  48233. // TODO: revisit this when we implement resuming.
  48234. {
  48235. if (finishedWork.type === finishedWork.elementType) {
  48236. !(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;
  48237. !(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;
  48238. }
  48239. }
  48240. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  48241. stopPhaseTimer();
  48242. }
  48243. }
  48244. var updateQueue = finishedWork.updateQueue;
  48245. if (updateQueue !== null) {
  48246. {
  48247. if (finishedWork.type === finishedWork.elementType) {
  48248. !(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;
  48249. !(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;
  48250. }
  48251. }
  48252. // We could update instance props and state here,
  48253. // but instead we rely on them being set during last render.
  48254. // TODO: revisit this when we implement resuming.
  48255. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  48256. }
  48257. return;
  48258. }
  48259. case HostRoot:
  48260. {
  48261. var _updateQueue = finishedWork.updateQueue;
  48262. if (_updateQueue !== null) {
  48263. var _instance = null;
  48264. if (finishedWork.child !== null) {
  48265. switch (finishedWork.child.tag) {
  48266. case HostComponent:
  48267. _instance = getPublicInstance(finishedWork.child.stateNode);
  48268. break;
  48269. case ClassComponent:
  48270. _instance = finishedWork.child.stateNode;
  48271. break;
  48272. }
  48273. }
  48274. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  48275. }
  48276. return;
  48277. }
  48278. case HostComponent:
  48279. {
  48280. var _instance2 = finishedWork.stateNode;
  48281. // Renderers may schedule work to be done after host components are mounted
  48282. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  48283. // These effects should only be committed when components are first mounted,
  48284. // aka when there is no current/alternate.
  48285. if (current$$1 === null && finishedWork.effectTag & Update) {
  48286. var type = finishedWork.type;
  48287. var props = finishedWork.memoizedProps;
  48288. commitMount(_instance2, type, props, finishedWork);
  48289. }
  48290. return;
  48291. }
  48292. case HostText:
  48293. {
  48294. // We have no life-cycles associated with text.
  48295. return;
  48296. }
  48297. case HostPortal:
  48298. {
  48299. // We have no life-cycles associated with portals.
  48300. return;
  48301. }
  48302. case Profiler:
  48303. {
  48304. if (enableProfilerTimer) {
  48305. var onRender = finishedWork.memoizedProps.onRender;
  48306. if (enableSchedulerTracing) {
  48307. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  48308. } else {
  48309. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  48310. }
  48311. }
  48312. return;
  48313. }
  48314. case SuspenseComponent:
  48315. break;
  48316. case IncompleteClassComponent:
  48317. break;
  48318. default:
  48319. {
  48320. 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.');
  48321. }
  48322. }
  48323. }
  48324. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  48325. if (supportsMutation) {
  48326. // We only have the top Fiber that was inserted but we need recurse down its
  48327. var node = finishedWork;
  48328. while (true) {
  48329. if (node.tag === HostComponent) {
  48330. var instance = node.stateNode;
  48331. if (isHidden) {
  48332. hideInstance(instance);
  48333. } else {
  48334. unhideInstance(node.stateNode, node.memoizedProps);
  48335. }
  48336. } else if (node.tag === HostText) {
  48337. var _instance3 = node.stateNode;
  48338. if (isHidden) {
  48339. hideTextInstance(_instance3);
  48340. } else {
  48341. unhideTextInstance(_instance3, node.memoizedProps);
  48342. }
  48343. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  48344. // Found a nested Suspense component that timed out. Skip over the
  48345. var fallbackChildFragment = node.child.sibling;
  48346. fallbackChildFragment.return = node;
  48347. node = fallbackChildFragment;
  48348. continue;
  48349. } else if (node.child !== null) {
  48350. node.child.return = node;
  48351. node = node.child;
  48352. continue;
  48353. }
  48354. if (node === finishedWork) {
  48355. return;
  48356. }
  48357. while (node.sibling === null) {
  48358. if (node.return === null || node.return === finishedWork) {
  48359. return;
  48360. }
  48361. node = node.return;
  48362. }
  48363. node.sibling.return = node.return;
  48364. node = node.sibling;
  48365. }
  48366. }
  48367. }
  48368. function commitAttachRef(finishedWork) {
  48369. var ref = finishedWork.ref;
  48370. if (ref !== null) {
  48371. var instance = finishedWork.stateNode;
  48372. var instanceToUse = void 0;
  48373. switch (finishedWork.tag) {
  48374. case HostComponent:
  48375. instanceToUse = getPublicInstance(instance);
  48376. break;
  48377. default:
  48378. instanceToUse = instance;
  48379. }
  48380. if (typeof ref === 'function') {
  48381. ref(instanceToUse);
  48382. } else {
  48383. {
  48384. if (!ref.hasOwnProperty('current')) {
  48385. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  48386. }
  48387. }
  48388. ref.current = instanceToUse;
  48389. }
  48390. }
  48391. }
  48392. function commitDetachRef(current$$1) {
  48393. var currentRef = current$$1.ref;
  48394. if (currentRef !== null) {
  48395. if (typeof currentRef === 'function') {
  48396. currentRef(null);
  48397. } else {
  48398. currentRef.current = null;
  48399. }
  48400. }
  48401. }
  48402. // User-originating errors (lifecycles and refs) should not interrupt
  48403. // deletion, so don't let them throw. Host-originating errors should
  48404. // interrupt deletion, so it's okay
  48405. function commitUnmount(current$$1) {
  48406. onCommitUnmount(current$$1);
  48407. switch (current$$1.tag) {
  48408. case FunctionComponent:
  48409. case ForwardRef:
  48410. case MemoComponent:
  48411. case SimpleMemoComponent:
  48412. {
  48413. var updateQueue = current$$1.updateQueue;
  48414. if (updateQueue !== null) {
  48415. var lastEffect = updateQueue.lastEffect;
  48416. if (lastEffect !== null) {
  48417. var firstEffect = lastEffect.next;
  48418. var effect = firstEffect;
  48419. do {
  48420. var destroy = effect.destroy;
  48421. if (destroy !== null) {
  48422. safelyCallDestroy(current$$1, destroy);
  48423. }
  48424. effect = effect.next;
  48425. } while (effect !== firstEffect);
  48426. }
  48427. }
  48428. break;
  48429. }
  48430. case ClassComponent:
  48431. {
  48432. safelyDetachRef(current$$1);
  48433. var instance = current$$1.stateNode;
  48434. if (typeof instance.componentWillUnmount === 'function') {
  48435. safelyCallComponentWillUnmount(current$$1, instance);
  48436. }
  48437. return;
  48438. }
  48439. case HostComponent:
  48440. {
  48441. safelyDetachRef(current$$1);
  48442. return;
  48443. }
  48444. case HostPortal:
  48445. {
  48446. // TODO: this is recursive.
  48447. // We are also not using this parent because
  48448. // the portal will get pushed immediately.
  48449. if (supportsMutation) {
  48450. unmountHostComponents(current$$1);
  48451. } else if (supportsPersistence) {
  48452. emptyPortalContainer(current$$1);
  48453. }
  48454. return;
  48455. }
  48456. }
  48457. }
  48458. function commitNestedUnmounts(root) {
  48459. // While we're inside a removed host node we don't want to call
  48460. // removeChild on the inner nodes because they're removed by the top
  48461. // call anyway. We also want to call componentWillUnmount on all
  48462. // composites before this host node is removed from the tree. Therefore
  48463. var node = root;
  48464. while (true) {
  48465. commitUnmount(node);
  48466. // Visit children because they may contain more composite or host nodes.
  48467. // Skip portals because commitUnmount() currently visits them recursively.
  48468. if (node.child !== null && (
  48469. // If we use mutation we drill down into portals using commitUnmount above.
  48470. // If we don't use mutation we drill down into portals here instead.
  48471. !supportsMutation || node.tag !== HostPortal)) {
  48472. node.child.return = node;
  48473. node = node.child;
  48474. continue;
  48475. }
  48476. if (node === root) {
  48477. return;
  48478. }
  48479. while (node.sibling === null) {
  48480. if (node.return === null || node.return === root) {
  48481. return;
  48482. }
  48483. node = node.return;
  48484. }
  48485. node.sibling.return = node.return;
  48486. node = node.sibling;
  48487. }
  48488. }
  48489. function detachFiber(current$$1) {
  48490. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  48491. // should clear the child pointer of the parent alternate to let this
  48492. // get GC:ed but we don't know which for sure which parent is the current
  48493. // one so we'll settle for GC:ing the subtree of this child. This child
  48494. // itself will be GC:ed when the parent updates the next time.
  48495. current$$1.return = null;
  48496. current$$1.child = null;
  48497. if (current$$1.alternate) {
  48498. current$$1.alternate.child = null;
  48499. current$$1.alternate.return = null;
  48500. }
  48501. }
  48502. function emptyPortalContainer(current$$1) {
  48503. if (!supportsPersistence) {
  48504. return;
  48505. }
  48506. var portal = current$$1.stateNode;
  48507. var containerInfo = portal.containerInfo;
  48508. var emptyChildSet = createContainerChildSet(containerInfo);
  48509. replaceContainerChildren(containerInfo, emptyChildSet);
  48510. }
  48511. function commitContainer(finishedWork) {
  48512. if (!supportsPersistence) {
  48513. return;
  48514. }
  48515. switch (finishedWork.tag) {
  48516. case ClassComponent:
  48517. {
  48518. return;
  48519. }
  48520. case HostComponent:
  48521. {
  48522. return;
  48523. }
  48524. case HostText:
  48525. {
  48526. return;
  48527. }
  48528. case HostRoot:
  48529. case HostPortal:
  48530. {
  48531. var portalOrRoot = finishedWork.stateNode;
  48532. var containerInfo = portalOrRoot.containerInfo,
  48533. _pendingChildren = portalOrRoot.pendingChildren;
  48534. replaceContainerChildren(containerInfo, _pendingChildren);
  48535. return;
  48536. }
  48537. default:
  48538. {
  48539. 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.');
  48540. }
  48541. }
  48542. }
  48543. function getHostParentFiber(fiber) {
  48544. var parent = fiber.return;
  48545. while (parent !== null) {
  48546. if (isHostParent(parent)) {
  48547. return parent;
  48548. }
  48549. parent = parent.return;
  48550. }
  48551. invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');
  48552. }
  48553. function isHostParent(fiber) {
  48554. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  48555. }
  48556. function getHostSibling(fiber) {
  48557. // We're going to search forward into the tree until we find a sibling host
  48558. // node. Unfortunately, if multiple insertions are done in a row we have to
  48559. // search past them. This leads to exponential search for the next sibling.
  48560. var node = fiber;
  48561. siblings: while (true) {
  48562. // If we didn't find anything, let's try the next sibling.
  48563. while (node.sibling === null) {
  48564. if (node.return === null || isHostParent(node.return)) {
  48565. // If we pop out of the root or hit the parent the fiber we are the
  48566. // last sibling.
  48567. return null;
  48568. }
  48569. node = node.return;
  48570. }
  48571. node.sibling.return = node.return;
  48572. node = node.sibling;
  48573. while (node.tag !== HostComponent && node.tag !== HostText) {
  48574. // If it is not host node and, we might have a host node inside it.
  48575. // Try to search down until we find one.
  48576. if (node.effectTag & Placement) {
  48577. // If we don't have a child, try the siblings instead.
  48578. continue siblings;
  48579. }
  48580. // If we don't have a child, try the siblings instead.
  48581. // We also skip portals because they are not part of this host tree.
  48582. if (node.child === null || node.tag === HostPortal) {
  48583. continue siblings;
  48584. } else {
  48585. node.child.return = node;
  48586. node = node.child;
  48587. }
  48588. }
  48589. // Check if this host node is stable or about to be placed.
  48590. if (!(node.effectTag & Placement)) {
  48591. // Found it!
  48592. return node.stateNode;
  48593. }
  48594. }
  48595. }
  48596. function commitPlacement(finishedWork) {
  48597. if (!supportsMutation) {
  48598. return;
  48599. }
  48600. // Recursively insert all host nodes into the parent.
  48601. var parentFiber = getHostParentFiber(finishedWork);
  48602. // Note: these two variables *must* always be updated together.
  48603. var parent = void 0;
  48604. var isContainer = void 0;
  48605. switch (parentFiber.tag) {
  48606. case HostComponent:
  48607. parent = parentFiber.stateNode;
  48608. isContainer = false;
  48609. break;
  48610. case HostRoot:
  48611. parent = parentFiber.stateNode.containerInfo;
  48612. isContainer = true;
  48613. break;
  48614. case HostPortal:
  48615. parent = parentFiber.stateNode.containerInfo;
  48616. isContainer = true;
  48617. break;
  48618. default:
  48619. invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');
  48620. }
  48621. if (parentFiber.effectTag & ContentReset) {
  48622. // Reset the text content of the parent before doing any insertions
  48623. resetTextContent(parent);
  48624. // Clear ContentReset from the effect tag
  48625. parentFiber.effectTag &= ~ContentReset;
  48626. }
  48627. var before = getHostSibling(finishedWork);
  48628. // We only have the top Fiber that was inserted but we need recurse down its
  48629. // children to find all the terminal nodes.
  48630. var node = finishedWork;
  48631. while (true) {
  48632. if (node.tag === HostComponent || node.tag === HostText) {
  48633. if (before) {
  48634. if (isContainer) {
  48635. insertInContainerBefore(parent, node.stateNode, before);
  48636. } else {
  48637. insertBefore(parent, node.stateNode, before);
  48638. }
  48639. } else {
  48640. if (isContainer) {
  48641. appendChildToContainer(parent, node.stateNode);
  48642. } else {
  48643. appendChild(parent, node.stateNode);
  48644. }
  48645. }
  48646. } else if (node.tag === HostPortal) {
  48647. // If the insertion itself is a portal, then we don't want to traverse
  48648. // down its children. Instead, we'll get insertions from each child in
  48649. // the portal directly.
  48650. } else if (node.child !== null) {
  48651. node.child.return = node;
  48652. node = node.child;
  48653. continue;
  48654. }
  48655. if (node === finishedWork) {
  48656. return;
  48657. }
  48658. while (node.sibling === null) {
  48659. if (node.return === null || node.return === finishedWork) {
  48660. return;
  48661. }
  48662. node = node.return;
  48663. }
  48664. node.sibling.return = node.return;
  48665. node = node.sibling;
  48666. }
  48667. }
  48668. function unmountHostComponents(current$$1) {
  48669. // We only have the top Fiber that was deleted but we need recurse down its
  48670. var node = current$$1;
  48671. // Each iteration, currentParent is populated with node's host parent if not
  48672. // currentParentIsValid.
  48673. var currentParentIsValid = false;
  48674. // Note: these two variables *must* always be updated together.
  48675. var currentParent = void 0;
  48676. var currentParentIsContainer = void 0;
  48677. while (true) {
  48678. if (!currentParentIsValid) {
  48679. var parent = node.return;
  48680. findParent: while (true) {
  48681. !(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;
  48682. switch (parent.tag) {
  48683. case HostComponent:
  48684. currentParent = parent.stateNode;
  48685. currentParentIsContainer = false;
  48686. break findParent;
  48687. case HostRoot:
  48688. currentParent = parent.stateNode.containerInfo;
  48689. currentParentIsContainer = true;
  48690. break findParent;
  48691. case HostPortal:
  48692. currentParent = parent.stateNode.containerInfo;
  48693. currentParentIsContainer = true;
  48694. break findParent;
  48695. }
  48696. parent = parent.return;
  48697. }
  48698. currentParentIsValid = true;
  48699. }
  48700. if (node.tag === HostComponent || node.tag === HostText) {
  48701. commitNestedUnmounts(node);
  48702. // After all the children have unmounted, it is now safe to remove the
  48703. // node from the tree.
  48704. if (currentParentIsContainer) {
  48705. removeChildFromContainer(currentParent, node.stateNode);
  48706. } else {
  48707. removeChild(currentParent, node.stateNode);
  48708. }
  48709. // Don't visit children because we already visited them.
  48710. } else if (node.tag === HostPortal) {
  48711. // When we go into a portal, it becomes the parent to remove from.
  48712. // We will reassign it back when we pop the portal on the way up.
  48713. currentParent = node.stateNode.containerInfo;
  48714. currentParentIsContainer = true;
  48715. // Visit children because portals might contain host components.
  48716. if (node.child !== null) {
  48717. node.child.return = node;
  48718. node = node.child;
  48719. continue;
  48720. }
  48721. } else {
  48722. commitUnmount(node);
  48723. // Visit children because we may find more host components below.
  48724. if (node.child !== null) {
  48725. node.child.return = node;
  48726. node = node.child;
  48727. continue;
  48728. }
  48729. }
  48730. if (node === current$$1) {
  48731. return;
  48732. }
  48733. while (node.sibling === null) {
  48734. if (node.return === null || node.return === current$$1) {
  48735. return;
  48736. }
  48737. node = node.return;
  48738. if (node.tag === HostPortal) {
  48739. // When we go out of the portal, we need to restore the parent.
  48740. // Since we don't keep a stack of them, we will search for it.
  48741. currentParentIsValid = false;
  48742. }
  48743. }
  48744. node.sibling.return = node.return;
  48745. node = node.sibling;
  48746. }
  48747. }
  48748. function commitDeletion(current$$1) {
  48749. if (supportsMutation) {
  48750. // Recursively delete all host nodes from the parent.
  48751. // Detach refs and call componentWillUnmount() on the whole subtree.
  48752. unmountHostComponents(current$$1);
  48753. } else {
  48754. // Detach refs and call componentWillUnmount() on the whole subtree.
  48755. commitNestedUnmounts(current$$1);
  48756. }
  48757. detachFiber(current$$1);
  48758. }
  48759. function commitWork(current$$1, finishedWork) {
  48760. if (!supportsMutation) {
  48761. switch (finishedWork.tag) {
  48762. case FunctionComponent:
  48763. case ForwardRef:
  48764. case MemoComponent:
  48765. case SimpleMemoComponent:
  48766. {
  48767. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  48768. return;
  48769. }
  48770. }
  48771. commitContainer(finishedWork);
  48772. return;
  48773. }
  48774. switch (finishedWork.tag) {
  48775. case FunctionComponent:
  48776. case ForwardRef:
  48777. case MemoComponent:
  48778. case SimpleMemoComponent:
  48779. {
  48780. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  48781. return;
  48782. }
  48783. case ClassComponent:
  48784. {
  48785. return;
  48786. }
  48787. case HostComponent:
  48788. {
  48789. var instance = finishedWork.stateNode;
  48790. if (instance != null) {
  48791. // Commit the work prepared earlier.
  48792. var newProps = finishedWork.memoizedProps;
  48793. // For hydration we reuse the update path but we treat the oldProps
  48794. // as the newProps. The updatePayload will contain the real change in
  48795. // this case.
  48796. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  48797. var type = finishedWork.type;
  48798. // TODO: Type the updateQueue to be specific to host components.
  48799. var updatePayload = finishedWork.updateQueue;
  48800. finishedWork.updateQueue = null;
  48801. if (updatePayload !== null) {
  48802. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  48803. }
  48804. }
  48805. return;
  48806. }
  48807. case HostText:
  48808. {
  48809. !(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;
  48810. var textInstance = finishedWork.stateNode;
  48811. var newText = finishedWork.memoizedProps;
  48812. // For hydration we reuse the update path but we treat the oldProps
  48813. // as the newProps. The updatePayload will contain the real change in
  48814. // this case.
  48815. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  48816. commitTextUpdate(textInstance, oldText, newText);
  48817. return;
  48818. }
  48819. case HostRoot:
  48820. {
  48821. return;
  48822. }
  48823. case Profiler:
  48824. {
  48825. return;
  48826. }
  48827. case SuspenseComponent:
  48828. {
  48829. var newState = finishedWork.memoizedState;
  48830. var newDidTimeout = void 0;
  48831. var primaryChildParent = finishedWork;
  48832. if (newState === null) {
  48833. newDidTimeout = false;
  48834. } else {
  48835. newDidTimeout = true;
  48836. primaryChildParent = finishedWork.child;
  48837. if (newState.timedOutAt === NoWork) {
  48838. // If the children had not already timed out, record the time.
  48839. // This is used to compute the elapsed time during subsequent
  48840. // attempts to render the children.
  48841. newState.timedOutAt = requestCurrentTime();
  48842. }
  48843. }
  48844. if (primaryChildParent !== null) {
  48845. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  48846. }
  48847. return;
  48848. }
  48849. case IncompleteClassComponent:
  48850. {
  48851. return;
  48852. }
  48853. default:
  48854. {
  48855. 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.');
  48856. }
  48857. }
  48858. }
  48859. function commitResetTextContent(current$$1) {
  48860. if (!supportsMutation) {
  48861. return;
  48862. }
  48863. resetTextContent(current$$1.stateNode);
  48864. }
  48865. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  48866. var update = createUpdate(expirationTime);
  48867. // Unmount the root by rendering null.
  48868. update.tag = CaptureUpdate;
  48869. // Caution: React DevTools currently depends on this property
  48870. // being called "element".
  48871. update.payload = { element: null };
  48872. var error = errorInfo.value;
  48873. update.callback = function () {
  48874. onUncaughtError(error);
  48875. logError(fiber, errorInfo);
  48876. };
  48877. return update;
  48878. }
  48879. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  48880. var update = createUpdate(expirationTime);
  48881. update.tag = CaptureUpdate;
  48882. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  48883. if (typeof getDerivedStateFromError === 'function') {
  48884. var error = errorInfo.value;
  48885. update.payload = function () {
  48886. return getDerivedStateFromError(error);
  48887. };
  48888. }
  48889. var inst = fiber.stateNode;
  48890. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  48891. update.callback = function callback() {
  48892. if (typeof getDerivedStateFromError !== 'function') {
  48893. // To preserve the preexisting retry behavior of error boundaries,
  48894. // we keep track of which ones already failed during this batch.
  48895. // This gets reset before we yield back to the browser.
  48896. // TODO: Warn in strict mode if getDerivedStateFromError is
  48897. // not defined.
  48898. markLegacyErrorBoundaryAsFailed(this);
  48899. }
  48900. var error = errorInfo.value;
  48901. var stack = errorInfo.stack;
  48902. logError(fiber, errorInfo);
  48903. this.componentDidCatch(error, {
  48904. componentStack: stack !== null ? stack : ''
  48905. });
  48906. {
  48907. if (typeof getDerivedStateFromError !== 'function') {
  48908. // If componentDidCatch is the only error boundary method defined,
  48909. // then it needs to call setState to recover from errors.
  48910. // If no state update is scheduled then the boundary will swallow the error.
  48911. !(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;
  48912. }
  48913. }
  48914. };
  48915. }
  48916. return update;
  48917. }
  48918. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  48919. // The source fiber did not complete.
  48920. sourceFiber.effectTag |= Incomplete;
  48921. // Its effect list is no longer valid.
  48922. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  48923. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  48924. // This is a thenable.
  48925. var thenable = value;
  48926. // Find the earliest timeout threshold of all the placeholders in the
  48927. // ancestor path. We could avoid this traversal by storing the thresholds on
  48928. // the stack, but we choose not to because we only hit this path if we're
  48929. // IO-bound (i.e. if something suspends). Whereas the stack is used even in
  48930. // the non-IO- bound case.
  48931. var _workInProgress = returnFiber;
  48932. var earliestTimeoutMs = -1;
  48933. var startTimeMs = -1;
  48934. do {
  48935. if (_workInProgress.tag === SuspenseComponent) {
  48936. var current$$1 = _workInProgress.alternate;
  48937. if (current$$1 !== null) {
  48938. var currentState = current$$1.memoizedState;
  48939. if (currentState !== null) {
  48940. // Reached a boundary that already timed out. Do not search
  48941. // any further.
  48942. var timedOutAt = currentState.timedOutAt;
  48943. startTimeMs = expirationTimeToMs(timedOutAt);
  48944. // Do not search any further.
  48945. break;
  48946. }
  48947. }
  48948. var timeoutPropMs = _workInProgress.pendingProps.maxDuration;
  48949. if (typeof timeoutPropMs === 'number') {
  48950. if (timeoutPropMs <= 0) {
  48951. earliestTimeoutMs = 0;
  48952. } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {
  48953. earliestTimeoutMs = timeoutPropMs;
  48954. }
  48955. }
  48956. }
  48957. _workInProgress = _workInProgress.return;
  48958. } while (_workInProgress !== null);
  48959. // Schedule the nearest Suspense to re-render the timed out view.
  48960. _workInProgress = returnFiber;
  48961. do {
  48962. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress.alternate, _workInProgress)) {
  48963. // Found the nearest boundary.
  48964. // If the boundary is not in concurrent mode, we should not suspend, and
  48965. // likewise, when the promise resolves, we should ping synchronously.
  48966. var pingTime = (_workInProgress.mode & ConcurrentMode) === NoEffect ? Sync : renderExpirationTime;
  48967. // Attach a listener to the promise to "ping" the root and retry.
  48968. var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, sourceFiber, pingTime);
  48969. if (enableSchedulerTracing) {
  48970. onResolveOrReject = tracing.unstable_wrap(onResolveOrReject);
  48971. }
  48972. thenable.then(onResolveOrReject, onResolveOrReject);
  48973. // If the boundary is outside of concurrent mode, we should *not*
  48974. // suspend the commit. Pretend as if the suspended component rendered
  48975. // null and keep rendering. In the commit phase, we'll schedule a
  48976. // subsequent synchronous update to re-render the Suspense.
  48977. //
  48978. // Note: It doesn't matter whether the component that suspended was
  48979. // inside a concurrent mode tree. If the Suspense is outside of it, we
  48980. // should *not* suspend the commit.
  48981. if ((_workInProgress.mode & ConcurrentMode) === NoEffect) {
  48982. _workInProgress.effectTag |= DidCapture;
  48983. // We're going to commit this fiber even though it didn't complete.
  48984. // But we shouldn't call any lifecycle methods or callbacks. Remove
  48985. // all lifecycle effect tags.
  48986. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  48987. if (sourceFiber.tag === ClassComponent) {
  48988. var _current = sourceFiber.alternate;
  48989. if (_current === null) {
  48990. // This is a new mount. Change the tag so it's not mistaken for a
  48991. // completed class component. For example, we should not call
  48992. // componentWillUnmount if it is deleted.
  48993. sourceFiber.tag = IncompleteClassComponent;
  48994. }
  48995. }
  48996. // The source fiber did not complete. Mark it with the current
  48997. // render priority to indicate that it still has pending work.
  48998. sourceFiber.expirationTime = renderExpirationTime;
  48999. // Exit without suspending.
  49000. return;
  49001. }
  49002. // Confirmed that the boundary is in a concurrent mode tree. Continue
  49003. // with the normal suspend path.
  49004. var absoluteTimeoutMs = void 0;
  49005. if (earliestTimeoutMs === -1) {
  49006. // If no explicit threshold is given, default to an abitrarily large
  49007. // value. The actual size doesn't matter because the threshold for the
  49008. // whole tree will be clamped to the expiration time.
  49009. absoluteTimeoutMs = maxSigned31BitInt;
  49010. } else {
  49011. if (startTimeMs === -1) {
  49012. // This suspend happened outside of any already timed-out
  49013. // placeholders. We don't know exactly when the update was
  49014. // scheduled, but we can infer an approximate start time from the
  49015. // expiration time. First, find the earliest uncommitted expiration
  49016. // time in the tree, including work that is suspended. Then subtract
  49017. // the offset used to compute an async update's expiration time.
  49018. // This will cause high priority (interactive) work to expire
  49019. // earlier than necessary, but we can account for this by adjusting
  49020. // for the Just Noticeable Difference.
  49021. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);
  49022. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  49023. startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  49024. }
  49025. absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;
  49026. }
  49027. // Mark the earliest timeout in the suspended fiber's ancestor path.
  49028. // After completing the root, we'll take the largest of all the
  49029. // suspended fiber's timeouts and use it to compute a timeout for the
  49030. // whole tree.
  49031. renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);
  49032. _workInProgress.effectTag |= ShouldCapture;
  49033. _workInProgress.expirationTime = renderExpirationTime;
  49034. return;
  49035. }
  49036. // This boundary already captured during this render. Continue to the next
  49037. // boundary.
  49038. _workInProgress = _workInProgress.return;
  49039. } while (_workInProgress !== null);
  49040. // No boundary was found. Fallthrough to error mode.
  49041. // TODO: Use invariant so the message is stripped in prod?
  49042. 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));
  49043. }
  49044. // We didn't find a boundary that could handle this type of exception. Start
  49045. // over and traverse parent path again, this time treating the exception
  49046. // as an error.
  49047. renderDidError();
  49048. value = createCapturedValue(value, sourceFiber);
  49049. var workInProgress = returnFiber;
  49050. do {
  49051. switch (workInProgress.tag) {
  49052. case HostRoot:
  49053. {
  49054. var _errorInfo = value;
  49055. workInProgress.effectTag |= ShouldCapture;
  49056. workInProgress.expirationTime = renderExpirationTime;
  49057. var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  49058. enqueueCapturedUpdate(workInProgress, update);
  49059. return;
  49060. }
  49061. case ClassComponent:
  49062. // Capture and retry
  49063. var errorInfo = value;
  49064. var ctor = workInProgress.type;
  49065. var instance = workInProgress.stateNode;
  49066. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  49067. workInProgress.effectTag |= ShouldCapture;
  49068. workInProgress.expirationTime = renderExpirationTime;
  49069. // Schedule the error boundary to re-render using updated state
  49070. var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  49071. enqueueCapturedUpdate(workInProgress, _update);
  49072. return;
  49073. }
  49074. break;
  49075. default:
  49076. break;
  49077. }
  49078. workInProgress = workInProgress.return;
  49079. } while (workInProgress !== null);
  49080. }
  49081. function unwindWork(workInProgress, renderExpirationTime) {
  49082. switch (workInProgress.tag) {
  49083. case ClassComponent:
  49084. {
  49085. var Component = workInProgress.type;
  49086. if (isContextProvider(Component)) {
  49087. popContext(workInProgress);
  49088. }
  49089. var effectTag = workInProgress.effectTag;
  49090. if (effectTag & ShouldCapture) {
  49091. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  49092. return workInProgress;
  49093. }
  49094. return null;
  49095. }
  49096. case HostRoot:
  49097. {
  49098. popHostContainer(workInProgress);
  49099. popTopLevelContextObject(workInProgress);
  49100. var _effectTag = workInProgress.effectTag;
  49101. !((_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;
  49102. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  49103. return workInProgress;
  49104. }
  49105. case HostComponent:
  49106. {
  49107. popHostContext(workInProgress);
  49108. return null;
  49109. }
  49110. case SuspenseComponent:
  49111. {
  49112. var _effectTag2 = workInProgress.effectTag;
  49113. if (_effectTag2 & ShouldCapture) {
  49114. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  49115. // Captured a suspense effect. Re-render the boundary.
  49116. return workInProgress;
  49117. }
  49118. return null;
  49119. }
  49120. case HostPortal:
  49121. popHostContainer(workInProgress);
  49122. return null;
  49123. case ContextProvider:
  49124. popProvider(workInProgress);
  49125. return null;
  49126. default:
  49127. return null;
  49128. }
  49129. }
  49130. function unwindInterruptedWork(interruptedWork) {
  49131. switch (interruptedWork.tag) {
  49132. case ClassComponent:
  49133. {
  49134. var childContextTypes = interruptedWork.type.childContextTypes;
  49135. if (childContextTypes !== null && childContextTypes !== undefined) {
  49136. popContext(interruptedWork);
  49137. }
  49138. break;
  49139. }
  49140. case HostRoot:
  49141. {
  49142. popHostContainer(interruptedWork);
  49143. popTopLevelContextObject(interruptedWork);
  49144. break;
  49145. }
  49146. case HostComponent:
  49147. {
  49148. popHostContext(interruptedWork);
  49149. break;
  49150. }
  49151. case HostPortal:
  49152. popHostContainer(interruptedWork);
  49153. break;
  49154. case ContextProvider:
  49155. popProvider(interruptedWork);
  49156. break;
  49157. default:
  49158. break;
  49159. }
  49160. }
  49161. var Dispatcher = {
  49162. readContext: readContext,
  49163. useCallback: useCallback,
  49164. useContext: useContext,
  49165. useEffect: useEffect,
  49166. useImperativeMethods: useImperativeMethods,
  49167. useLayoutEffect: useLayoutEffect,
  49168. useMemo: useMemo,
  49169. useMutationEffect: useMutationEffect,
  49170. useReducer: useReducer,
  49171. useRef: useRef,
  49172. useState: useState
  49173. };
  49174. var DispatcherWithoutHooks = {
  49175. readContext: readContext
  49176. };
  49177. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  49178. var didWarnAboutStateTransition = void 0;
  49179. var didWarnSetStateChildContext = void 0;
  49180. var warnAboutUpdateOnUnmounted = void 0;
  49181. var warnAboutInvalidUpdates = void 0;
  49182. if (enableSchedulerTracing) {
  49183. // Provide explicit error message when production+profiling bundle of e.g. react-dom
  49184. // is used with production (non-profiling) bundle of scheduler/tracing
  49185. !(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;
  49186. }
  49187. {
  49188. didWarnAboutStateTransition = false;
  49189. didWarnSetStateChildContext = false;
  49190. var didWarnStateUpdateForUnmountedComponent = {};
  49191. warnAboutUpdateOnUnmounted = function (fiber, isClass) {
  49192. // We show the whole stack but dedupe on the top component's name because
  49193. // the problematic code almost always lies inside that component.
  49194. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  49195. if (didWarnStateUpdateForUnmountedComponent[componentName]) {
  49196. return;
  49197. }
  49198. 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));
  49199. didWarnStateUpdateForUnmountedComponent[componentName] = true;
  49200. };
  49201. warnAboutInvalidUpdates = function (instance) {
  49202. switch (phase) {
  49203. case 'getChildContext':
  49204. if (didWarnSetStateChildContext) {
  49205. return;
  49206. }
  49207. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  49208. didWarnSetStateChildContext = true;
  49209. break;
  49210. case 'render':
  49211. if (didWarnAboutStateTransition) {
  49212. return;
  49213. }
  49214. 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.');
  49215. didWarnAboutStateTransition = true;
  49216. break;
  49217. }
  49218. };
  49219. }
  49220. // Used to ensure computeUniqueAsyncExpiration is monotonically decreasing.
  49221. var lastUniqueAsyncExpiration = Sync - 1;
  49222. // Represents the expiration time that incoming updates should use. (If this
  49223. // is NoWork, use the default strategy: async updates in async mode, sync
  49224. // updates in sync mode.)
  49225. var expirationContext = NoWork;
  49226. var isWorking = false;
  49227. // The next work in progress fiber that we're currently working on.
  49228. var nextUnitOfWork = null;
  49229. var nextRoot = null;
  49230. // The time at which we're currently rendering work.
  49231. var nextRenderExpirationTime = NoWork;
  49232. var nextLatestAbsoluteTimeoutMs = -1;
  49233. var nextRenderDidError = false;
  49234. // The next fiber with an effect that we're currently committing.
  49235. var nextEffect = null;
  49236. var isCommitting$1 = false;
  49237. var rootWithPendingPassiveEffects = null;
  49238. var passiveEffectCallbackHandle = null;
  49239. var passiveEffectCallback = null;
  49240. var legacyErrorBoundariesThatAlreadyFailed = null;
  49241. // Used for performance tracking.
  49242. var interruptedBy = null;
  49243. var stashedWorkInProgressProperties = void 0;
  49244. var replayUnitOfWork = void 0;
  49245. var mayReplayFailedUnitOfWork = void 0;
  49246. var isReplayingFailedUnitOfWork = void 0;
  49247. var originalReplayError = void 0;
  49248. var rethrowOriginalError = void 0;
  49249. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49250. stashedWorkInProgressProperties = null;
  49251. mayReplayFailedUnitOfWork = true;
  49252. isReplayingFailedUnitOfWork = false;
  49253. originalReplayError = null;
  49254. replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {
  49255. if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
  49256. // Don't replay promises. Treat everything else like an error.
  49257. // TODO: Need to figure out a different strategy if/when we add
  49258. // support for catching other types.
  49259. return;
  49260. }
  49261. // Restore the original state of the work-in-progress
  49262. if (stashedWorkInProgressProperties === null) {
  49263. // This should never happen. Don't throw because this code is DEV-only.
  49264. warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');
  49265. return;
  49266. }
  49267. assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);
  49268. switch (failedUnitOfWork.tag) {
  49269. case HostRoot:
  49270. popHostContainer(failedUnitOfWork);
  49271. popTopLevelContextObject(failedUnitOfWork);
  49272. break;
  49273. case HostComponent:
  49274. popHostContext(failedUnitOfWork);
  49275. break;
  49276. case ClassComponent:
  49277. {
  49278. var Component = failedUnitOfWork.type;
  49279. if (isContextProvider(Component)) {
  49280. popContext(failedUnitOfWork);
  49281. }
  49282. break;
  49283. }
  49284. case HostPortal:
  49285. popHostContainer(failedUnitOfWork);
  49286. break;
  49287. case ContextProvider:
  49288. popProvider(failedUnitOfWork);
  49289. break;
  49290. }
  49291. // Replay the begin phase.
  49292. isReplayingFailedUnitOfWork = true;
  49293. originalReplayError = thrownValue;
  49294. invokeGuardedCallback(null, workLoop, null, isYieldy);
  49295. isReplayingFailedUnitOfWork = false;
  49296. originalReplayError = null;
  49297. if (hasCaughtError()) {
  49298. var replayError = clearCaughtError();
  49299. if (replayError != null && thrownValue != null) {
  49300. try {
  49301. // Reading the expando property is intentionally
  49302. // inside `try` because it might be a getter or Proxy.
  49303. if (replayError._suppressLogging) {
  49304. // Also suppress logging for the original error.
  49305. thrownValue._suppressLogging = true;
  49306. }
  49307. } catch (inner) {
  49308. // Ignore.
  49309. }
  49310. }
  49311. } else {
  49312. // If the begin phase did not fail the second time, set this pointer
  49313. // back to the original value.
  49314. nextUnitOfWork = failedUnitOfWork;
  49315. }
  49316. };
  49317. rethrowOriginalError = function () {
  49318. throw originalReplayError;
  49319. };
  49320. }
  49321. function resetStack() {
  49322. if (nextUnitOfWork !== null) {
  49323. var interruptedWork = nextUnitOfWork.return;
  49324. while (interruptedWork !== null) {
  49325. unwindInterruptedWork(interruptedWork);
  49326. interruptedWork = interruptedWork.return;
  49327. }
  49328. }
  49329. {
  49330. ReactStrictModeWarnings.discardPendingWarnings();
  49331. checkThatStackIsEmpty();
  49332. }
  49333. nextRoot = null;
  49334. nextRenderExpirationTime = NoWork;
  49335. nextLatestAbsoluteTimeoutMs = -1;
  49336. nextRenderDidError = false;
  49337. nextUnitOfWork = null;
  49338. }
  49339. function commitAllHostEffects() {
  49340. while (nextEffect !== null) {
  49341. {
  49342. setCurrentFiber(nextEffect);
  49343. }
  49344. recordEffect();
  49345. var effectTag = nextEffect.effectTag;
  49346. if (effectTag & ContentReset) {
  49347. commitResetTextContent(nextEffect);
  49348. }
  49349. if (effectTag & Ref) {
  49350. var current$$1 = nextEffect.alternate;
  49351. if (current$$1 !== null) {
  49352. commitDetachRef(current$$1);
  49353. }
  49354. }
  49355. // The following switch statement is only concerned about placement,
  49356. // updates, and deletions. To avoid needing to add a case for every
  49357. // possible bitmap value, we remove the secondary effects from the
  49358. // effect tag and switch on that value.
  49359. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  49360. switch (primaryEffectTag) {
  49361. case Placement:
  49362. {
  49363. commitPlacement(nextEffect);
  49364. // Clear the "placement" from effect tag so that we know that this is inserted, before
  49365. // any life-cycles like componentDidMount gets called.
  49366. // TODO: findDOMNode doesn't rely on this any more but isMounted
  49367. // does and isMounted is deprecated anyway so we should be able
  49368. // to kill this.
  49369. nextEffect.effectTag &= ~Placement;
  49370. break;
  49371. }
  49372. case PlacementAndUpdate:
  49373. {
  49374. // Placement
  49375. commitPlacement(nextEffect);
  49376. // Clear the "placement" from effect tag so that we know that this is inserted, before
  49377. // any life-cycles like componentDidMount gets called.
  49378. nextEffect.effectTag &= ~Placement;
  49379. // Update
  49380. var _current = nextEffect.alternate;
  49381. commitWork(_current, nextEffect);
  49382. break;
  49383. }
  49384. case Update:
  49385. {
  49386. var _current2 = nextEffect.alternate;
  49387. commitWork(_current2, nextEffect);
  49388. break;
  49389. }
  49390. case Deletion:
  49391. {
  49392. commitDeletion(nextEffect);
  49393. break;
  49394. }
  49395. }
  49396. nextEffect = nextEffect.nextEffect;
  49397. }
  49398. {
  49399. resetCurrentFiber();
  49400. }
  49401. }
  49402. function commitBeforeMutationLifecycles() {
  49403. while (nextEffect !== null) {
  49404. {
  49405. setCurrentFiber(nextEffect);
  49406. }
  49407. var effectTag = nextEffect.effectTag;
  49408. if (effectTag & Snapshot) {
  49409. recordEffect();
  49410. var current$$1 = nextEffect.alternate;
  49411. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  49412. }
  49413. nextEffect = nextEffect.nextEffect;
  49414. }
  49415. {
  49416. resetCurrentFiber();
  49417. }
  49418. }
  49419. function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
  49420. {
  49421. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  49422. ReactStrictModeWarnings.flushLegacyContextWarning();
  49423. if (warnAboutDeprecatedLifecycles) {
  49424. ReactStrictModeWarnings.flushPendingDeprecationWarnings();
  49425. }
  49426. }
  49427. while (nextEffect !== null) {
  49428. var effectTag = nextEffect.effectTag;
  49429. if (effectTag & (Update | Callback)) {
  49430. recordEffect();
  49431. var current$$1 = nextEffect.alternate;
  49432. commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);
  49433. }
  49434. if (effectTag & Ref) {
  49435. recordEffect();
  49436. commitAttachRef(nextEffect);
  49437. }
  49438. if (enableHooks && effectTag & Passive) {
  49439. rootWithPendingPassiveEffects = finishedRoot;
  49440. }
  49441. nextEffect = nextEffect.nextEffect;
  49442. }
  49443. }
  49444. function commitPassiveEffects(root, firstEffect) {
  49445. rootWithPendingPassiveEffects = null;
  49446. passiveEffectCallbackHandle = null;
  49447. passiveEffectCallback = null;
  49448. // Set this to true to prevent re-entrancy
  49449. var previousIsRendering = isRendering;
  49450. isRendering = true;
  49451. var effect = firstEffect;
  49452. do {
  49453. if (effect.effectTag & Passive) {
  49454. var didError = false;
  49455. var error = void 0;
  49456. {
  49457. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  49458. if (hasCaughtError()) {
  49459. didError = true;
  49460. error = clearCaughtError();
  49461. }
  49462. }
  49463. if (didError) {
  49464. captureCommitPhaseError(effect, error);
  49465. }
  49466. }
  49467. effect = effect.nextEffect;
  49468. } while (effect !== null);
  49469. isRendering = previousIsRendering;
  49470. // Check if work was scheduled by one of the effects
  49471. var rootExpirationTime = root.expirationTime;
  49472. if (rootExpirationTime !== NoWork) {
  49473. requestWork(root, rootExpirationTime);
  49474. }
  49475. }
  49476. function isAlreadyFailedLegacyErrorBoundary(instance) {
  49477. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  49478. }
  49479. function markLegacyErrorBoundaryAsFailed(instance) {
  49480. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  49481. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  49482. } else {
  49483. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  49484. }
  49485. }
  49486. function flushPassiveEffects() {
  49487. if (passiveEffectCallback !== null) {
  49488. scheduler.unstable_cancelCallback(passiveEffectCallbackHandle);
  49489. // We call the scheduled callback instead of commitPassiveEffects directly
  49490. // to ensure tracing works correctly.
  49491. passiveEffectCallback();
  49492. }
  49493. }
  49494. function commitRoot(root, finishedWork) {
  49495. isWorking = true;
  49496. isCommitting$1 = true;
  49497. startCommitTimer();
  49498. !(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;
  49499. var committedExpirationTime = root.pendingCommitExpirationTime;
  49500. !(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;
  49501. root.pendingCommitExpirationTime = NoWork;
  49502. // Update the pending priority levels to account for the work that we are
  49503. // about to commit. This needs to happen before calling the lifecycles, since
  49504. // they may schedule additional updates.
  49505. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  49506. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  49507. var earliestRemainingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  49508. markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);
  49509. var prevInteractions = null;
  49510. if (enableSchedulerTracing) {
  49511. // Restore any pending interactions at this point,
  49512. // So that cascading work triggered during the render phase will be accounted for.
  49513. prevInteractions = tracing.__interactionsRef.current;
  49514. tracing.__interactionsRef.current = root.memoizedInteractions;
  49515. }
  49516. // Reset this to null before calling lifecycles
  49517. ReactCurrentOwner$2.current = null;
  49518. var firstEffect = void 0;
  49519. if (finishedWork.effectTag > PerformedWork) {
  49520. // A fiber's effect list consists only of its children, not itself. So if
  49521. // the root has an effect, we need to add it to the end of the list. The
  49522. // resulting list is the set that would belong to the root's parent, if
  49523. // it had one; that is, all the effects in the tree including the root.
  49524. if (finishedWork.lastEffect !== null) {
  49525. finishedWork.lastEffect.nextEffect = finishedWork;
  49526. firstEffect = finishedWork.firstEffect;
  49527. } else {
  49528. firstEffect = finishedWork;
  49529. }
  49530. } else {
  49531. // There is no effect on the root.
  49532. firstEffect = finishedWork.firstEffect;
  49533. }
  49534. prepareForCommit(root.containerInfo);
  49535. // Invoke instances of getSnapshotBeforeUpdate before mutation.
  49536. nextEffect = firstEffect;
  49537. startCommitSnapshotEffectsTimer();
  49538. while (nextEffect !== null) {
  49539. var didError = false;
  49540. var error = void 0;
  49541. {
  49542. invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);
  49543. if (hasCaughtError()) {
  49544. didError = true;
  49545. error = clearCaughtError();
  49546. }
  49547. }
  49548. if (didError) {
  49549. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49550. captureCommitPhaseError(nextEffect, error);
  49551. // Clean-up
  49552. if (nextEffect !== null) {
  49553. nextEffect = nextEffect.nextEffect;
  49554. }
  49555. }
  49556. }
  49557. stopCommitSnapshotEffectsTimer();
  49558. if (enableProfilerTimer) {
  49559. // Mark the current commit time to be shared by all Profilers in this batch.
  49560. // This enables them to be grouped later.
  49561. recordCommitTime();
  49562. }
  49563. // Commit all the side-effects within a tree. We'll do this in two passes.
  49564. // The first pass performs all the host insertions, updates, deletions and
  49565. // ref unmounts.
  49566. nextEffect = firstEffect;
  49567. startCommitHostEffectsTimer();
  49568. while (nextEffect !== null) {
  49569. var _didError = false;
  49570. var _error = void 0;
  49571. {
  49572. invokeGuardedCallback(null, commitAllHostEffects, null);
  49573. if (hasCaughtError()) {
  49574. _didError = true;
  49575. _error = clearCaughtError();
  49576. }
  49577. }
  49578. if (_didError) {
  49579. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49580. captureCommitPhaseError(nextEffect, _error);
  49581. // Clean-up
  49582. if (nextEffect !== null) {
  49583. nextEffect = nextEffect.nextEffect;
  49584. }
  49585. }
  49586. }
  49587. stopCommitHostEffectsTimer();
  49588. resetAfterCommit(root.containerInfo);
  49589. // The work-in-progress tree is now the current tree. This must come after
  49590. // the first pass of the commit phase, so that the previous tree is still
  49591. // current during componentWillUnmount, but before the second pass, so that
  49592. // the finished work is current during componentDidMount/Update.
  49593. root.current = finishedWork;
  49594. // In the second pass we'll perform all life-cycles and ref callbacks.
  49595. // Life-cycles happen as a separate pass so that all placements, updates,
  49596. // and deletions in the entire tree have already been invoked.
  49597. // This pass also triggers any renderer-specific initial effects.
  49598. nextEffect = firstEffect;
  49599. startCommitLifeCyclesTimer();
  49600. while (nextEffect !== null) {
  49601. var _didError2 = false;
  49602. var _error2 = void 0;
  49603. {
  49604. invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);
  49605. if (hasCaughtError()) {
  49606. _didError2 = true;
  49607. _error2 = clearCaughtError();
  49608. }
  49609. }
  49610. if (_didError2) {
  49611. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49612. captureCommitPhaseError(nextEffect, _error2);
  49613. if (nextEffect !== null) {
  49614. nextEffect = nextEffect.nextEffect;
  49615. }
  49616. }
  49617. }
  49618. if (enableHooks && firstEffect !== null && rootWithPendingPassiveEffects !== null) {
  49619. // This commit included a passive effect. These do not need to fire until
  49620. // after the next paint. Schedule an callback to fire them in an async
  49621. // event. To ensure serial execution, the callback will be flushed early if
  49622. // we enter rootWithPendingPassiveEffects commit phase before then.
  49623. var callback = commitPassiveEffects.bind(null, root, firstEffect);
  49624. if (enableSchedulerTracing) {
  49625. // TODO: Avoid this extra callback by mutating the tracing ref directly,
  49626. // like we do at the beginning of commitRoot. I've opted not to do that
  49627. // here because that code is still in flux.
  49628. callback = tracing.unstable_wrap(callback);
  49629. }
  49630. passiveEffectCallbackHandle = scheduler.unstable_scheduleCallback(callback);
  49631. passiveEffectCallback = callback;
  49632. }
  49633. isCommitting$1 = false;
  49634. isWorking = false;
  49635. stopCommitLifeCyclesTimer();
  49636. stopCommitTimer();
  49637. onCommitRoot(finishedWork.stateNode);
  49638. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49639. ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);
  49640. }
  49641. var updateExpirationTimeAfterCommit = finishedWork.expirationTime;
  49642. var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;
  49643. var earliestRemainingTimeAfterCommit = childExpirationTimeAfterCommit > updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;
  49644. if (earliestRemainingTimeAfterCommit === NoWork) {
  49645. // If there's no remaining work, we can clear the set of already failed
  49646. // error boundaries.
  49647. legacyErrorBoundariesThatAlreadyFailed = null;
  49648. }
  49649. onCommit(root, earliestRemainingTimeAfterCommit);
  49650. if (enableSchedulerTracing) {
  49651. tracing.__interactionsRef.current = prevInteractions;
  49652. var subscriber = void 0;
  49653. try {
  49654. subscriber = tracing.__subscriberRef.current;
  49655. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  49656. var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);
  49657. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  49658. }
  49659. } catch (error) {
  49660. // It's not safe for commitRoot() to throw.
  49661. // Store the error for now and we'll re-throw in finishRendering().
  49662. if (!hasUnhandledError) {
  49663. hasUnhandledError = true;
  49664. unhandledError = error;
  49665. }
  49666. } finally {
  49667. // Clear completed interactions from the pending Map.
  49668. // Unless the render was suspended or cascading work was scheduled,
  49669. // In which case– leave pending interactions until the subsequent render.
  49670. var pendingInteractionMap = root.pendingInteractionMap;
  49671. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  49672. // Only decrement the pending interaction count if we're done.
  49673. // If there's still work at the current priority,
  49674. // That indicates that we are waiting for suspense data.
  49675. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  49676. pendingInteractionMap.delete(scheduledExpirationTime);
  49677. scheduledInteractions.forEach(function (interaction) {
  49678. interaction.__count--;
  49679. if (subscriber !== null && interaction.__count === 0) {
  49680. try {
  49681. subscriber.onInteractionScheduledWorkCompleted(interaction);
  49682. } catch (error) {
  49683. // It's not safe for commitRoot() to throw.
  49684. // Store the error for now and we'll re-throw in finishRendering().
  49685. if (!hasUnhandledError) {
  49686. hasUnhandledError = true;
  49687. unhandledError = error;
  49688. }
  49689. }
  49690. }
  49691. });
  49692. }
  49693. });
  49694. }
  49695. }
  49696. }
  49697. function resetChildExpirationTime(workInProgress, renderTime) {
  49698. if (renderTime !== Never && workInProgress.childExpirationTime === Never) {
  49699. // The children of this component are hidden. Don't bubble their
  49700. // expiration times.
  49701. return;
  49702. }
  49703. var newChildExpirationTime = NoWork;
  49704. // Bubble up the earliest expiration time.
  49705. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49706. // We're in profiling mode.
  49707. // Let's use this same traversal to update the render durations.
  49708. var actualDuration = workInProgress.actualDuration;
  49709. var treeBaseDuration = workInProgress.selfBaseDuration;
  49710. // When a fiber is cloned, its actualDuration is reset to 0.
  49711. // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).
  49712. // When work is done, it should bubble to the parent's actualDuration.
  49713. // If the fiber has not been cloned though, (meaning no work was done),
  49714. // Then this value will reflect the amount of time spent working on a previous render.
  49715. // In that case it should not bubble.
  49716. // We determine whether it was cloned by comparing the child pointer.
  49717. var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;
  49718. var child = workInProgress.child;
  49719. while (child !== null) {
  49720. var childUpdateExpirationTime = child.expirationTime;
  49721. var childChildExpirationTime = child.childExpirationTime;
  49722. if (childUpdateExpirationTime > newChildExpirationTime) {
  49723. newChildExpirationTime = childUpdateExpirationTime;
  49724. }
  49725. if (childChildExpirationTime > newChildExpirationTime) {
  49726. newChildExpirationTime = childChildExpirationTime;
  49727. }
  49728. if (shouldBubbleActualDurations) {
  49729. actualDuration += child.actualDuration;
  49730. }
  49731. treeBaseDuration += child.treeBaseDuration;
  49732. child = child.sibling;
  49733. }
  49734. workInProgress.actualDuration = actualDuration;
  49735. workInProgress.treeBaseDuration = treeBaseDuration;
  49736. } else {
  49737. var _child = workInProgress.child;
  49738. while (_child !== null) {
  49739. var _childUpdateExpirationTime = _child.expirationTime;
  49740. var _childChildExpirationTime = _child.childExpirationTime;
  49741. if (_childUpdateExpirationTime > newChildExpirationTime) {
  49742. newChildExpirationTime = _childUpdateExpirationTime;
  49743. }
  49744. if (_childChildExpirationTime > newChildExpirationTime) {
  49745. newChildExpirationTime = _childChildExpirationTime;
  49746. }
  49747. _child = _child.sibling;
  49748. }
  49749. }
  49750. workInProgress.childExpirationTime = newChildExpirationTime;
  49751. }
  49752. function completeUnitOfWork(workInProgress) {
  49753. // Attempt to complete the current unit of work, then move to the
  49754. // next sibling. If there are no more siblings, return to the
  49755. // parent fiber.
  49756. while (true) {
  49757. // The current, flushed, state of this fiber is the alternate.
  49758. // Ideally nothing should rely on this, but relying on it here
  49759. // means that we don't need an additional field on the work in
  49760. // progress.
  49761. var current$$1 = workInProgress.alternate;
  49762. {
  49763. setCurrentFiber(workInProgress);
  49764. }
  49765. var returnFiber = workInProgress.return;
  49766. var siblingFiber = workInProgress.sibling;
  49767. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  49768. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49769. // Don't replay if it fails during completion phase.
  49770. mayReplayFailedUnitOfWork = false;
  49771. }
  49772. // This fiber completed.
  49773. // Remember we're completing this unit so we can find a boundary if it fails.
  49774. nextUnitOfWork = workInProgress;
  49775. if (enableProfilerTimer) {
  49776. if (workInProgress.mode & ProfileMode) {
  49777. startProfilerTimer(workInProgress);
  49778. }
  49779. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  49780. if (workInProgress.mode & ProfileMode) {
  49781. // Update render duration assuming we didn't error.
  49782. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  49783. }
  49784. } else {
  49785. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  49786. }
  49787. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49788. // We're out of completion phase so replaying is fine now.
  49789. mayReplayFailedUnitOfWork = true;
  49790. }
  49791. stopWorkTimer(workInProgress);
  49792. resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
  49793. {
  49794. resetCurrentFiber();
  49795. }
  49796. if (nextUnitOfWork !== null) {
  49797. // Completing this fiber spawned new work. Work on that next.
  49798. return nextUnitOfWork;
  49799. }
  49800. if (returnFiber !== null &&
  49801. // Do not append effects to parents if a sibling failed to complete
  49802. (returnFiber.effectTag & Incomplete) === NoEffect) {
  49803. // Append all the effects of the subtree and this fiber onto the effect
  49804. // list of the parent. The completion order of the children affects the
  49805. // side-effect order.
  49806. if (returnFiber.firstEffect === null) {
  49807. returnFiber.firstEffect = workInProgress.firstEffect;
  49808. }
  49809. if (workInProgress.lastEffect !== null) {
  49810. if (returnFiber.lastEffect !== null) {
  49811. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  49812. }
  49813. returnFiber.lastEffect = workInProgress.lastEffect;
  49814. }
  49815. // If this fiber had side-effects, we append it AFTER the children's
  49816. // side-effects. We can perform certain side-effects earlier if
  49817. // needed, by doing multiple passes over the effect list. We don't want
  49818. // to schedule our own side-effect on our own list because if end up
  49819. // reusing children we'll schedule this effect onto itself since we're
  49820. // at the end.
  49821. var effectTag = workInProgress.effectTag;
  49822. // Skip both NoWork and PerformedWork tags when creating the effect list.
  49823. // PerformedWork effect is read by React DevTools but shouldn't be committed.
  49824. if (effectTag > PerformedWork) {
  49825. if (returnFiber.lastEffect !== null) {
  49826. returnFiber.lastEffect.nextEffect = workInProgress;
  49827. } else {
  49828. returnFiber.firstEffect = workInProgress;
  49829. }
  49830. returnFiber.lastEffect = workInProgress;
  49831. }
  49832. }
  49833. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49834. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  49835. }
  49836. if (siblingFiber !== null) {
  49837. // If there is more work to do in this returnFiber, do that next.
  49838. return siblingFiber;
  49839. } else if (returnFiber !== null) {
  49840. // If there's no more work in this returnFiber. Complete the returnFiber.
  49841. workInProgress = returnFiber;
  49842. continue;
  49843. } else {
  49844. // We've reached the root.
  49845. return null;
  49846. }
  49847. } else {
  49848. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49849. // Record the render duration for the fiber that errored.
  49850. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  49851. // Include the time spent working on failed children before continuing.
  49852. var actualDuration = workInProgress.actualDuration;
  49853. var child = workInProgress.child;
  49854. while (child !== null) {
  49855. actualDuration += child.actualDuration;
  49856. child = child.sibling;
  49857. }
  49858. workInProgress.actualDuration = actualDuration;
  49859. }
  49860. // This fiber did not complete because something threw. Pop values off
  49861. // the stack without entering the complete phase. If this is a boundary,
  49862. // capture values if possible.
  49863. var next = unwindWork(workInProgress, nextRenderExpirationTime);
  49864. // Because this fiber did not complete, don't reset its expiration time.
  49865. if (workInProgress.effectTag & DidCapture) {
  49866. // Restarting an error boundary
  49867. stopFailedWorkTimer(workInProgress);
  49868. } else {
  49869. stopWorkTimer(workInProgress);
  49870. }
  49871. {
  49872. resetCurrentFiber();
  49873. }
  49874. if (next !== null) {
  49875. stopWorkTimer(workInProgress);
  49876. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49877. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  49878. }
  49879. // If completing this work spawned new work, do that next. We'll come
  49880. // back here again.
  49881. // Since we're restarting, remove anything that is not a host effect
  49882. // from the effect tag.
  49883. next.effectTag &= HostEffectMask;
  49884. return next;
  49885. }
  49886. if (returnFiber !== null) {
  49887. // Mark the parent fiber as incomplete and clear its effect list.
  49888. returnFiber.firstEffect = returnFiber.lastEffect = null;
  49889. returnFiber.effectTag |= Incomplete;
  49890. }
  49891. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49892. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  49893. }
  49894. if (siblingFiber !== null) {
  49895. // If there is more work to do in this returnFiber, do that next.
  49896. return siblingFiber;
  49897. } else if (returnFiber !== null) {
  49898. // If there's no more work in this returnFiber. Complete the returnFiber.
  49899. workInProgress = returnFiber;
  49900. continue;
  49901. } else {
  49902. return null;
  49903. }
  49904. }
  49905. }
  49906. // Without this explicit null return Flow complains of invalid return type
  49907. // TODO Remove the above while(true) loop
  49908. // eslint-disable-next-line no-unreachable
  49909. return null;
  49910. }
  49911. function performUnitOfWork(workInProgress) {
  49912. // The current, flushed, state of this fiber is the alternate.
  49913. // Ideally nothing should rely on this, but relying on it here
  49914. // means that we don't need an additional field on the work in
  49915. // progress.
  49916. var current$$1 = workInProgress.alternate;
  49917. // See if beginning this work spawns more work.
  49918. startWorkTimer(workInProgress);
  49919. {
  49920. setCurrentFiber(workInProgress);
  49921. }
  49922. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49923. stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);
  49924. }
  49925. var next = void 0;
  49926. if (enableProfilerTimer) {
  49927. if (workInProgress.mode & ProfileMode) {
  49928. startProfilerTimer(workInProgress);
  49929. }
  49930. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  49931. workInProgress.memoizedProps = workInProgress.pendingProps;
  49932. if (workInProgress.mode & ProfileMode) {
  49933. // Record the render duration assuming we didn't bailout (or error).
  49934. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  49935. }
  49936. } else {
  49937. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  49938. workInProgress.memoizedProps = workInProgress.pendingProps;
  49939. }
  49940. {
  49941. resetCurrentFiber();
  49942. if (isReplayingFailedUnitOfWork) {
  49943. // Currently replaying a failed unit of work. This should be unreachable,
  49944. // because the render phase is meant to be idempotent, and it should
  49945. // have thrown again. Since it didn't, rethrow the original error, so
  49946. // React's internal stack is not misaligned.
  49947. rethrowOriginalError();
  49948. }
  49949. }
  49950. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49951. ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);
  49952. }
  49953. if (next === null) {
  49954. // If this doesn't spawn new work, complete the current work.
  49955. next = completeUnitOfWork(workInProgress);
  49956. }
  49957. ReactCurrentOwner$2.current = null;
  49958. return next;
  49959. }
  49960. function workLoop(isYieldy) {
  49961. if (!isYieldy) {
  49962. // Flush work without yielding
  49963. while (nextUnitOfWork !== null) {
  49964. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  49965. }
  49966. } else {
  49967. // Flush asynchronous work until there's a higher priority event
  49968. while (nextUnitOfWork !== null && !shouldYieldToRenderer()) {
  49969. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  49970. }
  49971. }
  49972. }
  49973. function renderRoot(root, isYieldy) {
  49974. !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49975. flushPassiveEffects();
  49976. isWorking = true;
  49977. if (enableHooks) {
  49978. ReactCurrentOwner$2.currentDispatcher = Dispatcher;
  49979. } else {
  49980. ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;
  49981. }
  49982. var expirationTime = root.nextExpirationTimeToWorkOn;
  49983. // Check if we're starting from a fresh stack, or if we're resuming from
  49984. // previously yielded work.
  49985. if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {
  49986. // Reset the stack and start working from the root.
  49987. resetStack();
  49988. nextRoot = root;
  49989. nextRenderExpirationTime = expirationTime;
  49990. nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);
  49991. root.pendingCommitExpirationTime = NoWork;
  49992. if (enableSchedulerTracing) {
  49993. // Determine which interactions this batch of work currently includes,
  49994. // So that we can accurately attribute time spent working on it,
  49995. var interactions = new Set();
  49996. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  49997. if (scheduledExpirationTime >= expirationTime) {
  49998. scheduledInteractions.forEach(function (interaction) {
  49999. return interactions.add(interaction);
  50000. });
  50001. }
  50002. });
  50003. // Store the current set of interactions on the FiberRoot for a few reasons:
  50004. // We can re-use it in hot functions like renderRoot() without having to recalculate it.
  50005. // We will also use it in commitWork() to pass to any Profiler onRender() hooks.
  50006. // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.
  50007. root.memoizedInteractions = interactions;
  50008. if (interactions.size > 0) {
  50009. var subscriber = tracing.__subscriberRef.current;
  50010. if (subscriber !== null) {
  50011. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  50012. try {
  50013. subscriber.onWorkStarted(interactions, threadID);
  50014. } catch (error) {
  50015. // Work thrown by an interaction tracing subscriber should be rethrown,
  50016. // But only once it's safe (to avoid leaveing the scheduler in an invalid state).
  50017. // Store the error for now and we'll re-throw in finishRendering().
  50018. if (!hasUnhandledError) {
  50019. hasUnhandledError = true;
  50020. unhandledError = error;
  50021. }
  50022. }
  50023. }
  50024. }
  50025. }
  50026. }
  50027. var prevInteractions = null;
  50028. if (enableSchedulerTracing) {
  50029. // We're about to start new traced work.
  50030. // Restore pending interactions so cascading work triggered during the render phase will be accounted for.
  50031. prevInteractions = tracing.__interactionsRef.current;
  50032. tracing.__interactionsRef.current = root.memoizedInteractions;
  50033. }
  50034. var didFatal = false;
  50035. startWorkLoopTimer(nextUnitOfWork);
  50036. do {
  50037. try {
  50038. workLoop(isYieldy);
  50039. } catch (thrownValue) {
  50040. resetContextDependences();
  50041. resetHooks();
  50042. // Reset in case completion throws.
  50043. // This is only used in DEV and when replaying is on.
  50044. var mayReplay = void 0;
  50045. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  50046. mayReplay = mayReplayFailedUnitOfWork;
  50047. mayReplayFailedUnitOfWork = true;
  50048. }
  50049. if (nextUnitOfWork === null) {
  50050. // This is a fatal error.
  50051. didFatal = true;
  50052. onUncaughtError(thrownValue);
  50053. } else {
  50054. if (enableProfilerTimer && nextUnitOfWork.mode & ProfileMode) {
  50055. // Record the time spent rendering before an error was thrown.
  50056. // This avoids inaccurate Profiler durations in the case of a suspended render.
  50057. stopProfilerTimerIfRunningAndRecordDelta(nextUnitOfWork, true);
  50058. }
  50059. {
  50060. // Reset global debug state
  50061. // We assume this is defined in DEV
  50062. resetCurrentlyProcessingQueue();
  50063. }
  50064. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  50065. if (mayReplay) {
  50066. var failedUnitOfWork = nextUnitOfWork;
  50067. replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);
  50068. }
  50069. }
  50070. // TODO: we already know this isn't true in some cases.
  50071. // At least this shows a nicer error message until we figure out the cause.
  50072. // https://github.com/facebook/react/issues/12449#issuecomment-386727431
  50073. !(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;
  50074. var sourceFiber = nextUnitOfWork;
  50075. var returnFiber = sourceFiber.return;
  50076. if (returnFiber === null) {
  50077. // This is the root. The root could capture its own errors. However,
  50078. // we don't know if it errors before or after we pushed the host
  50079. // context. This information is needed to avoid a stack mismatch.
  50080. // Because we're not sure, treat this as a fatal error. We could track
  50081. // which phase it fails in, but doesn't seem worth it. At least
  50082. // for now.
  50083. didFatal = true;
  50084. onUncaughtError(thrownValue);
  50085. } else {
  50086. throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);
  50087. nextUnitOfWork = completeUnitOfWork(sourceFiber);
  50088. continue;
  50089. }
  50090. }
  50091. }
  50092. break;
  50093. } while (true);
  50094. if (enableSchedulerTracing) {
  50095. // Traced work is done for now; restore the previous interactions.
  50096. tracing.__interactionsRef.current = prevInteractions;
  50097. }
  50098. // We're done performing work. Time to clean up.
  50099. isWorking = false;
  50100. ReactCurrentOwner$2.currentDispatcher = null;
  50101. resetContextDependences();
  50102. resetHooks();
  50103. // Yield back to main thread.
  50104. if (didFatal) {
  50105. var _didCompleteRoot = false;
  50106. stopWorkLoopTimer(interruptedBy, _didCompleteRoot);
  50107. interruptedBy = null;
  50108. // There was a fatal error.
  50109. {
  50110. resetStackAfterFatalErrorInDev();
  50111. }
  50112. // `nextRoot` points to the in-progress root. A non-null value indicates
  50113. // that we're in the middle of an async render. Set it to null to indicate
  50114. // there's no more work to be done in the current batch.
  50115. nextRoot = null;
  50116. onFatal(root);
  50117. return;
  50118. }
  50119. if (nextUnitOfWork !== null) {
  50120. // There's still remaining async work in this tree, but we ran out of time
  50121. // in the current frame. Yield back to the renderer. Unless we're
  50122. // interrupted by a higher priority update, we'll continue later from where
  50123. // we left off.
  50124. var _didCompleteRoot2 = false;
  50125. stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);
  50126. interruptedBy = null;
  50127. onYield(root);
  50128. return;
  50129. }
  50130. // We completed the whole tree.
  50131. var didCompleteRoot = true;
  50132. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  50133. var rootWorkInProgress = root.current.alternate;
  50134. !(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;
  50135. // `nextRoot` points to the in-progress root. A non-null value indicates
  50136. // that we're in the middle of an async render. Set it to null to indicate
  50137. // there's no more work to be done in the current batch.
  50138. nextRoot = null;
  50139. interruptedBy = null;
  50140. if (nextRenderDidError) {
  50141. // There was an error
  50142. if (hasLowerPriorityWork(root, expirationTime)) {
  50143. // There's lower priority work. If so, it may have the effect of fixing
  50144. // the exception that was just thrown. Exit without committing. This is
  50145. // similar to a suspend, but without a timeout because we're not waiting
  50146. // for a promise to resolve. React will restart at the lower
  50147. // priority level.
  50148. markSuspendedPriorityLevel(root, expirationTime);
  50149. var suspendedExpirationTime = expirationTime;
  50150. var rootExpirationTime = root.expirationTime;
  50151. onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout
  50152. );
  50153. return;
  50154. } else if (
  50155. // There's no lower priority work, but we're rendering asynchronously.
  50156. // Synchronsouly attempt to render the same level one more time. This is
  50157. // similar to a suspend, but without a timeout because we're not waiting
  50158. // for a promise to resolve.
  50159. !root.didError && isYieldy) {
  50160. root.didError = true;
  50161. var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;
  50162. var _rootExpirationTime = root.expirationTime = Sync;
  50163. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout
  50164. );
  50165. return;
  50166. }
  50167. }
  50168. if (isYieldy && nextLatestAbsoluteTimeoutMs !== -1) {
  50169. // The tree was suspended.
  50170. var _suspendedExpirationTime2 = expirationTime;
  50171. markSuspendedPriorityLevel(root, _suspendedExpirationTime2);
  50172. // Find the earliest uncommitted expiration time in the tree, including
  50173. // work that is suspended. The timeout threshold cannot be longer than
  50174. // the overall expiration.
  50175. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);
  50176. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  50177. if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {
  50178. nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;
  50179. }
  50180. // Subtract the current time from the absolute timeout to get the number
  50181. // of milliseconds until the timeout. In other words, convert an absolute
  50182. // timestamp to a relative time. This is the value that is passed
  50183. // to `setTimeout`.
  50184. var currentTimeMs = expirationTimeToMs(requestCurrentTime());
  50185. var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
  50186. msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
  50187. // TODO: Account for the Just Noticeable Difference
  50188. var _rootExpirationTime2 = root.expirationTime;
  50189. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);
  50190. return;
  50191. }
  50192. // Ready to commit.
  50193. onComplete(root, rootWorkInProgress, expirationTime);
  50194. }
  50195. function captureCommitPhaseError(sourceFiber, value) {
  50196. var expirationTime = Sync;
  50197. var fiber = sourceFiber.return;
  50198. while (fiber !== null) {
  50199. switch (fiber.tag) {
  50200. case ClassComponent:
  50201. var ctor = fiber.type;
  50202. var instance = fiber.stateNode;
  50203. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  50204. var errorInfo = createCapturedValue(value, sourceFiber);
  50205. var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);
  50206. enqueueUpdate(fiber, update);
  50207. scheduleWork(fiber, expirationTime);
  50208. return;
  50209. }
  50210. break;
  50211. case HostRoot:
  50212. {
  50213. var _errorInfo = createCapturedValue(value, sourceFiber);
  50214. var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);
  50215. enqueueUpdate(fiber, _update);
  50216. scheduleWork(fiber, expirationTime);
  50217. return;
  50218. }
  50219. }
  50220. fiber = fiber.return;
  50221. }
  50222. if (sourceFiber.tag === HostRoot) {
  50223. // Error was thrown at the root. There is no parent, so the root
  50224. // itself should capture it.
  50225. var rootFiber = sourceFiber;
  50226. var _errorInfo2 = createCapturedValue(value, rootFiber);
  50227. var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);
  50228. enqueueUpdate(rootFiber, _update2);
  50229. scheduleWork(rootFiber, expirationTime);
  50230. }
  50231. }
  50232. function computeThreadID(expirationTime, interactionThreadID) {
  50233. // Interaction threads are unique per root and expiration time.
  50234. return expirationTime * 1000 + interactionThreadID;
  50235. }
  50236. // Creates a unique async expiration time.
  50237. function computeUniqueAsyncExpiration() {
  50238. var currentTime = requestCurrentTime();
  50239. var result = computeAsyncExpiration(currentTime);
  50240. if (result >= lastUniqueAsyncExpiration) {
  50241. // Since we assume the current time monotonically increases, we only hit
  50242. // this branch when computeUniqueAsyncExpiration is fired multiple times
  50243. // within a 200ms window (or whatever the async bucket size is).
  50244. result = lastUniqueAsyncExpiration - 1;
  50245. }
  50246. lastUniqueAsyncExpiration = result;
  50247. return lastUniqueAsyncExpiration;
  50248. }
  50249. function computeExpirationForFiber(currentTime, fiber) {
  50250. var expirationTime = void 0;
  50251. if (expirationContext !== NoWork) {
  50252. // An explicit expiration context was set;
  50253. expirationTime = expirationContext;
  50254. } else if (isWorking) {
  50255. if (isCommitting$1) {
  50256. // Updates that occur during the commit phase should have sync priority
  50257. // by default.
  50258. expirationTime = Sync;
  50259. } else {
  50260. // Updates during the render phase should expire at the same time as
  50261. // the work that is being rendered.
  50262. expirationTime = nextRenderExpirationTime;
  50263. }
  50264. } else {
  50265. // No explicit expiration context was set, and we're not currently
  50266. // performing work. Calculate a new expiration time.
  50267. if (fiber.mode & ConcurrentMode) {
  50268. if (isBatchingInteractiveUpdates) {
  50269. // This is an interactive update
  50270. expirationTime = computeInteractiveExpiration(currentTime);
  50271. } else {
  50272. // This is an async update
  50273. expirationTime = computeAsyncExpiration(currentTime);
  50274. }
  50275. // If we're in the middle of rendering a tree, do not update at the same
  50276. // expiration time that is already rendering.
  50277. if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {
  50278. expirationTime -= 1;
  50279. }
  50280. } else {
  50281. // This is a sync update
  50282. expirationTime = Sync;
  50283. }
  50284. }
  50285. if (isBatchingInteractiveUpdates) {
  50286. // This is an interactive update. Keep track of the lowest pending
  50287. // interactive expiration time. This allows us to synchronously flush
  50288. // all interactive updates when needed.
  50289. if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime) {
  50290. lowestPriorityPendingInteractiveExpirationTime = expirationTime;
  50291. }
  50292. }
  50293. return expirationTime;
  50294. }
  50295. function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
  50296. // Schedule the timeout.
  50297. if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {
  50298. nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;
  50299. }
  50300. }
  50301. function renderDidError() {
  50302. nextRenderDidError = true;
  50303. }
  50304. function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {
  50305. var retryTime = void 0;
  50306. if (isPriorityLevelSuspended(root, suspendedTime)) {
  50307. // Ping at the original level
  50308. retryTime = suspendedTime;
  50309. markPingedPriorityLevel(root, retryTime);
  50310. } else {
  50311. // Suspense already timed out. Compute a new expiration time
  50312. var currentTime = requestCurrentTime();
  50313. retryTime = computeExpirationForFiber(currentTime, boundaryFiber);
  50314. markPendingPriorityLevel(root, retryTime);
  50315. }
  50316. // TODO: If the suspense fiber has already rendered the primary children
  50317. // without suspending (that is, all of the promises have already resolved),
  50318. // we should not trigger another update here. One case this happens is when
  50319. // we are in sync mode and a single promise is thrown both on initial render
  50320. // and on update; we attach two .then(retrySuspendedRoot) callbacks and each
  50321. // one performs Sync work, rerendering the Suspense.
  50322. if ((boundaryFiber.mode & ConcurrentMode) !== NoContext) {
  50323. if (root === nextRoot && nextRenderExpirationTime === suspendedTime) {
  50324. // Received a ping at the same priority level at which we're currently
  50325. // rendering. Restart from the root.
  50326. nextRoot = null;
  50327. }
  50328. }
  50329. scheduleWorkToRoot(boundaryFiber, retryTime);
  50330. if ((boundaryFiber.mode & ConcurrentMode) === NoContext) {
  50331. // Outside of concurrent mode, we must schedule an update on the source
  50332. // fiber, too, since it already committed in an inconsistent state and
  50333. // therefore does not have any pending work.
  50334. scheduleWorkToRoot(sourceFiber, retryTime);
  50335. var sourceTag = sourceFiber.tag;
  50336. if (sourceTag === ClassComponent && sourceFiber.stateNode !== null) {
  50337. // When we try rendering again, we should not reuse the current fiber,
  50338. // since it's known to be in an inconsistent state. Use a force updte to
  50339. // prevent a bail out.
  50340. var update = createUpdate(retryTime);
  50341. update.tag = ForceUpdate;
  50342. enqueueUpdate(sourceFiber, update);
  50343. }
  50344. }
  50345. var rootExpirationTime = root.expirationTime;
  50346. if (rootExpirationTime !== NoWork) {
  50347. requestWork(root, rootExpirationTime);
  50348. }
  50349. }
  50350. function scheduleWorkToRoot(fiber, expirationTime) {
  50351. recordScheduleUpdate();
  50352. {
  50353. if (fiber.tag === ClassComponent) {
  50354. var instance = fiber.stateNode;
  50355. warnAboutInvalidUpdates(instance);
  50356. }
  50357. }
  50358. // Update the source fiber's expiration time
  50359. if (fiber.expirationTime < expirationTime) {
  50360. fiber.expirationTime = expirationTime;
  50361. }
  50362. var alternate = fiber.alternate;
  50363. if (alternate !== null && alternate.expirationTime < expirationTime) {
  50364. alternate.expirationTime = expirationTime;
  50365. }
  50366. // Walk the parent path to the root and update the child expiration time.
  50367. var node = fiber.return;
  50368. var root = null;
  50369. if (node === null && fiber.tag === HostRoot) {
  50370. root = fiber.stateNode;
  50371. } else {
  50372. while (node !== null) {
  50373. alternate = node.alternate;
  50374. if (node.childExpirationTime < expirationTime) {
  50375. node.childExpirationTime = expirationTime;
  50376. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  50377. alternate.childExpirationTime = expirationTime;
  50378. }
  50379. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  50380. alternate.childExpirationTime = expirationTime;
  50381. }
  50382. if (node.return === null && node.tag === HostRoot) {
  50383. root = node.stateNode;
  50384. break;
  50385. }
  50386. node = node.return;
  50387. }
  50388. }
  50389. if (enableSchedulerTracing) {
  50390. if (root !== null) {
  50391. var interactions = tracing.__interactionsRef.current;
  50392. if (interactions.size > 0) {
  50393. var pendingInteractionMap = root.pendingInteractionMap;
  50394. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  50395. if (pendingInteractions != null) {
  50396. interactions.forEach(function (interaction) {
  50397. if (!pendingInteractions.has(interaction)) {
  50398. // Update the pending async work count for previously unscheduled interaction.
  50399. interaction.__count++;
  50400. }
  50401. pendingInteractions.add(interaction);
  50402. });
  50403. } else {
  50404. pendingInteractionMap.set(expirationTime, new Set(interactions));
  50405. // Update the pending async work count for the current interactions.
  50406. interactions.forEach(function (interaction) {
  50407. interaction.__count++;
  50408. });
  50409. }
  50410. var subscriber = tracing.__subscriberRef.current;
  50411. if (subscriber !== null) {
  50412. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  50413. subscriber.onWorkScheduled(interactions, threadID);
  50414. }
  50415. }
  50416. }
  50417. }
  50418. return root;
  50419. }
  50420. function scheduleWork(fiber, expirationTime) {
  50421. var root = scheduleWorkToRoot(fiber, expirationTime);
  50422. if (root === null) {
  50423. {
  50424. switch (fiber.tag) {
  50425. case ClassComponent:
  50426. warnAboutUpdateOnUnmounted(fiber, true);
  50427. break;
  50428. case FunctionComponent:
  50429. case ForwardRef:
  50430. case MemoComponent:
  50431. case SimpleMemoComponent:
  50432. warnAboutUpdateOnUnmounted(fiber, false);
  50433. break;
  50434. }
  50435. }
  50436. return;
  50437. }
  50438. if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime > nextRenderExpirationTime) {
  50439. // This is an interruption. (Used for performance tracking.)
  50440. interruptedBy = fiber;
  50441. resetStack();
  50442. }
  50443. markPendingPriorityLevel(root, expirationTime);
  50444. if (
  50445. // If we're in the render phase, we don't need to schedule this root
  50446. // for an update, because we'll do it before we exit...
  50447. !isWorking || isCommitting$1 ||
  50448. // ...unless this is a different root than the one we're rendering.
  50449. nextRoot !== root) {
  50450. var rootExpirationTime = root.expirationTime;
  50451. requestWork(root, rootExpirationTime);
  50452. }
  50453. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  50454. // Reset this back to zero so subsequent updates don't throw.
  50455. nestedUpdateCount = 0;
  50456. 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.');
  50457. }
  50458. }
  50459. function syncUpdates(fn, a, b, c, d) {
  50460. var previousExpirationContext = expirationContext;
  50461. expirationContext = Sync;
  50462. try {
  50463. return fn(a, b, c, d);
  50464. } finally {
  50465. expirationContext = previousExpirationContext;
  50466. }
  50467. }
  50468. // TODO: Everything below this is written as if it has been lifted to the
  50469. // renderers. I'll do this in a follow-up.
  50470. // Linked-list of roots
  50471. var firstScheduledRoot = null;
  50472. var lastScheduledRoot = null;
  50473. var callbackExpirationTime = NoWork;
  50474. var callbackID = void 0;
  50475. var isRendering = false;
  50476. var nextFlushedRoot = null;
  50477. var nextFlushedExpirationTime = NoWork;
  50478. var lowestPriorityPendingInteractiveExpirationTime = NoWork;
  50479. var hasUnhandledError = false;
  50480. var unhandledError = null;
  50481. var isBatchingUpdates = false;
  50482. var isUnbatchingUpdates = false;
  50483. var isBatchingInteractiveUpdates = false;
  50484. var completedBatches = null;
  50485. var originalStartTimeMs = scheduler.unstable_now();
  50486. var currentRendererTime = msToExpirationTime(originalStartTimeMs);
  50487. var currentSchedulerTime = currentRendererTime;
  50488. // Use these to prevent an infinite loop of nested updates
  50489. var NESTED_UPDATE_LIMIT = 50;
  50490. var nestedUpdateCount = 0;
  50491. var lastCommittedRootDuringThisBatch = null;
  50492. function recomputeCurrentRendererTime() {
  50493. var currentTimeMs = scheduler.unstable_now() - originalStartTimeMs;
  50494. currentRendererTime = msToExpirationTime(currentTimeMs);
  50495. }
  50496. function scheduleCallbackWithExpirationTime(root, expirationTime) {
  50497. if (callbackExpirationTime !== NoWork) {
  50498. // A callback is already scheduled. Check its expiration time (timeout).
  50499. if (expirationTime < callbackExpirationTime) {
  50500. // Existing callback has sufficient timeout. Exit.
  50501. return;
  50502. } else {
  50503. if (callbackID !== null) {
  50504. // Existing callback has insufficient timeout. Cancel and schedule a
  50505. // new one.
  50506. scheduler.unstable_cancelCallback(callbackID);
  50507. }
  50508. }
  50509. // The request callback timer is already running. Don't start a new one.
  50510. } else {
  50511. startRequestCallbackTimer();
  50512. }
  50513. callbackExpirationTime = expirationTime;
  50514. var currentMs = scheduler.unstable_now() - originalStartTimeMs;
  50515. var expirationTimeMs = expirationTimeToMs(expirationTime);
  50516. var timeout = expirationTimeMs - currentMs;
  50517. callbackID = scheduler.unstable_scheduleCallback(performAsyncWork, { timeout: timeout });
  50518. }
  50519. // For every call to renderRoot, one of onFatal, onComplete, onSuspend, and
  50520. // onYield is called upon exiting. We use these in lieu of returning a tuple.
  50521. // I've also chosen not to inline them into renderRoot because these will
  50522. // eventually be lifted into the renderer.
  50523. function onFatal(root) {
  50524. root.finishedWork = null;
  50525. }
  50526. function onComplete(root, finishedWork, expirationTime) {
  50527. root.pendingCommitExpirationTime = expirationTime;
  50528. root.finishedWork = finishedWork;
  50529. }
  50530. function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {
  50531. root.expirationTime = rootExpirationTime;
  50532. if (msUntilTimeout === 0 && !shouldYieldToRenderer()) {
  50533. // Don't wait an additional tick. Commit the tree immediately.
  50534. root.pendingCommitExpirationTime = suspendedExpirationTime;
  50535. root.finishedWork = finishedWork;
  50536. } else if (msUntilTimeout > 0) {
  50537. // Wait `msUntilTimeout` milliseconds before committing.
  50538. root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);
  50539. }
  50540. }
  50541. function onYield(root) {
  50542. root.finishedWork = null;
  50543. }
  50544. function onTimeout(root, finishedWork, suspendedExpirationTime) {
  50545. // The root timed out. Commit it.
  50546. root.pendingCommitExpirationTime = suspendedExpirationTime;
  50547. root.finishedWork = finishedWork;
  50548. // Read the current time before entering the commit phase. We can be
  50549. // certain this won't cause tearing related to batching of event updates
  50550. // because we're at the top of a timer event.
  50551. recomputeCurrentRendererTime();
  50552. currentSchedulerTime = currentRendererTime;
  50553. flushRoot(root, suspendedExpirationTime);
  50554. }
  50555. function onCommit(root, expirationTime) {
  50556. root.expirationTime = expirationTime;
  50557. root.finishedWork = null;
  50558. }
  50559. function requestCurrentTime() {
  50560. // requestCurrentTime is called by the scheduler to compute an expiration
  50561. // time.
  50562. //
  50563. // Expiration times are computed by adding to the current time (the start
  50564. // time). However, if two updates are scheduled within the same event, we
  50565. // should treat their start times as simultaneous, even if the actual clock
  50566. // time has advanced between the first and second call.
  50567. // In other words, because expiration times determine how updates are batched,
  50568. // we want all updates of like priority that occur within the same event to
  50569. // receive the same expiration time. Otherwise we get tearing.
  50570. //
  50571. // We keep track of two separate times: the current "renderer" time and the
  50572. // current "scheduler" time. The renderer time can be updated whenever; it
  50573. // only exists to minimize the calls performance.now.
  50574. //
  50575. // But the scheduler time can only be updated if there's no pending work, or
  50576. // if we know for certain that we're not in the middle of an event.
  50577. if (isRendering) {
  50578. // We're already rendering. Return the most recently read time.
  50579. return currentSchedulerTime;
  50580. }
  50581. // Check if there's pending work.
  50582. findHighestPriorityRoot();
  50583. if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {
  50584. // If there's no pending work, or if the pending work is offscreen, we can
  50585. // read the current time without risk of tearing.
  50586. recomputeCurrentRendererTime();
  50587. currentSchedulerTime = currentRendererTime;
  50588. return currentSchedulerTime;
  50589. }
  50590. // There's already pending work. We might be in the middle of a browser
  50591. // event. If we were to read the current time, it could cause multiple updates
  50592. // within the same event to receive different expiration times, leading to
  50593. // tearing. Return the last read time. During the next idle callback, the
  50594. // time will be updated.
  50595. return currentSchedulerTime;
  50596. }
  50597. // requestWork is called by the scheduler whenever a root receives an update.
  50598. // It's up to the renderer to call renderRoot at some point in the future.
  50599. function requestWork(root, expirationTime) {
  50600. addRootToSchedule(root, expirationTime);
  50601. if (isRendering) {
  50602. // Prevent reentrancy. Remaining work will be scheduled at the end of
  50603. // the currently rendering batch.
  50604. return;
  50605. }
  50606. if (isBatchingUpdates) {
  50607. // Flush work at the end of the batch.
  50608. if (isUnbatchingUpdates) {
  50609. // ...unless we're inside unbatchedUpdates, in which case we should
  50610. // flush it now.
  50611. nextFlushedRoot = root;
  50612. nextFlushedExpirationTime = Sync;
  50613. performWorkOnRoot(root, Sync, false);
  50614. }
  50615. return;
  50616. }
  50617. // TODO: Get rid of Sync and use current time?
  50618. if (expirationTime === Sync) {
  50619. performSyncWork();
  50620. } else {
  50621. scheduleCallbackWithExpirationTime(root, expirationTime);
  50622. }
  50623. }
  50624. function addRootToSchedule(root, expirationTime) {
  50625. // Add the root to the schedule.
  50626. // Check if this root is already part of the schedule.
  50627. if (root.nextScheduledRoot === null) {
  50628. // This root is not already scheduled. Add it.
  50629. root.expirationTime = expirationTime;
  50630. if (lastScheduledRoot === null) {
  50631. firstScheduledRoot = lastScheduledRoot = root;
  50632. root.nextScheduledRoot = root;
  50633. } else {
  50634. lastScheduledRoot.nextScheduledRoot = root;
  50635. lastScheduledRoot = root;
  50636. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  50637. }
  50638. } else {
  50639. // This root is already scheduled, but its priority may have increased.
  50640. var remainingExpirationTime = root.expirationTime;
  50641. if (expirationTime > remainingExpirationTime) {
  50642. // Update the priority.
  50643. root.expirationTime = expirationTime;
  50644. }
  50645. }
  50646. }
  50647. function findHighestPriorityRoot() {
  50648. var highestPriorityWork = NoWork;
  50649. var highestPriorityRoot = null;
  50650. if (lastScheduledRoot !== null) {
  50651. var previousScheduledRoot = lastScheduledRoot;
  50652. var root = firstScheduledRoot;
  50653. while (root !== null) {
  50654. var remainingExpirationTime = root.expirationTime;
  50655. if (remainingExpirationTime === NoWork) {
  50656. // This root no longer has work. Remove it from the scheduler.
  50657. // TODO: This check is redudant, but Flow is confused by the branch
  50658. // below where we set lastScheduledRoot to null, even though we break
  50659. // from the loop right after.
  50660. !(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;
  50661. if (root === root.nextScheduledRoot) {
  50662. // This is the only root in the list.
  50663. root.nextScheduledRoot = null;
  50664. firstScheduledRoot = lastScheduledRoot = null;
  50665. break;
  50666. } else if (root === firstScheduledRoot) {
  50667. // This is the first root in the list.
  50668. var next = root.nextScheduledRoot;
  50669. firstScheduledRoot = next;
  50670. lastScheduledRoot.nextScheduledRoot = next;
  50671. root.nextScheduledRoot = null;
  50672. } else if (root === lastScheduledRoot) {
  50673. // This is the last root in the list.
  50674. lastScheduledRoot = previousScheduledRoot;
  50675. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  50676. root.nextScheduledRoot = null;
  50677. break;
  50678. } else {
  50679. previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;
  50680. root.nextScheduledRoot = null;
  50681. }
  50682. root = previousScheduledRoot.nextScheduledRoot;
  50683. } else {
  50684. if (remainingExpirationTime > highestPriorityWork) {
  50685. // Update the priority, if it's higher
  50686. highestPriorityWork = remainingExpirationTime;
  50687. highestPriorityRoot = root;
  50688. }
  50689. if (root === lastScheduledRoot) {
  50690. break;
  50691. }
  50692. if (highestPriorityWork === Sync) {
  50693. // Sync is highest priority by definition so
  50694. // we can stop searching.
  50695. break;
  50696. }
  50697. previousScheduledRoot = root;
  50698. root = root.nextScheduledRoot;
  50699. }
  50700. }
  50701. }
  50702. nextFlushedRoot = highestPriorityRoot;
  50703. nextFlushedExpirationTime = highestPriorityWork;
  50704. }
  50705. // TODO: This wrapper exists because many of the older tests (the ones that use
  50706. // flushDeferredPri) rely on the number of times `shouldYield` is called. We
  50707. // should get rid of it.
  50708. var didYield = false;
  50709. function shouldYieldToRenderer() {
  50710. if (didYield) {
  50711. return true;
  50712. }
  50713. if (scheduler.unstable_shouldYield()) {
  50714. didYield = true;
  50715. return true;
  50716. }
  50717. return false;
  50718. }
  50719. function performAsyncWork() {
  50720. try {
  50721. if (!shouldYieldToRenderer()) {
  50722. // The callback timed out. That means at least one update has expired.
  50723. // Iterate through the root schedule. If they contain expired work, set
  50724. // the next render expiration time to the current time. This has the effect
  50725. // of flushing all expired work in a single batch, instead of flushing each
  50726. // level one at a time.
  50727. if (firstScheduledRoot !== null) {
  50728. recomputeCurrentRendererTime();
  50729. var root = firstScheduledRoot;
  50730. do {
  50731. didExpireAtExpirationTime(root, currentRendererTime);
  50732. // The root schedule is circular, so this is never null.
  50733. root = root.nextScheduledRoot;
  50734. } while (root !== firstScheduledRoot);
  50735. }
  50736. }
  50737. performWork(NoWork, true);
  50738. } finally {
  50739. didYield = false;
  50740. }
  50741. }
  50742. function performSyncWork() {
  50743. performWork(Sync, false);
  50744. }
  50745. function performWork(minExpirationTime, isYieldy) {
  50746. // Keep working on roots until there's no more work, or until there's a higher
  50747. // priority event.
  50748. findHighestPriorityRoot();
  50749. if (isYieldy) {
  50750. recomputeCurrentRendererTime();
  50751. currentSchedulerTime = currentRendererTime;
  50752. if (enableUserTimingAPI) {
  50753. var didExpire = nextFlushedExpirationTime > currentRendererTime;
  50754. var timeout = expirationTimeToMs(nextFlushedExpirationTime);
  50755. stopRequestCallbackTimer(didExpire, timeout);
  50756. }
  50757. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime && !(didYield && currentRendererTime > nextFlushedExpirationTime)) {
  50758. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime > nextFlushedExpirationTime);
  50759. findHighestPriorityRoot();
  50760. recomputeCurrentRendererTime();
  50761. currentSchedulerTime = currentRendererTime;
  50762. }
  50763. } else {
  50764. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {
  50765. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);
  50766. findHighestPriorityRoot();
  50767. }
  50768. }
  50769. // We're done flushing work. Either we ran out of time in this callback,
  50770. // or there's no more work left with sufficient priority.
  50771. // If we're inside a callback, set this to false since we just completed it.
  50772. if (isYieldy) {
  50773. callbackExpirationTime = NoWork;
  50774. callbackID = null;
  50775. }
  50776. // If there's work left over, schedule a new callback.
  50777. if (nextFlushedExpirationTime !== NoWork) {
  50778. scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);
  50779. }
  50780. // Clean-up.
  50781. finishRendering();
  50782. }
  50783. function flushRoot(root, expirationTime) {
  50784. !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
  50785. // Perform work on root as if the given expiration time is the current time.
  50786. // This has the effect of synchronously flushing all work up to and
  50787. // including the given time.
  50788. nextFlushedRoot = root;
  50789. nextFlushedExpirationTime = expirationTime;
  50790. performWorkOnRoot(root, expirationTime, false);
  50791. // Flush any sync work that was scheduled by lifecycles
  50792. performSyncWork();
  50793. }
  50794. function finishRendering() {
  50795. nestedUpdateCount = 0;
  50796. lastCommittedRootDuringThisBatch = null;
  50797. if (completedBatches !== null) {
  50798. var batches = completedBatches;
  50799. completedBatches = null;
  50800. for (var i = 0; i < batches.length; i++) {
  50801. var batch = batches[i];
  50802. try {
  50803. batch._onComplete();
  50804. } catch (error) {
  50805. if (!hasUnhandledError) {
  50806. hasUnhandledError = true;
  50807. unhandledError = error;
  50808. }
  50809. }
  50810. }
  50811. }
  50812. if (hasUnhandledError) {
  50813. var error = unhandledError;
  50814. unhandledError = null;
  50815. hasUnhandledError = false;
  50816. throw error;
  50817. }
  50818. }
  50819. function performWorkOnRoot(root, expirationTime, isYieldy) {
  50820. !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  50821. isRendering = true;
  50822. // Check if this is async work or sync/expired work.
  50823. if (!isYieldy) {
  50824. // Flush work without yielding.
  50825. // TODO: Non-yieldy work does not necessarily imply expired work. A renderer
  50826. // may want to perform some work without yielding, but also without
  50827. // requiring the root to complete (by triggering placeholders).
  50828. var finishedWork = root.finishedWork;
  50829. if (finishedWork !== null) {
  50830. // This root is already complete. We can commit it.
  50831. completeRoot(root, finishedWork, expirationTime);
  50832. } else {
  50833. root.finishedWork = null;
  50834. // If this root previously suspended, clear its existing timeout, since
  50835. // we're about to try rendering again.
  50836. var timeoutHandle = root.timeoutHandle;
  50837. if (timeoutHandle !== noTimeout) {
  50838. root.timeoutHandle = noTimeout;
  50839. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  50840. cancelTimeout(timeoutHandle);
  50841. }
  50842. renderRoot(root, isYieldy);
  50843. finishedWork = root.finishedWork;
  50844. if (finishedWork !== null) {
  50845. // We've completed the root. Commit it.
  50846. completeRoot(root, finishedWork, expirationTime);
  50847. }
  50848. }
  50849. } else {
  50850. // Flush async work.
  50851. var _finishedWork = root.finishedWork;
  50852. if (_finishedWork !== null) {
  50853. // This root is already complete. We can commit it.
  50854. completeRoot(root, _finishedWork, expirationTime);
  50855. } else {
  50856. root.finishedWork = null;
  50857. // If this root previously suspended, clear its existing timeout, since
  50858. // we're about to try rendering again.
  50859. var _timeoutHandle = root.timeoutHandle;
  50860. if (_timeoutHandle !== noTimeout) {
  50861. root.timeoutHandle = noTimeout;
  50862. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  50863. cancelTimeout(_timeoutHandle);
  50864. }
  50865. renderRoot(root, isYieldy);
  50866. _finishedWork = root.finishedWork;
  50867. if (_finishedWork !== null) {
  50868. // We've completed the root. Check the if we should yield one more time
  50869. // before committing.
  50870. if (!shouldYieldToRenderer()) {
  50871. // Still time left. Commit the root.
  50872. completeRoot(root, _finishedWork, expirationTime);
  50873. } else {
  50874. // There's no time left. Mark this root as complete. We'll come
  50875. // back and commit it later.
  50876. root.finishedWork = _finishedWork;
  50877. }
  50878. }
  50879. }
  50880. }
  50881. isRendering = false;
  50882. }
  50883. function completeRoot(root, finishedWork, expirationTime) {
  50884. // Check if there's a batch that matches this expiration time.
  50885. var firstBatch = root.firstBatch;
  50886. if (firstBatch !== null && firstBatch._expirationTime >= expirationTime) {
  50887. if (completedBatches === null) {
  50888. completedBatches = [firstBatch];
  50889. } else {
  50890. completedBatches.push(firstBatch);
  50891. }
  50892. if (firstBatch._defer) {
  50893. // This root is blocked from committing by a batch. Unschedule it until
  50894. // we receive another update.
  50895. root.finishedWork = finishedWork;
  50896. root.expirationTime = NoWork;
  50897. return;
  50898. }
  50899. }
  50900. // Commit the root.
  50901. root.finishedWork = null;
  50902. // Check if this is a nested update (a sync update scheduled during the
  50903. // commit phase).
  50904. if (root === lastCommittedRootDuringThisBatch) {
  50905. // If the next root is the same as the previous root, this is a nested
  50906. // update. To prevent an infinite loop, increment the nested update count.
  50907. nestedUpdateCount++;
  50908. } else {
  50909. // Reset whenever we switch roots.
  50910. lastCommittedRootDuringThisBatch = root;
  50911. nestedUpdateCount = 0;
  50912. }
  50913. commitRoot(root, finishedWork);
  50914. }
  50915. function onUncaughtError(error) {
  50916. !(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;
  50917. // Unschedule this root so we don't work on it again until there's
  50918. // another update.
  50919. nextFlushedRoot.expirationTime = NoWork;
  50920. if (!hasUnhandledError) {
  50921. hasUnhandledError = true;
  50922. unhandledError = error;
  50923. }
  50924. }
  50925. // TODO: Batching should be implemented at the renderer level, not inside
  50926. // the reconciler.
  50927. function batchedUpdates$1(fn, a) {
  50928. var previousIsBatchingUpdates = isBatchingUpdates;
  50929. isBatchingUpdates = true;
  50930. try {
  50931. return fn(a);
  50932. } finally {
  50933. isBatchingUpdates = previousIsBatchingUpdates;
  50934. if (!isBatchingUpdates && !isRendering) {
  50935. performSyncWork();
  50936. }
  50937. }
  50938. }
  50939. // TODO: Batching should be implemented at the renderer level, not inside
  50940. // the reconciler.
  50941. function unbatchedUpdates(fn, a) {
  50942. if (isBatchingUpdates && !isUnbatchingUpdates) {
  50943. isUnbatchingUpdates = true;
  50944. try {
  50945. return fn(a);
  50946. } finally {
  50947. isUnbatchingUpdates = false;
  50948. }
  50949. }
  50950. return fn(a);
  50951. }
  50952. // TODO: Batching should be implemented at the renderer level, not within
  50953. // the reconciler.
  50954. function flushSync(fn, a) {
  50955. !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;
  50956. var previousIsBatchingUpdates = isBatchingUpdates;
  50957. isBatchingUpdates = true;
  50958. try {
  50959. return syncUpdates(fn, a);
  50960. } finally {
  50961. isBatchingUpdates = previousIsBatchingUpdates;
  50962. performSyncWork();
  50963. }
  50964. }
  50965. function interactiveUpdates$1(fn, a, b) {
  50966. if (isBatchingInteractiveUpdates) {
  50967. return fn(a, b);
  50968. }
  50969. // If there are any pending interactive updates, synchronously flush them.
  50970. // This needs to happen before we read any handlers, because the effect of
  50971. // the previous event may influence which handlers are called during
  50972. // this event.
  50973. if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  50974. // Synchronously flush pending interactive updates.
  50975. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  50976. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  50977. }
  50978. var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates;
  50979. var previousIsBatchingUpdates = isBatchingUpdates;
  50980. isBatchingInteractiveUpdates = true;
  50981. isBatchingUpdates = true;
  50982. try {
  50983. return fn(a, b);
  50984. } finally {
  50985. isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates;
  50986. isBatchingUpdates = previousIsBatchingUpdates;
  50987. if (!isBatchingUpdates && !isRendering) {
  50988. performSyncWork();
  50989. }
  50990. }
  50991. }
  50992. function flushInteractiveUpdates$1() {
  50993. if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  50994. // Synchronously flush pending interactive updates.
  50995. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  50996. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  50997. }
  50998. }
  50999. function flushControlled(fn) {
  51000. var previousIsBatchingUpdates = isBatchingUpdates;
  51001. isBatchingUpdates = true;
  51002. try {
  51003. syncUpdates(fn);
  51004. } finally {
  51005. isBatchingUpdates = previousIsBatchingUpdates;
  51006. if (!isBatchingUpdates && !isRendering) {
  51007. performSyncWork();
  51008. }
  51009. }
  51010. }
  51011. // 0 is PROD, 1 is DEV.
  51012. // Might add PROFILE later.
  51013. var didWarnAboutNestedUpdates = void 0;
  51014. var didWarnAboutFindNodeInStrictMode = void 0;
  51015. {
  51016. didWarnAboutNestedUpdates = false;
  51017. didWarnAboutFindNodeInStrictMode = {};
  51018. }
  51019. function getContextForSubtree(parentComponent) {
  51020. if (!parentComponent) {
  51021. return emptyContextObject;
  51022. }
  51023. var fiber = get(parentComponent);
  51024. var parentContext = findCurrentUnmaskedContext(fiber);
  51025. if (fiber.tag === ClassComponent) {
  51026. var Component = fiber.type;
  51027. if (isContextProvider(Component)) {
  51028. return processChildContext(fiber, Component, parentContext);
  51029. }
  51030. }
  51031. return parentContext;
  51032. }
  51033. function scheduleRootUpdate(current$$1, element, expirationTime, callback) {
  51034. {
  51035. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  51036. didWarnAboutNestedUpdates = true;
  51037. 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');
  51038. }
  51039. }
  51040. var update = createUpdate(expirationTime);
  51041. // Caution: React DevTools currently depends on this property
  51042. // being called "element".
  51043. update.payload = { element: element };
  51044. callback = callback === undefined ? null : callback;
  51045. if (callback !== null) {
  51046. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  51047. update.callback = callback;
  51048. }
  51049. flushPassiveEffects();
  51050. enqueueUpdate(current$$1, update);
  51051. scheduleWork(current$$1, expirationTime);
  51052. return expirationTime;
  51053. }
  51054. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
  51055. // TODO: If this is a nested container, this won't be the root.
  51056. var current$$1 = container.current;
  51057. {
  51058. if (ReactFiberInstrumentation_1.debugTool) {
  51059. if (current$$1.alternate === null) {
  51060. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  51061. } else if (element === null) {
  51062. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  51063. } else {
  51064. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  51065. }
  51066. }
  51067. }
  51068. var context = getContextForSubtree(parentComponent);
  51069. if (container.context === null) {
  51070. container.context = context;
  51071. } else {
  51072. container.pendingContext = context;
  51073. }
  51074. return scheduleRootUpdate(current$$1, element, expirationTime, callback);
  51075. }
  51076. function findHostInstance(component) {
  51077. var fiber = get(component);
  51078. if (fiber === undefined) {
  51079. if (typeof component.render === 'function') {
  51080. invariant(false, 'Unable to find node on an unmounted component.');
  51081. } else {
  51082. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  51083. }
  51084. }
  51085. var hostFiber = findCurrentHostFiber(fiber);
  51086. if (hostFiber === null) {
  51087. return null;
  51088. }
  51089. return hostFiber.stateNode;
  51090. }
  51091. function findHostInstanceWithWarning(component, methodName) {
  51092. {
  51093. var fiber = get(component);
  51094. if (fiber === undefined) {
  51095. if (typeof component.render === 'function') {
  51096. invariant(false, 'Unable to find node on an unmounted component.');
  51097. } else {
  51098. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  51099. }
  51100. }
  51101. var hostFiber = findCurrentHostFiber(fiber);
  51102. if (hostFiber === null) {
  51103. return null;
  51104. }
  51105. if (hostFiber.mode & StrictMode) {
  51106. var componentName = getComponentName(fiber.type) || 'Component';
  51107. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  51108. didWarnAboutFindNodeInStrictMode[componentName] = true;
  51109. if (fiber.mode & StrictMode) {
  51110. 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));
  51111. } else {
  51112. 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));
  51113. }
  51114. }
  51115. }
  51116. return hostFiber.stateNode;
  51117. }
  51118. return findHostInstance(component);
  51119. }
  51120. function createContainer(containerInfo, isConcurrent, hydrate) {
  51121. return createFiberRoot(containerInfo, isConcurrent, hydrate);
  51122. }
  51123. function updateContainer(element, container, parentComponent, callback) {
  51124. var current$$1 = container.current;
  51125. var currentTime = requestCurrentTime();
  51126. var expirationTime = computeExpirationForFiber(currentTime, current$$1);
  51127. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
  51128. }
  51129. function getPublicRootInstance(container) {
  51130. var containerFiber = container.current;
  51131. if (!containerFiber.child) {
  51132. return null;
  51133. }
  51134. switch (containerFiber.child.tag) {
  51135. case HostComponent:
  51136. return getPublicInstance(containerFiber.child.stateNode);
  51137. default:
  51138. return containerFiber.child.stateNode;
  51139. }
  51140. }
  51141. function findHostInstanceWithNoPortals(fiber) {
  51142. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  51143. if (hostFiber === null) {
  51144. return null;
  51145. }
  51146. return hostFiber.stateNode;
  51147. }
  51148. function injectIntoDevTools(devToolsConfig) {
  51149. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  51150. return injectInternals(_assign({}, devToolsConfig, {
  51151. findHostInstanceByFiber: function (fiber) {
  51152. var hostFiber = findCurrentHostFiber(fiber);
  51153. if (hostFiber === null) {
  51154. return null;
  51155. }
  51156. return hostFiber.stateNode;
  51157. },
  51158. findFiberByHostInstance: function (instance) {
  51159. if (!findFiberByHostInstance) {
  51160. // Might not be implemented by the renderer.
  51161. return null;
  51162. }
  51163. return findFiberByHostInstance(instance);
  51164. }
  51165. }));
  51166. }
  51167. // This file intentionally does *not* have the Flow annotation.
  51168. // Don't add it. See `./inline-typed.js` for an explanation.
  51169. function createPortal$1(children, containerInfo,
  51170. // TODO: figure out the API for cross-renderer implementation.
  51171. implementation) {
  51172. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  51173. return {
  51174. // This tag allow us to uniquely identify this as a React Portal
  51175. $$typeof: REACT_PORTAL_TYPE,
  51176. key: key == null ? null : '' + key,
  51177. children: children,
  51178. containerInfo: containerInfo,
  51179. implementation: implementation
  51180. };
  51181. }
  51182. // TODO: this is special because it gets imported during build.
  51183. var ReactVersion = '16.6.3';
  51184. // TODO: This type is shared between the reconciler and ReactDOM, but will
  51185. // eventually be lifted out to the renderer.
  51186. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  51187. var topLevelUpdateWarnings = void 0;
  51188. var warnOnInvalidCallback = void 0;
  51189. var didWarnAboutUnstableCreatePortal = false;
  51190. {
  51191. if (typeof Map !== 'function' ||
  51192. // $FlowIssue Flow incorrectly thinks Map has no prototype
  51193. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  51194. // $FlowIssue Flow incorrectly thinks Set has no prototype
  51195. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  51196. 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');
  51197. }
  51198. topLevelUpdateWarnings = function (container) {
  51199. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  51200. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  51201. if (hostInstance) {
  51202. !(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;
  51203. }
  51204. }
  51205. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  51206. var rootEl = getReactRootElementInContainer(container);
  51207. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  51208. !(!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;
  51209. !(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;
  51210. };
  51211. warnOnInvalidCallback = function (callback, callerName) {
  51212. !(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;
  51213. };
  51214. }
  51215. setRestoreImplementation(restoreControlledState$1);
  51216. function ReactBatch(root) {
  51217. var expirationTime = computeUniqueAsyncExpiration();
  51218. this._expirationTime = expirationTime;
  51219. this._root = root;
  51220. this._next = null;
  51221. this._callbacks = null;
  51222. this._didComplete = false;
  51223. this._hasChildren = false;
  51224. this._children = null;
  51225. this._defer = true;
  51226. }
  51227. ReactBatch.prototype.render = function (children) {
  51228. !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;
  51229. this._hasChildren = true;
  51230. this._children = children;
  51231. var internalRoot = this._root._internalRoot;
  51232. var expirationTime = this._expirationTime;
  51233. var work = new ReactWork();
  51234. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);
  51235. return work;
  51236. };
  51237. ReactBatch.prototype.then = function (onComplete) {
  51238. if (this._didComplete) {
  51239. onComplete();
  51240. return;
  51241. }
  51242. var callbacks = this._callbacks;
  51243. if (callbacks === null) {
  51244. callbacks = this._callbacks = [];
  51245. }
  51246. callbacks.push(onComplete);
  51247. };
  51248. ReactBatch.prototype.commit = function () {
  51249. var internalRoot = this._root._internalRoot;
  51250. var firstBatch = internalRoot.firstBatch;
  51251. !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  51252. if (!this._hasChildren) {
  51253. // This batch is empty. Return.
  51254. this._next = null;
  51255. this._defer = false;
  51256. return;
  51257. }
  51258. var expirationTime = this._expirationTime;
  51259. // Ensure this is the first batch in the list.
  51260. if (firstBatch !== this) {
  51261. // This batch is not the earliest batch. We need to move it to the front.
  51262. // Update its expiration time to be the expiration time of the earliest
  51263. // batch, so that we can flush it without flushing the other batches.
  51264. if (this._hasChildren) {
  51265. expirationTime = this._expirationTime = firstBatch._expirationTime;
  51266. // Rendering this batch again ensures its children will be the final state
  51267. // when we flush (updates are processed in insertion order: last
  51268. // update wins).
  51269. // TODO: This forces a restart. Should we print a warning?
  51270. this.render(this._children);
  51271. }
  51272. // Remove the batch from the list.
  51273. var previous = null;
  51274. var batch = firstBatch;
  51275. while (batch !== this) {
  51276. previous = batch;
  51277. batch = batch._next;
  51278. }
  51279. !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  51280. previous._next = batch._next;
  51281. // Add it to the front.
  51282. this._next = firstBatch;
  51283. firstBatch = internalRoot.firstBatch = this;
  51284. }
  51285. // Synchronously flush all the work up to this batch's expiration time.
  51286. this._defer = false;
  51287. flushRoot(internalRoot, expirationTime);
  51288. // Pop the batch from the list.
  51289. var next = this._next;
  51290. this._next = null;
  51291. firstBatch = internalRoot.firstBatch = next;
  51292. // Append the next earliest batch's children to the update queue.
  51293. if (firstBatch !== null && firstBatch._hasChildren) {
  51294. firstBatch.render(firstBatch._children);
  51295. }
  51296. };
  51297. ReactBatch.prototype._onComplete = function () {
  51298. if (this._didComplete) {
  51299. return;
  51300. }
  51301. this._didComplete = true;
  51302. var callbacks = this._callbacks;
  51303. if (callbacks === null) {
  51304. return;
  51305. }
  51306. // TODO: Error handling.
  51307. for (var i = 0; i < callbacks.length; i++) {
  51308. var _callback = callbacks[i];
  51309. _callback();
  51310. }
  51311. };
  51312. function ReactWork() {
  51313. this._callbacks = null;
  51314. this._didCommit = false;
  51315. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  51316. // list of Work objects.
  51317. this._onCommit = this._onCommit.bind(this);
  51318. }
  51319. ReactWork.prototype.then = function (onCommit) {
  51320. if (this._didCommit) {
  51321. onCommit();
  51322. return;
  51323. }
  51324. var callbacks = this._callbacks;
  51325. if (callbacks === null) {
  51326. callbacks = this._callbacks = [];
  51327. }
  51328. callbacks.push(onCommit);
  51329. };
  51330. ReactWork.prototype._onCommit = function () {
  51331. if (this._didCommit) {
  51332. return;
  51333. }
  51334. this._didCommit = true;
  51335. var callbacks = this._callbacks;
  51336. if (callbacks === null) {
  51337. return;
  51338. }
  51339. // TODO: Error handling.
  51340. for (var i = 0; i < callbacks.length; i++) {
  51341. var _callback2 = callbacks[i];
  51342. !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;
  51343. _callback2();
  51344. }
  51345. };
  51346. function ReactRoot(container, isConcurrent, hydrate) {
  51347. var root = createContainer(container, isConcurrent, hydrate);
  51348. this._internalRoot = root;
  51349. }
  51350. ReactRoot.prototype.render = function (children, callback) {
  51351. var root = this._internalRoot;
  51352. var work = new ReactWork();
  51353. callback = callback === undefined ? null : callback;
  51354. {
  51355. warnOnInvalidCallback(callback, 'render');
  51356. }
  51357. if (callback !== null) {
  51358. work.then(callback);
  51359. }
  51360. updateContainer(children, root, null, work._onCommit);
  51361. return work;
  51362. };
  51363. ReactRoot.prototype.unmount = function (callback) {
  51364. var root = this._internalRoot;
  51365. var work = new ReactWork();
  51366. callback = callback === undefined ? null : callback;
  51367. {
  51368. warnOnInvalidCallback(callback, 'render');
  51369. }
  51370. if (callback !== null) {
  51371. work.then(callback);
  51372. }
  51373. updateContainer(null, root, null, work._onCommit);
  51374. return work;
  51375. };
  51376. ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {
  51377. var root = this._internalRoot;
  51378. var work = new ReactWork();
  51379. callback = callback === undefined ? null : callback;
  51380. {
  51381. warnOnInvalidCallback(callback, 'render');
  51382. }
  51383. if (callback !== null) {
  51384. work.then(callback);
  51385. }
  51386. updateContainer(children, root, parentComponent, work._onCommit);
  51387. return work;
  51388. };
  51389. ReactRoot.prototype.createBatch = function () {
  51390. var batch = new ReactBatch(this);
  51391. var expirationTime = batch._expirationTime;
  51392. var internalRoot = this._internalRoot;
  51393. var firstBatch = internalRoot.firstBatch;
  51394. if (firstBatch === null) {
  51395. internalRoot.firstBatch = batch;
  51396. batch._next = null;
  51397. } else {
  51398. // Insert sorted by expiration time then insertion order
  51399. var insertAfter = null;
  51400. var insertBefore = firstBatch;
  51401. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  51402. insertAfter = insertBefore;
  51403. insertBefore = insertBefore._next;
  51404. }
  51405. batch._next = insertBefore;
  51406. if (insertAfter !== null) {
  51407. insertAfter._next = batch;
  51408. }
  51409. }
  51410. return batch;
  51411. };
  51412. /**
  51413. * True if the supplied DOM node is a valid node element.
  51414. *
  51415. * @param {?DOMElement} node The candidate DOM node.
  51416. * @return {boolean} True if the DOM is a valid DOM node.
  51417. * @internal
  51418. */
  51419. function isValidContainer(node) {
  51420. 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 '));
  51421. }
  51422. function getReactRootElementInContainer(container) {
  51423. if (!container) {
  51424. return null;
  51425. }
  51426. if (container.nodeType === DOCUMENT_NODE) {
  51427. return container.documentElement;
  51428. } else {
  51429. return container.firstChild;
  51430. }
  51431. }
  51432. function shouldHydrateDueToLegacyHeuristic(container) {
  51433. var rootElement = getReactRootElementInContainer(container);
  51434. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  51435. }
  51436. setBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);
  51437. var warnedAboutHydrateAPI = false;
  51438. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  51439. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  51440. // First clear any existing content.
  51441. if (!shouldHydrate) {
  51442. var warned = false;
  51443. var rootSibling = void 0;
  51444. while (rootSibling = container.lastChild) {
  51445. {
  51446. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  51447. warned = true;
  51448. 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.');
  51449. }
  51450. }
  51451. container.removeChild(rootSibling);
  51452. }
  51453. }
  51454. {
  51455. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  51456. warnedAboutHydrateAPI = true;
  51457. 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.');
  51458. }
  51459. }
  51460. // Legacy roots are not async by default.
  51461. var isConcurrent = false;
  51462. return new ReactRoot(container, isConcurrent, shouldHydrate);
  51463. }
  51464. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  51465. // TODO: Ensure all entry points contain this check
  51466. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  51467. {
  51468. topLevelUpdateWarnings(container);
  51469. }
  51470. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  51471. // member of intersection type." Whyyyyyy.
  51472. var root = container._reactRootContainer;
  51473. if (!root) {
  51474. // Initial mount
  51475. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  51476. if (typeof callback === 'function') {
  51477. var originalCallback = callback;
  51478. callback = function () {
  51479. var instance = getPublicRootInstance(root._internalRoot);
  51480. originalCallback.call(instance);
  51481. };
  51482. }
  51483. // Initial mount should not be batched.
  51484. unbatchedUpdates(function () {
  51485. if (parentComponent != null) {
  51486. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  51487. } else {
  51488. root.render(children, callback);
  51489. }
  51490. });
  51491. } else {
  51492. if (typeof callback === 'function') {
  51493. var _originalCallback = callback;
  51494. callback = function () {
  51495. var instance = getPublicRootInstance(root._internalRoot);
  51496. _originalCallback.call(instance);
  51497. };
  51498. }
  51499. // Update
  51500. if (parentComponent != null) {
  51501. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  51502. } else {
  51503. root.render(children, callback);
  51504. }
  51505. }
  51506. return getPublicRootInstance(root._internalRoot);
  51507. }
  51508. function createPortal(children, container) {
  51509. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  51510. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  51511. // TODO: pass ReactDOM portal implementation as third argument
  51512. return createPortal$1(children, container, null, key);
  51513. }
  51514. var ReactDOM = {
  51515. createPortal: createPortal,
  51516. findDOMNode: function (componentOrElement) {
  51517. {
  51518. var owner = ReactCurrentOwner.current;
  51519. if (owner !== null && owner.stateNode !== null) {
  51520. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  51521. !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;
  51522. owner.stateNode._warnedAboutRefsInRender = true;
  51523. }
  51524. }
  51525. if (componentOrElement == null) {
  51526. return null;
  51527. }
  51528. if (componentOrElement.nodeType === ELEMENT_NODE) {
  51529. return componentOrElement;
  51530. }
  51531. {
  51532. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  51533. }
  51534. return findHostInstance(componentOrElement);
  51535. },
  51536. hydrate: function (element, container, callback) {
  51537. // TODO: throw or warn if we couldn't hydrate?
  51538. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  51539. },
  51540. render: function (element, container, callback) {
  51541. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  51542. },
  51543. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  51544. !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
  51545. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  51546. },
  51547. unmountComponentAtNode: function (container) {
  51548. !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;
  51549. if (container._reactRootContainer) {
  51550. {
  51551. var rootEl = getReactRootElementInContainer(container);
  51552. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  51553. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  51554. }
  51555. // Unmount should not be batched.
  51556. unbatchedUpdates(function () {
  51557. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  51558. container._reactRootContainer = null;
  51559. });
  51560. });
  51561. // If you call unmountComponentAtNode twice in quick succession, you'll
  51562. // get `true` twice. That's probably fine?
  51563. return true;
  51564. } else {
  51565. {
  51566. var _rootEl = getReactRootElementInContainer(container);
  51567. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  51568. // Check if the container itself is a React root node.
  51569. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  51570. !!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;
  51571. }
  51572. return false;
  51573. }
  51574. },
  51575. // Temporary alias since we already shipped React 16 RC with it.
  51576. // TODO: remove in React 17.
  51577. unstable_createPortal: function () {
  51578. if (!didWarnAboutUnstableCreatePortal) {
  51579. didWarnAboutUnstableCreatePortal = true;
  51580. 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.');
  51581. }
  51582. return createPortal.apply(undefined, arguments);
  51583. },
  51584. unstable_batchedUpdates: batchedUpdates$1,
  51585. unstable_interactiveUpdates: interactiveUpdates$1,
  51586. flushSync: flushSync,
  51587. unstable_flushControlled: flushControlled,
  51588. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  51589. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  51590. // and ReactTestUtils.js. This is an array for better minification.
  51591. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]
  51592. }
  51593. };
  51594. function createRoot(container, options) {
  51595. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  51596. !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0;
  51597. var hydrate = options != null && options.hydrate === true;
  51598. return new ReactRoot(container, true, hydrate);
  51599. }
  51600. if (enableStableConcurrentModeAPIs) {
  51601. ReactDOM.createRoot = createRoot;
  51602. } else {
  51603. ReactDOM.unstable_createRoot = createRoot;
  51604. }
  51605. var foundDevTools = injectIntoDevTools({
  51606. findFiberByHostInstance: getClosestInstanceFromNode,
  51607. bundleType: 1,
  51608. version: ReactVersion,
  51609. rendererPackageName: 'react-dom'
  51610. });
  51611. {
  51612. if (!foundDevTools && canUseDOM && window.top === window.self) {
  51613. // If we're in Chrome or Firefox, provide a download link if not installed.
  51614. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  51615. var protocol = window.location.protocol;
  51616. // Don't warn in exotic cases like chrome-extension://.
  51617. if (/^(https?|file):$/.test(protocol)) {
  51618. 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');
  51619. }
  51620. }
  51621. }
  51622. }
  51623. var ReactDOM$2 = Object.freeze({
  51624. default: ReactDOM
  51625. });
  51626. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  51627. // TODO: decide on the top-level export form.
  51628. // This is hacky but makes it work with both Rollup and Jest.
  51629. var reactDom = ReactDOM$3.default || ReactDOM$3;
  51630. module.exports = reactDom;
  51631. })();
  51632. }
  51633. /***/ }),
  51634. /***/ "../../node_modules/react-dom/index.js":
  51635. /*!***********************************************************!*\
  51636. !*** C:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  51637. \***********************************************************/
  51638. /*! no static exports found */
  51639. /***/ (function(module, exports, __webpack_require__) {
  51640. "use strict";
  51641. function checkDCE() {
  51642. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  51643. if (
  51644. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  51645. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  51646. ) {
  51647. return;
  51648. }
  51649. if (true) {
  51650. // This branch is unreachable because this function is only called
  51651. // in production, but the condition is true only in development.
  51652. // Therefore if the branch is still here, dead code elimination wasn't
  51653. // properly applied.
  51654. // Don't change the message. React DevTools relies on it. Also make sure
  51655. // this message doesn't occur elsewhere in this function, or it will cause
  51656. // a false positive.
  51657. throw new Error('^_^');
  51658. }
  51659. try {
  51660. // Verify that the code above has been dead code eliminated (DCE'd).
  51661. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  51662. } catch (err) {
  51663. // DevTools shouldn't crash React, no matter what.
  51664. // We should still report in case we break this code.
  51665. console.error(err);
  51666. }
  51667. }
  51668. if (false) {} else {
  51669. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  51670. }
  51671. /***/ }),
  51672. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  51673. /*!*****************************************************************************!*\
  51674. !*** C:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  51675. \*****************************************************************************/
  51676. /*! no static exports found */
  51677. /***/ (function(module, exports, __webpack_require__) {
  51678. "use strict";
  51679. /** @license React v16.8.6
  51680. * react-is.development.js
  51681. *
  51682. * Copyright (c) Facebook, Inc. and its affiliates.
  51683. *
  51684. * This source code is licensed under the MIT license found in the
  51685. * LICENSE file in the root directory of this source tree.
  51686. */
  51687. if (true) {
  51688. (function() {
  51689. 'use strict';
  51690. Object.defineProperty(exports, '__esModule', { value: true });
  51691. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  51692. // nor polyfill, then a plain number is used for performance.
  51693. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  51694. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  51695. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  51696. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  51697. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  51698. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  51699. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  51700. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  51701. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  51702. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  51703. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  51704. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  51705. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  51706. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  51707. function isValidElementType(type) {
  51708. return typeof type === 'string' || typeof type === 'function' ||
  51709. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  51710. 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);
  51711. }
  51712. /**
  51713. * Forked from fbjs/warning:
  51714. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  51715. *
  51716. * Only change is we use console.warn instead of console.error,
  51717. * and do nothing when 'console' is not supported.
  51718. * This really simplifies the code.
  51719. * ---
  51720. * Similar to invariant but only logs a warning if the condition is not met.
  51721. * This can be used to log issues in development environments in critical
  51722. * paths. Removing the logging code for production environments will keep the
  51723. * same logic and follow the same code paths.
  51724. */
  51725. var lowPriorityWarning = function () {};
  51726. {
  51727. var printWarning = function (format) {
  51728. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  51729. args[_key - 1] = arguments[_key];
  51730. }
  51731. var argIndex = 0;
  51732. var message = 'Warning: ' + format.replace(/%s/g, function () {
  51733. return args[argIndex++];
  51734. });
  51735. if (typeof console !== 'undefined') {
  51736. console.warn(message);
  51737. }
  51738. try {
  51739. // --- Welcome to debugging React ---
  51740. // This error was thrown as a convenience so that you can use this stack
  51741. // to find the callsite that caused this warning to fire.
  51742. throw new Error(message);
  51743. } catch (x) {}
  51744. };
  51745. lowPriorityWarning = function (condition, format) {
  51746. if (format === undefined) {
  51747. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  51748. }
  51749. if (!condition) {
  51750. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  51751. args[_key2 - 2] = arguments[_key2];
  51752. }
  51753. printWarning.apply(undefined, [format].concat(args));
  51754. }
  51755. };
  51756. }
  51757. var lowPriorityWarning$1 = lowPriorityWarning;
  51758. function typeOf(object) {
  51759. if (typeof object === 'object' && object !== null) {
  51760. var $$typeof = object.$$typeof;
  51761. switch ($$typeof) {
  51762. case REACT_ELEMENT_TYPE:
  51763. var type = object.type;
  51764. switch (type) {
  51765. case REACT_ASYNC_MODE_TYPE:
  51766. case REACT_CONCURRENT_MODE_TYPE:
  51767. case REACT_FRAGMENT_TYPE:
  51768. case REACT_PROFILER_TYPE:
  51769. case REACT_STRICT_MODE_TYPE:
  51770. case REACT_SUSPENSE_TYPE:
  51771. return type;
  51772. default:
  51773. var $$typeofType = type && type.$$typeof;
  51774. switch ($$typeofType) {
  51775. case REACT_CONTEXT_TYPE:
  51776. case REACT_FORWARD_REF_TYPE:
  51777. case REACT_PROVIDER_TYPE:
  51778. return $$typeofType;
  51779. default:
  51780. return $$typeof;
  51781. }
  51782. }
  51783. case REACT_LAZY_TYPE:
  51784. case REACT_MEMO_TYPE:
  51785. case REACT_PORTAL_TYPE:
  51786. return $$typeof;
  51787. }
  51788. }
  51789. return undefined;
  51790. }
  51791. // AsyncMode is deprecated along with isAsyncMode
  51792. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  51793. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  51794. var ContextConsumer = REACT_CONTEXT_TYPE;
  51795. var ContextProvider = REACT_PROVIDER_TYPE;
  51796. var Element = REACT_ELEMENT_TYPE;
  51797. var ForwardRef = REACT_FORWARD_REF_TYPE;
  51798. var Fragment = REACT_FRAGMENT_TYPE;
  51799. var Lazy = REACT_LAZY_TYPE;
  51800. var Memo = REACT_MEMO_TYPE;
  51801. var Portal = REACT_PORTAL_TYPE;
  51802. var Profiler = REACT_PROFILER_TYPE;
  51803. var StrictMode = REACT_STRICT_MODE_TYPE;
  51804. var Suspense = REACT_SUSPENSE_TYPE;
  51805. var hasWarnedAboutDeprecatedIsAsyncMode = false;
  51806. // AsyncMode should be deprecated
  51807. function isAsyncMode(object) {
  51808. {
  51809. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  51810. hasWarnedAboutDeprecatedIsAsyncMode = true;
  51811. lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
  51812. }
  51813. }
  51814. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  51815. }
  51816. function isConcurrentMode(object) {
  51817. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  51818. }
  51819. function isContextConsumer(object) {
  51820. return typeOf(object) === REACT_CONTEXT_TYPE;
  51821. }
  51822. function isContextProvider(object) {
  51823. return typeOf(object) === REACT_PROVIDER_TYPE;
  51824. }
  51825. function isElement(object) {
  51826. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  51827. }
  51828. function isForwardRef(object) {
  51829. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  51830. }
  51831. function isFragment(object) {
  51832. return typeOf(object) === REACT_FRAGMENT_TYPE;
  51833. }
  51834. function isLazy(object) {
  51835. return typeOf(object) === REACT_LAZY_TYPE;
  51836. }
  51837. function isMemo(object) {
  51838. return typeOf(object) === REACT_MEMO_TYPE;
  51839. }
  51840. function isPortal(object) {
  51841. return typeOf(object) === REACT_PORTAL_TYPE;
  51842. }
  51843. function isProfiler(object) {
  51844. return typeOf(object) === REACT_PROFILER_TYPE;
  51845. }
  51846. function isStrictMode(object) {
  51847. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  51848. }
  51849. function isSuspense(object) {
  51850. return typeOf(object) === REACT_SUSPENSE_TYPE;
  51851. }
  51852. exports.typeOf = typeOf;
  51853. exports.AsyncMode = AsyncMode;
  51854. exports.ConcurrentMode = ConcurrentMode;
  51855. exports.ContextConsumer = ContextConsumer;
  51856. exports.ContextProvider = ContextProvider;
  51857. exports.Element = Element;
  51858. exports.ForwardRef = ForwardRef;
  51859. exports.Fragment = Fragment;
  51860. exports.Lazy = Lazy;
  51861. exports.Memo = Memo;
  51862. exports.Portal = Portal;
  51863. exports.Profiler = Profiler;
  51864. exports.StrictMode = StrictMode;
  51865. exports.Suspense = Suspense;
  51866. exports.isValidElementType = isValidElementType;
  51867. exports.isAsyncMode = isAsyncMode;
  51868. exports.isConcurrentMode = isConcurrentMode;
  51869. exports.isContextConsumer = isContextConsumer;
  51870. exports.isContextProvider = isContextProvider;
  51871. exports.isElement = isElement;
  51872. exports.isForwardRef = isForwardRef;
  51873. exports.isFragment = isFragment;
  51874. exports.isLazy = isLazy;
  51875. exports.isMemo = isMemo;
  51876. exports.isPortal = isPortal;
  51877. exports.isProfiler = isProfiler;
  51878. exports.isStrictMode = isStrictMode;
  51879. exports.isSuspense = isSuspense;
  51880. })();
  51881. }
  51882. /***/ }),
  51883. /***/ "../../node_modules/react-is/index.js":
  51884. /*!**********************************************************!*\
  51885. !*** C:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  51886. \**********************************************************/
  51887. /*! no static exports found */
  51888. /***/ (function(module, exports, __webpack_require__) {
  51889. "use strict";
  51890. if (false) {} else {
  51891. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  51892. }
  51893. /***/ }),
  51894. /***/ "../../node_modules/react/cjs/react.development.js":
  51895. /*!***********************************************************************!*\
  51896. !*** C:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  51897. \***********************************************************************/
  51898. /*! no static exports found */
  51899. /***/ (function(module, exports, __webpack_require__) {
  51900. "use strict";
  51901. /** @license React v16.6.1
  51902. * react.development.js
  51903. *
  51904. * Copyright (c) Facebook, Inc. and its affiliates.
  51905. *
  51906. * This source code is licensed under the MIT license found in the
  51907. * LICENSE file in the root directory of this source tree.
  51908. */
  51909. if (true) {
  51910. (function() {
  51911. 'use strict';
  51912. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  51913. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  51914. // TODO: this is special because it gets imported during build.
  51915. var ReactVersion = '16.6.3';
  51916. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  51917. // nor polyfill, then a plain number is used for performance.
  51918. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  51919. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  51920. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  51921. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  51922. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  51923. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  51924. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  51925. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  51926. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  51927. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  51928. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  51929. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  51930. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  51931. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  51932. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  51933. function getIteratorFn(maybeIterable) {
  51934. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  51935. return null;
  51936. }
  51937. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  51938. if (typeof maybeIterator === 'function') {
  51939. return maybeIterator;
  51940. }
  51941. return null;
  51942. }
  51943. var enableHooks = false;
  51944. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  51945. // In some cases, StrictMode should also double-render lifecycles.
  51946. // This can be confusing for tests though,
  51947. // And it can be bad for performance in production.
  51948. // This feature flag can be used to control the behavior:
  51949. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  51950. // replay the begin phase of a failed component inside invokeGuardedCallback.
  51951. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  51952. // Gather advanced timing metrics for Profiler subtrees.
  51953. // Trace which interactions trigger each commit.
  51954. // Only used in www builds.
  51955. // Only used in www builds.
  51956. // React Fire: prevent the value and checked attributes from syncing
  51957. // with their related DOM properties
  51958. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  51959. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  51960. var enableStableConcurrentModeAPIs = false;
  51961. /**
  51962. * Use invariant() to assert state which your program assumes to be true.
  51963. *
  51964. * Provide sprintf-style format (only %s is supported) and arguments
  51965. * to provide information about what broke and what you were
  51966. * expecting.
  51967. *
  51968. * The invariant message will be stripped in production, but the invariant
  51969. * will remain to ensure logic does not differ in production.
  51970. */
  51971. var validateFormat = function () {};
  51972. {
  51973. validateFormat = function (format) {
  51974. if (format === undefined) {
  51975. throw new Error('invariant requires an error message argument');
  51976. }
  51977. };
  51978. }
  51979. function invariant(condition, format, a, b, c, d, e, f) {
  51980. validateFormat(format);
  51981. if (!condition) {
  51982. var error = void 0;
  51983. if (format === undefined) {
  51984. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  51985. } else {
  51986. var args = [a, b, c, d, e, f];
  51987. var argIndex = 0;
  51988. error = new Error(format.replace(/%s/g, function () {
  51989. return args[argIndex++];
  51990. }));
  51991. error.name = 'Invariant Violation';
  51992. }
  51993. error.framesToPop = 1; // we don't care about invariant's own frame
  51994. throw error;
  51995. }
  51996. }
  51997. // Relying on the `invariant()` implementation lets us
  51998. // preserve the format and params in the www builds.
  51999. /**
  52000. * Forked from fbjs/warning:
  52001. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  52002. *
  52003. * Only change is we use console.warn instead of console.error,
  52004. * and do nothing when 'console' is not supported.
  52005. * This really simplifies the code.
  52006. * ---
  52007. * Similar to invariant but only logs a warning if the condition is not met.
  52008. * This can be used to log issues in development environments in critical
  52009. * paths. Removing the logging code for production environments will keep the
  52010. * same logic and follow the same code paths.
  52011. */
  52012. var lowPriorityWarning = function () {};
  52013. {
  52014. var printWarning = function (format) {
  52015. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  52016. args[_key - 1] = arguments[_key];
  52017. }
  52018. var argIndex = 0;
  52019. var message = 'Warning: ' + format.replace(/%s/g, function () {
  52020. return args[argIndex++];
  52021. });
  52022. if (typeof console !== 'undefined') {
  52023. console.warn(message);
  52024. }
  52025. try {
  52026. // --- Welcome to debugging React ---
  52027. // This error was thrown as a convenience so that you can use this stack
  52028. // to find the callsite that caused this warning to fire.
  52029. throw new Error(message);
  52030. } catch (x) {}
  52031. };
  52032. lowPriorityWarning = function (condition, format) {
  52033. if (format === undefined) {
  52034. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  52035. }
  52036. if (!condition) {
  52037. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  52038. args[_key2 - 2] = arguments[_key2];
  52039. }
  52040. printWarning.apply(undefined, [format].concat(args));
  52041. }
  52042. };
  52043. }
  52044. var lowPriorityWarning$1 = lowPriorityWarning;
  52045. /**
  52046. * Similar to invariant but only logs a warning if the condition is not met.
  52047. * This can be used to log issues in development environments in critical
  52048. * paths. Removing the logging code for production environments will keep the
  52049. * same logic and follow the same code paths.
  52050. */
  52051. var warningWithoutStack = function () {};
  52052. {
  52053. warningWithoutStack = function (condition, format) {
  52054. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  52055. args[_key - 2] = arguments[_key];
  52056. }
  52057. if (format === undefined) {
  52058. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  52059. }
  52060. if (args.length > 8) {
  52061. // Check before the condition to catch violations early.
  52062. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  52063. }
  52064. if (condition) {
  52065. return;
  52066. }
  52067. if (typeof console !== 'undefined') {
  52068. var argsWithFormat = args.map(function (item) {
  52069. return '' + item;
  52070. });
  52071. argsWithFormat.unshift('Warning: ' + format);
  52072. // We intentionally don't use spread (or .apply) directly because it
  52073. // breaks IE9: https://github.com/facebook/react/issues/13610
  52074. Function.prototype.apply.call(console.error, console, argsWithFormat);
  52075. }
  52076. try {
  52077. // --- Welcome to debugging React ---
  52078. // This error was thrown as a convenience so that you can use this stack
  52079. // to find the callsite that caused this warning to fire.
  52080. var argIndex = 0;
  52081. var message = 'Warning: ' + format.replace(/%s/g, function () {
  52082. return args[argIndex++];
  52083. });
  52084. throw new Error(message);
  52085. } catch (x) {}
  52086. };
  52087. }
  52088. var warningWithoutStack$1 = warningWithoutStack;
  52089. var didWarnStateUpdateForUnmountedComponent = {};
  52090. function warnNoop(publicInstance, callerName) {
  52091. {
  52092. var _constructor = publicInstance.constructor;
  52093. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  52094. var warningKey = componentName + '.' + callerName;
  52095. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  52096. return;
  52097. }
  52098. 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);
  52099. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  52100. }
  52101. }
  52102. /**
  52103. * This is the abstract API for an update queue.
  52104. */
  52105. var ReactNoopUpdateQueue = {
  52106. /**
  52107. * Checks whether or not this composite component is mounted.
  52108. * @param {ReactClass} publicInstance The instance we want to test.
  52109. * @return {boolean} True if mounted, false otherwise.
  52110. * @protected
  52111. * @final
  52112. */
  52113. isMounted: function (publicInstance) {
  52114. return false;
  52115. },
  52116. /**
  52117. * Forces an update. This should only be invoked when it is known with
  52118. * certainty that we are **not** in a DOM transaction.
  52119. *
  52120. * You may want to call this when you know that some deeper aspect of the
  52121. * component's state has changed but `setState` was not called.
  52122. *
  52123. * This will not invoke `shouldComponentUpdate`, but it will invoke
  52124. * `componentWillUpdate` and `componentDidUpdate`.
  52125. *
  52126. * @param {ReactClass} publicInstance The instance that should rerender.
  52127. * @param {?function} callback Called after component is updated.
  52128. * @param {?string} callerName name of the calling function in the public API.
  52129. * @internal
  52130. */
  52131. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  52132. warnNoop(publicInstance, 'forceUpdate');
  52133. },
  52134. /**
  52135. * Replaces all of the state. Always use this or `setState` to mutate state.
  52136. * You should treat `this.state` as immutable.
  52137. *
  52138. * There is no guarantee that `this.state` will be immediately updated, so
  52139. * accessing `this.state` after calling this method may return the old value.
  52140. *
  52141. * @param {ReactClass} publicInstance The instance that should rerender.
  52142. * @param {object} completeState Next state.
  52143. * @param {?function} callback Called after component is updated.
  52144. * @param {?string} callerName name of the calling function in the public API.
  52145. * @internal
  52146. */
  52147. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  52148. warnNoop(publicInstance, 'replaceState');
  52149. },
  52150. /**
  52151. * Sets a subset of the state. This only exists because _pendingState is
  52152. * internal. This provides a merging strategy that is not available to deep
  52153. * properties which is confusing. TODO: Expose pendingState or don't use it
  52154. * during the merge.
  52155. *
  52156. * @param {ReactClass} publicInstance The instance that should rerender.
  52157. * @param {object} partialState Next partial state to be merged with state.
  52158. * @param {?function} callback Called after component is updated.
  52159. * @param {?string} Name of the calling function in the public API.
  52160. * @internal
  52161. */
  52162. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  52163. warnNoop(publicInstance, 'setState');
  52164. }
  52165. };
  52166. var emptyObject = {};
  52167. {
  52168. Object.freeze(emptyObject);
  52169. }
  52170. /**
  52171. * Base class helpers for the updating state of a component.
  52172. */
  52173. function Component(props, context, updater) {
  52174. this.props = props;
  52175. this.context = context;
  52176. // If a component has string refs, we will assign a different object later.
  52177. this.refs = emptyObject;
  52178. // We initialize the default updater but the real one gets injected by the
  52179. // renderer.
  52180. this.updater = updater || ReactNoopUpdateQueue;
  52181. }
  52182. Component.prototype.isReactComponent = {};
  52183. /**
  52184. * Sets a subset of the state. Always use this to mutate
  52185. * state. You should treat `this.state` as immutable.
  52186. *
  52187. * There is no guarantee that `this.state` will be immediately updated, so
  52188. * accessing `this.state` after calling this method may return the old value.
  52189. *
  52190. * There is no guarantee that calls to `setState` will run synchronously,
  52191. * as they may eventually be batched together. You can provide an optional
  52192. * callback that will be executed when the call to setState is actually
  52193. * completed.
  52194. *
  52195. * When a function is provided to setState, it will be called at some point in
  52196. * the future (not synchronously). It will be called with the up to date
  52197. * component arguments (state, props, context). These values can be different
  52198. * from this.* because your function may be called after receiveProps but before
  52199. * shouldComponentUpdate, and this new state, props, and context will not yet be
  52200. * assigned to this.
  52201. *
  52202. * @param {object|function} partialState Next partial state or function to
  52203. * produce next partial state to be merged with current state.
  52204. * @param {?function} callback Called after state is updated.
  52205. * @final
  52206. * @protected
  52207. */
  52208. Component.prototype.setState = function (partialState, callback) {
  52209. !(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;
  52210. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  52211. };
  52212. /**
  52213. * Forces an update. This should only be invoked when it is known with
  52214. * certainty that we are **not** in a DOM transaction.
  52215. *
  52216. * You may want to call this when you know that some deeper aspect of the
  52217. * component's state has changed but `setState` was not called.
  52218. *
  52219. * This will not invoke `shouldComponentUpdate`, but it will invoke
  52220. * `componentWillUpdate` and `componentDidUpdate`.
  52221. *
  52222. * @param {?function} callback Called after update is complete.
  52223. * @final
  52224. * @protected
  52225. */
  52226. Component.prototype.forceUpdate = function (callback) {
  52227. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  52228. };
  52229. /**
  52230. * Deprecated APIs. These APIs used to exist on classic React classes but since
  52231. * we would like to deprecate them, we're not going to move them over to this
  52232. * modern base class. Instead, we define a getter that warns if it's accessed.
  52233. */
  52234. {
  52235. var deprecatedAPIs = {
  52236. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  52237. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  52238. };
  52239. var defineDeprecationWarning = function (methodName, info) {
  52240. Object.defineProperty(Component.prototype, methodName, {
  52241. get: function () {
  52242. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  52243. return undefined;
  52244. }
  52245. });
  52246. };
  52247. for (var fnName in deprecatedAPIs) {
  52248. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  52249. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  52250. }
  52251. }
  52252. }
  52253. function ComponentDummy() {}
  52254. ComponentDummy.prototype = Component.prototype;
  52255. /**
  52256. * Convenience component with default shallow equality check for sCU.
  52257. */
  52258. function PureComponent(props, context, updater) {
  52259. this.props = props;
  52260. this.context = context;
  52261. // If a component has string refs, we will assign a different object later.
  52262. this.refs = emptyObject;
  52263. this.updater = updater || ReactNoopUpdateQueue;
  52264. }
  52265. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  52266. pureComponentPrototype.constructor = PureComponent;
  52267. // Avoid an extra prototype jump for these methods.
  52268. _assign(pureComponentPrototype, Component.prototype);
  52269. pureComponentPrototype.isPureReactComponent = true;
  52270. // an immutable object with a single mutable value
  52271. function createRef() {
  52272. var refObject = {
  52273. current: null
  52274. };
  52275. {
  52276. Object.seal(refObject);
  52277. }
  52278. return refObject;
  52279. }
  52280. /**
  52281. * Keeps track of the current owner.
  52282. *
  52283. * The current owner is the component who should own any components that are
  52284. * currently being constructed.
  52285. */
  52286. var ReactCurrentOwner = {
  52287. /**
  52288. * @internal
  52289. * @type {ReactComponent}
  52290. */
  52291. current: null,
  52292. currentDispatcher: null
  52293. };
  52294. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  52295. var describeComponentFrame = function (name, source, ownerName) {
  52296. var sourceInfo = '';
  52297. if (source) {
  52298. var path = source.fileName;
  52299. var fileName = path.replace(BEFORE_SLASH_RE, '');
  52300. {
  52301. // In DEV, include code for a common special case:
  52302. // prefer "folder/index.js" instead of just "index.js".
  52303. if (/^index\./.test(fileName)) {
  52304. var match = path.match(BEFORE_SLASH_RE);
  52305. if (match) {
  52306. var pathBeforeSlash = match[1];
  52307. if (pathBeforeSlash) {
  52308. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  52309. fileName = folderName + '/' + fileName;
  52310. }
  52311. }
  52312. }
  52313. }
  52314. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  52315. } else if (ownerName) {
  52316. sourceInfo = ' (created by ' + ownerName + ')';
  52317. }
  52318. return '\n in ' + (name || 'Unknown') + sourceInfo;
  52319. };
  52320. var Resolved = 1;
  52321. function refineResolvedLazyComponent(lazyComponent) {
  52322. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  52323. }
  52324. function getWrappedName(outerType, innerType, wrapperName) {
  52325. var functionName = innerType.displayName || innerType.name || '';
  52326. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  52327. }
  52328. function getComponentName(type) {
  52329. if (type == null) {
  52330. // Host root, text node or just invalid type.
  52331. return null;
  52332. }
  52333. {
  52334. if (typeof type.tag === 'number') {
  52335. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  52336. }
  52337. }
  52338. if (typeof type === 'function') {
  52339. return type.displayName || type.name || null;
  52340. }
  52341. if (typeof type === 'string') {
  52342. return type;
  52343. }
  52344. switch (type) {
  52345. case REACT_CONCURRENT_MODE_TYPE:
  52346. return 'ConcurrentMode';
  52347. case REACT_FRAGMENT_TYPE:
  52348. return 'Fragment';
  52349. case REACT_PORTAL_TYPE:
  52350. return 'Portal';
  52351. case REACT_PROFILER_TYPE:
  52352. return 'Profiler';
  52353. case REACT_STRICT_MODE_TYPE:
  52354. return 'StrictMode';
  52355. case REACT_SUSPENSE_TYPE:
  52356. return 'Suspense';
  52357. }
  52358. if (typeof type === 'object') {
  52359. switch (type.$$typeof) {
  52360. case REACT_CONTEXT_TYPE:
  52361. return 'Context.Consumer';
  52362. case REACT_PROVIDER_TYPE:
  52363. return 'Context.Provider';
  52364. case REACT_FORWARD_REF_TYPE:
  52365. return getWrappedName(type, type.render, 'ForwardRef');
  52366. case REACT_MEMO_TYPE:
  52367. return getComponentName(type.type);
  52368. case REACT_LAZY_TYPE:
  52369. {
  52370. var thenable = type;
  52371. var resolvedThenable = refineResolvedLazyComponent(thenable);
  52372. if (resolvedThenable) {
  52373. return getComponentName(resolvedThenable);
  52374. }
  52375. }
  52376. }
  52377. }
  52378. return null;
  52379. }
  52380. var ReactDebugCurrentFrame = {};
  52381. var currentlyValidatingElement = null;
  52382. function setCurrentlyValidatingElement(element) {
  52383. {
  52384. currentlyValidatingElement = element;
  52385. }
  52386. }
  52387. {
  52388. // Stack implementation injected by the current renderer.
  52389. ReactDebugCurrentFrame.getCurrentStack = null;
  52390. ReactDebugCurrentFrame.getStackAddendum = function () {
  52391. var stack = '';
  52392. // Add an extra top frame while an element is being validated
  52393. if (currentlyValidatingElement) {
  52394. var name = getComponentName(currentlyValidatingElement.type);
  52395. var owner = currentlyValidatingElement._owner;
  52396. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  52397. }
  52398. // Delegate to the injected renderer-specific implementation
  52399. var impl = ReactDebugCurrentFrame.getCurrentStack;
  52400. if (impl) {
  52401. stack += impl() || '';
  52402. }
  52403. return stack;
  52404. };
  52405. }
  52406. var ReactSharedInternals = {
  52407. ReactCurrentOwner: ReactCurrentOwner,
  52408. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  52409. assign: _assign
  52410. };
  52411. {
  52412. _assign(ReactSharedInternals, {
  52413. // These should not be included in production.
  52414. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  52415. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  52416. // TODO: remove in React 17.0.
  52417. ReactComponentTreeHook: {}
  52418. });
  52419. }
  52420. /**
  52421. * Similar to invariant but only logs a warning if the condition is not met.
  52422. * This can be used to log issues in development environments in critical
  52423. * paths. Removing the logging code for production environments will keep the
  52424. * same logic and follow the same code paths.
  52425. */
  52426. var warning = warningWithoutStack$1;
  52427. {
  52428. warning = function (condition, format) {
  52429. if (condition) {
  52430. return;
  52431. }
  52432. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  52433. var stack = ReactDebugCurrentFrame.getStackAddendum();
  52434. // eslint-disable-next-line react-internal/warning-and-invariant-args
  52435. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  52436. args[_key - 2] = arguments[_key];
  52437. }
  52438. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  52439. };
  52440. }
  52441. var warning$1 = warning;
  52442. var hasOwnProperty = Object.prototype.hasOwnProperty;
  52443. var RESERVED_PROPS = {
  52444. key: true,
  52445. ref: true,
  52446. __self: true,
  52447. __source: true
  52448. };
  52449. var specialPropKeyWarningShown = void 0;
  52450. var specialPropRefWarningShown = void 0;
  52451. function hasValidRef(config) {
  52452. {
  52453. if (hasOwnProperty.call(config, 'ref')) {
  52454. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  52455. if (getter && getter.isReactWarning) {
  52456. return false;
  52457. }
  52458. }
  52459. }
  52460. return config.ref !== undefined;
  52461. }
  52462. function hasValidKey(config) {
  52463. {
  52464. if (hasOwnProperty.call(config, 'key')) {
  52465. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  52466. if (getter && getter.isReactWarning) {
  52467. return false;
  52468. }
  52469. }
  52470. }
  52471. return config.key !== undefined;
  52472. }
  52473. function defineKeyPropWarningGetter(props, displayName) {
  52474. var warnAboutAccessingKey = function () {
  52475. if (!specialPropKeyWarningShown) {
  52476. specialPropKeyWarningShown = true;
  52477. 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);
  52478. }
  52479. };
  52480. warnAboutAccessingKey.isReactWarning = true;
  52481. Object.defineProperty(props, 'key', {
  52482. get: warnAboutAccessingKey,
  52483. configurable: true
  52484. });
  52485. }
  52486. function defineRefPropWarningGetter(props, displayName) {
  52487. var warnAboutAccessingRef = function () {
  52488. if (!specialPropRefWarningShown) {
  52489. specialPropRefWarningShown = true;
  52490. 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);
  52491. }
  52492. };
  52493. warnAboutAccessingRef.isReactWarning = true;
  52494. Object.defineProperty(props, 'ref', {
  52495. get: warnAboutAccessingRef,
  52496. configurable: true
  52497. });
  52498. }
  52499. /**
  52500. * Factory method to create a new React element. This no longer adheres to
  52501. * the class pattern, so do not use new to call it. Also, no instanceof check
  52502. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  52503. * if something is a React Element.
  52504. *
  52505. * @param {*} type
  52506. * @param {*} key
  52507. * @param {string|object} ref
  52508. * @param {*} self A *temporary* helper to detect places where `this` is
  52509. * different from the `owner` when React.createElement is called, so that we
  52510. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  52511. * functions, and as long as `this` and owner are the same, there will be no
  52512. * change in behavior.
  52513. * @param {*} source An annotation object (added by a transpiler or otherwise)
  52514. * indicating filename, line number, and/or other information.
  52515. * @param {*} owner
  52516. * @param {*} props
  52517. * @internal
  52518. */
  52519. var ReactElement = function (type, key, ref, self, source, owner, props) {
  52520. var element = {
  52521. // This tag allows us to uniquely identify this as a React Element
  52522. $$typeof: REACT_ELEMENT_TYPE,
  52523. // Built-in properties that belong on the element
  52524. type: type,
  52525. key: key,
  52526. ref: ref,
  52527. props: props,
  52528. // Record the component responsible for creating this element.
  52529. _owner: owner
  52530. };
  52531. {
  52532. // The validation flag is currently mutative. We put it on
  52533. // an external backing store so that we can freeze the whole object.
  52534. // This can be replaced with a WeakMap once they are implemented in
  52535. // commonly used development environments.
  52536. element._store = {};
  52537. // To make comparing ReactElements easier for testing purposes, we make
  52538. // the validation flag non-enumerable (where possible, which should
  52539. // include every environment we run tests in), so the test framework
  52540. // ignores it.
  52541. Object.defineProperty(element._store, 'validated', {
  52542. configurable: false,
  52543. enumerable: false,
  52544. writable: true,
  52545. value: false
  52546. });
  52547. // self and source are DEV only properties.
  52548. Object.defineProperty(element, '_self', {
  52549. configurable: false,
  52550. enumerable: false,
  52551. writable: false,
  52552. value: self
  52553. });
  52554. // Two elements created in two different places should be considered
  52555. // equal for testing purposes and therefore we hide it from enumeration.
  52556. Object.defineProperty(element, '_source', {
  52557. configurable: false,
  52558. enumerable: false,
  52559. writable: false,
  52560. value: source
  52561. });
  52562. if (Object.freeze) {
  52563. Object.freeze(element.props);
  52564. Object.freeze(element);
  52565. }
  52566. }
  52567. return element;
  52568. };
  52569. /**
  52570. * Create and return a new ReactElement of the given type.
  52571. * See https://reactjs.org/docs/react-api.html#createelement
  52572. */
  52573. function createElement(type, config, children) {
  52574. var propName = void 0;
  52575. // Reserved names are extracted
  52576. var props = {};
  52577. var key = null;
  52578. var ref = null;
  52579. var self = null;
  52580. var source = null;
  52581. if (config != null) {
  52582. if (hasValidRef(config)) {
  52583. ref = config.ref;
  52584. }
  52585. if (hasValidKey(config)) {
  52586. key = '' + config.key;
  52587. }
  52588. self = config.__self === undefined ? null : config.__self;
  52589. source = config.__source === undefined ? null : config.__source;
  52590. // Remaining properties are added to a new props object
  52591. for (propName in config) {
  52592. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  52593. props[propName] = config[propName];
  52594. }
  52595. }
  52596. }
  52597. // Children can be more than one argument, and those are transferred onto
  52598. // the newly allocated props object.
  52599. var childrenLength = arguments.length - 2;
  52600. if (childrenLength === 1) {
  52601. props.children = children;
  52602. } else if (childrenLength > 1) {
  52603. var childArray = Array(childrenLength);
  52604. for (var i = 0; i < childrenLength; i++) {
  52605. childArray[i] = arguments[i + 2];
  52606. }
  52607. {
  52608. if (Object.freeze) {
  52609. Object.freeze(childArray);
  52610. }
  52611. }
  52612. props.children = childArray;
  52613. }
  52614. // Resolve default props
  52615. if (type && type.defaultProps) {
  52616. var defaultProps = type.defaultProps;
  52617. for (propName in defaultProps) {
  52618. if (props[propName] === undefined) {
  52619. props[propName] = defaultProps[propName];
  52620. }
  52621. }
  52622. }
  52623. {
  52624. if (key || ref) {
  52625. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  52626. if (key) {
  52627. defineKeyPropWarningGetter(props, displayName);
  52628. }
  52629. if (ref) {
  52630. defineRefPropWarningGetter(props, displayName);
  52631. }
  52632. }
  52633. }
  52634. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  52635. }
  52636. /**
  52637. * Return a function that produces ReactElements of a given type.
  52638. * See https://reactjs.org/docs/react-api.html#createfactory
  52639. */
  52640. function cloneAndReplaceKey(oldElement, newKey) {
  52641. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  52642. return newElement;
  52643. }
  52644. /**
  52645. * Clone and return a new ReactElement using element as the starting point.
  52646. * See https://reactjs.org/docs/react-api.html#cloneelement
  52647. */
  52648. function cloneElement(element, config, children) {
  52649. !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
  52650. var propName = void 0;
  52651. // Original props are copied
  52652. var props = _assign({}, element.props);
  52653. // Reserved names are extracted
  52654. var key = element.key;
  52655. var ref = element.ref;
  52656. // Self is preserved since the owner is preserved.
  52657. var self = element._self;
  52658. // Source is preserved since cloneElement is unlikely to be targeted by a
  52659. // transpiler, and the original source is probably a better indicator of the
  52660. // true owner.
  52661. var source = element._source;
  52662. // Owner will be preserved, unless ref is overridden
  52663. var owner = element._owner;
  52664. if (config != null) {
  52665. if (hasValidRef(config)) {
  52666. // Silently steal the ref from the parent.
  52667. ref = config.ref;
  52668. owner = ReactCurrentOwner.current;
  52669. }
  52670. if (hasValidKey(config)) {
  52671. key = '' + config.key;
  52672. }
  52673. // Remaining properties override existing props
  52674. var defaultProps = void 0;
  52675. if (element.type && element.type.defaultProps) {
  52676. defaultProps = element.type.defaultProps;
  52677. }
  52678. for (propName in config) {
  52679. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  52680. if (config[propName] === undefined && defaultProps !== undefined) {
  52681. // Resolve default props
  52682. props[propName] = defaultProps[propName];
  52683. } else {
  52684. props[propName] = config[propName];
  52685. }
  52686. }
  52687. }
  52688. }
  52689. // Children can be more than one argument, and those are transferred onto
  52690. // the newly allocated props object.
  52691. var childrenLength = arguments.length - 2;
  52692. if (childrenLength === 1) {
  52693. props.children = children;
  52694. } else if (childrenLength > 1) {
  52695. var childArray = Array(childrenLength);
  52696. for (var i = 0; i < childrenLength; i++) {
  52697. childArray[i] = arguments[i + 2];
  52698. }
  52699. props.children = childArray;
  52700. }
  52701. return ReactElement(element.type, key, ref, self, source, owner, props);
  52702. }
  52703. /**
  52704. * Verifies the object is a ReactElement.
  52705. * See https://reactjs.org/docs/react-api.html#isvalidelement
  52706. * @param {?object} object
  52707. * @return {boolean} True if `object` is a ReactElement.
  52708. * @final
  52709. */
  52710. function isValidElement(object) {
  52711. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  52712. }
  52713. var SEPARATOR = '.';
  52714. var SUBSEPARATOR = ':';
  52715. /**
  52716. * Escape and wrap key so it is safe to use as a reactid
  52717. *
  52718. * @param {string} key to be escaped.
  52719. * @return {string} the escaped key.
  52720. */
  52721. function escape(key) {
  52722. var escapeRegex = /[=:]/g;
  52723. var escaperLookup = {
  52724. '=': '=0',
  52725. ':': '=2'
  52726. };
  52727. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  52728. return escaperLookup[match];
  52729. });
  52730. return '$' + escapedString;
  52731. }
  52732. /**
  52733. * TODO: Test that a single child and an array with one item have the same key
  52734. * pattern.
  52735. */
  52736. var didWarnAboutMaps = false;
  52737. var userProvidedKeyEscapeRegex = /\/+/g;
  52738. function escapeUserProvidedKey(text) {
  52739. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  52740. }
  52741. var POOL_SIZE = 10;
  52742. var traverseContextPool = [];
  52743. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  52744. if (traverseContextPool.length) {
  52745. var traverseContext = traverseContextPool.pop();
  52746. traverseContext.result = mapResult;
  52747. traverseContext.keyPrefix = keyPrefix;
  52748. traverseContext.func = mapFunction;
  52749. traverseContext.context = mapContext;
  52750. traverseContext.count = 0;
  52751. return traverseContext;
  52752. } else {
  52753. return {
  52754. result: mapResult,
  52755. keyPrefix: keyPrefix,
  52756. func: mapFunction,
  52757. context: mapContext,
  52758. count: 0
  52759. };
  52760. }
  52761. }
  52762. function releaseTraverseContext(traverseContext) {
  52763. traverseContext.result = null;
  52764. traverseContext.keyPrefix = null;
  52765. traverseContext.func = null;
  52766. traverseContext.context = null;
  52767. traverseContext.count = 0;
  52768. if (traverseContextPool.length < POOL_SIZE) {
  52769. traverseContextPool.push(traverseContext);
  52770. }
  52771. }
  52772. /**
  52773. * @param {?*} children Children tree container.
  52774. * @param {!string} nameSoFar Name of the key path so far.
  52775. * @param {!function} callback Callback to invoke with each child found.
  52776. * @param {?*} traverseContext Used to pass information throughout the traversal
  52777. * process.
  52778. * @return {!number} The number of children in this subtree.
  52779. */
  52780. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  52781. var type = typeof children;
  52782. if (type === 'undefined' || type === 'boolean') {
  52783. // All of the above are perceived as null.
  52784. children = null;
  52785. }
  52786. var invokeCallback = false;
  52787. if (children === null) {
  52788. invokeCallback = true;
  52789. } else {
  52790. switch (type) {
  52791. case 'string':
  52792. case 'number':
  52793. invokeCallback = true;
  52794. break;
  52795. case 'object':
  52796. switch (children.$$typeof) {
  52797. case REACT_ELEMENT_TYPE:
  52798. case REACT_PORTAL_TYPE:
  52799. invokeCallback = true;
  52800. }
  52801. }
  52802. }
  52803. if (invokeCallback) {
  52804. callback(traverseContext, children,
  52805. // If it's the only child, treat the name as if it was wrapped in an array
  52806. // so that it's consistent if the number of children grows.
  52807. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  52808. return 1;
  52809. }
  52810. var child = void 0;
  52811. var nextName = void 0;
  52812. var subtreeCount = 0; // Count of children found in the current subtree.
  52813. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  52814. if (Array.isArray(children)) {
  52815. for (var i = 0; i < children.length; i++) {
  52816. child = children[i];
  52817. nextName = nextNamePrefix + getComponentKey(child, i);
  52818. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  52819. }
  52820. } else {
  52821. var iteratorFn = getIteratorFn(children);
  52822. if (typeof iteratorFn === 'function') {
  52823. {
  52824. // Warn about using Maps as children
  52825. if (iteratorFn === children.entries) {
  52826. !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;
  52827. didWarnAboutMaps = true;
  52828. }
  52829. }
  52830. var iterator = iteratorFn.call(children);
  52831. var step = void 0;
  52832. var ii = 0;
  52833. while (!(step = iterator.next()).done) {
  52834. child = step.value;
  52835. nextName = nextNamePrefix + getComponentKey(child, ii++);
  52836. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  52837. }
  52838. } else if (type === 'object') {
  52839. var addendum = '';
  52840. {
  52841. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  52842. }
  52843. var childrenString = '' + children;
  52844. 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);
  52845. }
  52846. }
  52847. return subtreeCount;
  52848. }
  52849. /**
  52850. * Traverses children that are typically specified as `props.children`, but
  52851. * might also be specified through attributes:
  52852. *
  52853. * - `traverseAllChildren(this.props.children, ...)`
  52854. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  52855. *
  52856. * The `traverseContext` is an optional argument that is passed through the
  52857. * entire traversal. It can be used to store accumulations or anything else that
  52858. * the callback might find relevant.
  52859. *
  52860. * @param {?*} children Children tree object.
  52861. * @param {!function} callback To invoke upon traversing each child.
  52862. * @param {?*} traverseContext Context for traversal.
  52863. * @return {!number} The number of children in this subtree.
  52864. */
  52865. function traverseAllChildren(children, callback, traverseContext) {
  52866. if (children == null) {
  52867. return 0;
  52868. }
  52869. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  52870. }
  52871. /**
  52872. * Generate a key string that identifies a component within a set.
  52873. *
  52874. * @param {*} component A component that could contain a manual key.
  52875. * @param {number} index Index that is used if a manual key is not provided.
  52876. * @return {string}
  52877. */
  52878. function getComponentKey(component, index) {
  52879. // Do some typechecking here since we call this blindly. We want to ensure
  52880. // that we don't block potential future ES APIs.
  52881. if (typeof component === 'object' && component !== null && component.key != null) {
  52882. // Explicit key
  52883. return escape(component.key);
  52884. }
  52885. // Implicit key determined by the index in the set
  52886. return index.toString(36);
  52887. }
  52888. function forEachSingleChild(bookKeeping, child, name) {
  52889. var func = bookKeeping.func,
  52890. context = bookKeeping.context;
  52891. func.call(context, child, bookKeeping.count++);
  52892. }
  52893. /**
  52894. * Iterates through children that are typically specified as `props.children`.
  52895. *
  52896. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  52897. *
  52898. * The provided forEachFunc(child, index) will be called for each
  52899. * leaf child.
  52900. *
  52901. * @param {?*} children Children tree container.
  52902. * @param {function(*, int)} forEachFunc
  52903. * @param {*} forEachContext Context for forEachContext.
  52904. */
  52905. function forEachChildren(children, forEachFunc, forEachContext) {
  52906. if (children == null) {
  52907. return children;
  52908. }
  52909. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  52910. traverseAllChildren(children, forEachSingleChild, traverseContext);
  52911. releaseTraverseContext(traverseContext);
  52912. }
  52913. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  52914. var result = bookKeeping.result,
  52915. keyPrefix = bookKeeping.keyPrefix,
  52916. func = bookKeeping.func,
  52917. context = bookKeeping.context;
  52918. var mappedChild = func.call(context, child, bookKeeping.count++);
  52919. if (Array.isArray(mappedChild)) {
  52920. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  52921. return c;
  52922. });
  52923. } else if (mappedChild != null) {
  52924. if (isValidElement(mappedChild)) {
  52925. mappedChild = cloneAndReplaceKey(mappedChild,
  52926. // Keep both the (mapped) and old keys if they differ, just as
  52927. // traverseAllChildren used to do for objects as children
  52928. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  52929. }
  52930. result.push(mappedChild);
  52931. }
  52932. }
  52933. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  52934. var escapedPrefix = '';
  52935. if (prefix != null) {
  52936. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  52937. }
  52938. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  52939. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  52940. releaseTraverseContext(traverseContext);
  52941. }
  52942. /**
  52943. * Maps children that are typically specified as `props.children`.
  52944. *
  52945. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  52946. *
  52947. * The provided mapFunction(child, key, index) will be called for each
  52948. * leaf child.
  52949. *
  52950. * @param {?*} children Children tree container.
  52951. * @param {function(*, int)} func The map function.
  52952. * @param {*} context Context for mapFunction.
  52953. * @return {object} Object containing the ordered map of results.
  52954. */
  52955. function mapChildren(children, func, context) {
  52956. if (children == null) {
  52957. return children;
  52958. }
  52959. var result = [];
  52960. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  52961. return result;
  52962. }
  52963. /**
  52964. * Count the number of children that are typically specified as
  52965. * `props.children`.
  52966. *
  52967. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  52968. *
  52969. * @param {?*} children Children tree container.
  52970. * @return {number} The number of children.
  52971. */
  52972. function countChildren(children) {
  52973. return traverseAllChildren(children, function () {
  52974. return null;
  52975. }, null);
  52976. }
  52977. /**
  52978. * Flatten a children object (typically specified as `props.children`) and
  52979. * return an array with appropriately re-keyed children.
  52980. *
  52981. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  52982. */
  52983. function toArray(children) {
  52984. var result = [];
  52985. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  52986. return child;
  52987. });
  52988. return result;
  52989. }
  52990. /**
  52991. * Returns the first child in a collection of children and verifies that there
  52992. * is only one child in the collection.
  52993. *
  52994. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  52995. *
  52996. * The current implementation of this function assumes that a single child gets
  52997. * passed without a wrapper, but the purpose of this helper function is to
  52998. * abstract away the particular structure of children.
  52999. *
  53000. * @param {?object} children Child collection structure.
  53001. * @return {ReactElement} The first and only `ReactElement` contained in the
  53002. * structure.
  53003. */
  53004. function onlyChild(children) {
  53005. !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
  53006. return children;
  53007. }
  53008. function createContext(defaultValue, calculateChangedBits) {
  53009. if (calculateChangedBits === undefined) {
  53010. calculateChangedBits = null;
  53011. } else {
  53012. {
  53013. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  53014. }
  53015. }
  53016. var context = {
  53017. $$typeof: REACT_CONTEXT_TYPE,
  53018. _calculateChangedBits: calculateChangedBits,
  53019. // As a workaround to support multiple concurrent renderers, we categorize
  53020. // some renderers as primary and others as secondary. We only expect
  53021. // there to be two concurrent renderers at most: React Native (primary) and
  53022. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  53023. // Secondary renderers store their context values on separate fields.
  53024. _currentValue: defaultValue,
  53025. _currentValue2: defaultValue,
  53026. // Used to track how many concurrent renderers this context currently
  53027. // supports within in a single renderer. Such as parallel server rendering.
  53028. _threadCount: 0,
  53029. // These are circular
  53030. Provider: null,
  53031. Consumer: null
  53032. };
  53033. context.Provider = {
  53034. $$typeof: REACT_PROVIDER_TYPE,
  53035. _context: context
  53036. };
  53037. var hasWarnedAboutUsingNestedContextConsumers = false;
  53038. var hasWarnedAboutUsingConsumerProvider = false;
  53039. {
  53040. // A separate object, but proxies back to the original context object for
  53041. // backwards compatibility. It has a different $$typeof, so we can properly
  53042. // warn for the incorrect usage of Context as a Consumer.
  53043. var Consumer = {
  53044. $$typeof: REACT_CONTEXT_TYPE,
  53045. _context: context,
  53046. _calculateChangedBits: context._calculateChangedBits
  53047. };
  53048. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  53049. Object.defineProperties(Consumer, {
  53050. Provider: {
  53051. get: function () {
  53052. if (!hasWarnedAboutUsingConsumerProvider) {
  53053. hasWarnedAboutUsingConsumerProvider = true;
  53054. 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?');
  53055. }
  53056. return context.Provider;
  53057. },
  53058. set: function (_Provider) {
  53059. context.Provider = _Provider;
  53060. }
  53061. },
  53062. _currentValue: {
  53063. get: function () {
  53064. return context._currentValue;
  53065. },
  53066. set: function (_currentValue) {
  53067. context._currentValue = _currentValue;
  53068. }
  53069. },
  53070. _currentValue2: {
  53071. get: function () {
  53072. return context._currentValue2;
  53073. },
  53074. set: function (_currentValue2) {
  53075. context._currentValue2 = _currentValue2;
  53076. }
  53077. },
  53078. _threadCount: {
  53079. get: function () {
  53080. return context._threadCount;
  53081. },
  53082. set: function (_threadCount) {
  53083. context._threadCount = _threadCount;
  53084. }
  53085. },
  53086. Consumer: {
  53087. get: function () {
  53088. if (!hasWarnedAboutUsingNestedContextConsumers) {
  53089. hasWarnedAboutUsingNestedContextConsumers = true;
  53090. 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?');
  53091. }
  53092. return context.Consumer;
  53093. }
  53094. }
  53095. });
  53096. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  53097. context.Consumer = Consumer;
  53098. }
  53099. {
  53100. context._currentRenderer = null;
  53101. context._currentRenderer2 = null;
  53102. }
  53103. return context;
  53104. }
  53105. function lazy(ctor) {
  53106. return {
  53107. $$typeof: REACT_LAZY_TYPE,
  53108. _ctor: ctor,
  53109. // React uses these fields to store the result.
  53110. _status: -1,
  53111. _result: null
  53112. };
  53113. }
  53114. function forwardRef(render) {
  53115. {
  53116. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  53117. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  53118. } else if (typeof render !== 'function') {
  53119. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  53120. } else {
  53121. !(
  53122. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  53123. 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;
  53124. }
  53125. if (render != null) {
  53126. !(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;
  53127. }
  53128. }
  53129. return {
  53130. $$typeof: REACT_FORWARD_REF_TYPE,
  53131. render: render
  53132. };
  53133. }
  53134. function isValidElementType(type) {
  53135. return typeof type === 'string' || typeof type === 'function' ||
  53136. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  53137. 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);
  53138. }
  53139. function memo(type, compare) {
  53140. {
  53141. if (!isValidElementType(type)) {
  53142. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  53143. }
  53144. }
  53145. return {
  53146. $$typeof: REACT_MEMO_TYPE,
  53147. type: type,
  53148. compare: compare === undefined ? null : compare
  53149. };
  53150. }
  53151. function resolveDispatcher() {
  53152. var dispatcher = ReactCurrentOwner.currentDispatcher;
  53153. !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  53154. return dispatcher;
  53155. }
  53156. function useContext(Context, observedBits) {
  53157. var dispatcher = resolveDispatcher();
  53158. {
  53159. // TODO: add a more generic warning for invalid values.
  53160. if (Context._context !== undefined) {
  53161. var realContext = Context._context;
  53162. // Don't deduplicate because this legitimately causes bugs
  53163. // and nobody should be using this in existing code.
  53164. if (realContext.Consumer === Context) {
  53165. 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?');
  53166. } else if (realContext.Provider === Context) {
  53167. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  53168. }
  53169. }
  53170. }
  53171. return dispatcher.useContext(Context, observedBits);
  53172. }
  53173. function useState(initialState) {
  53174. var dispatcher = resolveDispatcher();
  53175. return dispatcher.useState(initialState);
  53176. }
  53177. function useReducer(reducer, initialState, initialAction) {
  53178. var dispatcher = resolveDispatcher();
  53179. return dispatcher.useReducer(reducer, initialState, initialAction);
  53180. }
  53181. function useRef(initialValue) {
  53182. var dispatcher = resolveDispatcher();
  53183. return dispatcher.useRef(initialValue);
  53184. }
  53185. function useEffect(create, inputs) {
  53186. var dispatcher = resolveDispatcher();
  53187. return dispatcher.useEffect(create, inputs);
  53188. }
  53189. function useMutationEffect(create, inputs) {
  53190. var dispatcher = resolveDispatcher();
  53191. return dispatcher.useMutationEffect(create, inputs);
  53192. }
  53193. function useLayoutEffect(create, inputs) {
  53194. var dispatcher = resolveDispatcher();
  53195. return dispatcher.useLayoutEffect(create, inputs);
  53196. }
  53197. function useCallback(callback, inputs) {
  53198. var dispatcher = resolveDispatcher();
  53199. return dispatcher.useCallback(callback, inputs);
  53200. }
  53201. function useMemo(create, inputs) {
  53202. var dispatcher = resolveDispatcher();
  53203. return dispatcher.useMemo(create, inputs);
  53204. }
  53205. function useImperativeMethods(ref, create, inputs) {
  53206. var dispatcher = resolveDispatcher();
  53207. return dispatcher.useImperativeMethods(ref, create, inputs);
  53208. }
  53209. /**
  53210. * ReactElementValidator provides a wrapper around a element factory
  53211. * which validates the props passed to the element. This is intended to be
  53212. * used only in DEV and could be replaced by a static type checker for languages
  53213. * that support it.
  53214. */
  53215. var propTypesMisspellWarningShown = void 0;
  53216. {
  53217. propTypesMisspellWarningShown = false;
  53218. }
  53219. function getDeclarationErrorAddendum() {
  53220. if (ReactCurrentOwner.current) {
  53221. var name = getComponentName(ReactCurrentOwner.current.type);
  53222. if (name) {
  53223. return '\n\nCheck the render method of `' + name + '`.';
  53224. }
  53225. }
  53226. return '';
  53227. }
  53228. function getSourceInfoErrorAddendum(elementProps) {
  53229. if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  53230. var source = elementProps.__source;
  53231. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  53232. var lineNumber = source.lineNumber;
  53233. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  53234. }
  53235. return '';
  53236. }
  53237. /**
  53238. * Warn if there's no key explicitly set on dynamic arrays of children or
  53239. * object keys are not valid. This allows us to keep track of children between
  53240. * updates.
  53241. */
  53242. var ownerHasKeyUseWarning = {};
  53243. function getCurrentComponentErrorInfo(parentType) {
  53244. var info = getDeclarationErrorAddendum();
  53245. if (!info) {
  53246. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  53247. if (parentName) {
  53248. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  53249. }
  53250. }
  53251. return info;
  53252. }
  53253. /**
  53254. * Warn if the element doesn't have an explicit key assigned to it.
  53255. * This element is in an array. The array could grow and shrink or be
  53256. * reordered. All children that haven't already been validated are required to
  53257. * have a "key" property assigned to it. Error statuses are cached so a warning
  53258. * will only be shown once.
  53259. *
  53260. * @internal
  53261. * @param {ReactElement} element Element that requires a key.
  53262. * @param {*} parentType element's parent's type.
  53263. */
  53264. function validateExplicitKey(element, parentType) {
  53265. if (!element._store || element._store.validated || element.key != null) {
  53266. return;
  53267. }
  53268. element._store.validated = true;
  53269. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  53270. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  53271. return;
  53272. }
  53273. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  53274. // Usually the current owner is the offender, but if it accepts children as a
  53275. // property, it may be the creator of the child that's responsible for
  53276. // assigning it a key.
  53277. var childOwner = '';
  53278. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  53279. // Give the component that originally created this child.
  53280. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  53281. }
  53282. setCurrentlyValidatingElement(element);
  53283. {
  53284. 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);
  53285. }
  53286. setCurrentlyValidatingElement(null);
  53287. }
  53288. /**
  53289. * Ensure that every element either is passed in a static location, in an
  53290. * array with an explicit keys property defined, or in an object literal
  53291. * with valid key property.
  53292. *
  53293. * @internal
  53294. * @param {ReactNode} node Statically passed child of any type.
  53295. * @param {*} parentType node's parent's type.
  53296. */
  53297. function validateChildKeys(node, parentType) {
  53298. if (typeof node !== 'object') {
  53299. return;
  53300. }
  53301. if (Array.isArray(node)) {
  53302. for (var i = 0; i < node.length; i++) {
  53303. var child = node[i];
  53304. if (isValidElement(child)) {
  53305. validateExplicitKey(child, parentType);
  53306. }
  53307. }
  53308. } else if (isValidElement(node)) {
  53309. // This element was passed in a valid location.
  53310. if (node._store) {
  53311. node._store.validated = true;
  53312. }
  53313. } else if (node) {
  53314. var iteratorFn = getIteratorFn(node);
  53315. if (typeof iteratorFn === 'function') {
  53316. // Entry iterators used to provide implicit keys,
  53317. // but now we print a separate warning for them later.
  53318. if (iteratorFn !== node.entries) {
  53319. var iterator = iteratorFn.call(node);
  53320. var step = void 0;
  53321. while (!(step = iterator.next()).done) {
  53322. if (isValidElement(step.value)) {
  53323. validateExplicitKey(step.value, parentType);
  53324. }
  53325. }
  53326. }
  53327. }
  53328. }
  53329. }
  53330. /**
  53331. * Given an element, validate that its props follow the propTypes definition,
  53332. * provided by the type.
  53333. *
  53334. * @param {ReactElement} element
  53335. */
  53336. function validatePropTypes(element) {
  53337. var type = element.type;
  53338. var name = void 0,
  53339. propTypes = void 0;
  53340. if (typeof type === 'function') {
  53341. // Class or function component
  53342. name = type.displayName || type.name;
  53343. propTypes = type.propTypes;
  53344. } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
  53345. // ForwardRef
  53346. var functionName = type.render.displayName || type.render.name || '';
  53347. name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
  53348. propTypes = type.propTypes;
  53349. } else {
  53350. return;
  53351. }
  53352. if (propTypes) {
  53353. setCurrentlyValidatingElement(element);
  53354. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  53355. setCurrentlyValidatingElement(null);
  53356. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  53357. propTypesMisspellWarningShown = true;
  53358. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  53359. }
  53360. if (typeof type.getDefaultProps === 'function') {
  53361. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  53362. }
  53363. }
  53364. /**
  53365. * Given a fragment, validate that it can only be provided with fragment props
  53366. * @param {ReactElement} fragment
  53367. */
  53368. function validateFragmentProps(fragment) {
  53369. setCurrentlyValidatingElement(fragment);
  53370. var keys = Object.keys(fragment.props);
  53371. for (var i = 0; i < keys.length; i++) {
  53372. var key = keys[i];
  53373. if (key !== 'children' && key !== 'key') {
  53374. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  53375. break;
  53376. }
  53377. }
  53378. if (fragment.ref !== null) {
  53379. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  53380. }
  53381. setCurrentlyValidatingElement(null);
  53382. }
  53383. function createElementWithValidation(type, props, children) {
  53384. var validType = isValidElementType(type);
  53385. // We warn in this case but don't throw. We expect the element creation to
  53386. // succeed and there will likely be errors in render.
  53387. if (!validType) {
  53388. var info = '';
  53389. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  53390. 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.";
  53391. }
  53392. var sourceInfo = getSourceInfoErrorAddendum(props);
  53393. if (sourceInfo) {
  53394. info += sourceInfo;
  53395. } else {
  53396. info += getDeclarationErrorAddendum();
  53397. }
  53398. var typeString = void 0;
  53399. if (type === null) {
  53400. typeString = 'null';
  53401. } else if (Array.isArray(type)) {
  53402. typeString = 'array';
  53403. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  53404. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  53405. info = ' Did you accidentally export a JSX literal instead of a component?';
  53406. } else {
  53407. typeString = typeof type;
  53408. }
  53409. 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);
  53410. }
  53411. var element = createElement.apply(this, arguments);
  53412. // The result can be nullish if a mock or a custom function is used.
  53413. // TODO: Drop this when these are no longer allowed as the type argument.
  53414. if (element == null) {
  53415. return element;
  53416. }
  53417. // Skip key warning if the type isn't valid since our key validation logic
  53418. // doesn't expect a non-string/function type and can throw confusing errors.
  53419. // We don't want exception behavior to differ between dev and prod.
  53420. // (Rendering will throw with a helpful message and as soon as the type is
  53421. // fixed, the key warnings will appear.)
  53422. if (validType) {
  53423. for (var i = 2; i < arguments.length; i++) {
  53424. validateChildKeys(arguments[i], type);
  53425. }
  53426. }
  53427. if (type === REACT_FRAGMENT_TYPE) {
  53428. validateFragmentProps(element);
  53429. } else {
  53430. validatePropTypes(element);
  53431. }
  53432. return element;
  53433. }
  53434. function createFactoryWithValidation(type) {
  53435. var validatedFactory = createElementWithValidation.bind(null, type);
  53436. validatedFactory.type = type;
  53437. // Legacy hook: remove it
  53438. {
  53439. Object.defineProperty(validatedFactory, 'type', {
  53440. enumerable: false,
  53441. get: function () {
  53442. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  53443. Object.defineProperty(this, 'type', {
  53444. value: type
  53445. });
  53446. return type;
  53447. }
  53448. });
  53449. }
  53450. return validatedFactory;
  53451. }
  53452. function cloneElementWithValidation(element, props, children) {
  53453. var newElement = cloneElement.apply(this, arguments);
  53454. for (var i = 2; i < arguments.length; i++) {
  53455. validateChildKeys(arguments[i], newElement.type);
  53456. }
  53457. validatePropTypes(newElement);
  53458. return newElement;
  53459. }
  53460. var React = {
  53461. Children: {
  53462. map: mapChildren,
  53463. forEach: forEachChildren,
  53464. count: countChildren,
  53465. toArray: toArray,
  53466. only: onlyChild
  53467. },
  53468. createRef: createRef,
  53469. Component: Component,
  53470. PureComponent: PureComponent,
  53471. createContext: createContext,
  53472. forwardRef: forwardRef,
  53473. lazy: lazy,
  53474. memo: memo,
  53475. Fragment: REACT_FRAGMENT_TYPE,
  53476. StrictMode: REACT_STRICT_MODE_TYPE,
  53477. Suspense: REACT_SUSPENSE_TYPE,
  53478. createElement: createElementWithValidation,
  53479. cloneElement: cloneElementWithValidation,
  53480. createFactory: createFactoryWithValidation,
  53481. isValidElement: isValidElement,
  53482. version: ReactVersion,
  53483. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  53484. };
  53485. if (enableStableConcurrentModeAPIs) {
  53486. React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  53487. React.Profiler = REACT_PROFILER_TYPE;
  53488. } else {
  53489. React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  53490. React.unstable_Profiler = REACT_PROFILER_TYPE;
  53491. }
  53492. if (enableHooks) {
  53493. React.useCallback = useCallback;
  53494. React.useContext = useContext;
  53495. React.useEffect = useEffect;
  53496. React.useImperativeMethods = useImperativeMethods;
  53497. React.useLayoutEffect = useLayoutEffect;
  53498. React.useMemo = useMemo;
  53499. React.useMutationEffect = useMutationEffect;
  53500. React.useReducer = useReducer;
  53501. React.useRef = useRef;
  53502. React.useState = useState;
  53503. }
  53504. var React$2 = Object.freeze({
  53505. default: React
  53506. });
  53507. var React$3 = ( React$2 && React ) || React$2;
  53508. // TODO: decide on the top-level export form.
  53509. // This is hacky but makes it work with both Rollup and Jest.
  53510. var react = React$3.default || React$3;
  53511. module.exports = react;
  53512. })();
  53513. }
  53514. /***/ }),
  53515. /***/ "../../node_modules/react/index.js":
  53516. /*!*******************************************************!*\
  53517. !*** C:/Repos/Babylon.js/node_modules/react/index.js ***!
  53518. \*******************************************************/
  53519. /*! no static exports found */
  53520. /***/ (function(module, exports, __webpack_require__) {
  53521. "use strict";
  53522. if (false) {} else {
  53523. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  53524. }
  53525. /***/ }),
  53526. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  53527. /*!***************************************************************************************!*\
  53528. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  53529. \***************************************************************************************/
  53530. /*! no static exports found */
  53531. /***/ (function(module, exports, __webpack_require__) {
  53532. "use strict";
  53533. /** @license React v0.11.3
  53534. * scheduler-tracing.development.js
  53535. *
  53536. * Copyright (c) Facebook, Inc. and its affiliates.
  53537. *
  53538. * This source code is licensed under the MIT license found in the
  53539. * LICENSE file in the root directory of this source tree.
  53540. */
  53541. if (true) {
  53542. (function() {
  53543. 'use strict';
  53544. Object.defineProperty(exports, '__esModule', { value: true });
  53545. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  53546. // In some cases, StrictMode should also double-render lifecycles.
  53547. // This can be confusing for tests though,
  53548. // And it can be bad for performance in production.
  53549. // This feature flag can be used to control the behavior:
  53550. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  53551. // replay the begin phase of a failed component inside invokeGuardedCallback.
  53552. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  53553. // Gather advanced timing metrics for Profiler subtrees.
  53554. // Trace which interactions trigger each commit.
  53555. var enableSchedulerTracing = true;
  53556. // Only used in www builds.
  53557. // Only used in www builds.
  53558. // React Fire: prevent the value and checked attributes from syncing
  53559. // with their related DOM properties
  53560. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  53561. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  53562. var DEFAULT_THREAD_ID = 0;
  53563. // Counters used to generate unique IDs.
  53564. var interactionIDCounter = 0;
  53565. var threadIDCounter = 0;
  53566. // Set of currently traced interactions.
  53567. // Interactions "stack"–
  53568. // Meaning that newly traced interactions are appended to the previously active set.
  53569. // When an interaction goes out of scope, the previous set (if any) is restored.
  53570. exports.__interactionsRef = null;
  53571. // Listener(s) to notify when interactions begin and end.
  53572. exports.__subscriberRef = null;
  53573. if (enableSchedulerTracing) {
  53574. exports.__interactionsRef = {
  53575. current: new Set()
  53576. };
  53577. exports.__subscriberRef = {
  53578. current: null
  53579. };
  53580. }
  53581. function unstable_clear(callback) {
  53582. if (!enableSchedulerTracing) {
  53583. return callback();
  53584. }
  53585. var prevInteractions = exports.__interactionsRef.current;
  53586. exports.__interactionsRef.current = new Set();
  53587. try {
  53588. return callback();
  53589. } finally {
  53590. exports.__interactionsRef.current = prevInteractions;
  53591. }
  53592. }
  53593. function unstable_getCurrent() {
  53594. if (!enableSchedulerTracing) {
  53595. return null;
  53596. } else {
  53597. return exports.__interactionsRef.current;
  53598. }
  53599. }
  53600. function unstable_getThreadID() {
  53601. return ++threadIDCounter;
  53602. }
  53603. function unstable_trace(name, timestamp, callback) {
  53604. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  53605. if (!enableSchedulerTracing) {
  53606. return callback();
  53607. }
  53608. var interaction = {
  53609. __count: 1,
  53610. id: interactionIDCounter++,
  53611. name: name,
  53612. timestamp: timestamp
  53613. };
  53614. var prevInteractions = exports.__interactionsRef.current;
  53615. // Traced interactions should stack/accumulate.
  53616. // To do that, clone the current interactions.
  53617. // The previous set will be restored upon completion.
  53618. var interactions = new Set(prevInteractions);
  53619. interactions.add(interaction);
  53620. exports.__interactionsRef.current = interactions;
  53621. var subscriber = exports.__subscriberRef.current;
  53622. var returnValue = void 0;
  53623. try {
  53624. if (subscriber !== null) {
  53625. subscriber.onInteractionTraced(interaction);
  53626. }
  53627. } finally {
  53628. try {
  53629. if (subscriber !== null) {
  53630. subscriber.onWorkStarted(interactions, threadID);
  53631. }
  53632. } finally {
  53633. try {
  53634. returnValue = callback();
  53635. } finally {
  53636. exports.__interactionsRef.current = prevInteractions;
  53637. try {
  53638. if (subscriber !== null) {
  53639. subscriber.onWorkStopped(interactions, threadID);
  53640. }
  53641. } finally {
  53642. interaction.__count--;
  53643. // If no async work was scheduled for this interaction,
  53644. // Notify subscribers that it's completed.
  53645. if (subscriber !== null && interaction.__count === 0) {
  53646. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53647. }
  53648. }
  53649. }
  53650. }
  53651. }
  53652. return returnValue;
  53653. }
  53654. function unstable_wrap(callback) {
  53655. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  53656. if (!enableSchedulerTracing) {
  53657. return callback;
  53658. }
  53659. var wrappedInteractions = exports.__interactionsRef.current;
  53660. var subscriber = exports.__subscriberRef.current;
  53661. if (subscriber !== null) {
  53662. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  53663. }
  53664. // Update the pending async work count for the current interactions.
  53665. // Update after calling subscribers in case of error.
  53666. wrappedInteractions.forEach(function (interaction) {
  53667. interaction.__count++;
  53668. });
  53669. var hasRun = false;
  53670. function wrapped() {
  53671. var prevInteractions = exports.__interactionsRef.current;
  53672. exports.__interactionsRef.current = wrappedInteractions;
  53673. subscriber = exports.__subscriberRef.current;
  53674. try {
  53675. var returnValue = void 0;
  53676. try {
  53677. if (subscriber !== null) {
  53678. subscriber.onWorkStarted(wrappedInteractions, threadID);
  53679. }
  53680. } finally {
  53681. try {
  53682. returnValue = callback.apply(undefined, arguments);
  53683. } finally {
  53684. exports.__interactionsRef.current = prevInteractions;
  53685. if (subscriber !== null) {
  53686. subscriber.onWorkStopped(wrappedInteractions, threadID);
  53687. }
  53688. }
  53689. }
  53690. return returnValue;
  53691. } finally {
  53692. if (!hasRun) {
  53693. // We only expect a wrapped function to be executed once,
  53694. // But in the event that it's executed more than once–
  53695. // Only decrement the outstanding interaction counts once.
  53696. hasRun = true;
  53697. // Update pending async counts for all wrapped interactions.
  53698. // If this was the last scheduled async work for any of them,
  53699. // Mark them as completed.
  53700. wrappedInteractions.forEach(function (interaction) {
  53701. interaction.__count--;
  53702. if (subscriber !== null && interaction.__count === 0) {
  53703. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53704. }
  53705. });
  53706. }
  53707. }
  53708. }
  53709. wrapped.cancel = function cancel() {
  53710. subscriber = exports.__subscriberRef.current;
  53711. try {
  53712. if (subscriber !== null) {
  53713. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  53714. }
  53715. } finally {
  53716. // Update pending async counts for all wrapped interactions.
  53717. // If this was the last scheduled async work for any of them,
  53718. // Mark them as completed.
  53719. wrappedInteractions.forEach(function (interaction) {
  53720. interaction.__count--;
  53721. if (subscriber && interaction.__count === 0) {
  53722. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53723. }
  53724. });
  53725. }
  53726. };
  53727. return wrapped;
  53728. }
  53729. var subscribers = null;
  53730. if (enableSchedulerTracing) {
  53731. subscribers = new Set();
  53732. }
  53733. function unstable_subscribe(subscriber) {
  53734. if (enableSchedulerTracing) {
  53735. subscribers.add(subscriber);
  53736. if (subscribers.size === 1) {
  53737. exports.__subscriberRef.current = {
  53738. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  53739. onInteractionTraced: onInteractionTraced,
  53740. onWorkCanceled: onWorkCanceled,
  53741. onWorkScheduled: onWorkScheduled,
  53742. onWorkStarted: onWorkStarted,
  53743. onWorkStopped: onWorkStopped
  53744. };
  53745. }
  53746. }
  53747. }
  53748. function unstable_unsubscribe(subscriber) {
  53749. if (enableSchedulerTracing) {
  53750. subscribers.delete(subscriber);
  53751. if (subscribers.size === 0) {
  53752. exports.__subscriberRef.current = null;
  53753. }
  53754. }
  53755. }
  53756. function onInteractionTraced(interaction) {
  53757. var didCatchError = false;
  53758. var caughtError = null;
  53759. subscribers.forEach(function (subscriber) {
  53760. try {
  53761. subscriber.onInteractionTraced(interaction);
  53762. } catch (error) {
  53763. if (!didCatchError) {
  53764. didCatchError = true;
  53765. caughtError = error;
  53766. }
  53767. }
  53768. });
  53769. if (didCatchError) {
  53770. throw caughtError;
  53771. }
  53772. }
  53773. function onInteractionScheduledWorkCompleted(interaction) {
  53774. var didCatchError = false;
  53775. var caughtError = null;
  53776. subscribers.forEach(function (subscriber) {
  53777. try {
  53778. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53779. } catch (error) {
  53780. if (!didCatchError) {
  53781. didCatchError = true;
  53782. caughtError = error;
  53783. }
  53784. }
  53785. });
  53786. if (didCatchError) {
  53787. throw caughtError;
  53788. }
  53789. }
  53790. function onWorkScheduled(interactions, threadID) {
  53791. var didCatchError = false;
  53792. var caughtError = null;
  53793. subscribers.forEach(function (subscriber) {
  53794. try {
  53795. subscriber.onWorkScheduled(interactions, threadID);
  53796. } catch (error) {
  53797. if (!didCatchError) {
  53798. didCatchError = true;
  53799. caughtError = error;
  53800. }
  53801. }
  53802. });
  53803. if (didCatchError) {
  53804. throw caughtError;
  53805. }
  53806. }
  53807. function onWorkStarted(interactions, threadID) {
  53808. var didCatchError = false;
  53809. var caughtError = null;
  53810. subscribers.forEach(function (subscriber) {
  53811. try {
  53812. subscriber.onWorkStarted(interactions, threadID);
  53813. } catch (error) {
  53814. if (!didCatchError) {
  53815. didCatchError = true;
  53816. caughtError = error;
  53817. }
  53818. }
  53819. });
  53820. if (didCatchError) {
  53821. throw caughtError;
  53822. }
  53823. }
  53824. function onWorkStopped(interactions, threadID) {
  53825. var didCatchError = false;
  53826. var caughtError = null;
  53827. subscribers.forEach(function (subscriber) {
  53828. try {
  53829. subscriber.onWorkStopped(interactions, threadID);
  53830. } catch (error) {
  53831. if (!didCatchError) {
  53832. didCatchError = true;
  53833. caughtError = error;
  53834. }
  53835. }
  53836. });
  53837. if (didCatchError) {
  53838. throw caughtError;
  53839. }
  53840. }
  53841. function onWorkCanceled(interactions, threadID) {
  53842. var didCatchError = false;
  53843. var caughtError = null;
  53844. subscribers.forEach(function (subscriber) {
  53845. try {
  53846. subscriber.onWorkCanceled(interactions, threadID);
  53847. } catch (error) {
  53848. if (!didCatchError) {
  53849. didCatchError = true;
  53850. caughtError = error;
  53851. }
  53852. }
  53853. });
  53854. if (didCatchError) {
  53855. throw caughtError;
  53856. }
  53857. }
  53858. exports.unstable_clear = unstable_clear;
  53859. exports.unstable_getCurrent = unstable_getCurrent;
  53860. exports.unstable_getThreadID = unstable_getThreadID;
  53861. exports.unstable_trace = unstable_trace;
  53862. exports.unstable_wrap = unstable_wrap;
  53863. exports.unstable_subscribe = unstable_subscribe;
  53864. exports.unstable_unsubscribe = unstable_unsubscribe;
  53865. })();
  53866. }
  53867. /***/ }),
  53868. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  53869. /*!*******************************************************************************!*\
  53870. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  53871. \*******************************************************************************/
  53872. /*! no static exports found */
  53873. /***/ (function(module, exports, __webpack_require__) {
  53874. "use strict";
  53875. /* WEBPACK VAR INJECTION */(function(global) {/** @license React v0.11.3
  53876. * scheduler.development.js
  53877. *
  53878. * Copyright (c) Facebook, Inc. and its affiliates.
  53879. *
  53880. * This source code is licensed under the MIT license found in the
  53881. * LICENSE file in the root directory of this source tree.
  53882. */
  53883. if (true) {
  53884. (function() {
  53885. 'use strict';
  53886. Object.defineProperty(exports, '__esModule', { value: true });
  53887. /* eslint-disable no-var */
  53888. // TODO: Use symbols?
  53889. var ImmediatePriority = 1;
  53890. var UserBlockingPriority = 2;
  53891. var NormalPriority = 3;
  53892. var LowPriority = 4;
  53893. var IdlePriority = 5;
  53894. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  53895. // Math.pow(2, 30) - 1
  53896. // 0b111111111111111111111111111111
  53897. var maxSigned31BitInt = 1073741823;
  53898. // Times out immediately
  53899. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  53900. // Eventually times out
  53901. var USER_BLOCKING_PRIORITY = 250;
  53902. var NORMAL_PRIORITY_TIMEOUT = 5000;
  53903. var LOW_PRIORITY_TIMEOUT = 10000;
  53904. // Never times out
  53905. var IDLE_PRIORITY = maxSigned31BitInt;
  53906. // Callbacks are stored as a circular, doubly linked list.
  53907. var firstCallbackNode = null;
  53908. var currentDidTimeout = false;
  53909. var currentPriorityLevel = NormalPriority;
  53910. var currentEventStartTime = -1;
  53911. var currentExpirationTime = -1;
  53912. // This is set when a callback is being executed, to prevent re-entrancy.
  53913. var isExecutingCallback = false;
  53914. var isHostCallbackScheduled = false;
  53915. var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
  53916. function ensureHostCallbackIsScheduled() {
  53917. if (isExecutingCallback) {
  53918. // Don't schedule work yet; wait until the next time we yield.
  53919. return;
  53920. }
  53921. // Schedule the host callback using the earliest expiration in the list.
  53922. var expirationTime = firstCallbackNode.expirationTime;
  53923. if (!isHostCallbackScheduled) {
  53924. isHostCallbackScheduled = true;
  53925. } else {
  53926. // Cancel the existing host callback.
  53927. cancelHostCallback();
  53928. }
  53929. requestHostCallback(flushWork, expirationTime);
  53930. }
  53931. function flushFirstCallback() {
  53932. var flushedNode = firstCallbackNode;
  53933. // Remove the node from the list before calling the callback. That way the
  53934. // list is in a consistent state even if the callback throws.
  53935. var next = firstCallbackNode.next;
  53936. if (firstCallbackNode === next) {
  53937. // This is the last callback in the list.
  53938. firstCallbackNode = null;
  53939. next = null;
  53940. } else {
  53941. var lastCallbackNode = firstCallbackNode.previous;
  53942. firstCallbackNode = lastCallbackNode.next = next;
  53943. next.previous = lastCallbackNode;
  53944. }
  53945. flushedNode.next = flushedNode.previous = null;
  53946. // Now it's safe to call the callback.
  53947. var callback = flushedNode.callback;
  53948. var expirationTime = flushedNode.expirationTime;
  53949. var priorityLevel = flushedNode.priorityLevel;
  53950. var previousPriorityLevel = currentPriorityLevel;
  53951. var previousExpirationTime = currentExpirationTime;
  53952. currentPriorityLevel = priorityLevel;
  53953. currentExpirationTime = expirationTime;
  53954. var continuationCallback;
  53955. try {
  53956. continuationCallback = callback();
  53957. } finally {
  53958. currentPriorityLevel = previousPriorityLevel;
  53959. currentExpirationTime = previousExpirationTime;
  53960. }
  53961. // A callback may return a continuation. The continuation should be scheduled
  53962. // with the same priority and expiration as the just-finished callback.
  53963. if (typeof continuationCallback === 'function') {
  53964. var continuationNode = {
  53965. callback: continuationCallback,
  53966. priorityLevel: priorityLevel,
  53967. expirationTime: expirationTime,
  53968. next: null,
  53969. previous: null
  53970. };
  53971. // Insert the new callback into the list, sorted by its expiration. This is
  53972. // almost the same as the code in `scheduleCallback`, except the callback
  53973. // is inserted into the list *before* callbacks of equal expiration instead
  53974. // of after.
  53975. if (firstCallbackNode === null) {
  53976. // This is the first callback in the list.
  53977. firstCallbackNode = continuationNode.next = continuationNode.previous = continuationNode;
  53978. } else {
  53979. var nextAfterContinuation = null;
  53980. var node = firstCallbackNode;
  53981. do {
  53982. if (node.expirationTime >= expirationTime) {
  53983. // This callback expires at or after the continuation. We will insert
  53984. // the continuation *before* this callback.
  53985. nextAfterContinuation = node;
  53986. break;
  53987. }
  53988. node = node.next;
  53989. } while (node !== firstCallbackNode);
  53990. if (nextAfterContinuation === null) {
  53991. // No equal or lower priority callback was found, which means the new
  53992. // callback is the lowest priority callback in the list.
  53993. nextAfterContinuation = firstCallbackNode;
  53994. } else if (nextAfterContinuation === firstCallbackNode) {
  53995. // The new callback is the highest priority callback in the list.
  53996. firstCallbackNode = continuationNode;
  53997. ensureHostCallbackIsScheduled();
  53998. }
  53999. var previous = nextAfterContinuation.previous;
  54000. previous.next = nextAfterContinuation.previous = continuationNode;
  54001. continuationNode.next = nextAfterContinuation;
  54002. continuationNode.previous = previous;
  54003. }
  54004. }
  54005. }
  54006. function flushImmediateWork() {
  54007. if (
  54008. // Confirm we've exited the outer most event handler
  54009. currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {
  54010. isExecutingCallback = true;
  54011. try {
  54012. do {
  54013. flushFirstCallback();
  54014. } while (
  54015. // Keep flushing until there are no more immediate callbacks
  54016. firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority);
  54017. } finally {
  54018. isExecutingCallback = false;
  54019. if (firstCallbackNode !== null) {
  54020. // There's still work remaining. Request another callback.
  54021. ensureHostCallbackIsScheduled();
  54022. } else {
  54023. isHostCallbackScheduled = false;
  54024. }
  54025. }
  54026. }
  54027. }
  54028. function flushWork(didTimeout) {
  54029. isExecutingCallback = true;
  54030. var previousDidTimeout = currentDidTimeout;
  54031. currentDidTimeout = didTimeout;
  54032. try {
  54033. if (didTimeout) {
  54034. // Flush all the expired callbacks without yielding.
  54035. while (firstCallbackNode !== null) {
  54036. // Read the current time. Flush all the callbacks that expire at or
  54037. // earlier than that time. Then read the current time again and repeat.
  54038. // This optimizes for as few performance.now calls as possible.
  54039. var currentTime = exports.unstable_now();
  54040. if (firstCallbackNode.expirationTime <= currentTime) {
  54041. do {
  54042. flushFirstCallback();
  54043. } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime);
  54044. continue;
  54045. }
  54046. break;
  54047. }
  54048. } else {
  54049. // Keep flushing callbacks until we run out of time in the frame.
  54050. if (firstCallbackNode !== null) {
  54051. do {
  54052. flushFirstCallback();
  54053. } while (firstCallbackNode !== null && !shouldYieldToHost());
  54054. }
  54055. }
  54056. } finally {
  54057. isExecutingCallback = false;
  54058. currentDidTimeout = previousDidTimeout;
  54059. if (firstCallbackNode !== null) {
  54060. // There's still work remaining. Request another callback.
  54061. ensureHostCallbackIsScheduled();
  54062. } else {
  54063. isHostCallbackScheduled = false;
  54064. }
  54065. // Before exiting, flush all the immediate work that was scheduled.
  54066. flushImmediateWork();
  54067. }
  54068. }
  54069. function unstable_runWithPriority(priorityLevel, eventHandler) {
  54070. switch (priorityLevel) {
  54071. case ImmediatePriority:
  54072. case UserBlockingPriority:
  54073. case NormalPriority:
  54074. case LowPriority:
  54075. case IdlePriority:
  54076. break;
  54077. default:
  54078. priorityLevel = NormalPriority;
  54079. }
  54080. var previousPriorityLevel = currentPriorityLevel;
  54081. var previousEventStartTime = currentEventStartTime;
  54082. currentPriorityLevel = priorityLevel;
  54083. currentEventStartTime = exports.unstable_now();
  54084. try {
  54085. return eventHandler();
  54086. } finally {
  54087. currentPriorityLevel = previousPriorityLevel;
  54088. currentEventStartTime = previousEventStartTime;
  54089. // Before exiting, flush all the immediate work that was scheduled.
  54090. flushImmediateWork();
  54091. }
  54092. }
  54093. function unstable_wrapCallback(callback) {
  54094. var parentPriorityLevel = currentPriorityLevel;
  54095. return function () {
  54096. // This is a fork of runWithPriority, inlined for performance.
  54097. var previousPriorityLevel = currentPriorityLevel;
  54098. var previousEventStartTime = currentEventStartTime;
  54099. currentPriorityLevel = parentPriorityLevel;
  54100. currentEventStartTime = exports.unstable_now();
  54101. try {
  54102. return callback.apply(this, arguments);
  54103. } finally {
  54104. currentPriorityLevel = previousPriorityLevel;
  54105. currentEventStartTime = previousEventStartTime;
  54106. flushImmediateWork();
  54107. }
  54108. };
  54109. }
  54110. function unstable_scheduleCallback(callback, deprecated_options) {
  54111. var startTime = currentEventStartTime !== -1 ? currentEventStartTime : exports.unstable_now();
  54112. var expirationTime;
  54113. if (typeof deprecated_options === 'object' && deprecated_options !== null && typeof deprecated_options.timeout === 'number') {
  54114. // FIXME: Remove this branch once we lift expiration times out of React.
  54115. expirationTime = startTime + deprecated_options.timeout;
  54116. } else {
  54117. switch (currentPriorityLevel) {
  54118. case ImmediatePriority:
  54119. expirationTime = startTime + IMMEDIATE_PRIORITY_TIMEOUT;
  54120. break;
  54121. case UserBlockingPriority:
  54122. expirationTime = startTime + USER_BLOCKING_PRIORITY;
  54123. break;
  54124. case IdlePriority:
  54125. expirationTime = startTime + IDLE_PRIORITY;
  54126. break;
  54127. case LowPriority:
  54128. expirationTime = startTime + LOW_PRIORITY_TIMEOUT;
  54129. break;
  54130. case NormalPriority:
  54131. default:
  54132. expirationTime = startTime + NORMAL_PRIORITY_TIMEOUT;
  54133. }
  54134. }
  54135. var newNode = {
  54136. callback: callback,
  54137. priorityLevel: currentPriorityLevel,
  54138. expirationTime: expirationTime,
  54139. next: null,
  54140. previous: null
  54141. };
  54142. // Insert the new callback into the list, ordered first by expiration, then
  54143. // by insertion. So the new callback is inserted any other callback with
  54144. // equal expiration.
  54145. if (firstCallbackNode === null) {
  54146. // This is the first callback in the list.
  54147. firstCallbackNode = newNode.next = newNode.previous = newNode;
  54148. ensureHostCallbackIsScheduled();
  54149. } else {
  54150. var next = null;
  54151. var node = firstCallbackNode;
  54152. do {
  54153. if (node.expirationTime > expirationTime) {
  54154. // The new callback expires before this one.
  54155. next = node;
  54156. break;
  54157. }
  54158. node = node.next;
  54159. } while (node !== firstCallbackNode);
  54160. if (next === null) {
  54161. // No callback with a later expiration was found, which means the new
  54162. // callback has the latest expiration in the list.
  54163. next = firstCallbackNode;
  54164. } else if (next === firstCallbackNode) {
  54165. // The new callback has the earliest expiration in the entire list.
  54166. firstCallbackNode = newNode;
  54167. ensureHostCallbackIsScheduled();
  54168. }
  54169. var previous = next.previous;
  54170. previous.next = next.previous = newNode;
  54171. newNode.next = next;
  54172. newNode.previous = previous;
  54173. }
  54174. return newNode;
  54175. }
  54176. function unstable_cancelCallback(callbackNode) {
  54177. var next = callbackNode.next;
  54178. if (next === null) {
  54179. // Already cancelled.
  54180. return;
  54181. }
  54182. if (next === callbackNode) {
  54183. // This is the only scheduled callback. Clear the list.
  54184. firstCallbackNode = null;
  54185. } else {
  54186. // Remove the callback from its position in the list.
  54187. if (callbackNode === firstCallbackNode) {
  54188. firstCallbackNode = next;
  54189. }
  54190. var previous = callbackNode.previous;
  54191. previous.next = next;
  54192. next.previous = previous;
  54193. }
  54194. callbackNode.next = callbackNode.previous = null;
  54195. }
  54196. function unstable_getCurrentPriorityLevel() {
  54197. return currentPriorityLevel;
  54198. }
  54199. function unstable_shouldYield() {
  54200. return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());
  54201. }
  54202. // The remaining code is essentially a polyfill for requestIdleCallback. It
  54203. // works by scheduling a requestAnimationFrame, storing the time for the start
  54204. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  54205. // Within the postMessage handler do as much work as possible until time + frame
  54206. // rate. By separating the idle call into a separate event tick we ensure that
  54207. // layout, paint and other browser work is counted against the available time.
  54208. // The frame rate is dynamically adjusted.
  54209. // We capture a local reference to any global, in case it gets polyfilled after
  54210. // this module is initially evaluated. We want to be using a
  54211. // consistent implementation.
  54212. var localDate = Date;
  54213. // This initialization code may run even on server environments if a component
  54214. // just imports ReactDOM (e.g. for findDOMNode). Some environments might not
  54215. // have setTimeout or clearTimeout. However, we always expect them to be defined
  54216. // on the client. https://github.com/facebook/react/pull/13088
  54217. var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  54218. var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  54219. // We don't expect either of these to necessarily be defined, but we will error
  54220. // later if they are missing on the client.
  54221. var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
  54222. var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;
  54223. // requestAnimationFrame does not run when the tab is in the background. If
  54224. // we're backgrounded we prefer for that work to happen so that the page
  54225. // continues to load in the background. So we also schedule a 'setTimeout' as
  54226. // a fallback.
  54227. // TODO: Need a better heuristic for backgrounded work.
  54228. var ANIMATION_FRAME_TIMEOUT = 100;
  54229. var rAFID;
  54230. var rAFTimeoutID;
  54231. var requestAnimationFrameWithTimeout = function (callback) {
  54232. // schedule rAF and also a setTimeout
  54233. rAFID = localRequestAnimationFrame(function (timestamp) {
  54234. // cancel the setTimeout
  54235. localClearTimeout(rAFTimeoutID);
  54236. callback(timestamp);
  54237. });
  54238. rAFTimeoutID = localSetTimeout(function () {
  54239. // cancel the requestAnimationFrame
  54240. localCancelAnimationFrame(rAFID);
  54241. callback(exports.unstable_now());
  54242. }, ANIMATION_FRAME_TIMEOUT);
  54243. };
  54244. if (hasNativePerformanceNow) {
  54245. var Performance = performance;
  54246. exports.unstable_now = function () {
  54247. return Performance.now();
  54248. };
  54249. } else {
  54250. exports.unstable_now = function () {
  54251. return localDate.now();
  54252. };
  54253. }
  54254. var requestHostCallback;
  54255. var cancelHostCallback;
  54256. var shouldYieldToHost;
  54257. var globalValue = null;
  54258. if (typeof window !== 'undefined') {
  54259. globalValue = window;
  54260. } else if (typeof global !== 'undefined') {
  54261. globalValue = global;
  54262. }
  54263. if (globalValue && globalValue._schedMock) {
  54264. // Dynamic injection, only for testing purposes.
  54265. var globalImpl = globalValue._schedMock;
  54266. requestHostCallback = globalImpl[0];
  54267. cancelHostCallback = globalImpl[1];
  54268. shouldYieldToHost = globalImpl[2];
  54269. exports.unstable_now = globalImpl[3];
  54270. } else if (
  54271. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  54272. // implementation using setTimeout.
  54273. typeof window === 'undefined' ||
  54274. // Check if MessageChannel is supported, too.
  54275. typeof MessageChannel !== 'function') {
  54276. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  54277. // fallback to a naive implementation.
  54278. var _callback = null;
  54279. var _flushCallback = function (didTimeout) {
  54280. if (_callback !== null) {
  54281. try {
  54282. _callback(didTimeout);
  54283. } finally {
  54284. _callback = null;
  54285. }
  54286. }
  54287. };
  54288. requestHostCallback = function (cb, ms) {
  54289. if (_callback !== null) {
  54290. // Protect against re-entrancy.
  54291. setTimeout(requestHostCallback, 0, cb);
  54292. } else {
  54293. _callback = cb;
  54294. setTimeout(_flushCallback, 0, false);
  54295. }
  54296. };
  54297. cancelHostCallback = function () {
  54298. _callback = null;
  54299. };
  54300. shouldYieldToHost = function () {
  54301. return false;
  54302. };
  54303. } else {
  54304. if (typeof console !== 'undefined') {
  54305. // TODO: Remove fb.me link
  54306. if (typeof localRequestAnimationFrame !== 'function') {
  54307. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  54308. }
  54309. if (typeof localCancelAnimationFrame !== 'function') {
  54310. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  54311. }
  54312. }
  54313. var scheduledHostCallback = null;
  54314. var isMessageEventScheduled = false;
  54315. var timeoutTime = -1;
  54316. var isAnimationFrameScheduled = false;
  54317. var isFlushingHostCallback = false;
  54318. var frameDeadline = 0;
  54319. // We start out assuming that we run at 30fps but then the heuristic tracking
  54320. // will adjust this value to a faster fps if we get more frequent animation
  54321. // frames.
  54322. var previousFrameTime = 33;
  54323. var activeFrameTime = 33;
  54324. shouldYieldToHost = function () {
  54325. return frameDeadline <= exports.unstable_now();
  54326. };
  54327. // We use the postMessage trick to defer idle work until after the repaint.
  54328. var channel = new MessageChannel();
  54329. var port = channel.port2;
  54330. channel.port1.onmessage = function (event) {
  54331. isMessageEventScheduled = false;
  54332. var prevScheduledCallback = scheduledHostCallback;
  54333. var prevTimeoutTime = timeoutTime;
  54334. scheduledHostCallback = null;
  54335. timeoutTime = -1;
  54336. var currentTime = exports.unstable_now();
  54337. var didTimeout = false;
  54338. if (frameDeadline - currentTime <= 0) {
  54339. // There's no time left in this idle period. Check if the callback has
  54340. // a timeout and whether it's been exceeded.
  54341. if (prevTimeoutTime !== -1 && prevTimeoutTime <= currentTime) {
  54342. // Exceeded the timeout. Invoke the callback even though there's no
  54343. // time left.
  54344. didTimeout = true;
  54345. } else {
  54346. // No timeout.
  54347. if (!isAnimationFrameScheduled) {
  54348. // Schedule another animation callback so we retry later.
  54349. isAnimationFrameScheduled = true;
  54350. requestAnimationFrameWithTimeout(animationTick);
  54351. }
  54352. // Exit without invoking the callback.
  54353. scheduledHostCallback = prevScheduledCallback;
  54354. timeoutTime = prevTimeoutTime;
  54355. return;
  54356. }
  54357. }
  54358. if (prevScheduledCallback !== null) {
  54359. isFlushingHostCallback = true;
  54360. try {
  54361. prevScheduledCallback(didTimeout);
  54362. } finally {
  54363. isFlushingHostCallback = false;
  54364. }
  54365. }
  54366. };
  54367. var animationTick = function (rafTime) {
  54368. if (scheduledHostCallback !== null) {
  54369. // Eagerly schedule the next animation callback at the beginning of the
  54370. // frame. If the scheduler queue is not empty at the end of the frame, it
  54371. // will continue flushing inside that callback. If the queue *is* empty,
  54372. // then it will exit immediately. Posting the callback at the start of the
  54373. // frame ensures it's fired within the earliest possible frame. If we
  54374. // waited until the end of the frame to post the callback, we risk the
  54375. // browser skipping a frame and not firing the callback until the frame
  54376. // after that.
  54377. requestAnimationFrameWithTimeout(animationTick);
  54378. } else {
  54379. // No pending work. Exit.
  54380. isAnimationFrameScheduled = false;
  54381. return;
  54382. }
  54383. var nextFrameTime = rafTime - frameDeadline + activeFrameTime;
  54384. if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {
  54385. if (nextFrameTime < 8) {
  54386. // Defensive coding. We don't support higher frame rates than 120hz.
  54387. // If the calculated frame time gets lower than 8, it is probably a bug.
  54388. nextFrameTime = 8;
  54389. }
  54390. // If one frame goes long, then the next one can be short to catch up.
  54391. // If two frames are short in a row, then that's an indication that we
  54392. // actually have a higher frame rate than what we're currently optimizing.
  54393. // We adjust our heuristic dynamically accordingly. For example, if we're
  54394. // running on 120hz display or 90hz VR display.
  54395. // Take the max of the two in case one of them was an anomaly due to
  54396. // missed frame deadlines.
  54397. activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;
  54398. } else {
  54399. previousFrameTime = nextFrameTime;
  54400. }
  54401. frameDeadline = rafTime + activeFrameTime;
  54402. if (!isMessageEventScheduled) {
  54403. isMessageEventScheduled = true;
  54404. port.postMessage(undefined);
  54405. }
  54406. };
  54407. requestHostCallback = function (callback, absoluteTimeout) {
  54408. scheduledHostCallback = callback;
  54409. timeoutTime = absoluteTimeout;
  54410. if (isFlushingHostCallback || absoluteTimeout < 0) {
  54411. // Don't wait for the next frame. Continue working ASAP, in a new event.
  54412. port.postMessage(undefined);
  54413. } else if (!isAnimationFrameScheduled) {
  54414. // If rAF didn't already schedule one, we need to schedule a frame.
  54415. // TODO: If this rAF doesn't materialize because the browser throttles, we
  54416. // might want to still have setTimeout trigger rIC as a backup to ensure
  54417. // that we keep performing work.
  54418. isAnimationFrameScheduled = true;
  54419. requestAnimationFrameWithTimeout(animationTick);
  54420. }
  54421. };
  54422. cancelHostCallback = function () {
  54423. scheduledHostCallback = null;
  54424. isMessageEventScheduled = false;
  54425. timeoutTime = -1;
  54426. };
  54427. }
  54428. exports.unstable_ImmediatePriority = ImmediatePriority;
  54429. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  54430. exports.unstable_NormalPriority = NormalPriority;
  54431. exports.unstable_IdlePriority = IdlePriority;
  54432. exports.unstable_LowPriority = LowPriority;
  54433. exports.unstable_runWithPriority = unstable_runWithPriority;
  54434. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  54435. exports.unstable_cancelCallback = unstable_cancelCallback;
  54436. exports.unstable_wrapCallback = unstable_wrapCallback;
  54437. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  54438. exports.unstable_shouldYield = unstable_shouldYield;
  54439. })();
  54440. }
  54441. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  54442. /***/ }),
  54443. /***/ "../../node_modules/scheduler/index.js":
  54444. /*!***********************************************************!*\
  54445. !*** C:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  54446. \***********************************************************/
  54447. /*! no static exports found */
  54448. /***/ (function(module, exports, __webpack_require__) {
  54449. "use strict";
  54450. if (false) {} else {
  54451. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  54452. }
  54453. /***/ }),
  54454. /***/ "../../node_modules/scheduler/tracing.js":
  54455. /*!*************************************************************!*\
  54456. !*** C:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  54457. \*************************************************************/
  54458. /*! no static exports found */
  54459. /***/ (function(module, exports, __webpack_require__) {
  54460. "use strict";
  54461. if (false) {} else {
  54462. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  54463. }
  54464. /***/ }),
  54465. /***/ "../../node_modules/setimmediate/setImmediate.js":
  54466. /*!*********************************************************************!*\
  54467. !*** C:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  54468. \*********************************************************************/
  54469. /*! no static exports found */
  54470. /***/ (function(module, exports, __webpack_require__) {
  54471. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  54472. "use strict";
  54473. if (global.setImmediate) {
  54474. return;
  54475. }
  54476. var nextHandle = 1; // Spec says greater than zero
  54477. var tasksByHandle = {};
  54478. var currentlyRunningATask = false;
  54479. var doc = global.document;
  54480. var registerImmediate;
  54481. function setImmediate(callback) {
  54482. // Callback can either be a function or a string
  54483. if (typeof callback !== "function") {
  54484. callback = new Function("" + callback);
  54485. }
  54486. // Copy function arguments
  54487. var args = new Array(arguments.length - 1);
  54488. for (var i = 0; i < args.length; i++) {
  54489. args[i] = arguments[i + 1];
  54490. }
  54491. // Store and register the task
  54492. var task = { callback: callback, args: args };
  54493. tasksByHandle[nextHandle] = task;
  54494. registerImmediate(nextHandle);
  54495. return nextHandle++;
  54496. }
  54497. function clearImmediate(handle) {
  54498. delete tasksByHandle[handle];
  54499. }
  54500. function run(task) {
  54501. var callback = task.callback;
  54502. var args = task.args;
  54503. switch (args.length) {
  54504. case 0:
  54505. callback();
  54506. break;
  54507. case 1:
  54508. callback(args[0]);
  54509. break;
  54510. case 2:
  54511. callback(args[0], args[1]);
  54512. break;
  54513. case 3:
  54514. callback(args[0], args[1], args[2]);
  54515. break;
  54516. default:
  54517. callback.apply(undefined, args);
  54518. break;
  54519. }
  54520. }
  54521. function runIfPresent(handle) {
  54522. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  54523. // So if we're currently running a task, we'll need to delay this invocation.
  54524. if (currentlyRunningATask) {
  54525. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  54526. // "too much recursion" error.
  54527. setTimeout(runIfPresent, 0, handle);
  54528. } else {
  54529. var task = tasksByHandle[handle];
  54530. if (task) {
  54531. currentlyRunningATask = true;
  54532. try {
  54533. run(task);
  54534. } finally {
  54535. clearImmediate(handle);
  54536. currentlyRunningATask = false;
  54537. }
  54538. }
  54539. }
  54540. }
  54541. function installNextTickImplementation() {
  54542. registerImmediate = function(handle) {
  54543. process.nextTick(function () { runIfPresent(handle); });
  54544. };
  54545. }
  54546. function canUsePostMessage() {
  54547. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  54548. // where `global.postMessage` means something completely different and can't be used for this purpose.
  54549. if (global.postMessage && !global.importScripts) {
  54550. var postMessageIsAsynchronous = true;
  54551. var oldOnMessage = global.onmessage;
  54552. global.onmessage = function() {
  54553. postMessageIsAsynchronous = false;
  54554. };
  54555. global.postMessage("", "*");
  54556. global.onmessage = oldOnMessage;
  54557. return postMessageIsAsynchronous;
  54558. }
  54559. }
  54560. function installPostMessageImplementation() {
  54561. // Installs an event handler on `global` for the `message` event: see
  54562. // * https://developer.mozilla.org/en/DOM/window.postMessage
  54563. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  54564. var messagePrefix = "setImmediate$" + Math.random() + "$";
  54565. var onGlobalMessage = function(event) {
  54566. if (event.source === global &&
  54567. typeof event.data === "string" &&
  54568. event.data.indexOf(messagePrefix) === 0) {
  54569. runIfPresent(+event.data.slice(messagePrefix.length));
  54570. }
  54571. };
  54572. if (global.addEventListener) {
  54573. global.addEventListener("message", onGlobalMessage, false);
  54574. } else {
  54575. global.attachEvent("onmessage", onGlobalMessage);
  54576. }
  54577. registerImmediate = function(handle) {
  54578. global.postMessage(messagePrefix + handle, "*");
  54579. };
  54580. }
  54581. function installMessageChannelImplementation() {
  54582. var channel = new MessageChannel();
  54583. channel.port1.onmessage = function(event) {
  54584. var handle = event.data;
  54585. runIfPresent(handle);
  54586. };
  54587. registerImmediate = function(handle) {
  54588. channel.port2.postMessage(handle);
  54589. };
  54590. }
  54591. function installReadyStateChangeImplementation() {
  54592. var html = doc.documentElement;
  54593. registerImmediate = function(handle) {
  54594. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  54595. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  54596. var script = doc.createElement("script");
  54597. script.onreadystatechange = function () {
  54598. runIfPresent(handle);
  54599. script.onreadystatechange = null;
  54600. html.removeChild(script);
  54601. script = null;
  54602. };
  54603. html.appendChild(script);
  54604. };
  54605. }
  54606. function installSetTimeoutImplementation() {
  54607. registerImmediate = function(handle) {
  54608. setTimeout(runIfPresent, 0, handle);
  54609. };
  54610. }
  54611. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  54612. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  54613. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  54614. // Don't get fooled by e.g. browserify environments.
  54615. if ({}.toString.call(global.process) === "[object process]") {
  54616. // For Node.js before 0.9
  54617. installNextTickImplementation();
  54618. } else if (canUsePostMessage()) {
  54619. // For non-IE10 modern browsers
  54620. installPostMessageImplementation();
  54621. } else if (global.MessageChannel) {
  54622. // For web workers, where supported
  54623. installMessageChannelImplementation();
  54624. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  54625. // For IE 6–8
  54626. installReadyStateChangeImplementation();
  54627. } else {
  54628. // For older browsers
  54629. installSetTimeoutImplementation();
  54630. }
  54631. attachTo.setImmediate = setImmediate;
  54632. attachTo.clearImmediate = clearImmediate;
  54633. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  54634. /* 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")))
  54635. /***/ }),
  54636. /***/ "../../node_modules/storm-react-diagrams/dist/main.js":
  54637. /*!**************************************************************************!*\
  54638. !*** C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/main.js ***!
  54639. \**************************************************************************/
  54640. /*! no static exports found */
  54641. /***/ (function(module, exports, __webpack_require__) {
  54642. (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};
  54643. //!-------------- FACTORIES ------------
  54644. 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}}}])});
  54645. //# sourceMappingURL=main.js.map
  54646. /***/ }),
  54647. /***/ "../../node_modules/storm-react-diagrams/dist/style.min.css":
  54648. /*!********************************************************************************!*\
  54649. !*** C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  54650. \********************************************************************************/
  54651. /*! no static exports found */
  54652. /***/ (function(module, exports, __webpack_require__) {
  54653. var content = __webpack_require__(/*! !../../css-loader!./style.min.css */ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css");
  54654. if(typeof content === 'string') content = [[module.i, content, '']];
  54655. var transform;
  54656. var insertInto;
  54657. var options = {"hmr":true}
  54658. options.transform = transform
  54659. options.insertInto = undefined;
  54660. var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  54661. if(content.locals) module.exports = content.locals;
  54662. if(false) {}
  54663. /***/ }),
  54664. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  54665. /*!**********************************************************************!*\
  54666. !*** C:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  54667. \**********************************************************************/
  54668. /*! no static exports found */
  54669. /***/ (function(module, exports, __webpack_require__) {
  54670. /*
  54671. MIT License http://www.opensource.org/licenses/mit-license.php
  54672. Author Tobias Koppers @sokra
  54673. */
  54674. var stylesInDom = {};
  54675. var memoize = function (fn) {
  54676. var memo;
  54677. return function () {
  54678. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  54679. return memo;
  54680. };
  54681. };
  54682. var isOldIE = memoize(function () {
  54683. // Test for IE <= 9 as proposed by Browserhacks
  54684. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  54685. // Tests for existence of standard globals is to allow style-loader
  54686. // to operate correctly into non-standard environments
  54687. // @see https://github.com/webpack-contrib/style-loader/issues/177
  54688. return window && document && document.all && !window.atob;
  54689. });
  54690. var getTarget = function (target) {
  54691. return document.querySelector(target);
  54692. };
  54693. var getElement = (function (fn) {
  54694. var memo = {};
  54695. return function(target) {
  54696. // If passing function in options, then use it for resolve "head" element.
  54697. // Useful for Shadow Root style i.e
  54698. // {
  54699. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  54700. // }
  54701. if (typeof target === 'function') {
  54702. return target();
  54703. }
  54704. if (typeof memo[target] === "undefined") {
  54705. var styleTarget = getTarget.call(this, target);
  54706. // Special case to return head of iframe instead of iframe itself
  54707. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  54708. try {
  54709. // This will throw an exception if access to iframe is blocked
  54710. // due to cross-origin restrictions
  54711. styleTarget = styleTarget.contentDocument.head;
  54712. } catch(e) {
  54713. styleTarget = null;
  54714. }
  54715. }
  54716. memo[target] = styleTarget;
  54717. }
  54718. return memo[target]
  54719. };
  54720. })();
  54721. var singleton = null;
  54722. var singletonCounter = 0;
  54723. var stylesInsertedAtTop = [];
  54724. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  54725. module.exports = function(list, options) {
  54726. if (typeof DEBUG !== "undefined" && DEBUG) {
  54727. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  54728. }
  54729. options = options || {};
  54730. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  54731. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  54732. // tags it will allow on a page
  54733. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  54734. // By default, add <style> tags to the <head> element
  54735. if (!options.insertInto) options.insertInto = "head";
  54736. // By default, add <style> tags to the bottom of the target
  54737. if (!options.insertAt) options.insertAt = "bottom";
  54738. var styles = listToStyles(list, options);
  54739. addStylesToDom(styles, options);
  54740. return function update (newList) {
  54741. var mayRemove = [];
  54742. for (var i = 0; i < styles.length; i++) {
  54743. var item = styles[i];
  54744. var domStyle = stylesInDom[item.id];
  54745. domStyle.refs--;
  54746. mayRemove.push(domStyle);
  54747. }
  54748. if(newList) {
  54749. var newStyles = listToStyles(newList, options);
  54750. addStylesToDom(newStyles, options);
  54751. }
  54752. for (var i = 0; i < mayRemove.length; i++) {
  54753. var domStyle = mayRemove[i];
  54754. if(domStyle.refs === 0) {
  54755. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  54756. delete stylesInDom[domStyle.id];
  54757. }
  54758. }
  54759. };
  54760. };
  54761. function addStylesToDom (styles, options) {
  54762. for (var i = 0; i < styles.length; i++) {
  54763. var item = styles[i];
  54764. var domStyle = stylesInDom[item.id];
  54765. if(domStyle) {
  54766. domStyle.refs++;
  54767. for(var j = 0; j < domStyle.parts.length; j++) {
  54768. domStyle.parts[j](item.parts[j]);
  54769. }
  54770. for(; j < item.parts.length; j++) {
  54771. domStyle.parts.push(addStyle(item.parts[j], options));
  54772. }
  54773. } else {
  54774. var parts = [];
  54775. for(var j = 0; j < item.parts.length; j++) {
  54776. parts.push(addStyle(item.parts[j], options));
  54777. }
  54778. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  54779. }
  54780. }
  54781. }
  54782. function listToStyles (list, options) {
  54783. var styles = [];
  54784. var newStyles = {};
  54785. for (var i = 0; i < list.length; i++) {
  54786. var item = list[i];
  54787. var id = options.base ? item[0] + options.base : item[0];
  54788. var css = item[1];
  54789. var media = item[2];
  54790. var sourceMap = item[3];
  54791. var part = {css: css, media: media, sourceMap: sourceMap};
  54792. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  54793. else newStyles[id].parts.push(part);
  54794. }
  54795. return styles;
  54796. }
  54797. function insertStyleElement (options, style) {
  54798. var target = getElement(options.insertInto)
  54799. if (!target) {
  54800. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  54801. }
  54802. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  54803. if (options.insertAt === "top") {
  54804. if (!lastStyleElementInsertedAtTop) {
  54805. target.insertBefore(style, target.firstChild);
  54806. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  54807. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  54808. } else {
  54809. target.appendChild(style);
  54810. }
  54811. stylesInsertedAtTop.push(style);
  54812. } else if (options.insertAt === "bottom") {
  54813. target.appendChild(style);
  54814. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  54815. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  54816. target.insertBefore(style, nextSibling);
  54817. } else {
  54818. 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");
  54819. }
  54820. }
  54821. function removeStyleElement (style) {
  54822. if (style.parentNode === null) return false;
  54823. style.parentNode.removeChild(style);
  54824. var idx = stylesInsertedAtTop.indexOf(style);
  54825. if(idx >= 0) {
  54826. stylesInsertedAtTop.splice(idx, 1);
  54827. }
  54828. }
  54829. function createStyleElement (options) {
  54830. var style = document.createElement("style");
  54831. if(options.attrs.type === undefined) {
  54832. options.attrs.type = "text/css";
  54833. }
  54834. addAttrs(style, options.attrs);
  54835. insertStyleElement(options, style);
  54836. return style;
  54837. }
  54838. function createLinkElement (options) {
  54839. var link = document.createElement("link");
  54840. if(options.attrs.type === undefined) {
  54841. options.attrs.type = "text/css";
  54842. }
  54843. options.attrs.rel = "stylesheet";
  54844. addAttrs(link, options.attrs);
  54845. insertStyleElement(options, link);
  54846. return link;
  54847. }
  54848. function addAttrs (el, attrs) {
  54849. Object.keys(attrs).forEach(function (key) {
  54850. el.setAttribute(key, attrs[key]);
  54851. });
  54852. }
  54853. function addStyle (obj, options) {
  54854. var style, update, remove, result;
  54855. // If a transform function was defined, run it on the css
  54856. if (options.transform && obj.css) {
  54857. result = options.transform(obj.css);
  54858. if (result) {
  54859. // If transform returns a value, use that instead of the original css.
  54860. // This allows running runtime transformations on the css.
  54861. obj.css = result;
  54862. } else {
  54863. // If the transform function returns a falsy value, don't add this css.
  54864. // This allows conditional loading of css
  54865. return function() {
  54866. // noop
  54867. };
  54868. }
  54869. }
  54870. if (options.singleton) {
  54871. var styleIndex = singletonCounter++;
  54872. style = singleton || (singleton = createStyleElement(options));
  54873. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  54874. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  54875. } else if (
  54876. obj.sourceMap &&
  54877. typeof URL === "function" &&
  54878. typeof URL.createObjectURL === "function" &&
  54879. typeof URL.revokeObjectURL === "function" &&
  54880. typeof Blob === "function" &&
  54881. typeof btoa === "function"
  54882. ) {
  54883. style = createLinkElement(options);
  54884. update = updateLink.bind(null, style, options);
  54885. remove = function () {
  54886. removeStyleElement(style);
  54887. if(style.href) URL.revokeObjectURL(style.href);
  54888. };
  54889. } else {
  54890. style = createStyleElement(options);
  54891. update = applyToTag.bind(null, style);
  54892. remove = function () {
  54893. removeStyleElement(style);
  54894. };
  54895. }
  54896. update(obj);
  54897. return function updateStyle (newObj) {
  54898. if (newObj) {
  54899. if (
  54900. newObj.css === obj.css &&
  54901. newObj.media === obj.media &&
  54902. newObj.sourceMap === obj.sourceMap
  54903. ) {
  54904. return;
  54905. }
  54906. update(obj = newObj);
  54907. } else {
  54908. remove();
  54909. }
  54910. };
  54911. }
  54912. var replaceText = (function () {
  54913. var textStore = [];
  54914. return function (index, replacement) {
  54915. textStore[index] = replacement;
  54916. return textStore.filter(Boolean).join('\n');
  54917. };
  54918. })();
  54919. function applyToSingletonTag (style, index, remove, obj) {
  54920. var css = remove ? "" : obj.css;
  54921. if (style.styleSheet) {
  54922. style.styleSheet.cssText = replaceText(index, css);
  54923. } else {
  54924. var cssNode = document.createTextNode(css);
  54925. var childNodes = style.childNodes;
  54926. if (childNodes[index]) style.removeChild(childNodes[index]);
  54927. if (childNodes.length) {
  54928. style.insertBefore(cssNode, childNodes[index]);
  54929. } else {
  54930. style.appendChild(cssNode);
  54931. }
  54932. }
  54933. }
  54934. function applyToTag (style, obj) {
  54935. var css = obj.css;
  54936. var media = obj.media;
  54937. if(media) {
  54938. style.setAttribute("media", media)
  54939. }
  54940. if(style.styleSheet) {
  54941. style.styleSheet.cssText = css;
  54942. } else {
  54943. while(style.firstChild) {
  54944. style.removeChild(style.firstChild);
  54945. }
  54946. style.appendChild(document.createTextNode(css));
  54947. }
  54948. }
  54949. function updateLink (link, options, obj) {
  54950. var css = obj.css;
  54951. var sourceMap = obj.sourceMap;
  54952. /*
  54953. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  54954. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  54955. on by default. Otherwise default to the convertToAbsoluteUrls option
  54956. directly
  54957. */
  54958. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  54959. if (options.convertToAbsoluteUrls || autoFixUrls) {
  54960. css = fixUrls(css);
  54961. }
  54962. if (sourceMap) {
  54963. // http://stackoverflow.com/a/26603875
  54964. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  54965. }
  54966. var blob = new Blob([css], { type: "text/css" });
  54967. var oldSrc = link.href;
  54968. link.href = URL.createObjectURL(blob);
  54969. if(oldSrc) URL.revokeObjectURL(oldSrc);
  54970. }
  54971. /***/ }),
  54972. /***/ "../../node_modules/style-loader/lib/urls.js":
  54973. /*!*****************************************************************!*\
  54974. !*** C:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  54975. \*****************************************************************/
  54976. /*! no static exports found */
  54977. /***/ (function(module, exports) {
  54978. /**
  54979. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  54980. * embed the css on the page. This breaks all relative urls because now they are relative to a
  54981. * bundle instead of the current page.
  54982. *
  54983. * One solution is to only use full urls, but that may be impossible.
  54984. *
  54985. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  54986. *
  54987. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  54988. *
  54989. */
  54990. module.exports = function (css) {
  54991. // get current location
  54992. var location = typeof window !== "undefined" && window.location;
  54993. if (!location) {
  54994. throw new Error("fixUrls requires window.location");
  54995. }
  54996. // blank or null?
  54997. if (!css || typeof css !== "string") {
  54998. return css;
  54999. }
  55000. var baseUrl = location.protocol + "//" + location.host;
  55001. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  55002. // convert each url(...)
  55003. /*
  55004. This regular expression is just a way to recursively match brackets within
  55005. a string.
  55006. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  55007. ( = Start a capturing group
  55008. (?: = Start a non-capturing group
  55009. [^)(] = Match anything that isn't a parentheses
  55010. | = OR
  55011. \( = Match a start parentheses
  55012. (?: = Start another non-capturing groups
  55013. [^)(]+ = Match anything that isn't a parentheses
  55014. | = OR
  55015. \( = Match a start parentheses
  55016. [^)(]* = Match anything that isn't a parentheses
  55017. \) = Match a end parentheses
  55018. ) = End Group
  55019. *\) = Match anything and then a close parens
  55020. ) = Close non-capturing group
  55021. * = Match anything
  55022. ) = Close capturing group
  55023. \) = Match a close parens
  55024. /gi = Get all matches, not the first. Be case insensitive.
  55025. */
  55026. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  55027. // strip quotes (if they exist)
  55028. var unquotedOrigUrl = origUrl
  55029. .trim()
  55030. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  55031. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  55032. // already a full url? no change
  55033. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  55034. return fullMatch;
  55035. }
  55036. // convert the url to a full url
  55037. var newUrl;
  55038. if (unquotedOrigUrl.indexOf("//") === 0) {
  55039. //TODO: should we add protocol?
  55040. newUrl = unquotedOrigUrl;
  55041. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  55042. // path should be relative to the base url
  55043. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  55044. } else {
  55045. // path should be relative to current directory
  55046. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  55047. }
  55048. // send back the fixed url(...)
  55049. return "url(" + JSON.stringify(newUrl) + ")";
  55050. });
  55051. // send back the fixed css
  55052. return fixedCss;
  55053. };
  55054. /***/ }),
  55055. /***/ "../../node_modules/timers-browserify/main.js":
  55056. /*!******************************************************************!*\
  55057. !*** C:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  55058. \******************************************************************/
  55059. /*! no static exports found */
  55060. /***/ (function(module, exports, __webpack_require__) {
  55061. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  55062. (typeof self !== "undefined" && self) ||
  55063. window;
  55064. var apply = Function.prototype.apply;
  55065. // DOM APIs, for completeness
  55066. exports.setTimeout = function() {
  55067. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  55068. };
  55069. exports.setInterval = function() {
  55070. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  55071. };
  55072. exports.clearTimeout =
  55073. exports.clearInterval = function(timeout) {
  55074. if (timeout) {
  55075. timeout.close();
  55076. }
  55077. };
  55078. function Timeout(id, clearFn) {
  55079. this._id = id;
  55080. this._clearFn = clearFn;
  55081. }
  55082. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  55083. Timeout.prototype.close = function() {
  55084. this._clearFn.call(scope, this._id);
  55085. };
  55086. // Does not start the time, just sets up the members needed.
  55087. exports.enroll = function(item, msecs) {
  55088. clearTimeout(item._idleTimeoutId);
  55089. item._idleTimeout = msecs;
  55090. };
  55091. exports.unenroll = function(item) {
  55092. clearTimeout(item._idleTimeoutId);
  55093. item._idleTimeout = -1;
  55094. };
  55095. exports._unrefActive = exports.active = function(item) {
  55096. clearTimeout(item._idleTimeoutId);
  55097. var msecs = item._idleTimeout;
  55098. if (msecs >= 0) {
  55099. item._idleTimeoutId = setTimeout(function onTimeout() {
  55100. if (item._onTimeout)
  55101. item._onTimeout();
  55102. }, msecs);
  55103. }
  55104. };
  55105. // setimmediate attaches itself to the global object
  55106. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  55107. // On some exotic environments, it's not clear which object `setimmediate` was
  55108. // able to install onto. Search each possibility in the same order as the
  55109. // `setimmediate` library.
  55110. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  55111. (typeof global !== "undefined" && global.setImmediate) ||
  55112. (this && this.setImmediate);
  55113. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  55114. (typeof global !== "undefined" && global.clearImmediate) ||
  55115. (this && this.clearImmediate);
  55116. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  55117. /***/ }),
  55118. /***/ "../../node_modules/tslib/tslib.es6.js":
  55119. /*!***********************************************************!*\
  55120. !*** C:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  55121. \***********************************************************/
  55122. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  55123. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55124. "use strict";
  55125. __webpack_require__.r(__webpack_exports__);
  55126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  55127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  55128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  55129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  55130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  55131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  55132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  55133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  55134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  55135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  55136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  55137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  55138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  55139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  55140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  55141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  55142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  55143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  55144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  55145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  55146. /*! *****************************************************************************
  55147. Copyright (c) Microsoft Corporation. All rights reserved.
  55148. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  55149. this file except in compliance with the License. You may obtain a copy of the
  55150. License at http://www.apache.org/licenses/LICENSE-2.0
  55151. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  55152. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  55153. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  55154. MERCHANTABLITY OR NON-INFRINGEMENT.
  55155. See the Apache Version 2.0 License for specific language governing permissions
  55156. and limitations under the License.
  55157. ***************************************************************************** */
  55158. /* global Reflect, Promise */
  55159. var extendStatics = function(d, b) {
  55160. extendStatics = Object.setPrototypeOf ||
  55161. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  55162. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  55163. return extendStatics(d, b);
  55164. };
  55165. function __extends(d, b) {
  55166. extendStatics(d, b);
  55167. function __() { this.constructor = d; }
  55168. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  55169. }
  55170. var __assign = function() {
  55171. __assign = Object.assign || function __assign(t) {
  55172. for (var s, i = 1, n = arguments.length; i < n; i++) {
  55173. s = arguments[i];
  55174. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  55175. }
  55176. return t;
  55177. }
  55178. return __assign.apply(this, arguments);
  55179. }
  55180. function __rest(s, e) {
  55181. var t = {};
  55182. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  55183. t[p] = s[p];
  55184. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  55185. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  55186. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  55187. t[p[i]] = s[p[i]];
  55188. }
  55189. return t;
  55190. }
  55191. function __decorate(decorators, target, key, desc) {
  55192. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  55193. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  55194. 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;
  55195. return c > 3 && r && Object.defineProperty(target, key, r), r;
  55196. }
  55197. function __param(paramIndex, decorator) {
  55198. return function (target, key) { decorator(target, key, paramIndex); }
  55199. }
  55200. function __metadata(metadataKey, metadataValue) {
  55201. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  55202. }
  55203. function __awaiter(thisArg, _arguments, P, generator) {
  55204. return new (P || (P = Promise))(function (resolve, reject) {
  55205. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  55206. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  55207. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  55208. step((generator = generator.apply(thisArg, _arguments || [])).next());
  55209. });
  55210. }
  55211. function __generator(thisArg, body) {
  55212. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  55213. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  55214. function verb(n) { return function (v) { return step([n, v]); }; }
  55215. function step(op) {
  55216. if (f) throw new TypeError("Generator is already executing.");
  55217. while (_) try {
  55218. 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;
  55219. if (y = 0, t) op = [op[0] & 2, t.value];
  55220. switch (op[0]) {
  55221. case 0: case 1: t = op; break;
  55222. case 4: _.label++; return { value: op[1], done: false };
  55223. case 5: _.label++; y = op[1]; op = [0]; continue;
  55224. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  55225. default:
  55226. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  55227. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  55228. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  55229. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  55230. if (t[2]) _.ops.pop();
  55231. _.trys.pop(); continue;
  55232. }
  55233. op = body.call(thisArg, _);
  55234. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  55235. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  55236. }
  55237. }
  55238. function __exportStar(m, exports) {
  55239. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  55240. }
  55241. function __values(o) {
  55242. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  55243. if (m) return m.call(o);
  55244. return {
  55245. next: function () {
  55246. if (o && i >= o.length) o = void 0;
  55247. return { value: o && o[i++], done: !o };
  55248. }
  55249. };
  55250. }
  55251. function __read(o, n) {
  55252. var m = typeof Symbol === "function" && o[Symbol.iterator];
  55253. if (!m) return o;
  55254. var i = m.call(o), r, ar = [], e;
  55255. try {
  55256. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  55257. }
  55258. catch (error) { e = { error: error }; }
  55259. finally {
  55260. try {
  55261. if (r && !r.done && (m = i["return"])) m.call(i);
  55262. }
  55263. finally { if (e) throw e.error; }
  55264. }
  55265. return ar;
  55266. }
  55267. function __spread() {
  55268. for (var ar = [], i = 0; i < arguments.length; i++)
  55269. ar = ar.concat(__read(arguments[i]));
  55270. return ar;
  55271. }
  55272. function __spreadArrays() {
  55273. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  55274. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  55275. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  55276. r[k] = a[j];
  55277. return r;
  55278. };
  55279. function __await(v) {
  55280. return this instanceof __await ? (this.v = v, this) : new __await(v);
  55281. }
  55282. function __asyncGenerator(thisArg, _arguments, generator) {
  55283. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  55284. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  55285. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  55286. 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); }); }; }
  55287. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  55288. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  55289. function fulfill(value) { resume("next", value); }
  55290. function reject(value) { resume("throw", value); }
  55291. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  55292. }
  55293. function __asyncDelegator(o) {
  55294. var i, p;
  55295. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  55296. 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; }
  55297. }
  55298. function __asyncValues(o) {
  55299. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  55300. var m = o[Symbol.asyncIterator], i;
  55301. 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);
  55302. 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); }); }; }
  55303. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  55304. }
  55305. function __makeTemplateObject(cooked, raw) {
  55306. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  55307. return cooked;
  55308. };
  55309. function __importStar(mod) {
  55310. if (mod && mod.__esModule) return mod;
  55311. var result = {};
  55312. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  55313. result.default = mod;
  55314. return result;
  55315. }
  55316. function __importDefault(mod) {
  55317. return (mod && mod.__esModule) ? mod : { default: mod };
  55318. }
  55319. /***/ }),
  55320. /***/ "../../node_modules/webpack/buildin/global.js":
  55321. /*!***********************************!*\
  55322. !*** (webpack)/buildin/global.js ***!
  55323. \***********************************/
  55324. /*! no static exports found */
  55325. /***/ (function(module, exports) {
  55326. var g;
  55327. // This works in non-strict mode
  55328. g = (function() {
  55329. return this;
  55330. })();
  55331. try {
  55332. // This works if eval is allowed (see CSP)
  55333. g = g || new Function("return this")();
  55334. } catch (e) {
  55335. // This works if the window reference is available
  55336. if (typeof window === "object") g = window;
  55337. }
  55338. // g can still be undefined, but nothing to do about it...
  55339. // We return undefined, instead of nothing here, so it's
  55340. // easier to handle this case. if(!global) { ...}
  55341. module.exports = g;
  55342. /***/ }),
  55343. /***/ "../../node_modules/webpack/buildin/module.js":
  55344. /*!***********************************!*\
  55345. !*** (webpack)/buildin/module.js ***!
  55346. \***********************************/
  55347. /*! no static exports found */
  55348. /***/ (function(module, exports) {
  55349. module.exports = function(module) {
  55350. if (!module.webpackPolyfill) {
  55351. module.deprecate = function() {};
  55352. module.paths = [];
  55353. // module.parent = undefined by default
  55354. if (!module.children) module.children = [];
  55355. Object.defineProperty(module, "loaded", {
  55356. enumerable: true,
  55357. get: function() {
  55358. return module.l;
  55359. }
  55360. });
  55361. Object.defineProperty(module, "id", {
  55362. enumerable: true,
  55363. get: function() {
  55364. return module.i;
  55365. }
  55366. });
  55367. module.webpackPolyfill = 1;
  55368. }
  55369. return module;
  55370. };
  55371. /***/ }),
  55372. /***/ "./blockTools.ts":
  55373. /*!***********************!*\
  55374. !*** ./blockTools.ts ***!
  55375. \***********************/
  55376. /*! exports provided: BlockTools */
  55377. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55378. "use strict";
  55379. __webpack_require__.r(__webpack_exports__);
  55380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  55381. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock */ "babylonjs/Misc/observable");
  55382. /* 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__);
  55383. var BlockTools = /** @class */ (function () {
  55384. function BlockTools() {
  55385. }
  55386. BlockTools.GetBlockFromString = function (data) {
  55387. switch (data) {
  55388. case "BonesBlock":
  55389. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  55390. case "InstancesBlock":
  55391. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  55392. case "MorphTargetsBlock":
  55393. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  55394. case "AlphaTestBlock":
  55395. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AlphaTestBlock"]("AlphaTest");
  55396. case "ImageProcessingBlock":
  55397. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  55398. case "ColorMergerBlock":
  55399. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  55400. case "VectorMergerBlock":
  55401. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  55402. case "ColorSplitterBlock":
  55403. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  55404. case "VectorSplitterBlock":
  55405. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  55406. case "TextureBlock":
  55407. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture");
  55408. case "ReflectionTextureBlock":
  55409. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Texture");
  55410. case "LightBlock":
  55411. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  55412. case "FogBlock":
  55413. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  55414. case "VertexOutputBlock":
  55415. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  55416. case "FragmentOutputBlock":
  55417. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  55418. case "AddBlock":
  55419. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  55420. case "ClampBlock":
  55421. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  55422. case "ScaleBlock":
  55423. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  55424. case "CrossBlock":
  55425. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Dot");
  55426. case "DotBlock":
  55427. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  55428. case "MultiplyBlock":
  55429. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  55430. case "TransformBlock":
  55431. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  55432. case "TrigonometryBlock":
  55433. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  55434. case "RemapBlock":
  55435. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  55436. case "NormalizeBlock":
  55437. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  55438. }
  55439. return null;
  55440. };
  55441. BlockTools.GetColorFromConnectionNodeType = function (type) {
  55442. var color = "Red";
  55443. switch (type) {
  55444. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  55445. color = "#ca9e27";
  55446. break;
  55447. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55448. color = "#16bcb1";
  55449. break;
  55450. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55451. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55452. color = "#b786cb";
  55453. break;
  55454. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55455. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55456. color = "#be5126";
  55457. break;
  55458. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55459. color = "#591990";
  55460. break;
  55461. }
  55462. return color;
  55463. };
  55464. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  55465. switch (type) {
  55466. case "Float":
  55467. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  55468. case "Vector2":
  55469. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  55470. case "Vector3":
  55471. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  55472. case "Vector4":
  55473. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  55474. case "Matrix":
  55475. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  55476. case "Color3":
  55477. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  55478. case "Color4":
  55479. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  55480. }
  55481. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  55482. };
  55483. BlockTools.GetStringFromConnectionNodeType = function (type) {
  55484. switch (type) {
  55485. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  55486. return "Float";
  55487. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55488. return "Vector2";
  55489. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55490. return "Vector3";
  55491. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55492. return "Vector4";
  55493. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55494. return "Color3";
  55495. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55496. return "Color4";
  55497. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55498. return "Matrix";
  55499. }
  55500. return "";
  55501. };
  55502. return BlockTools;
  55503. }());
  55504. /***/ }),
  55505. /***/ "./components/diagram/defaultNodeModel.ts":
  55506. /*!************************************************!*\
  55507. !*** ./components/diagram/defaultNodeModel.ts ***!
  55508. \************************************************/
  55509. /*! exports provided: DefaultNodeModel */
  55510. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55511. "use strict";
  55512. __webpack_require__.r(__webpack_exports__);
  55513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultNodeModel", function() { return DefaultNodeModel; });
  55514. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55515. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55516. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55517. /* harmony import */ var _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  55518. /**
  55519. * Generic node model which stores information about a node editor block
  55520. */
  55521. var DefaultNodeModel = /** @class */ (function (_super) {
  55522. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultNodeModel, _super);
  55523. /**
  55524. * Constructs the node model
  55525. */
  55526. function DefaultNodeModel(key) {
  55527. var _this = _super.call(this, key) || this;
  55528. /**
  55529. * The babylon block this node represents
  55530. */
  55531. _this.block = null;
  55532. return _this;
  55533. }
  55534. DefaultNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  55535. var _this = this;
  55536. this.block = options.nodeMaterialBlock || null;
  55537. if (!options.nodeMaterialBlock) {
  55538. return;
  55539. }
  55540. // Create output ports
  55541. options.nodeMaterialBlock._outputs.forEach(function (connection) {
  55542. var outputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "output");
  55543. outputPort.syncWithNodeMaterialConnectionPoint(connection);
  55544. _this.addPort(outputPort);
  55545. });
  55546. // Create input ports and nodes if they exist
  55547. options.nodeMaterialBlock._inputs.forEach(function (connection) {
  55548. var inputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "input");
  55549. inputPort.connection = connection;
  55550. _this.addPort(inputPort);
  55551. if (connection.connectedPoint) {
  55552. // Block is not a leaf node, create node for the given block type
  55553. var connectedNode;
  55554. var existingNodes = nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  55555. if (existingNodes.length == 0) {
  55556. connectedNode = graphEditor.createNodeFromObject({ nodeMaterialBlock: connection.connectedPoint._ownerBlock });
  55557. }
  55558. else {
  55559. connectedNode = existingNodes[0];
  55560. }
  55561. var link = connectedNode.ports[connection.connectedPoint.name].link(inputPort);
  55562. if (graphEditor._toAdd) {
  55563. graphEditor._toAdd.push(link);
  55564. }
  55565. else {
  55566. model.addAll(link);
  55567. }
  55568. }
  55569. });
  55570. };
  55571. DefaultNodeModel.prototype.renderProperties = function (globalState) {
  55572. return null;
  55573. };
  55574. return DefaultNodeModel;
  55575. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["NodeModel"]));
  55576. /***/ }),
  55577. /***/ "./components/diagram/diagram.scss":
  55578. /*!*****************************************!*\
  55579. !*** ./components/diagram/diagram.scss ***!
  55580. \*****************************************/
  55581. /*! no static exports found */
  55582. /***/ (function(module, exports, __webpack_require__) {
  55583. 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");
  55584. if(typeof content === 'string') content = [[module.i, content, '']];
  55585. var transform;
  55586. var insertInto;
  55587. var options = {"hmr":true}
  55588. options.transform = transform
  55589. options.insertInto = undefined;
  55590. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  55591. if(content.locals) module.exports = content.locals;
  55592. if(false) {}
  55593. /***/ }),
  55594. /***/ "./components/diagram/generic/genericNodeFactory.tsx":
  55595. /*!***********************************************************!*\
  55596. !*** ./components/diagram/generic/genericNodeFactory.tsx ***!
  55597. \***********************************************************/
  55598. /*! exports provided: GenericNodeFactory */
  55599. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55600. "use strict";
  55601. __webpack_require__.r(__webpack_exports__);
  55602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeFactory", function() { return GenericNodeFactory; });
  55603. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55604. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55605. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55606. /* harmony import */ var _genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./genericNodeWidget */ "./components/diagram/generic/genericNodeWidget.tsx");
  55607. /* harmony import */ var _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  55608. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55609. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  55610. /**
  55611. * Node factory which creates editor nodes
  55612. */
  55613. var GenericNodeFactory = /** @class */ (function (_super) {
  55614. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeFactory, _super);
  55615. /**
  55616. * Constructs a GenericNodeFactory
  55617. */
  55618. function GenericNodeFactory(globalState) {
  55619. var _this = _super.call(this, "generic") || this;
  55620. _this._globalState = globalState;
  55621. return _this;
  55622. }
  55623. /**
  55624. * Generates a node widget
  55625. * @param diagramEngine diagram engine
  55626. * @param node node to generate
  55627. * @returns node widget jsx
  55628. */
  55629. GenericNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  55630. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__["GenericNodeWidget"], { node: node, globalState: this._globalState });
  55631. };
  55632. /**
  55633. * Gets a new instance of a node model
  55634. * @returns generic node model
  55635. */
  55636. GenericNodeFactory.prototype.getNewInstance = function () {
  55637. return new _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__["GenericNodeModel"]();
  55638. };
  55639. return GenericNodeFactory;
  55640. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  55641. /***/ }),
  55642. /***/ "./components/diagram/generic/genericNodeModel.tsx":
  55643. /*!*********************************************************!*\
  55644. !*** ./components/diagram/generic/genericNodeModel.tsx ***!
  55645. \*********************************************************/
  55646. /*! exports provided: GenericNodeModel */
  55647. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55648. "use strict";
  55649. __webpack_require__.r(__webpack_exports__);
  55650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeModel", function() { return GenericNodeModel; });
  55651. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55652. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55653. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55654. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  55655. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  55656. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  55657. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  55658. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  55659. /**
  55660. * Generic node model which stores information about a node editor block
  55661. */
  55662. var GenericNodeModel = /** @class */ (function (_super) {
  55663. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeModel, _super);
  55664. /**
  55665. * Constructs the node model
  55666. */
  55667. function GenericNodeModel() {
  55668. var _this = _super.call(this, "generic") || this;
  55669. /**
  55670. * Vector2 for the node if it exists
  55671. */
  55672. _this.vector2 = null;
  55673. /**
  55674. * Vector3 for the node if it exists
  55675. */
  55676. _this.vector3 = null;
  55677. /**
  55678. * Vector4 for the node if it exists
  55679. */
  55680. _this.vector4 = null;
  55681. /**
  55682. * Matrix for the node if it exists
  55683. */
  55684. _this.matrix = null;
  55685. return _this;
  55686. }
  55687. GenericNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  55688. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  55689. };
  55690. GenericNodeModel.prototype.renderProperties = function (globalState) {
  55691. var _this = this;
  55692. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  55693. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "GENERAL" },
  55694. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: this.block, onChange: function () { return globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  55695. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Type", value: this.block.getClassName() })),
  55696. this.block.getClassName() === "TransformBlock" &&
  55697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  55698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  55699. var transformBlock = _this.block;
  55700. if (value) {
  55701. transformBlock.complementW = 0;
  55702. }
  55703. else {
  55704. transformBlock.complementW = 1;
  55705. }
  55706. globalState.onRebuildRequiredObservable.notifyObservers();
  55707. }, isSelected: function () { return _this.block.complementW === 0; } }))));
  55708. };
  55709. return GenericNodeModel;
  55710. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  55711. /***/ }),
  55712. /***/ "./components/diagram/generic/genericNodeWidget.tsx":
  55713. /*!**********************************************************!*\
  55714. !*** ./components/diagram/generic/genericNodeWidget.tsx ***!
  55715. \**********************************************************/
  55716. /*! exports provided: GenericNodeWidget */
  55717. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55718. "use strict";
  55719. __webpack_require__.r(__webpack_exports__);
  55720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeWidget", function() { return GenericNodeWidget; });
  55721. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55722. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55723. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55724. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  55725. /**
  55726. * Used to display a node block for the node editor
  55727. */
  55728. var GenericNodeWidget = /** @class */ (function (_super) {
  55729. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeWidget, _super);
  55730. /**
  55731. * Creates a GenericNodeWidget
  55732. * @param props
  55733. */
  55734. function GenericNodeWidget(props) {
  55735. var _this = _super.call(this, props) || this;
  55736. _this.state = {};
  55737. if (_this.props.node) {
  55738. _this.props.node.addListener({
  55739. selectionChanged: function () {
  55740. var selected = _this.props.node.selected;
  55741. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  55742. }
  55743. });
  55744. }
  55745. return _this;
  55746. }
  55747. GenericNodeWidget.prototype.render = function () {
  55748. // Header label
  55749. var header = "";
  55750. if (this.props.node && this.props.node.block) {
  55751. header = this.props.node.block.name;
  55752. }
  55753. // Input/Output ports
  55754. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  55755. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  55756. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" + (outputPorts.length === 0 ? " output" : "") },
  55757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, header),
  55758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  55759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  55760. };
  55761. return GenericNodeWidget;
  55762. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55763. /***/ }),
  55764. /***/ "./components/diagram/input/inputNodeFactory.tsx":
  55765. /*!*******************************************************!*\
  55766. !*** ./components/diagram/input/inputNodeFactory.tsx ***!
  55767. \*******************************************************/
  55768. /*! exports provided: InputNodeFactory */
  55769. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55770. "use strict";
  55771. __webpack_require__.r(__webpack_exports__);
  55772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeFactory", function() { return InputNodeFactory; });
  55773. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55774. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55775. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55776. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55777. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  55778. /* harmony import */ var _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  55779. /* harmony import */ var _inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputNodeWidget */ "./components/diagram/input/inputNodeWidget.tsx");
  55780. /**
  55781. * Node factory which creates editor nodes
  55782. */
  55783. var InputNodeFactory = /** @class */ (function (_super) {
  55784. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeFactory, _super);
  55785. /**
  55786. * Constructs a GenericNodeFactory
  55787. */
  55788. function InputNodeFactory(globalState) {
  55789. var _this = _super.call(this, "input") || this;
  55790. _this._globalState = globalState;
  55791. return _this;
  55792. }
  55793. /**
  55794. * Generates a node widget
  55795. * @param diagramEngine diagram engine
  55796. * @param node node to generate
  55797. * @returns node widget jsx
  55798. */
  55799. InputNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  55800. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__["InputNodeWidget"], { node: node, globalState: this._globalState });
  55801. };
  55802. /**
  55803. * Gets a new instance of a node model
  55804. * @returns input node model
  55805. */
  55806. InputNodeFactory.prototype.getNewInstance = function () {
  55807. return new _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__["InputNodeModel"]();
  55808. };
  55809. return InputNodeFactory;
  55810. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  55811. /***/ }),
  55812. /***/ "./components/diagram/input/inputNodeModel.tsx":
  55813. /*!*****************************************************!*\
  55814. !*** ./components/diagram/input/inputNodeModel.tsx ***!
  55815. \*****************************************************/
  55816. /*! exports provided: InputNodeModel */
  55817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55818. "use strict";
  55819. __webpack_require__.r(__webpack_exports__);
  55820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeModel", function() { return InputNodeModel; });
  55821. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55822. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55823. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55824. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  55825. /* harmony import */ var _inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodePropertyComponent */ "./components/diagram/input/inputNodePropertyComponent.tsx");
  55826. /**
  55827. * Generic node model which stores information about a node editor block
  55828. */
  55829. var InputNodeModel = /** @class */ (function (_super) {
  55830. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeModel, _super);
  55831. /**
  55832. * Constructs the node model
  55833. */
  55834. function InputNodeModel() {
  55835. return _super.call(this, "input") || this;
  55836. }
  55837. Object.defineProperty(InputNodeModel.prototype, "inputBlock", {
  55838. get: function () {
  55839. return this.block;
  55840. },
  55841. enumerable: true,
  55842. configurable: true
  55843. });
  55844. InputNodeModel.prototype.renderProperties = function (globalState) {
  55845. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["InputPropertyTabComponentProps"], { globalState: globalState, inputNode: this }));
  55846. };
  55847. return InputNodeModel;
  55848. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  55849. /***/ }),
  55850. /***/ "./components/diagram/input/inputNodePropertyComponent.tsx":
  55851. /*!*****************************************************************!*\
  55852. !*** ./components/diagram/input/inputNodePropertyComponent.tsx ***!
  55853. \*****************************************************************/
  55854. /*! exports provided: InputPropertyTabComponentProps */
  55855. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55856. "use strict";
  55857. __webpack_require__.r(__webpack_exports__);
  55858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponentProps", function() { return InputPropertyTabComponentProps; });
  55859. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55860. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55861. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55862. /* harmony import */ var _propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  55863. /* harmony import */ var _propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  55864. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  55865. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  55866. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__);
  55867. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  55868. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  55869. /* harmony import */ var _propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  55870. /* harmony import */ var _propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  55871. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  55872. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  55873. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  55874. var InputPropertyTabComponentProps = /** @class */ (function (_super) {
  55875. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputPropertyTabComponentProps, _super);
  55876. function InputPropertyTabComponentProps(props) {
  55877. return _super.call(this, props) || this;
  55878. }
  55879. InputPropertyTabComponentProps.prototype.renderValue = function (globalState) {
  55880. var inputBlock = this.props.inputNode.inputBlock;
  55881. switch (inputBlock.type) {
  55882. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Float:
  55883. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55884. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55885. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55886. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55887. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55888. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55889. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55890. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55891. }
  55892. return null;
  55893. };
  55894. InputPropertyTabComponentProps.prototype.setDefaultValue = function () {
  55895. var inputBlock = this.props.inputNode.inputBlock;
  55896. inputBlock.setDefaultValue();
  55897. };
  55898. InputPropertyTabComponentProps.prototype.render = function () {
  55899. var _this = this;
  55900. var inputBlock = this.props.inputNode.inputBlock;
  55901. var wellKnownOptions = [];
  55902. var attributeOptions = [];
  55903. var animationOptions = [];
  55904. switch (inputBlock.type) {
  55905. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Float:
  55906. animationOptions = [
  55907. { label: "None", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["AnimatedInputBlockTypes"].None },
  55908. { label: "Time", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["AnimatedInputBlockTypes"].Time },
  55909. ];
  55910. break;
  55911. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55912. wellKnownOptions = [
  55913. { label: "World", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].World },
  55914. { label: "WorldxView", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].WorldView },
  55915. { label: "WorldxViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].WorldViewProjection },
  55916. { label: "View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].View },
  55917. { label: "ViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].ViewProjection },
  55918. { label: "Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].Projection }
  55919. ];
  55920. break;
  55921. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55922. wellKnownOptions = [
  55923. { label: "Fog color", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].FogColor }
  55924. ];
  55925. break;
  55926. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55927. attributeOptions = [
  55928. { label: "color", value: "color" }
  55929. ];
  55930. break;
  55931. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55932. attributeOptions = [
  55933. { label: "uv", value: "uv" },
  55934. { label: "uv2", value: "uv2" },
  55935. ];
  55936. break;
  55937. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55938. wellKnownOptions = [
  55939. { label: "Camera position", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].CameraPosition }
  55940. ];
  55941. attributeOptions = [
  55942. { label: "position", value: "position" },
  55943. { label: "normal", value: "normal" },
  55944. { label: "tangent", value: "tangent" },
  55945. ];
  55946. break;
  55947. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55948. attributeOptions = [
  55949. { label: "matricesIndices", value: "matricesIndices" },
  55950. { label: "matricesWeights", value: "matricesWeights" }
  55951. ];
  55952. break;
  55953. }
  55954. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  55955. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "GENERAL" },
  55956. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: inputBlock, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  55957. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextLineComponent"], { label: "Type", value: _stringTools__WEBPACK_IMPORTED_MODULE_11__["StringTools"].GetBaseType(inputBlock.type) })),
  55958. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "PROPERTIES" },
  55959. attributeOptions.length > 0 &&
  55960. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Is mesh attribute", onSelect: function (value) {
  55961. if (!value) {
  55962. inputBlock.isUniform = true;
  55963. _this.setDefaultValue();
  55964. }
  55965. else {
  55966. inputBlock.setAsAttribute(attributeOptions[0].value);
  55967. }
  55968. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55969. _this.forceUpdate();
  55970. }, isSelected: function () { return inputBlock.isAttribute; } }),
  55971. inputBlock.isAttribute &&
  55972. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Attribute", valuesAreStrings: true, options: attributeOptions, target: inputBlock, propertyName: "name", onSelect: function (value) {
  55973. inputBlock.setAsAttribute(value);
  55974. _this.forceUpdate();
  55975. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55976. } }),
  55977. inputBlock.isUniform && wellKnownOptions.length > 0 &&
  55978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Is well known value", onSelect: function (value) {
  55979. if (value) {
  55980. inputBlock.setAsWellKnownValue(wellKnownOptions[0].value);
  55981. }
  55982. else {
  55983. inputBlock.setAsWellKnownValue(null);
  55984. _this.setDefaultValue();
  55985. }
  55986. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55987. _this.forceUpdate();
  55988. }, isSelected: function () { return inputBlock.isWellKnownValue; } }),
  55989. inputBlock.isUniform && animationOptions.length > 0 &&
  55990. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Animation type", options: animationOptions, target: inputBlock, propertyName: "animationType", onSelect: function (value) {
  55991. _this.forceUpdate();
  55992. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55993. } }),
  55994. inputBlock.isUniform && !inputBlock.isWellKnownValue && inputBlock.animationType === babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["AnimatedInputBlockTypes"].None &&
  55995. this.renderValue(this.props.globalState),
  55996. inputBlock.isUniform && inputBlock.isWellKnownValue &&
  55997. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Well known value", options: wellKnownOptions, target: inputBlock, propertyName: "wellKnownValue", onSelect: function (value) {
  55998. inputBlock.setAsWellKnownValue(value);
  55999. _this.forceUpdate();
  56000. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56001. } }))));
  56002. };
  56003. return InputPropertyTabComponentProps;
  56004. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56005. /***/ }),
  56006. /***/ "./components/diagram/input/inputNodeWidget.tsx":
  56007. /*!******************************************************!*\
  56008. !*** ./components/diagram/input/inputNodeWidget.tsx ***!
  56009. \******************************************************/
  56010. /*! exports provided: InputNodeWidget */
  56011. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56012. "use strict";
  56013. __webpack_require__.r(__webpack_exports__);
  56014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeWidget", function() { return InputNodeWidget; });
  56015. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56016. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56017. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56018. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialWellKnownValues */ "babylonjs/Misc/observable");
  56019. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__);
  56020. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  56021. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56022. /**
  56023. * Used to display a node block for the node editor
  56024. */
  56025. var InputNodeWidget = /** @class */ (function (_super) {
  56026. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeWidget, _super);
  56027. /**
  56028. * Creates a GenericNodeWidget
  56029. * @param props
  56030. */
  56031. function InputNodeWidget(props) {
  56032. var _this = _super.call(this, props) || this;
  56033. _this.state = {};
  56034. if (_this.props.node) {
  56035. _this.props.node.addListener({
  56036. selectionChanged: function () {
  56037. var selected = _this.props.node.selected;
  56038. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56039. }
  56040. });
  56041. }
  56042. return _this;
  56043. }
  56044. InputNodeWidget.prototype.renderValue = function (value) {
  56045. if (value !== "") {
  56046. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  56047. }
  56048. return null;
  56049. };
  56050. InputNodeWidget.prototype.render = function () {
  56051. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_4__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  56052. var inputBlock = this.props.node.inputBlock;
  56053. var value = "";
  56054. var name = _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type);
  56055. var color = "";
  56056. if (inputBlock) {
  56057. if (inputBlock.isAttribute) {
  56058. value = "mesh." + inputBlock.name;
  56059. }
  56060. else if (inputBlock.isWellKnownValue) {
  56061. switch (inputBlock.wellKnownValue) {
  56062. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].World:
  56063. value = "World";
  56064. break;
  56065. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].WorldView:
  56066. value = "World x View";
  56067. break;
  56068. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].WorldViewProjection:
  56069. value = "World x View x Projection";
  56070. break;
  56071. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].View:
  56072. value = "View";
  56073. break;
  56074. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].ViewProjection:
  56075. value = "View x Projection";
  56076. break;
  56077. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].Projection:
  56078. value = "Projection";
  56079. break;
  56080. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].CameraPosition:
  56081. value = "Camera position";
  56082. break;
  56083. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialWellKnownValues"].FogColor:
  56084. value = "Fog color";
  56085. break;
  56086. }
  56087. }
  56088. else {
  56089. if (!inputBlock || !inputBlock.isUniform) {
  56090. return null;
  56091. }
  56092. switch (inputBlock.type) {
  56093. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float:
  56094. if (inputBlock.animationType !== babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"].None) {
  56095. value = babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"][inputBlock.animationType];
  56096. }
  56097. else {
  56098. value = inputBlock.value.toFixed(2);
  56099. }
  56100. break;
  56101. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  56102. var vec2Value = inputBlock.value;
  56103. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  56104. break;
  56105. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  56106. var vec3Value = inputBlock.value;
  56107. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  56108. break;
  56109. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  56110. var vec4Value = inputBlock.value;
  56111. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  56112. break;
  56113. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color3:
  56114. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  56115. color = inputBlock.value.toHexString();
  56116. break;
  56117. }
  56118. }
  56119. }
  56120. }
  56121. else {
  56122. name = "Not connected input";
  56123. }
  56124. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock input" + (inputBlock && inputBlock.isAttribute ? " attribute" : ""), style: {
  56125. background: color
  56126. } },
  56127. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, name),
  56128. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  56129. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, this.renderValue(value))));
  56130. };
  56131. return InputNodeWidget;
  56132. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56133. /***/ }),
  56134. /***/ "./components/diagram/light/lightNodeFactory.tsx":
  56135. /*!*******************************************************!*\
  56136. !*** ./components/diagram/light/lightNodeFactory.tsx ***!
  56137. \*******************************************************/
  56138. /*! exports provided: LightNodeFactory */
  56139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56140. "use strict";
  56141. __webpack_require__.r(__webpack_exports__);
  56142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeFactory", function() { return LightNodeFactory; });
  56143. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56144. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56145. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56146. /* harmony import */ var _lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightNodeWidget */ "./components/diagram/light/lightNodeWidget.tsx");
  56147. /* harmony import */ var _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  56148. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56149. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  56150. /**
  56151. * Node factory which creates editor nodes
  56152. */
  56153. var LightNodeFactory = /** @class */ (function (_super) {
  56154. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeFactory, _super);
  56155. /**
  56156. * Constructs a LightNodeFactory
  56157. */
  56158. function LightNodeFactory(globalState) {
  56159. var _this = _super.call(this, "light") || this;
  56160. _this._globalState = globalState;
  56161. return _this;
  56162. }
  56163. /**
  56164. * Generates a node widget
  56165. * @param diagramEngine diagram engine
  56166. * @param node node to generate
  56167. * @returns node widget jsx
  56168. */
  56169. LightNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  56170. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightNodeWidget"], { node: node, globalState: this._globalState });
  56171. };
  56172. /**
  56173. * Gets a new instance of a node model
  56174. * @returns light node model
  56175. */
  56176. LightNodeFactory.prototype.getNewInstance = function () {
  56177. return new _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightNodeModel"]();
  56178. };
  56179. return LightNodeFactory;
  56180. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  56181. /***/ }),
  56182. /***/ "./components/diagram/light/lightNodeModel.tsx":
  56183. /*!*****************************************************!*\
  56184. !*** ./components/diagram/light/lightNodeModel.tsx ***!
  56185. \*****************************************************/
  56186. /*! exports provided: LightNodeModel */
  56187. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56188. "use strict";
  56189. __webpack_require__.r(__webpack_exports__);
  56190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeModel", function() { return LightNodeModel; });
  56191. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56192. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56193. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56194. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  56195. /* harmony import */ var _lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightPropertyTabComponent */ "./components/diagram/light/lightPropertyTabComponent.tsx");
  56196. /**
  56197. * Light node model which stores information about a node editor block
  56198. */
  56199. var LightNodeModel = /** @class */ (function (_super) {
  56200. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeModel, _super);
  56201. /**
  56202. * Constructs the node model
  56203. */
  56204. function LightNodeModel() {
  56205. return _super.call(this, "light") || this;
  56206. }
  56207. Object.defineProperty(LightNodeModel.prototype, "light", {
  56208. /**
  56209. * Light for the node if it exists
  56210. */
  56211. get: function () {
  56212. return this._block.light;
  56213. },
  56214. set: function (value) {
  56215. this._block.light = value;
  56216. },
  56217. enumerable: true,
  56218. configurable: true
  56219. });
  56220. LightNodeModel.prototype.renderProperties = function (globalState) {
  56221. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"], { globalState: globalState, node: this }));
  56222. };
  56223. LightNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  56224. this._block = options.nodeMaterialBlock;
  56225. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  56226. };
  56227. return LightNodeModel;
  56228. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  56229. /***/ }),
  56230. /***/ "./components/diagram/light/lightNodeWidget.tsx":
  56231. /*!******************************************************!*\
  56232. !*** ./components/diagram/light/lightNodeWidget.tsx ***!
  56233. \******************************************************/
  56234. /*! exports provided: LightNodeWidget */
  56235. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56236. "use strict";
  56237. __webpack_require__.r(__webpack_exports__);
  56238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeWidget", function() { return LightNodeWidget; });
  56239. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56240. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56241. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56242. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56243. /**
  56244. * Used to display a node block for the node editor
  56245. */
  56246. var LightNodeWidget = /** @class */ (function (_super) {
  56247. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeWidget, _super);
  56248. /**
  56249. * Creates a GenericNodeWidget
  56250. * @param props
  56251. */
  56252. function LightNodeWidget(props) {
  56253. var _this = _super.call(this, props) || this;
  56254. _this.state = {};
  56255. if (_this.props.node) {
  56256. _this.props.node.addListener({
  56257. selectionChanged: function () {
  56258. var selected = _this.props.node.selected;
  56259. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56260. }
  56261. });
  56262. }
  56263. return _this;
  56264. }
  56265. LightNodeWidget.prototype.render = function () {
  56266. // Input/Output ports
  56267. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  56268. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  56269. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  56270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  56271. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  56272. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  56273. };
  56274. return LightNodeWidget;
  56275. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56276. /***/ }),
  56277. /***/ "./components/diagram/light/lightPropertyTabComponent.tsx":
  56278. /*!****************************************************************!*\
  56279. !*** ./components/diagram/light/lightPropertyTabComponent.tsx ***!
  56280. \****************************************************************/
  56281. /*! exports provided: LightPropertyTabComponent */
  56282. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56283. "use strict";
  56284. __webpack_require__.r(__webpack_exports__);
  56285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  56286. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56287. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56288. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56289. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56290. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56291. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56292. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  56293. var LightPropertyTabComponent = /** @class */ (function (_super) {
  56294. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightPropertyTabComponent, _super);
  56295. function LightPropertyTabComponent() {
  56296. return _super !== null && _super.apply(this, arguments) || this;
  56297. }
  56298. LightPropertyTabComponent.prototype.render = function () {
  56299. var _this = this;
  56300. var scene = this.props.globalState.nodeMaterial.getScene();
  56301. var lightOptions = scene.lights.map(function (l) {
  56302. return { label: l.name, value: l.name };
  56303. });
  56304. lightOptions.splice(0, 0, { label: "All", value: "" });
  56305. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56306. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  56307. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "Light" }),
  56308. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: this.props.node.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } })),
  56309. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  56310. 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) {
  56311. if (name === "") {
  56312. _this.props.node.light = null;
  56313. }
  56314. else {
  56315. _this.props.node.light = scene.getLightByName(name);
  56316. }
  56317. _this.forceUpdate();
  56318. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56319. } }))));
  56320. };
  56321. return LightPropertyTabComponent;
  56322. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56323. /***/ }),
  56324. /***/ "./components/diagram/link/advancedLinkFactory.tsx":
  56325. /*!*********************************************************!*\
  56326. !*** ./components/diagram/link/advancedLinkFactory.tsx ***!
  56327. \*********************************************************/
  56328. /*! exports provided: AdvancedLinkFactory */
  56329. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56330. "use strict";
  56331. __webpack_require__.r(__webpack_exports__);
  56332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkFactory", function() { return AdvancedLinkFactory; });
  56333. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56334. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56335. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56336. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56337. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56338. /* harmony import */ var _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  56339. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../blockTools */ "./blockTools.ts");
  56340. var AdvancedLinkFactory = /** @class */ (function (_super) {
  56341. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkFactory, _super);
  56342. function AdvancedLinkFactory() {
  56343. var _this = _super.call(this) || this;
  56344. _this.type = "advanced";
  56345. return _this;
  56346. }
  56347. AdvancedLinkFactory.prototype.getNewInstance = function (initialConfig) {
  56348. return new _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__["AdvancedLinkModel"]();
  56349. };
  56350. AdvancedLinkFactory.prototype.generateLinkSegment = function (model, widget, selected, path) {
  56351. var portModel = (model.getTargetPort() || model.getSourcePort());
  56352. var type = portModel.connection.type;
  56353. var color = _blockTools__WEBPACK_IMPORTED_MODULE_4__["BlockTools"].GetColorFromConnectionNodeType(type);
  56354. var width = 3;
  56355. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("path", { className: selected ? widget.bem("--path-selected") : "", strokeWidth: width, stroke: color, d: path }));
  56356. };
  56357. return AdvancedLinkFactory;
  56358. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkFactory"]));
  56359. /***/ }),
  56360. /***/ "./components/diagram/link/advancedLinkModel.tsx":
  56361. /*!*******************************************************!*\
  56362. !*** ./components/diagram/link/advancedLinkModel.tsx ***!
  56363. \*******************************************************/
  56364. /*! exports provided: AdvancedLinkModel */
  56365. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56366. "use strict";
  56367. __webpack_require__.r(__webpack_exports__);
  56368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkModel", function() { return AdvancedLinkModel; });
  56369. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56370. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56371. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56372. var AdvancedLinkModel = /** @class */ (function (_super) {
  56373. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkModel, _super);
  56374. function AdvancedLinkModel() {
  56375. return _super.call(this, "advanced") || this;
  56376. }
  56377. return AdvancedLinkModel;
  56378. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkModel"]));
  56379. /***/ }),
  56380. /***/ "./components/diagram/port/defaultPortModel.ts":
  56381. /*!*****************************************************!*\
  56382. !*** ./components/diagram/port/defaultPortModel.ts ***!
  56383. \*****************************************************/
  56384. /*! exports provided: DefaultPortModel */
  56385. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56386. "use strict";
  56387. __webpack_require__.r(__webpack_exports__);
  56388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortModel", function() { return DefaultPortModel; });
  56389. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56390. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56391. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56392. /* harmony import */ var _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link/advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  56393. /**
  56394. * Port model
  56395. */
  56396. var DefaultPortModel = /** @class */ (function (_super) {
  56397. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortModel, _super);
  56398. function DefaultPortModel(name, type) {
  56399. if (type === void 0) { type = "input"; }
  56400. var _this = _super.call(this, name, "generic") || this;
  56401. /**
  56402. * What the port is connected to
  56403. */
  56404. _this.connection = null;
  56405. _this.position = type;
  56406. DefaultPortModel.idCounter++;
  56407. return _this;
  56408. }
  56409. DefaultPortModel.prototype.canLinkToPort = function (port) {
  56410. if (!this.connection || !port.connection) {
  56411. return true;
  56412. }
  56413. return this.connection.canConnectTo(port.connection);
  56414. };
  56415. DefaultPortModel.prototype.syncWithNodeMaterialConnectionPoint = function (connection) {
  56416. this.connection = connection;
  56417. this.name = connection.name;
  56418. };
  56419. DefaultPortModel.prototype.getNodeModel = function () {
  56420. return this.parent;
  56421. };
  56422. DefaultPortModel.prototype.link = function (outPort) {
  56423. var link = this.createLinkModel();
  56424. link.setSourcePort(this);
  56425. link.setTargetPort(outPort);
  56426. return link;
  56427. };
  56428. DefaultPortModel.prototype.createLinkModel = function () {
  56429. return new _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__["AdvancedLinkModel"]();
  56430. };
  56431. DefaultPortModel.SortInputOutput = function (a, b) {
  56432. if (!a || !b) {
  56433. return null;
  56434. }
  56435. else if (a.position == "output" && b.position == "input") {
  56436. return {
  56437. input: b,
  56438. output: a
  56439. };
  56440. }
  56441. else if (b.position == "output" && a.position == "input") {
  56442. return {
  56443. input: a,
  56444. output: b
  56445. };
  56446. }
  56447. else {
  56448. return null;
  56449. }
  56450. };
  56451. DefaultPortModel.idCounter = 0;
  56452. return DefaultPortModel;
  56453. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["PortModel"]));
  56454. /***/ }),
  56455. /***/ "./components/diagram/port/defaultPortWidget.tsx":
  56456. /*!*******************************************************!*\
  56457. !*** ./components/diagram/port/defaultPortWidget.tsx ***!
  56458. \*******************************************************/
  56459. /*! exports provided: DefaultPortWidget */
  56460. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56461. "use strict";
  56462. __webpack_require__.r(__webpack_exports__);
  56463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortWidget", function() { return DefaultPortWidget; });
  56464. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56465. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56466. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56467. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56468. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56469. var DefaultPortWidget = /** @class */ (function (_super) {
  56470. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortWidget, _super);
  56471. function DefaultPortWidget(props) {
  56472. var _this = _super.call(this, "srd-port", props) || this;
  56473. _this.state = {
  56474. selected: false
  56475. };
  56476. return _this;
  56477. }
  56478. DefaultPortWidget.prototype.getClassName = function () {
  56479. return "port " + _super.prototype.getClassName.call(this) + (this.state.selected ? this.bem("--selected") : "");
  56480. };
  56481. DefaultPortWidget.prototype.render = function () {
  56482. var _this = this;
  56483. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({ style: this.props.style }, this.getProps(), { onMouseEnter: function () {
  56484. _this.setState({ selected: true });
  56485. }, onMouseLeave: function () {
  56486. _this.setState({ selected: false });
  56487. }, "data-name": this.props.name, "data-nodeid": this.props.node.getID() })));
  56488. };
  56489. return DefaultPortWidget;
  56490. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["BaseWidget"]));
  56491. /***/ }),
  56492. /***/ "./components/diagram/portHelper.tsx":
  56493. /*!*******************************************!*\
  56494. !*** ./components/diagram/portHelper.tsx ***!
  56495. \*******************************************/
  56496. /*! exports provided: PortHelper */
  56497. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56498. "use strict";
  56499. __webpack_require__.r(__webpack_exports__);
  56500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortHelper", function() { return PortHelper; });
  56501. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56502. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  56503. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  56504. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__);
  56505. /* harmony import */ var _port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortWidget */ "./components/diagram/port/defaultPortWidget.tsx");
  56506. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  56507. var PortHelper = /** @class */ (function () {
  56508. function PortHelper() {
  56509. }
  56510. PortHelper._GetPortTypeIndicator = function (connection) {
  56511. switch (connection.type) {
  56512. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  56513. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  56514. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABESURBVDhPY/z//z8DJYAJSpMNRg3Ab4APEL+GYhAbK8AXjSCNIhAmwxsgFoUwUQFNvZAJxCCbQRjExgpGU+LAG8DAAAA+ghAthzG18wAAAABJRU5ErkJggg==" });
  56515. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  56516. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSpMN8BngA8SvoRjExgrweQGkUQTCZHgDxKIQJiqgqRcygRhkMwiD2FjB4I4FosBoNA6DaGRgAABqpx09dHGG2QAAAABJRU5ErkJggg==" });
  56517. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  56518. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  56519. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSmMDPkD8GopBbKwAnwtAGkUgTIY3QCwKYaICfC4gCuAzIBOIQTaDMIiNFYwG4mgggsCQD0QGBgD0QypNGzDYqQAAAABJRU5ErkJggg==" });
  56520. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  56521. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  56522. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABRSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQYGkBeQ8GsghgEQm5A45V6AmwTFIUAMsgGEQWxC4gyDLxZIBqPpAAiQTQPiIZcOGBgAyCDrTTmX3gcAAAAASUVORK5CYII=" });
  56523. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  56524. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAABuSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQZ0L4AUiECYOMEbIBaFMGnghUwoDQKhQMwIxSA2DCCrwfACCMAEQBqRAVZxqnuBZEB1A9DjHgZwsQdpOgDZAMLo6QAmTjAdkAQo9AIDAwD62SHFU/Hk8QAAAABJRU5ErkJggg==" });
  56525. }
  56526. return null;
  56527. };
  56528. PortHelper._GetPortStyle = function (type) {
  56529. return {
  56530. background: _blockTools__WEBPACK_IMPORTED_MODULE_3__["BlockTools"].GetColorFromConnectionNodeType(type)
  56531. };
  56532. };
  56533. PortHelper.GenerateOutputPorts = function (node, ignoreLabel) {
  56534. if (!node) {
  56535. return new Array();
  56536. }
  56537. var outputPorts = [];
  56538. for (var key in node.ports) {
  56539. var port = node.ports[key];
  56540. if (port.position === "output") {
  56541. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  56542. var style = this._GetPortStyle(port.connection.type);
  56543. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "output-port" },
  56544. !ignoreLabel &&
  56545. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-label" }, port.connection.name),
  56546. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-plug" },
  56547. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-border" }),
  56548. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  56549. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-type" }, typeIndicator))));
  56550. }
  56551. }
  56552. return outputPorts;
  56553. };
  56554. PortHelper.GenerateInputPorts = function (node, includeOnly, ignoreLabel) {
  56555. if (ignoreLabel === void 0) { ignoreLabel = false; }
  56556. if (!node) {
  56557. return new Array();
  56558. }
  56559. var inputPorts = [];
  56560. for (var key in node.ports) {
  56561. var port = node.ports[key];
  56562. if (port.position === "input") {
  56563. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  56564. var style = this._GetPortStyle(port.connection.type);
  56565. if (!includeOnly || includeOnly.indexOf(port.name) !== -1) {
  56566. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "input-port" },
  56567. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-plug" },
  56568. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-border" }),
  56569. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  56570. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-type" }, typeIndicator)),
  56571. !ignoreLabel &&
  56572. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-label" }, port.connection.name)));
  56573. }
  56574. }
  56575. }
  56576. return inputPorts;
  56577. };
  56578. return PortHelper;
  56579. }());
  56580. /***/ }),
  56581. /***/ "./components/diagram/remap/remapNodeFactory.tsx":
  56582. /*!*******************************************************!*\
  56583. !*** ./components/diagram/remap/remapNodeFactory.tsx ***!
  56584. \*******************************************************/
  56585. /*! exports provided: RemapNodeFactory */
  56586. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56587. "use strict";
  56588. __webpack_require__.r(__webpack_exports__);
  56589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeFactory", function() { return RemapNodeFactory; });
  56590. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56591. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56592. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56593. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56594. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56595. /* harmony import */ var _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  56596. /* harmony import */ var _remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./remapNodeWidget */ "./components/diagram/remap/remapNodeWidget.tsx");
  56597. /**
  56598. * Node factory which creates editor nodes
  56599. */
  56600. var RemapNodeFactory = /** @class */ (function (_super) {
  56601. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeFactory, _super);
  56602. /**
  56603. * Constructs a GenericNodeFactory
  56604. */
  56605. function RemapNodeFactory(globalState) {
  56606. var _this = _super.call(this, "remap") || this;
  56607. _this._globalState = globalState;
  56608. return _this;
  56609. }
  56610. /**
  56611. * Generates a node widget
  56612. * @param diagramEngine diagram engine
  56613. * @param node node to generate
  56614. * @returns node widget jsx
  56615. */
  56616. RemapNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  56617. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__["RemapNodeWidget"], { node: node, globalState: this._globalState });
  56618. };
  56619. /**
  56620. * Gets a new instance of a node model
  56621. * @returns input node model
  56622. */
  56623. RemapNodeFactory.prototype.getNewInstance = function () {
  56624. return new _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__["RemapNodeModel"]();
  56625. };
  56626. return RemapNodeFactory;
  56627. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  56628. /***/ }),
  56629. /***/ "./components/diagram/remap/remapNodeModel.tsx":
  56630. /*!*****************************************************!*\
  56631. !*** ./components/diagram/remap/remapNodeModel.tsx ***!
  56632. \*****************************************************/
  56633. /*! exports provided: RemapNodeModel */
  56634. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56635. "use strict";
  56636. __webpack_require__.r(__webpack_exports__);
  56637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeModel", function() { return RemapNodeModel; });
  56638. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56639. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56640. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56641. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  56642. /* harmony import */ var _remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodePropertyComponent */ "./components/diagram/remap/remapNodePropertyComponent.tsx");
  56643. /**
  56644. * Generic node model which stores information about a node editor block
  56645. */
  56646. var RemapNodeModel = /** @class */ (function (_super) {
  56647. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeModel, _super);
  56648. /**
  56649. * Constructs the node model
  56650. */
  56651. function RemapNodeModel() {
  56652. return _super.call(this, "remap") || this;
  56653. }
  56654. Object.defineProperty(RemapNodeModel.prototype, "remapBlock", {
  56655. get: function () {
  56656. return this.block;
  56657. },
  56658. enumerable: true,
  56659. configurable: true
  56660. });
  56661. RemapNodeModel.prototype.renderProperties = function (globalState) {
  56662. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["RemapPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  56663. };
  56664. return RemapNodeModel;
  56665. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  56666. /***/ }),
  56667. /***/ "./components/diagram/remap/remapNodePropertyComponent.tsx":
  56668. /*!*****************************************************************!*\
  56669. !*** ./components/diagram/remap/remapNodePropertyComponent.tsx ***!
  56670. \*****************************************************************/
  56671. /*! exports provided: RemapPropertyTabComponentProps */
  56672. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56673. "use strict";
  56674. __webpack_require__.r(__webpack_exports__);
  56675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapPropertyTabComponentProps", function() { return RemapPropertyTabComponentProps; });
  56676. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56677. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56678. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56679. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56680. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  56681. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56682. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56683. var RemapPropertyTabComponentProps = /** @class */ (function (_super) {
  56684. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapPropertyTabComponentProps, _super);
  56685. function RemapPropertyTabComponentProps(props) {
  56686. return _super.call(this, props) || this;
  56687. }
  56688. RemapPropertyTabComponentProps.prototype.forceRebuild = function () {
  56689. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  56690. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56691. };
  56692. RemapPropertyTabComponentProps.prototype.render = function () {
  56693. var _this = this;
  56694. var remapBlock = this.props.remapNode.remapBlock;
  56695. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56696. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  56697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: remapBlock, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  56698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Type", value: remapBlock.getClassName() })),
  56699. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  56700. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "From", propertyName: "sourceRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }),
  56701. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "To", propertyName: "targetRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }))));
  56702. };
  56703. return RemapPropertyTabComponentProps;
  56704. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56705. /***/ }),
  56706. /***/ "./components/diagram/remap/remapNodeWidget.tsx":
  56707. /*!******************************************************!*\
  56708. !*** ./components/diagram/remap/remapNodeWidget.tsx ***!
  56709. \******************************************************/
  56710. /*! exports provided: RemapNodeWidget */
  56711. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56712. "use strict";
  56713. __webpack_require__.r(__webpack_exports__);
  56714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeWidget", function() { return RemapNodeWidget; });
  56715. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56716. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56717. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56718. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56719. /**
  56720. * Used to display a node block for the node editor
  56721. */
  56722. var RemapNodeWidget = /** @class */ (function (_super) {
  56723. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeWidget, _super);
  56724. /**
  56725. * Creates a GenericNodeWidget
  56726. * @param props
  56727. */
  56728. function RemapNodeWidget(props) {
  56729. var _this = _super.call(this, props) || this;
  56730. _this.state = {};
  56731. if (_this.props.node) {
  56732. _this.props.node.addListener({
  56733. selectionChanged: function () {
  56734. var selected = _this.props.node.selected;
  56735. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56736. }
  56737. });
  56738. }
  56739. return _this;
  56740. }
  56741. RemapNodeWidget.prototype.renderValue = function (value) {
  56742. if (value) {
  56743. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  56744. }
  56745. return null;
  56746. };
  56747. RemapNodeWidget.prototype.render = function () {
  56748. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, true);
  56749. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  56750. var remapBlock = this.props.node.block;
  56751. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  56752. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, remapBlock.name),
  56753. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  56754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  56755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + remapBlock.sourceRange.x + ", " + remapBlock.sourceRange.y + "] -> [" + remapBlock.targetRange.x + ", " + remapBlock.targetRange.y + "]")));
  56756. };
  56757. return RemapNodeWidget;
  56758. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56759. /***/ }),
  56760. /***/ "./components/diagram/texture/textureNodeFactory.tsx":
  56761. /*!***********************************************************!*\
  56762. !*** ./components/diagram/texture/textureNodeFactory.tsx ***!
  56763. \***********************************************************/
  56764. /*! exports provided: TextureNodeFactory */
  56765. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56766. "use strict";
  56767. __webpack_require__.r(__webpack_exports__);
  56768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeFactory", function() { return TextureNodeFactory; });
  56769. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56770. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56771. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56772. /* harmony import */ var _textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureNodeWidget */ "./components/diagram/texture/textureNodeWidget.tsx");
  56773. /* harmony import */ var _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  56774. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56775. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  56776. /**
  56777. * Node factory which creates editor nodes
  56778. */
  56779. var TextureNodeFactory = /** @class */ (function (_super) {
  56780. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeFactory, _super);
  56781. /**
  56782. * Constructs a TextureNodeFactory
  56783. */
  56784. function TextureNodeFactory(globalState) {
  56785. var _this = _super.call(this, "texture") || this;
  56786. _this._globalState = globalState;
  56787. return _this;
  56788. }
  56789. /**
  56790. * Generates a node widget
  56791. * @param diagramEngine diagram engine
  56792. * @param node node to generate
  56793. * @returns node widget jsx
  56794. */
  56795. TextureNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  56796. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__["TextureNodeWidget"], { node: node, globalState: this._globalState });
  56797. };
  56798. /**
  56799. * Gets a new instance of a node model
  56800. * @returns texture node model
  56801. */
  56802. TextureNodeFactory.prototype.getNewInstance = function () {
  56803. return new _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__["TextureNodeModel"]();
  56804. };
  56805. return TextureNodeFactory;
  56806. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  56807. /***/ }),
  56808. /***/ "./components/diagram/texture/textureNodeModel.tsx":
  56809. /*!*********************************************************!*\
  56810. !*** ./components/diagram/texture/textureNodeModel.tsx ***!
  56811. \*********************************************************/
  56812. /*! exports provided: TextureNodeModel */
  56813. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56814. "use strict";
  56815. __webpack_require__.r(__webpack_exports__);
  56816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeModel", function() { return TextureNodeModel; });
  56817. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56818. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56819. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56820. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  56821. /* harmony import */ var _texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./texturePropertyTabComponent */ "./components/diagram/texture/texturePropertyTabComponent.tsx");
  56822. /**
  56823. * Texture node model which stores information about a node editor block
  56824. */
  56825. var TextureNodeModel = /** @class */ (function (_super) {
  56826. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeModel, _super);
  56827. /**
  56828. * Constructs the node model
  56829. */
  56830. function TextureNodeModel() {
  56831. return _super.call(this, "texture") || this;
  56832. }
  56833. Object.defineProperty(TextureNodeModel.prototype, "texture", {
  56834. /**
  56835. * Texture for the node if it exists
  56836. */
  56837. get: function () {
  56838. return this._block.texture;
  56839. },
  56840. set: function (value) {
  56841. this._block.texture = value;
  56842. },
  56843. enumerable: true,
  56844. configurable: true
  56845. });
  56846. TextureNodeModel.prototype.renderProperties = function (globalState) {
  56847. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["TexturePropertyTabComponent"], { globalState: globalState, node: this }));
  56848. };
  56849. TextureNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  56850. this._block = options.nodeMaterialBlock;
  56851. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  56852. };
  56853. return TextureNodeModel;
  56854. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  56855. /***/ }),
  56856. /***/ "./components/diagram/texture/textureNodeWidget.tsx":
  56857. /*!**********************************************************!*\
  56858. !*** ./components/diagram/texture/textureNodeWidget.tsx ***!
  56859. \**********************************************************/
  56860. /*! exports provided: TextureNodeWidget */
  56861. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56862. "use strict";
  56863. __webpack_require__.r(__webpack_exports__);
  56864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeWidget", function() { return TextureNodeWidget; });
  56865. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56866. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56867. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56868. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  56869. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56870. /**
  56871. * Used to display a node block for the node editor
  56872. */
  56873. var TextureNodeWidget = /** @class */ (function (_super) {
  56874. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeWidget, _super);
  56875. /**
  56876. * Creates a GenericNodeWidget
  56877. * @param props
  56878. */
  56879. function TextureNodeWidget(props) {
  56880. var _this = _super.call(this, props) || this;
  56881. _this.state = {};
  56882. if (_this.props.node) {
  56883. _this.props.node.addListener({
  56884. selectionChanged: function () {
  56885. var selected = _this.props.node.selected;
  56886. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56887. }
  56888. });
  56889. }
  56890. return _this;
  56891. }
  56892. TextureNodeWidget.prototype.render = function () {
  56893. // Input/Output ports
  56894. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  56895. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateInputPorts(this.props.node, ["uv"]);
  56896. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock texture-block" },
  56897. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  56898. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  56899. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  56900. this.props.node && this.props.node.texture &&
  56901. 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 })));
  56902. };
  56903. return TextureNodeWidget;
  56904. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56905. /***/ }),
  56906. /***/ "./components/diagram/texture/texturePropertyTabComponent.tsx":
  56907. /*!********************************************************************!*\
  56908. !*** ./components/diagram/texture/texturePropertyTabComponent.tsx ***!
  56909. \********************************************************************/
  56910. /*! exports provided: TexturePropertyTabComponent */
  56911. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56912. "use strict";
  56913. __webpack_require__.r(__webpack_exports__);
  56914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  56915. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56916. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56917. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56918. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  56919. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  56920. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  56921. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56922. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56923. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56924. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  56925. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  56926. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TexturePropertyTabComponent, _super);
  56927. function TexturePropertyTabComponent() {
  56928. return _super !== null && _super.apply(this, arguments) || this;
  56929. }
  56930. TexturePropertyTabComponent.prototype.updateAftertextureLoad = function () {
  56931. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  56932. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56933. };
  56934. /**
  56935. * Replaces the texture of the node
  56936. * @param file the file of the texture to use
  56937. */
  56938. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  56939. var _this = this;
  56940. if (!this.props.node) {
  56941. return;
  56942. }
  56943. var texture = this.props.node.texture;
  56944. if (!texture) {
  56945. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](null, babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Engine"].LastCreatedScene);
  56946. texture = this.props.node.texture;
  56947. }
  56948. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  56949. var blob = new Blob([data], { type: "octet/stream" });
  56950. var reader = new FileReader();
  56951. reader.readAsDataURL(blob);
  56952. reader.onloadend = function () {
  56953. var base64data = reader.result;
  56954. if (texture.isCube) {
  56955. var extension = undefined;
  56956. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  56957. extension = ".dds";
  56958. }
  56959. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  56960. extension = ".env";
  56961. }
  56962. texture.updateURL(base64data, extension, function () { return _this.updateAftertextureLoad(); });
  56963. }
  56964. else {
  56965. texture.updateURL(base64data, null, function () { return _this.updateAftertextureLoad(); });
  56966. }
  56967. };
  56968. }, undefined, true);
  56969. };
  56970. TexturePropertyTabComponent.prototype.render = function () {
  56971. var _this = this;
  56972. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56973. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "GENERAL" },
  56974. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: "Texture" }),
  56975. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: this.props.node.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } })),
  56976. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "PROPERTIES" },
  56977. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Auto select UV", propertyName: "autoSelectUV", target: this.props.node.block }),
  56978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["FileButtonLineComponent"], { label: "Replace texture", onClick: function (file) { return _this.replaceTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" }))));
  56979. };
  56980. return TexturePropertyTabComponent;
  56981. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56982. /***/ }),
  56983. /***/ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx":
  56984. /*!*********************************************************************!*\
  56985. !*** ./components/diagram/trigonometry/trigonometryNodeFactory.tsx ***!
  56986. \*********************************************************************/
  56987. /*! exports provided: TrigonometryNodeFactory */
  56988. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56989. "use strict";
  56990. __webpack_require__.r(__webpack_exports__);
  56991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeFactory", function() { return TrigonometryNodeFactory; });
  56992. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56993. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56994. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56995. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56996. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56997. /* harmony import */ var _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  56998. /* harmony import */ var _trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trigonometryNodeWidget */ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx");
  56999. /**
  57000. * Node factory which creates editor nodes
  57001. */
  57002. var TrigonometryNodeFactory = /** @class */ (function (_super) {
  57003. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeFactory, _super);
  57004. /**
  57005. * Constructs a GenericNodeFactory
  57006. */
  57007. function TrigonometryNodeFactory(globalState) {
  57008. var _this = _super.call(this, "trigonometry") || this;
  57009. _this._globalState = globalState;
  57010. return _this;
  57011. }
  57012. /**
  57013. * Generates a node widget
  57014. * @param diagramEngine diagram engine
  57015. * @param node node to generate
  57016. * @returns node widget jsx
  57017. */
  57018. TrigonometryNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  57019. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__["TrigonometryNodeWidget"], { node: node, globalState: this._globalState });
  57020. };
  57021. /**
  57022. * Gets a new instance of a node model
  57023. * @returns input node model
  57024. */
  57025. TrigonometryNodeFactory.prototype.getNewInstance = function () {
  57026. return new _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__["TrigonometryNodeModel"]();
  57027. };
  57028. return TrigonometryNodeFactory;
  57029. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  57030. /***/ }),
  57031. /***/ "./components/diagram/trigonometry/trigonometryNodeModel.tsx":
  57032. /*!*******************************************************************!*\
  57033. !*** ./components/diagram/trigonometry/trigonometryNodeModel.tsx ***!
  57034. \*******************************************************************/
  57035. /*! exports provided: TrigonometryNodeModel */
  57036. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57037. "use strict";
  57038. __webpack_require__.r(__webpack_exports__);
  57039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeModel", function() { return TrigonometryNodeModel; });
  57040. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57041. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57042. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57043. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  57044. /* harmony import */ var _trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodePropertyComponent */ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx");
  57045. /**
  57046. * Generic node model which stores information about a node editor block
  57047. */
  57048. var TrigonometryNodeModel = /** @class */ (function (_super) {
  57049. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeModel, _super);
  57050. /**
  57051. * Constructs the node model
  57052. */
  57053. function TrigonometryNodeModel() {
  57054. return _super.call(this, "trigonometry") || this;
  57055. }
  57056. Object.defineProperty(TrigonometryNodeModel.prototype, "trigonometryBlock", {
  57057. get: function () {
  57058. return this.block;
  57059. },
  57060. enumerable: true,
  57061. configurable: true
  57062. });
  57063. TrigonometryNodeModel.prototype.renderProperties = function (globalState) {
  57064. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["TrigonometryPropertyTabComponentProps"], { globalState: globalState, trigonometryNode: this }));
  57065. };
  57066. return TrigonometryNodeModel;
  57067. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  57068. /***/ }),
  57069. /***/ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx":
  57070. /*!*******************************************************************************!*\
  57071. !*** ./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx ***!
  57072. \*******************************************************************************/
  57073. /*! exports provided: TrigonometryPropertyTabComponentProps */
  57074. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57075. "use strict";
  57076. __webpack_require__.r(__webpack_exports__);
  57077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponentProps", function() { return TrigonometryPropertyTabComponentProps; });
  57078. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57079. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57080. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57081. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  57082. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57083. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  57084. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57085. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  57086. /* 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__);
  57087. var TrigonometryPropertyTabComponentProps = /** @class */ (function (_super) {
  57088. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryPropertyTabComponentProps, _super);
  57089. function TrigonometryPropertyTabComponentProps(props) {
  57090. return _super.call(this, props) || this;
  57091. }
  57092. TrigonometryPropertyTabComponentProps.prototype.render = function () {
  57093. var _this = this;
  57094. var trigonometryBlock = this.props.trigonometryNode.trigonometryBlock;
  57095. var operationOptions = [
  57096. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Cos },
  57097. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Sin },
  57098. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Abs }
  57099. ];
  57100. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  57102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: trigonometryBlock, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  57103. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: trigonometryBlock.getClassName() })),
  57104. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  57105. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Operation", valuesAreStrings: true, options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  57106. _this.forceUpdate();
  57107. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57108. } }))));
  57109. };
  57110. return TrigonometryPropertyTabComponentProps;
  57111. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57112. /***/ }),
  57113. /***/ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx":
  57114. /*!********************************************************************!*\
  57115. !*** ./components/diagram/trigonometry/trigonometryNodeWidget.tsx ***!
  57116. \********************************************************************/
  57117. /*! exports provided: TrigonometryNodeWidget */
  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__, "TrigonometryNodeWidget", function() { return TrigonometryNodeWidget; });
  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 _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  57126. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  57127. /* 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__);
  57128. /**
  57129. * Used to display a node block for the node editor
  57130. */
  57131. var TrigonometryNodeWidget = /** @class */ (function (_super) {
  57132. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeWidget, _super);
  57133. /**
  57134. * Creates a GenericNodeWidget
  57135. * @param props
  57136. */
  57137. function TrigonometryNodeWidget(props) {
  57138. var _this = _super.call(this, props) || this;
  57139. _this.state = {};
  57140. if (_this.props.node) {
  57141. _this.props.node.addListener({
  57142. selectionChanged: function () {
  57143. var selected = _this.props.node.selected;
  57144. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  57145. }
  57146. });
  57147. }
  57148. return _this;
  57149. }
  57150. TrigonometryNodeWidget.prototype.render = function () {
  57151. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  57152. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  57153. var trigonometryBlock = this.props.node.trigonometryBlock;
  57154. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock trigonometry" },
  57155. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, trigonometryBlock.name),
  57156. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  57157. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  57158. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  57159. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__["TrigonometryBlockOperations"][trigonometryBlock.operation]))));
  57160. };
  57161. return TrigonometryNodeWidget;
  57162. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57163. /***/ }),
  57164. /***/ "./components/log/log.scss":
  57165. /*!*********************************!*\
  57166. !*** ./components/log/log.scss ***!
  57167. \*********************************/
  57168. /*! no static exports found */
  57169. /***/ (function(module, exports, __webpack_require__) {
  57170. 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");
  57171. if(typeof content === 'string') content = [[module.i, content, '']];
  57172. var transform;
  57173. var insertInto;
  57174. var options = {"hmr":true}
  57175. options.transform = transform
  57176. options.insertInto = undefined;
  57177. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  57178. if(content.locals) module.exports = content.locals;
  57179. if(false) {}
  57180. /***/ }),
  57181. /***/ "./components/log/logComponent.tsx":
  57182. /*!*****************************************!*\
  57183. !*** ./components/log/logComponent.tsx ***!
  57184. \*****************************************/
  57185. /*! exports provided: LogEntry, LogComponent */
  57186. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57187. "use strict";
  57188. __webpack_require__.r(__webpack_exports__);
  57189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  57190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  57191. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57192. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57193. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57194. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  57195. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  57196. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  57197. var LogEntry = /** @class */ (function () {
  57198. function LogEntry(message, isError) {
  57199. this.message = message;
  57200. this.isError = isError;
  57201. }
  57202. return LogEntry;
  57203. }());
  57204. var LogComponent = /** @class */ (function (_super) {
  57205. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LogComponent, _super);
  57206. function LogComponent(props) {
  57207. var _this = _super.call(this, props) || this;
  57208. _this.state = { logs: [] };
  57209. return _this;
  57210. }
  57211. LogComponent.prototype.componentWillMount = function () {
  57212. var _this = this;
  57213. this.props.globalState.onLogRequiredObservable.add(function (log) {
  57214. var currentLogs = _this.state.logs;
  57215. currentLogs.push(log);
  57216. _this.setState({ logs: currentLogs });
  57217. });
  57218. };
  57219. LogComponent.prototype.componentDidUpdate = function () {
  57220. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  57221. if (!logConsole) {
  57222. return;
  57223. }
  57224. logConsole.scrollTop = logConsole.scrollHeight;
  57225. };
  57226. LogComponent.prototype.render = function () {
  57227. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  57228. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, l.message));
  57229. })));
  57230. };
  57231. return LogComponent;
  57232. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57233. /***/ }),
  57234. /***/ "./components/nodeList/nodeList.scss":
  57235. /*!*******************************************!*\
  57236. !*** ./components/nodeList/nodeList.scss ***!
  57237. \*******************************************/
  57238. /*! no static exports found */
  57239. /***/ (function(module, exports, __webpack_require__) {
  57240. 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");
  57241. if(typeof content === 'string') content = [[module.i, content, '']];
  57242. var transform;
  57243. var insertInto;
  57244. var options = {"hmr":true}
  57245. options.transform = transform
  57246. options.insertInto = undefined;
  57247. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  57248. if(content.locals) module.exports = content.locals;
  57249. if(false) {}
  57250. /***/ }),
  57251. /***/ "./components/nodeList/nodeListComponent.tsx":
  57252. /*!***************************************************!*\
  57253. !*** ./components/nodeList/nodeListComponent.tsx ***!
  57254. \***************************************************/
  57255. /*! exports provided: NodeListComponent */
  57256. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57257. "use strict";
  57258. __webpack_require__.r(__webpack_exports__);
  57259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  57260. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57261. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57262. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57263. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57264. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  57265. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  57266. var NodeListComponent = /** @class */ (function (_super) {
  57267. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NodeListComponent, _super);
  57268. function NodeListComponent() {
  57269. return _super !== null && _super.apply(this, arguments) || this;
  57270. }
  57271. NodeListComponent.prototype.render = function () {
  57272. // Block types used to create the menu from
  57273. var allBlocks = {
  57274. Vertex: ["BonesBlock", "InstancesBlock", "MorphTargetsBlock"],
  57275. Fragment: ["AlphaTestBlock", "FogBlock", "ImageProcessingBlock", "LightBlock", "ReflectionTextureBlock", "TextureBlock"],
  57276. Outputs: ["VertexOutputBlock", "FragmentOutputBlock"],
  57277. Math: ["AddBlock", "ClampBlock", "CrossBlock", "DotBlock", "MultiplyBlock", "RemapBlock", "NormalizeBlock", "ScaleBlock", "TransformBlock", "TrigonometryBlock"],
  57278. Conversion: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  57279. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "Matrix"],
  57280. };
  57281. // Create node menu
  57282. var blockMenu = [];
  57283. for (var key in allBlocks) {
  57284. var blockList = allBlocks[key].map(function (block, i) {
  57285. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block });
  57286. });
  57287. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { key: key + " blocks", title: key + " blocks", closed: false }, blockList));
  57288. }
  57289. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList", style: { borderRightStyle: "solid", borderColor: "grey", borderWidth: "1px" } },
  57290. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  57291. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" }, blockMenu))));
  57292. };
  57293. return NodeListComponent;
  57294. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57295. /***/ }),
  57296. /***/ "./components/preview/previewManager.ts":
  57297. /*!**********************************************!*\
  57298. !*** ./components/preview/previewManager.ts ***!
  57299. \**********************************************/
  57300. /*! exports provided: PreviewManager */
  57301. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57302. "use strict";
  57303. __webpack_require__.r(__webpack_exports__);
  57304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  57305. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/observable");
  57306. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  57307. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  57308. var PreviewManager = /** @class */ (function () {
  57309. function PreviewManager(targetCanvas, globalState) {
  57310. var _this = this;
  57311. this._nodeMaterial = globalState.nodeMaterial;
  57312. this._globalState = globalState;
  57313. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  57314. var serializationObject = nodeMaterial.serialize();
  57315. _this._updatePreview(serializationObject);
  57316. });
  57317. this._onPreviewMeshTypeChangedObserver = globalState.onPreviewMeshTypeChanged.add(function () {
  57318. _this._refreshPreviewMesh();
  57319. });
  57320. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  57321. var serializationObject = _this._nodeMaterial.serialize();
  57322. _this._updatePreview(serializationObject);
  57323. });
  57324. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  57325. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  57326. 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);
  57327. 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);
  57328. this._camera.lowerRadiusLimit = 3;
  57329. this._camera.upperRadiusLimit = 10;
  57330. this._camera.wheelPrecision = 20;
  57331. this._camera.attachControl(targetCanvas, false);
  57332. this._refreshPreviewMesh();
  57333. this._engine.runRenderLoop(function () {
  57334. _this._engine.resize();
  57335. _this._scene.render();
  57336. });
  57337. var serializationObject = this._nodeMaterial.serialize();
  57338. this._updatePreview(serializationObject);
  57339. }
  57340. PreviewManager.prototype._refreshPreviewMesh = function () {
  57341. if (this._dummy) {
  57342. this._dummy.dispose();
  57343. }
  57344. switch (this._globalState.previewMeshType) {
  57345. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box:
  57346. this._dummy = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateBox("dummy", 2, this._scene);
  57347. break;
  57348. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Sphere:
  57349. this._dummy = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy", 32, 2, this._scene);
  57350. break;
  57351. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Torus:
  57352. this._dummy = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy", 2, 0.5, 32, this._scene);
  57353. break;
  57354. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Cylinder:
  57355. this._dummy = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateCylinder("dummy", 2, 1, 1.2, 32, 1, this._scene);
  57356. break;
  57357. }
  57358. this._dummy.material = this._material;
  57359. };
  57360. PreviewManager.prototype._updatePreview = function (serializationObject) {
  57361. if (this._material) {
  57362. this._material.dispose();
  57363. }
  57364. this._material = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  57365. this._material.build(true);
  57366. this._dummy.material = this._material;
  57367. };
  57368. PreviewManager.prototype.dispose = function () {
  57369. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  57370. this._globalState.onPreviewMeshTypeChanged.remove(this._onPreviewMeshTypeChangedObserver);
  57371. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  57372. if (this._material) {
  57373. this._material.dispose();
  57374. }
  57375. this._camera.dispose();
  57376. this._dummy.dispose();
  57377. this._light.dispose();
  57378. this._engine.dispose();
  57379. };
  57380. return PreviewManager;
  57381. }());
  57382. /***/ }),
  57383. /***/ "./components/preview/previewMeshControlComponent.tsx":
  57384. /*!************************************************************!*\
  57385. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  57386. \************************************************************/
  57387. /*! exports provided: PreviewMeshControlComponent */
  57388. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57389. "use strict";
  57390. __webpack_require__.r(__webpack_exports__);
  57391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  57392. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57393. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57394. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57395. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  57396. /* 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");
  57397. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  57398. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  57399. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  57400. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewMeshControlComponent, _super);
  57401. function PreviewMeshControlComponent() {
  57402. return _super !== null && _super.apply(this, arguments) || this;
  57403. }
  57404. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  57405. if (this.props.globalState.previewMeshType === newOne) {
  57406. return;
  57407. }
  57408. this.props.globalState.previewMeshType = newOne;
  57409. this.props.globalState.onPreviewMeshTypeChanged.notifyObservers();
  57410. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("PreviewMeshType", newOne);
  57411. this.forceUpdate();
  57412. };
  57413. PreviewMeshControlComponent.prototype.render = function () {
  57414. var _this = this;
  57415. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  57416. 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" : "") },
  57417. 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"] })),
  57418. 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" : "") },
  57419. 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"] })),
  57420. 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" : "") },
  57421. 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"] })),
  57422. 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" : "") },
  57423. 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"] }))));
  57424. };
  57425. return PreviewMeshControlComponent;
  57426. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57427. /***/ }),
  57428. /***/ "./components/preview/previewMeshType.ts":
  57429. /*!***********************************************!*\
  57430. !*** ./components/preview/previewMeshType.ts ***!
  57431. \***********************************************/
  57432. /*! exports provided: PreviewMeshType */
  57433. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57434. "use strict";
  57435. __webpack_require__.r(__webpack_exports__);
  57436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshType", function() { return PreviewMeshType; });
  57437. var PreviewMeshType;
  57438. (function (PreviewMeshType) {
  57439. PreviewMeshType[PreviewMeshType["Sphere"] = 0] = "Sphere";
  57440. PreviewMeshType[PreviewMeshType["Box"] = 1] = "Box";
  57441. PreviewMeshType[PreviewMeshType["Torus"] = 2] = "Torus";
  57442. PreviewMeshType[PreviewMeshType["Cylinder"] = 3] = "Cylinder";
  57443. })(PreviewMeshType || (PreviewMeshType = {}));
  57444. /***/ }),
  57445. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  57446. /*!**************************************************************************!*\
  57447. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  57448. \**************************************************************************/
  57449. /*! exports provided: Color3PropertyTabComponent */
  57450. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57451. "use strict";
  57452. __webpack_require__.r(__webpack_exports__);
  57453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  57454. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57455. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57456. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57457. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  57458. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  57459. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3PropertyTabComponent, _super);
  57460. function Color3PropertyTabComponent() {
  57461. return _super !== null && _super.apply(this, arguments) || this;
  57462. }
  57463. Color3PropertyTabComponent.prototype.render = function () {
  57464. var _this = this;
  57465. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  57466. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57467. } }));
  57468. };
  57469. return Color3PropertyTabComponent;
  57470. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57471. /***/ }),
  57472. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  57473. /*!*************************************************************************!*\
  57474. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  57475. \*************************************************************************/
  57476. /*! exports provided: FloatPropertyTabComponent */
  57477. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57478. "use strict";
  57479. __webpack_require__.r(__webpack_exports__);
  57480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  57481. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57482. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57483. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57484. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  57485. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  57486. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatPropertyTabComponent, _super);
  57487. function FloatPropertyTabComponent() {
  57488. return _super !== null && _super.apply(this, arguments) || this;
  57489. }
  57490. FloatPropertyTabComponent.prototype.render = function () {
  57491. var _this = this;
  57492. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  57493. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57494. } }));
  57495. };
  57496. return FloatPropertyTabComponent;
  57497. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57498. /***/ }),
  57499. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  57500. /*!***************************************************************************!*\
  57501. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  57502. \***************************************************************************/
  57503. /*! exports provided: Vector2PropertyTabComponent */
  57504. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57505. "use strict";
  57506. __webpack_require__.r(__webpack_exports__);
  57507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  57508. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57509. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57510. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57511. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  57512. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  57513. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2PropertyTabComponent, _super);
  57514. function Vector2PropertyTabComponent() {
  57515. return _super !== null && _super.apply(this, arguments) || this;
  57516. }
  57517. Vector2PropertyTabComponent.prototype.render = function () {
  57518. var _this = this;
  57519. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  57520. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57521. } }));
  57522. };
  57523. return Vector2PropertyTabComponent;
  57524. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57525. /***/ }),
  57526. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  57527. /*!***************************************************************************!*\
  57528. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  57529. \***************************************************************************/
  57530. /*! exports provided: Vector3PropertyTabComponent */
  57531. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57532. "use strict";
  57533. __webpack_require__.r(__webpack_exports__);
  57534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  57535. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57536. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57537. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57538. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  57539. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  57540. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3PropertyTabComponent, _super);
  57541. function Vector3PropertyTabComponent() {
  57542. return _super !== null && _super.apply(this, arguments) || this;
  57543. }
  57544. Vector3PropertyTabComponent.prototype.render = function () {
  57545. var _this = this;
  57546. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  57547. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57548. } }));
  57549. };
  57550. return Vector3PropertyTabComponent;
  57551. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57552. /***/ }),
  57553. /***/ "./components/propertyTab/propertyTab.scss":
  57554. /*!*************************************************!*\
  57555. !*** ./components/propertyTab/propertyTab.scss ***!
  57556. \*************************************************/
  57557. /*! no static exports found */
  57558. /***/ (function(module, exports, __webpack_require__) {
  57559. 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");
  57560. if(typeof content === 'string') content = [[module.i, content, '']];
  57561. var transform;
  57562. var insertInto;
  57563. var options = {"hmr":true}
  57564. options.transform = transform
  57565. options.insertInto = undefined;
  57566. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  57567. if(content.locals) module.exports = content.locals;
  57568. if(false) {}
  57569. /***/ }),
  57570. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  57571. /*!*********************************************************!*\
  57572. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  57573. \*********************************************************/
  57574. /*! exports provided: PropertyTabComponent */
  57575. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57576. "use strict";
  57577. __webpack_require__.r(__webpack_exports__);
  57578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  57579. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57580. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57581. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57582. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  57583. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57584. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  57585. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  57586. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  57587. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  57588. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  57589. var PropertyTabComponent = /** @class */ (function (_super) {
  57590. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PropertyTabComponent, _super);
  57591. function PropertyTabComponent(props) {
  57592. var _this = _super.call(this, props) || this;
  57593. _this.state = { currentNode: null };
  57594. return _this;
  57595. }
  57596. PropertyTabComponent.prototype.componentWillMount = function () {
  57597. var _this = this;
  57598. this.props.globalState.onSelectionChangedObservable.add(function (block) {
  57599. _this.setState({ currentNode: block });
  57600. });
  57601. };
  57602. PropertyTabComponent.prototype.load = function (file) {
  57603. var _this = this;
  57604. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  57605. var decoder = new TextDecoder("utf-8");
  57606. var serializationObject = JSON.parse(decoder.decode(data));
  57607. _this.props.globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  57608. // Check for id mapping
  57609. if (serializationObject.locations && serializationObject.map) {
  57610. var map = serializationObject.map;
  57611. var locations = serializationObject.locations;
  57612. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  57613. var location = locations_1[_i];
  57614. location.blockId = map[location.blockId];
  57615. }
  57616. }
  57617. _this.props.globalState.onResetRequiredObservable.notifyObservers(serializationObject.locations);
  57618. }, undefined, true);
  57619. };
  57620. PropertyTabComponent.prototype.save = function () {
  57621. var material = this.props.globalState.nodeMaterial;
  57622. var serializationObject = material.serialize();
  57623. // Store node locations
  57624. for (var _i = 0, _a = material.attachedBlocks; _i < _a.length; _i++) {
  57625. var block = _a[_i];
  57626. var node = this.props.globalState.onGetNodeFromBlock(block);
  57627. if (!serializationObject.locations) {
  57628. serializationObject.locations = [];
  57629. }
  57630. serializationObject.locations.push({
  57631. blockId: block.uniqueId,
  57632. x: node.x,
  57633. y: node.y
  57634. });
  57635. }
  57636. // Output
  57637. var json = JSON.stringify(serializationObject, undefined, 2);
  57638. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(json, "nodeMaterial.json");
  57639. };
  57640. PropertyTabComponent.prototype.render = function () {
  57641. var _this = this;
  57642. if (this.state.currentNode) {
  57643. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  57644. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  57645. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  57646. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  57647. this.state.currentNode.renderProperties(this.props.globalState)));
  57648. }
  57649. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  57650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  57651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  57652. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  57653. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57654. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  57655. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  57656. _this.props.globalState.nodeMaterial.setToDefault();
  57657. _this.props.globalState.onResetRequiredObservable.notifyObservers(null);
  57658. } })),
  57659. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  57660. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  57661. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  57662. } }),
  57663. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  57664. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  57665. } })),
  57666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  57667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  57668. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  57669. _this.save();
  57670. } }),
  57671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  57672. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  57673. } })))));
  57674. };
  57675. return PropertyTabComponent;
  57676. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57677. /***/ }),
  57678. /***/ "./dataStorage.ts":
  57679. /*!************************!*\
  57680. !*** ./dataStorage.ts ***!
  57681. \************************/
  57682. /*! exports provided: DataStorage */
  57683. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57684. "use strict";
  57685. __webpack_require__.r(__webpack_exports__);
  57686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStorage", function() { return DataStorage; });
  57687. var DataStorage = /** @class */ (function () {
  57688. function DataStorage() {
  57689. }
  57690. DataStorage.ReadBoolean = function (key, defaultValue) {
  57691. try {
  57692. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  57693. return this._InMemoryStorage[key];
  57694. }
  57695. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  57696. return localStorage.getItem(key) === "true";
  57697. }
  57698. else {
  57699. return defaultValue;
  57700. }
  57701. }
  57702. catch (e) {
  57703. this._InMemoryStorage = {};
  57704. this._InMemoryStorage[key] = defaultValue;
  57705. return defaultValue;
  57706. }
  57707. };
  57708. DataStorage.StoreBoolean = function (key, value) {
  57709. try {
  57710. if (this._InMemoryStorage) {
  57711. this._InMemoryStorage[key] = value;
  57712. }
  57713. else if (typeof (Storage) !== "undefined") {
  57714. localStorage.setItem(key, value ? "true" : "false");
  57715. }
  57716. }
  57717. catch (e) {
  57718. this._InMemoryStorage = {};
  57719. this._InMemoryStorage[key] = value;
  57720. }
  57721. };
  57722. DataStorage.ReadNumber = function (key, defaultValue) {
  57723. try {
  57724. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  57725. return this._InMemoryStorage[key];
  57726. }
  57727. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  57728. return parseFloat(localStorage.getItem(key));
  57729. }
  57730. else {
  57731. return defaultValue;
  57732. }
  57733. }
  57734. catch (e) {
  57735. this._InMemoryStorage = {};
  57736. this._InMemoryStorage[key] = defaultValue;
  57737. return defaultValue;
  57738. }
  57739. };
  57740. DataStorage.StoreNumber = function (key, value) {
  57741. try {
  57742. if (this._InMemoryStorage) {
  57743. this._InMemoryStorage[key] = value;
  57744. }
  57745. else if (typeof (Storage) !== "undefined") {
  57746. localStorage.setItem(key, value.toString());
  57747. }
  57748. }
  57749. catch (e) {
  57750. this._InMemoryStorage = {};
  57751. this._InMemoryStorage[key] = value;
  57752. }
  57753. };
  57754. return DataStorage;
  57755. }());
  57756. /***/ }),
  57757. /***/ "./globalState.ts":
  57758. /*!************************!*\
  57759. !*** ./globalState.ts ***!
  57760. \************************/
  57761. /*! exports provided: GlobalState */
  57762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57763. "use strict";
  57764. __webpack_require__.r(__webpack_exports__);
  57765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  57766. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  57767. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  57768. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  57769. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  57770. var GlobalState = /** @class */ (function () {
  57771. function GlobalState() {
  57772. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57773. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57774. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57775. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57776. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57777. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57778. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57779. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57780. this.onPreviewMeshTypeChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57781. this.previewMeshType = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box);
  57782. }
  57783. return GlobalState;
  57784. }());
  57785. /***/ }),
  57786. /***/ "./graphEditor.tsx":
  57787. /*!*************************!*\
  57788. !*** ./graphEditor.tsx ***!
  57789. \*************************/
  57790. /*! exports provided: NodeCreationOptions, GraphEditor */
  57791. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57792. "use strict";
  57793. __webpack_require__.r(__webpack_exports__);
  57794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeCreationOptions", function() { return NodeCreationOptions; });
  57795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  57796. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57797. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  57798. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  57799. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57800. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  57801. /* harmony import */ var _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeFactory */ "./components/diagram/generic/genericNodeFactory.tsx");
  57802. /* harmony import */ var _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  57803. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  57804. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  57805. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  57806. /* harmony import */ var _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeFactory */ "./components/diagram/texture/textureNodeFactory.tsx");
  57807. /* harmony import */ var _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  57808. /* harmony import */ var _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/diagram/port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  57809. /* harmony import */ var _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/diagram/input/inputNodeFactory */ "./components/diagram/input/inputNodeFactory.tsx");
  57810. /* harmony import */ var _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/diagram/input/inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  57811. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/observable");
  57812. /* 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__);
  57813. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  57814. /* harmony import */ var _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/diagram/light/lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  57815. /* harmony import */ var _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/diagram/light/lightNodeFactory */ "./components/diagram/light/lightNodeFactory.tsx");
  57816. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  57817. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  57818. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  57819. /* harmony import */ var _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/diagram/link/advancedLinkFactory */ "./components/diagram/link/advancedLinkFactory.tsx");
  57820. /* harmony import */ var _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeFactory */ "./components/diagram/remap/remapNodeFactory.tsx");
  57821. /* harmony import */ var _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  57822. /* harmony import */ var _graphHelper__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./graphHelper */ "./graphHelper.ts");
  57823. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  57824. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  57825. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeFactory */ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx");
  57826. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  57827. __webpack_require__(/*! storm-react-diagrams/dist/style.min.css */ "../../node_modules/storm-react-diagrams/dist/style.min.css");
  57828. __webpack_require__(/*! ./main.scss */ "./main.scss");
  57829. __webpack_require__(/*! ./components/diagram/diagram.scss */ "./components/diagram/diagram.scss");
  57830. var NodeCreationOptions = /** @class */ (function () {
  57831. function NodeCreationOptions() {
  57832. }
  57833. return NodeCreationOptions;
  57834. }());
  57835. var GraphEditor = /** @class */ (function (_super) {
  57836. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GraphEditor, _super);
  57837. function GraphEditor(props) {
  57838. var _this = _super.call(this, props) || this;
  57839. _this.NodeWidth = 100;
  57840. _this._leftWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("LeftWidth", 200);
  57841. _this._rightWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("RightWidth", 300);
  57842. _this._nodes = new Array();
  57843. _this._blocks = new Array();
  57844. _this._copiedNode = null;
  57845. _this._mouseLocationX = 0;
  57846. _this._mouseLocationY = 0;
  57847. /** @hidden */
  57848. _this._toAdd = [];
  57849. // setup the diagram engine
  57850. _this._engine = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramEngine"]();
  57851. _this._engine.installDefaultFactories();
  57852. _this._engine.registerNodeFactory(new _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__["GenericNodeFactory"](_this.props.globalState));
  57853. _this._engine.registerNodeFactory(new _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__["TextureNodeFactory"](_this.props.globalState));
  57854. _this._engine.registerNodeFactory(new _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__["LightNodeFactory"](_this.props.globalState));
  57855. _this._engine.registerNodeFactory(new _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__["InputNodeFactory"](_this.props.globalState));
  57856. _this._engine.registerNodeFactory(new _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__["RemapNodeFactory"](_this.props.globalState));
  57857. _this._engine.registerNodeFactory(new _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__["TrigonometryNodeFactory"](_this.props.globalState));
  57858. _this._engine.registerLinkFactory(new _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__["AdvancedLinkFactory"]());
  57859. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  57860. if (_this.props.globalState.nodeMaterial) {
  57861. _this.buildMaterial();
  57862. }
  57863. _this.forceUpdate();
  57864. });
  57865. _this.props.globalState.onResetRequiredObservable.add(function (locations) {
  57866. _this.build(false, locations);
  57867. if (_this.props.globalState.nodeMaterial) {
  57868. _this.buildMaterial();
  57869. }
  57870. });
  57871. _this.props.globalState.onUpdateRequiredObservable.add(function () {
  57872. _this.forceUpdate();
  57873. });
  57874. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  57875. _this.zoomToFit();
  57876. });
  57877. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  57878. _this.reOrganize();
  57879. });
  57880. _this.props.globalState.onGetNodeFromBlock = function (block) {
  57881. return _this._nodes.filter(function (n) { return n.block === block; })[0];
  57882. };
  57883. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  57884. if (!evt.ctrlKey) {
  57885. return;
  57886. }
  57887. if (evt.key === "c") {
  57888. var selectedItems = _this._engine.diagramModel.getSelectedItems();
  57889. if (!selectedItems.length) {
  57890. return;
  57891. }
  57892. var selectedItem = selectedItems[0];
  57893. if (!selectedItem.block) {
  57894. return;
  57895. }
  57896. _this._copiedNode = selectedItem;
  57897. }
  57898. else if (evt.key === "v") {
  57899. if (!_this._copiedNode) {
  57900. return;
  57901. }
  57902. var block = _this._copiedNode.block;
  57903. var clone = block.clone(_this.props.globalState.nodeMaterial.getScene());
  57904. if (!clone) {
  57905. return;
  57906. }
  57907. var newNode = _this.createNodeFromObject({ nodeMaterialBlock: clone });
  57908. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  57909. var zoomLevel = _this._engine.diagramModel.getZoomLevel() / 100.0;
  57910. var x = (_this._mouseLocationX - rootElement.offsetLeft - _this._engine.diagramModel.getOffsetX() - _this.NodeWidth) / zoomLevel;
  57911. var y = (_this._mouseLocationY - rootElement.offsetTop - _this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  57912. newNode.x = x;
  57913. newNode.y = y;
  57914. _this._engine.repaintCanvas();
  57915. }
  57916. }, false);
  57917. _this.build(true);
  57918. return _this;
  57919. }
  57920. /**
  57921. * Creates a node and recursivly creates its parent nodes from it's input
  57922. * @param nodeMaterialBlock
  57923. */
  57924. GraphEditor.prototype.createNodeFromObject = function (options) {
  57925. if (this._blocks.indexOf(options.nodeMaterialBlock) !== -1) {
  57926. return this._nodes.filter(function (n) { return n.block === options.nodeMaterialBlock; })[0];
  57927. }
  57928. this._blocks.push(options.nodeMaterialBlock);
  57929. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(options.nodeMaterialBlock) === -1) {
  57930. this.props.globalState.nodeMaterial.attachedBlocks.push(options.nodeMaterialBlock);
  57931. }
  57932. // Create new node in the graph
  57933. var newNode;
  57934. if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TextureBlock"]) {
  57935. newNode = new _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__["TextureNodeModel"]();
  57936. }
  57937. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightBlock"]) {
  57938. newNode = new _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__["LightNodeModel"]();
  57939. }
  57940. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"]) {
  57941. newNode = new _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__["InputNodeModel"]();
  57942. }
  57943. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TrigonometryBlock"]) {
  57944. newNode = new _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__["TrigonometryNodeModel"]();
  57945. }
  57946. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["RemapBlock"]) {
  57947. newNode = new _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__["RemapNodeModel"]();
  57948. }
  57949. else {
  57950. newNode = new _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__["GenericNodeModel"]();
  57951. }
  57952. if (options.nodeMaterialBlock.isFinalMerger) {
  57953. this.props.globalState.nodeMaterial.addOutputNode(options.nodeMaterialBlock);
  57954. }
  57955. this._nodes.push(newNode);
  57956. this._model.addAll(newNode);
  57957. if (options.nodeMaterialBlock) {
  57958. newNode.prepare(options, this._nodes, this._model, this);
  57959. }
  57960. return newNode;
  57961. };
  57962. GraphEditor.prototype.addValueNode = function (type) {
  57963. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetConnectionNodeTypeFromString(type);
  57964. var newInputBlock = new babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"](type, undefined, nodeType);
  57965. var localNode = this.createNodeFromObject({ type: type, nodeMaterialBlock: newInputBlock });
  57966. return localNode;
  57967. };
  57968. GraphEditor.prototype.componentDidMount = function () {
  57969. if (this.props.globalState.hostDocument) {
  57970. var widget = this.refs["test"];
  57971. widget.setState({ document: this.props.globalState.hostDocument });
  57972. this.props.globalState.hostDocument.addEventListener("keyup", widget.onKeyUpPointer, false);
  57973. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  57974. }
  57975. };
  57976. GraphEditor.prototype.componentWillUnmount = function () {
  57977. if (this.props.globalState.hostDocument) {
  57978. var widget = this.refs["test"];
  57979. this.props.globalState.hostDocument.removeEventListener("keyup", widget.onKeyUpPointer, false);
  57980. }
  57981. this._previewManager.dispose();
  57982. };
  57983. GraphEditor.prototype.zoomToFit = function (retry) {
  57984. var _this = this;
  57985. if (retry === void 0) { retry = 0; }
  57986. var xFactor = this._engine.canvas.clientWidth / this._engine.canvas.scrollWidth;
  57987. var yFactor = this._engine.canvas.clientHeight / this._engine.canvas.scrollHeight;
  57988. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  57989. if (zoomFactor === 1) {
  57990. return;
  57991. }
  57992. this._engine.diagramModel.setZoomLevel(this._engine.diagramModel.getZoomLevel() * zoomFactor);
  57993. this._engine.diagramModel.setOffset(0, 0);
  57994. this._engine.repaintCanvas();
  57995. retry++;
  57996. if (retry < 4) {
  57997. setTimeout(function () { return _this.zoomToFit(retry); }, 1);
  57998. }
  57999. };
  58000. GraphEditor.prototype.buildMaterial = function () {
  58001. if (!this.props.globalState.nodeMaterial) {
  58002. return;
  58003. }
  58004. try {
  58005. this.props.globalState.nodeMaterial.build();
  58006. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"]("Node material build successful", false));
  58007. }
  58008. catch (err) {
  58009. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"](err, true));
  58010. }
  58011. };
  58012. GraphEditor.prototype.build = function (needToWait, locations) {
  58013. var _this = this;
  58014. if (needToWait === void 0) { needToWait = false; }
  58015. if (locations === void 0) { locations = null; }
  58016. // setup the diagram model
  58017. this._model = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramModel"]();
  58018. this._nodes = [];
  58019. this._blocks = [];
  58020. // Listen to events
  58021. this._model.addListener({
  58022. nodesUpdated: function (e) {
  58023. if (!e.isCreated) {
  58024. // Block is deleted
  58025. var targetBlock = e.node.block;
  58026. if (targetBlock) {
  58027. var attachedBlockIndex = _this.props.globalState.nodeMaterial.attachedBlocks.indexOf(targetBlock);
  58028. if (attachedBlockIndex > -1) {
  58029. _this.props.globalState.nodeMaterial.attachedBlocks.splice(attachedBlockIndex, 1);
  58030. }
  58031. if (targetBlock.isFinalMerger) {
  58032. _this.props.globalState.nodeMaterial.removeOutputNode(targetBlock);
  58033. }
  58034. var blockIndex = _this._blocks.indexOf(targetBlock);
  58035. if (blockIndex > -1) {
  58036. _this._blocks.splice(blockIndex, 1);
  58037. }
  58038. }
  58039. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58040. }
  58041. },
  58042. linksUpdated: function (e) {
  58043. if (!e.isCreated) {
  58044. // Link is deleted
  58045. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58046. var sourcePort = e.link.sourcePort;
  58047. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(sourcePort, e.link.targetPort);
  58048. if (link) {
  58049. if (link.input.connection && link.output.connection) {
  58050. if (link.input.connection.connectedPoint) {
  58051. // Disconnect standard nodes
  58052. link.output.connection.disconnectFrom(link.input.connection);
  58053. link.input.syncWithNodeMaterialConnectionPoint(link.input.connection);
  58054. link.output.syncWithNodeMaterialConnectionPoint(link.output.connection);
  58055. }
  58056. }
  58057. }
  58058. else {
  58059. if (!e.link.targetPort && e.link.sourcePort && e.link.sourcePort.position === "input") {
  58060. // Drag from input port, we are going to build an input for it
  58061. var input_1 = e.link.sourcePort;
  58062. var nodeModel_1 = _this.addValueNode(_blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetStringFromConnectionNodeType(input_1.connection.type));
  58063. var link_1 = nodeModel_1.ports.output.link(input_1);
  58064. nodeModel_1.x = e.link.points[1].x - _this.NodeWidth;
  58065. nodeModel_1.y = e.link.points[1].y;
  58066. setTimeout(function () {
  58067. _this._model.addLink(link_1);
  58068. input_1.syncWithNodeMaterialConnectionPoint(input_1.connection);
  58069. nodeModel_1.ports.output.syncWithNodeMaterialConnectionPoint(nodeModel_1.ports.output.connection);
  58070. _this.forceUpdate();
  58071. }, 1);
  58072. nodeModel_1.ports.output.connection.connectTo(input_1.connection);
  58073. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  58074. }
  58075. }
  58076. _this.forceUpdate();
  58077. return;
  58078. }
  58079. e.link.addListener({
  58080. sourcePortChanged: function () {
  58081. },
  58082. targetPortChanged: function () {
  58083. // Link is created with a target port
  58084. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  58085. if (link) {
  58086. if (link.output.connection && link.input.connection) {
  58087. // Disconnect previous connection
  58088. for (var key in link.input.links) {
  58089. var other = link.input.links[key];
  58090. if (other.getSourcePort().connection !== link.output.connection &&
  58091. other.getTargetPort().connection !== link.output.connection) {
  58092. other.remove();
  58093. }
  58094. }
  58095. try {
  58096. link.output.connection.connectTo(link.input.connection);
  58097. }
  58098. catch (err) {
  58099. link.output.remove();
  58100. _this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"](err, true));
  58101. _this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(err);
  58102. }
  58103. _this.forceUpdate();
  58104. }
  58105. if (_this.props.globalState.nodeMaterial) {
  58106. _this.buildMaterial();
  58107. }
  58108. }
  58109. }
  58110. });
  58111. }
  58112. });
  58113. // Load graph of nodes from the material
  58114. if (this.props.globalState.nodeMaterial) {
  58115. var material = this.props.globalState.nodeMaterial;
  58116. material._vertexOutputNodes.forEach(function (n) {
  58117. _this.createNodeFromObject({ nodeMaterialBlock: n });
  58118. });
  58119. material._fragmentOutputNodes.forEach(function (n) {
  58120. _this.createNodeFromObject({ nodeMaterialBlock: n });
  58121. });
  58122. material.attachedBlocks.forEach(function (n) {
  58123. _this.createNodeFromObject({ nodeMaterialBlock: n });
  58124. });
  58125. }
  58126. // load model into engine
  58127. setTimeout(function () {
  58128. var _a;
  58129. if (_this._toAdd) {
  58130. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  58131. }
  58132. _this._toAdd = null;
  58133. _this._engine.setDiagramModel(_this._model);
  58134. _this.forceUpdate();
  58135. _this.reOrganize(locations);
  58136. }, needToWait ? 500 : 1);
  58137. };
  58138. GraphEditor.prototype.reOrganize = function (locations) {
  58139. var _this = this;
  58140. if (locations === void 0) { locations = null; }
  58141. if (!locations) {
  58142. var nodes = _graphHelper__WEBPACK_IMPORTED_MODULE_23__["GraphHelper"].DistributeGraph(this._model);
  58143. nodes.forEach(function (node) {
  58144. for (var nodeName in _this._model.nodes) {
  58145. var modelNode = _this._model.nodes[nodeName];
  58146. if (modelNode.id === node.id) {
  58147. modelNode.setPosition(node.x - node.width / 2, node.y - node.height / 2);
  58148. return;
  58149. }
  58150. }
  58151. });
  58152. }
  58153. else {
  58154. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  58155. var location = locations_1[_i];
  58156. for (var _a = 0, _b = this._nodes; _a < _b.length; _a++) {
  58157. var node = _b[_a];
  58158. if (node.block && node.block.uniqueId === location.blockId) {
  58159. node.setPosition(location.x, location.y);
  58160. break;
  58161. }
  58162. }
  58163. }
  58164. }
  58165. this._engine.repaintCanvas();
  58166. };
  58167. GraphEditor.prototype.onPointerDown = function (evt) {
  58168. this._startX = evt.clientX;
  58169. this._moveInProgress = true;
  58170. evt.currentTarget.setPointerCapture(evt.pointerId);
  58171. };
  58172. GraphEditor.prototype.onPointerUp = function (evt) {
  58173. this._moveInProgress = false;
  58174. evt.currentTarget.releasePointerCapture(evt.pointerId);
  58175. };
  58176. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  58177. if (forLeft === void 0) { forLeft = true; }
  58178. if (!this._moveInProgress) {
  58179. return;
  58180. }
  58181. var deltaX = evt.clientX - this._startX;
  58182. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  58183. if (forLeft) {
  58184. this._leftWidth += deltaX;
  58185. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  58186. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("LeftWidth", this._leftWidth);
  58187. }
  58188. else {
  58189. this._rightWidth -= deltaX;
  58190. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  58191. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("RightWidth", this._rightWidth);
  58192. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  58193. }
  58194. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  58195. this._startX = evt.clientX;
  58196. };
  58197. GraphEditor.prototype.buildColumnLayout = function () {
  58198. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  58199. };
  58200. GraphEditor.prototype.emitNewBlock = function (event) {
  58201. var data = event.dataTransfer.getData("babylonjs-material-node");
  58202. var nodeModel = null;
  58203. if (data.indexOf("Block") === -1) {
  58204. nodeModel = this.addValueNode(data);
  58205. }
  58206. else {
  58207. var block = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetBlockFromString(data);
  58208. if (block) {
  58209. nodeModel = this.createNodeFromObject({ nodeMaterialBlock: block });
  58210. }
  58211. }
  58212. ;
  58213. if (nodeModel) {
  58214. var zoomLevel = this._engine.diagramModel.getZoomLevel() / 100.0;
  58215. var x = (event.clientX - event.currentTarget.offsetLeft - this._engine.diagramModel.getOffsetX() - this.NodeWidth) / zoomLevel;
  58216. var y = (event.clientY - event.currentTarget.offsetTop - this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  58217. nodeModel.setPosition(x, y);
  58218. }
  58219. this.forceUpdate();
  58220. };
  58221. GraphEditor.prototype.render = function () {
  58222. var _this = this;
  58223. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_7__["Portal"], { globalState: this.props.globalState },
  58224. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "node-editor-graph-root", style: {
  58225. gridTemplateColumns: this.buildColumnLayout()
  58226. }, onMouseMove: function (evt) {
  58227. _this._mouseLocationX = evt.pageX;
  58228. _this._mouseLocationY = evt.pageY;
  58229. } },
  58230. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__["NodeListComponent"], { globalState: this.props.globalState }),
  58231. 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); } }),
  58232. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  58233. _this.emitNewBlock(event);
  58234. }, onDragOver: function (event) {
  58235. event.preventDefault();
  58236. } },
  58237. 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 })),
  58238. 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); } }),
  58239. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "right-panel" },
  58240. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["PropertyTabComponent"], { globalState: this.props.globalState }),
  58241. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__["PreviewMeshControlComponent"], { globalState: this.props.globalState }),
  58242. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "preview", style: { height: this._rightWidth + "px" } },
  58243. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("canvas", { id: "preview-canvas" }))),
  58244. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogComponent"], { globalState: this.props.globalState })),
  58245. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__["MessageDialogComponent"], { globalState: this.props.globalState })));
  58246. };
  58247. return GraphEditor;
  58248. }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]));
  58249. /***/ }),
  58250. /***/ "./graphHelper.ts":
  58251. /*!************************!*\
  58252. !*** ./graphHelper.ts ***!
  58253. \************************/
  58254. /*! exports provided: GraphHelper */
  58255. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58256. "use strict";
  58257. __webpack_require__.r(__webpack_exports__);
  58258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphHelper", function() { return GraphHelper; });
  58259. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58260. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  58261. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  58262. var GraphHelper = /** @class */ (function () {
  58263. function GraphHelper() {
  58264. }
  58265. GraphHelper.DistributeGraph = function (model) {
  58266. var nodes = this._MapElements(model);
  58267. var edges = this._MapEdges(model);
  58268. var graph = new dagre__WEBPACK_IMPORTED_MODULE_1__["graphlib"].Graph();
  58269. graph.setGraph({});
  58270. graph.setDefaultEdgeLabel(function () { return ({}); });
  58271. graph.graph().rankdir = "LR";
  58272. //add elements to dagre graph
  58273. nodes.forEach(function (node) {
  58274. graph.setNode(node.id, node.metadata);
  58275. });
  58276. edges.forEach(function (edge) {
  58277. if (edge.from && edge.to) {
  58278. graph.setEdge(edge.from.id, edge.to.id);
  58279. }
  58280. });
  58281. //auto-distribute
  58282. dagre__WEBPACK_IMPORTED_MODULE_1__["layout"](graph);
  58283. return graph.nodes().map(function (node) { return graph.node(node); });
  58284. };
  58285. GraphHelper._MapElements = function (model) {
  58286. var output = [];
  58287. // dagre compatible format
  58288. for (var nodeName in model.nodes) {
  58289. var node = model.nodes[nodeName];
  58290. var size = {
  58291. width: node.width | 200,
  58292. height: node.height | 100
  58293. };
  58294. output.push({ id: node.id, metadata: tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, size, { id: node.id }) });
  58295. }
  58296. return output;
  58297. };
  58298. GraphHelper._MapEdges = function (model) {
  58299. // returns links which connects nodes
  58300. // we check are there both from and to nodes in the model. Sometimes links can be detached
  58301. var output = [];
  58302. for (var linkName in model.links) {
  58303. var link = model.links[linkName];
  58304. output.push({
  58305. from: link.sourcePort.parent,
  58306. to: link.targetPort.parent
  58307. });
  58308. }
  58309. return output;
  58310. };
  58311. return GraphHelper;
  58312. }());
  58313. /***/ }),
  58314. /***/ "./index.ts":
  58315. /*!******************!*\
  58316. !*** ./index.ts ***!
  58317. \******************/
  58318. /*! exports provided: NodeEditor */
  58319. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58320. "use strict";
  58321. __webpack_require__.r(__webpack_exports__);
  58322. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  58323. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  58324. /***/ }),
  58325. /***/ "./legacy/legacy.ts":
  58326. /*!**************************!*\
  58327. !*** ./legacy/legacy.ts ***!
  58328. \**************************/
  58329. /*! exports provided: NodeEditor */
  58330. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58331. "use strict";
  58332. __webpack_require__.r(__webpack_exports__);
  58333. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  58334. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  58335. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  58336. if (typeof globalObject !== "undefined") {
  58337. globalObject.BABYLON = globalObject.BABYLON || {};
  58338. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  58339. }
  58340. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  58341. /***/ }),
  58342. /***/ "./main.scss":
  58343. /*!*******************!*\
  58344. !*** ./main.scss ***!
  58345. \*******************/
  58346. /*! no static exports found */
  58347. /***/ (function(module, exports, __webpack_require__) {
  58348. 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");
  58349. if(typeof content === 'string') content = [[module.i, content, '']];
  58350. var transform;
  58351. var insertInto;
  58352. var options = {"hmr":true}
  58353. options.transform = transform
  58354. options.insertInto = undefined;
  58355. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  58356. if(content.locals) module.exports = content.locals;
  58357. if(false) {}
  58358. /***/ }),
  58359. /***/ "./nodeEditor.ts":
  58360. /*!***********************!*\
  58361. !*** ./nodeEditor.ts ***!
  58362. \***********************/
  58363. /*! exports provided: NodeEditor */
  58364. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58365. "use strict";
  58366. __webpack_require__.r(__webpack_exports__);
  58367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  58368. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58369. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  58370. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  58371. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  58372. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  58373. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  58374. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  58375. /**
  58376. * Class used to create a node editor
  58377. */
  58378. var NodeEditor = /** @class */ (function () {
  58379. function NodeEditor() {
  58380. }
  58381. /**
  58382. * Show the node editor
  58383. * @param options defines the options to use to configure the node editor
  58384. */
  58385. NodeEditor.Show = function (options) {
  58386. var hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  58387. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  58388. globalState.nodeMaterial = options.nodeMaterial;
  58389. globalState.hostElement = hostElement;
  58390. globalState.hostDocument = hostElement.ownerDocument;
  58391. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  58392. globalState: globalState
  58393. });
  58394. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  58395. // Close the popup window when the page is refreshed or scene is disposed
  58396. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  58397. if (globalState.nodeMaterial && popupWindow) {
  58398. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  58399. if (popupWindow) {
  58400. popupWindow.close();
  58401. }
  58402. });
  58403. window.onbeforeunload = function (event) {
  58404. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  58405. if (popupWindow) {
  58406. popupWindow.close();
  58407. }
  58408. };
  58409. }
  58410. };
  58411. return NodeEditor;
  58412. }());
  58413. /***/ }),
  58414. /***/ "./portal.tsx":
  58415. /*!********************!*\
  58416. !*** ./portal.tsx ***!
  58417. \********************/
  58418. /*! exports provided: Portal */
  58419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58420. "use strict";
  58421. __webpack_require__.r(__webpack_exports__);
  58422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  58423. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58425. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58426. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  58427. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  58428. var Portal = /** @class */ (function (_super) {
  58429. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Portal, _super);
  58430. function Portal() {
  58431. return _super !== null && _super.apply(this, arguments) || this;
  58432. }
  58433. Portal.prototype.render = function () {
  58434. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  58435. };
  58436. return Portal;
  58437. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58438. /***/ }),
  58439. /***/ "./sharedComponents/buttonLineComponent.tsx":
  58440. /*!**************************************************!*\
  58441. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  58442. \**************************************************/
  58443. /*! exports provided: ButtonLineComponent */
  58444. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58445. "use strict";
  58446. __webpack_require__.r(__webpack_exports__);
  58447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  58448. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58449. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58450. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58451. var ButtonLineComponent = /** @class */ (function (_super) {
  58452. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ButtonLineComponent, _super);
  58453. function ButtonLineComponent(props) {
  58454. return _super.call(this, props) || this;
  58455. }
  58456. ButtonLineComponent.prototype.render = function () {
  58457. var _this = this;
  58458. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  58459. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  58460. };
  58461. return ButtonLineComponent;
  58462. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58463. /***/ }),
  58464. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  58465. /*!****************************************************!*\
  58466. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  58467. \****************************************************/
  58468. /*! exports provided: CheckBoxLineComponent */
  58469. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58470. "use strict";
  58471. __webpack_require__.r(__webpack_exports__);
  58472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  58473. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58474. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58475. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58476. var CheckBoxLineComponent = /** @class */ (function (_super) {
  58477. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CheckBoxLineComponent, _super);
  58478. function CheckBoxLineComponent(props) {
  58479. var _this = _super.call(this, props) || this;
  58480. _this._localChange = false;
  58481. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  58482. if (_this.props.isSelected) {
  58483. _this.state = { isSelected: _this.props.isSelected() };
  58484. }
  58485. else {
  58486. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  58487. }
  58488. return _this;
  58489. }
  58490. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58491. var currentState;
  58492. if (this.props.isSelected) {
  58493. currentState = nextProps.isSelected();
  58494. }
  58495. else {
  58496. currentState = nextProps.target[nextProps.propertyName] === true;
  58497. }
  58498. if (currentState !== nextState.isSelected || this._localChange) {
  58499. nextState.isSelected = currentState;
  58500. this._localChange = false;
  58501. return true;
  58502. }
  58503. return false;
  58504. };
  58505. CheckBoxLineComponent.prototype.onChange = function () {
  58506. this._localChange = true;
  58507. if (this.props.onSelect) {
  58508. this.props.onSelect(!this.state.isSelected);
  58509. }
  58510. else {
  58511. if (this.props.onPropertyChangedObservable) {
  58512. this.props.onPropertyChangedObservable.notifyObservers({
  58513. object: this.props.target,
  58514. property: this.props.propertyName,
  58515. value: !this.state.isSelected,
  58516. initialValue: this.state.isSelected
  58517. });
  58518. }
  58519. this.props.target[this.props.propertyName] = !this.state.isSelected;
  58520. }
  58521. if (this.props.onValueChanged) {
  58522. this.props.onValueChanged();
  58523. }
  58524. this.setState({ isSelected: !this.state.isSelected });
  58525. };
  58526. CheckBoxLineComponent.prototype.render = function () {
  58527. var _this = this;
  58528. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  58529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  58530. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  58531. 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(); } }),
  58532. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  58533. };
  58534. CheckBoxLineComponent._UniqueIdSeed = 0;
  58535. return CheckBoxLineComponent;
  58536. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58537. /***/ }),
  58538. /***/ "./sharedComponents/color3LineComponent.tsx":
  58539. /*!**************************************************!*\
  58540. !*** ./sharedComponents/color3LineComponent.tsx ***!
  58541. \**************************************************/
  58542. /*! exports provided: Color3LineComponent */
  58543. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58544. "use strict";
  58545. __webpack_require__.r(__webpack_exports__);
  58546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  58547. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58548. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58549. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58550. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  58551. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  58552. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  58553. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  58554. /* 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");
  58555. var Color3LineComponent = /** @class */ (function (_super) {
  58556. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3LineComponent, _super);
  58557. function Color3LineComponent(props) {
  58558. var _this = _super.call(this, props) || this;
  58559. _this._localChange = false;
  58560. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  58561. return _this;
  58562. }
  58563. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58564. var currentState = nextProps.target[nextProps.propertyName];
  58565. if (!currentState.equals(nextState.color) || this._localChange) {
  58566. nextState.color = currentState.clone();
  58567. this._localChange = false;
  58568. return true;
  58569. }
  58570. return false;
  58571. };
  58572. Color3LineComponent.prototype.onChange = function (newValue) {
  58573. this._localChange = true;
  58574. var newColor = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  58575. if (this.props.onPropertyChangedObservable) {
  58576. this.props.onPropertyChangedObservable.notifyObservers({
  58577. object: this.props.target,
  58578. property: this.props.propertyName,
  58579. value: newColor,
  58580. initialValue: this.state.color
  58581. });
  58582. }
  58583. this.props.target[this.props.propertyName] = newColor;
  58584. this.setState({ color: newColor });
  58585. if (this.props.onChange) {
  58586. this.props.onChange();
  58587. }
  58588. };
  58589. Color3LineComponent.prototype.switchExpandState = function () {
  58590. this._localChange = true;
  58591. this.setState({ isExpanded: !this.state.isExpanded });
  58592. };
  58593. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  58594. if (!this.props.onPropertyChangedObservable) {
  58595. return;
  58596. }
  58597. this.props.onPropertyChangedObservable.notifyObservers({
  58598. object: this.props.target,
  58599. property: this.props.propertyName,
  58600. value: this.state.color,
  58601. initialValue: previousValue
  58602. });
  58603. };
  58604. Color3LineComponent.prototype.updateStateR = function (value) {
  58605. this._localChange = true;
  58606. var store = this.state.color.clone();
  58607. this.props.target[this.props.propertyName].x = value;
  58608. this.state.color.r = value;
  58609. this.props.target[this.props.propertyName] = this.state.color;
  58610. this.setState({ color: this.state.color });
  58611. this.raiseOnPropertyChanged(store);
  58612. };
  58613. Color3LineComponent.prototype.updateStateG = function (value) {
  58614. this._localChange = true;
  58615. var store = this.state.color.clone();
  58616. this.props.target[this.props.propertyName].g = value;
  58617. this.state.color.g = value;
  58618. this.props.target[this.props.propertyName] = this.state.color;
  58619. this.setState({ color: this.state.color });
  58620. this.raiseOnPropertyChanged(store);
  58621. };
  58622. Color3LineComponent.prototype.updateStateB = function (value) {
  58623. this._localChange = true;
  58624. var store = this.state.color.clone();
  58625. this.props.target[this.props.propertyName].b = value;
  58626. this.state.color.b = value;
  58627. this.props.target[this.props.propertyName] = this.state.color;
  58628. this.setState({ color: this.state.color });
  58629. this.raiseOnPropertyChanged(store);
  58630. };
  58631. Color3LineComponent.prototype.copyToClipboard = function () {
  58632. var element = document.createElement('div');
  58633. element.textContent = this.state.color.toHexString();
  58634. document.body.appendChild(element);
  58635. if (window.getSelection) {
  58636. var range = document.createRange();
  58637. range.selectNode(element);
  58638. window.getSelection().removeAllRanges();
  58639. window.getSelection().addRange(range);
  58640. }
  58641. document.execCommand('copy');
  58642. element.remove();
  58643. };
  58644. Color3LineComponent.prototype.render = function () {
  58645. var _this = this;
  58646. 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"] });
  58647. 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);
  58648. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  58649. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  58650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  58651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  58652. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  58653. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  58654. 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"] })),
  58655. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  58656. this.state.isExpanded &&
  58657. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  58658. 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); } }),
  58659. 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); } }),
  58660. 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); } }))));
  58661. };
  58662. return Color3LineComponent;
  58663. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58664. /***/ }),
  58665. /***/ "./sharedComponents/draggableLineComponent.tsx":
  58666. /*!*****************************************************!*\
  58667. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  58668. \*****************************************************/
  58669. /*! exports provided: DraggableLineComponent */
  58670. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58671. "use strict";
  58672. __webpack_require__.r(__webpack_exports__);
  58673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  58674. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58675. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58676. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58677. var DraggableLineComponent = /** @class */ (function (_super) {
  58678. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DraggableLineComponent, _super);
  58679. function DraggableLineComponent(props) {
  58680. return _super.call(this, props) || this;
  58681. }
  58682. DraggableLineComponent.prototype.render = function () {
  58683. var _this = this;
  58684. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", draggable: true, onDragStart: function (event) {
  58685. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  58686. } }, this.props.data.replace("Block", "")));
  58687. };
  58688. return DraggableLineComponent;
  58689. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58690. /***/ }),
  58691. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  58692. /*!******************************************************!*\
  58693. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  58694. \******************************************************/
  58695. /*! exports provided: FileButtonLineComponent */
  58696. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58697. "use strict";
  58698. __webpack_require__.r(__webpack_exports__);
  58699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  58700. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58701. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58702. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58703. var FileButtonLineComponent = /** @class */ (function (_super) {
  58704. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FileButtonLineComponent, _super);
  58705. function FileButtonLineComponent(props) {
  58706. return _super.call(this, props) || this;
  58707. }
  58708. FileButtonLineComponent.prototype.onChange = function (evt) {
  58709. var files = evt.target.files;
  58710. if (files && files.length) {
  58711. this.props.onClick(files[0]);
  58712. }
  58713. evt.target.value = "";
  58714. };
  58715. FileButtonLineComponent.prototype.render = function () {
  58716. var _this = this;
  58717. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  58718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  58719. 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); } })));
  58720. };
  58721. return FileButtonLineComponent;
  58722. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58723. /***/ }),
  58724. /***/ "./sharedComponents/floatLineComponent.tsx":
  58725. /*!*************************************************!*\
  58726. !*** ./sharedComponents/floatLineComponent.tsx ***!
  58727. \*************************************************/
  58728. /*! exports provided: FloatLineComponent */
  58729. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58730. "use strict";
  58731. __webpack_require__.r(__webpack_exports__);
  58732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  58733. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58734. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58735. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58736. var FloatLineComponent = /** @class */ (function (_super) {
  58737. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatLineComponent, _super);
  58738. function FloatLineComponent(props) {
  58739. var _this = _super.call(this, props) || this;
  58740. _this._localChange = false;
  58741. var currentValue = _this.props.target[_this.props.propertyName];
  58742. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  58743. _this._store = currentValue;
  58744. return _this;
  58745. }
  58746. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58747. if (this._localChange) {
  58748. this._localChange = false;
  58749. return true;
  58750. }
  58751. var newValue = nextProps.target[nextProps.propertyName];
  58752. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  58753. if (newValueString !== nextState.value) {
  58754. nextState.value = newValueString;
  58755. return true;
  58756. }
  58757. return false;
  58758. };
  58759. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  58760. if (this.props.onChange) {
  58761. this.props.onChange(newValue);
  58762. }
  58763. if (!this.props.onPropertyChangedObservable) {
  58764. return;
  58765. }
  58766. this.props.onPropertyChangedObservable.notifyObservers({
  58767. object: this.props.target,
  58768. property: this.props.propertyName,
  58769. value: newValue,
  58770. initialValue: previousValue
  58771. });
  58772. };
  58773. FloatLineComponent.prototype.updateValue = function (valueString) {
  58774. if (/[^0-9\.\-]/g.test(valueString)) {
  58775. return;
  58776. }
  58777. var valueAsNumber;
  58778. if (this.props.isInteger) {
  58779. valueAsNumber = parseInt(valueString);
  58780. }
  58781. else {
  58782. valueAsNumber = parseFloat(valueString);
  58783. }
  58784. this._localChange = true;
  58785. this.setState({ value: valueString });
  58786. if (isNaN(valueAsNumber)) {
  58787. return;
  58788. }
  58789. this.props.target[this.props.propertyName] = valueAsNumber;
  58790. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  58791. this._store = valueAsNumber;
  58792. };
  58793. FloatLineComponent.prototype.render = function () {
  58794. var _this = this;
  58795. 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" },
  58796. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  58797. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  58798. 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); } })))));
  58799. };
  58800. return FloatLineComponent;
  58801. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58802. /***/ }),
  58803. /***/ "./sharedComponents/lineContainerComponent.tsx":
  58804. /*!*****************************************************!*\
  58805. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  58806. \*****************************************************/
  58807. /*! exports provided: LineContainerComponent */
  58808. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58809. "use strict";
  58810. __webpack_require__.r(__webpack_exports__);
  58811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  58812. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58813. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58814. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58815. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  58816. /* 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");
  58817. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dataStorage */ "./dataStorage.ts");
  58818. var LineContainerComponent = /** @class */ (function (_super) {
  58819. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineContainerComponent, _super);
  58820. function LineContainerComponent(props) {
  58821. var _this = _super.call(this, props) || this;
  58822. var initialState = _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  58823. _this.state = { isExpanded: initialState };
  58824. return _this;
  58825. }
  58826. LineContainerComponent.prototype.switchExpandedState = function () {
  58827. var newState = !this.state.isExpanded;
  58828. _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].StoreBoolean(this.props.title, newState);
  58829. this.setState({ isExpanded: newState });
  58830. };
  58831. LineContainerComponent.prototype.renderHeader = function () {
  58832. var _this = this;
  58833. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  58834. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  58835. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  58836. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  58837. 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"] }))));
  58838. };
  58839. LineContainerComponent.prototype.render = function () {
  58840. if (!this.state.isExpanded) {
  58841. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  58842. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  58843. }
  58844. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  58845. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  58846. this.renderHeader(),
  58847. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  58848. };
  58849. return LineContainerComponent;
  58850. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58851. /***/ }),
  58852. /***/ "./sharedComponents/messageDialog.tsx":
  58853. /*!********************************************!*\
  58854. !*** ./sharedComponents/messageDialog.tsx ***!
  58855. \********************************************/
  58856. /*! exports provided: MessageDialogComponent */
  58857. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58858. "use strict";
  58859. __webpack_require__.r(__webpack_exports__);
  58860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  58861. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58862. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58863. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58864. var MessageDialogComponent = /** @class */ (function (_super) {
  58865. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MessageDialogComponent, _super);
  58866. function MessageDialogComponent(props) {
  58867. var _this = _super.call(this, props) || this;
  58868. _this.state = { message: "", isError: false };
  58869. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  58870. _this.setState({ message: message, isError: true });
  58871. });
  58872. return _this;
  58873. }
  58874. MessageDialogComponent.prototype.render = function () {
  58875. var _this = this;
  58876. if (!this.state.message) {
  58877. return null;
  58878. }
  58879. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  58880. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  58881. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  58882. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  58883. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  58884. };
  58885. return MessageDialogComponent;
  58886. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58887. /***/ }),
  58888. /***/ "./sharedComponents/numericInputComponent.tsx":
  58889. /*!****************************************************!*\
  58890. !*** ./sharedComponents/numericInputComponent.tsx ***!
  58891. \****************************************************/
  58892. /*! exports provided: NumericInputComponent */
  58893. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58894. "use strict";
  58895. __webpack_require__.r(__webpack_exports__);
  58896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  58897. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58898. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58899. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58900. var NumericInputComponent = /** @class */ (function (_super) {
  58901. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumericInputComponent, _super);
  58902. function NumericInputComponent(props) {
  58903. var _this = _super.call(this, props) || this;
  58904. _this._localChange = false;
  58905. _this.state = { value: _this.props.value.toFixed(3) };
  58906. return _this;
  58907. }
  58908. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58909. if (this._localChange) {
  58910. this._localChange = false;
  58911. return true;
  58912. }
  58913. if (nextProps.value.toString() !== nextState.value) {
  58914. nextState.value = nextProps.value.toFixed(3);
  58915. return true;
  58916. }
  58917. return false;
  58918. };
  58919. NumericInputComponent.prototype.updateValue = function (evt) {
  58920. var value = evt.target.value;
  58921. if (/[^0-9\.\-]/g.test(value)) {
  58922. return;
  58923. }
  58924. var valueAsNumber = parseFloat(value);
  58925. this._localChange = true;
  58926. this.setState({ value: value });
  58927. if (isNaN(valueAsNumber)) {
  58928. return;
  58929. }
  58930. this.props.onChange(valueAsNumber);
  58931. };
  58932. NumericInputComponent.prototype.render = function () {
  58933. var _this = this;
  58934. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  58935. this.props.label &&
  58936. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  58937. 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); } })));
  58938. };
  58939. NumericInputComponent.defaultProps = {
  58940. step: 1,
  58941. };
  58942. return NumericInputComponent;
  58943. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58944. /***/ }),
  58945. /***/ "./sharedComponents/optionsLineComponent.tsx":
  58946. /*!***************************************************!*\
  58947. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  58948. \***************************************************/
  58949. /*! exports provided: OptionsLineComponent */
  58950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58951. "use strict";
  58952. __webpack_require__.r(__webpack_exports__);
  58953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  58954. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58955. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58956. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58957. var ListLineOption = /** @class */ (function () {
  58958. function ListLineOption() {
  58959. }
  58960. return ListLineOption;
  58961. }());
  58962. var OptionsLineComponent = /** @class */ (function (_super) {
  58963. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OptionsLineComponent, _super);
  58964. function OptionsLineComponent(props) {
  58965. var _this = _super.call(this, props) || this;
  58966. _this._localChange = false;
  58967. _this.state = { value: _this._getValue(props) };
  58968. return _this;
  58969. }
  58970. OptionsLineComponent.prototype._getValue = function (props) {
  58971. return props.target ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  58972. };
  58973. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  58974. if (this._localChange) {
  58975. this._localChange = false;
  58976. return true;
  58977. }
  58978. var newValue = this._getValue(nextProps);
  58979. if (newValue != null && newValue !== nextState.value) {
  58980. nextState.value = newValue;
  58981. return true;
  58982. }
  58983. return false;
  58984. };
  58985. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  58986. if (!this.props.onPropertyChangedObservable) {
  58987. return;
  58988. }
  58989. this.props.onPropertyChangedObservable.notifyObservers({
  58990. object: this.props.target,
  58991. property: this.props.propertyName,
  58992. value: newValue,
  58993. initialValue: previousValue
  58994. });
  58995. };
  58996. OptionsLineComponent.prototype.updateValue = function (valueString) {
  58997. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  58998. this._localChange = true;
  58999. var store = this.state.value;
  59000. if (!this.props.noDirectUpdate) {
  59001. this.props.target[this.props.propertyName] = value;
  59002. }
  59003. this.setState({ value: value });
  59004. this.raiseOnPropertyChanged(value, store);
  59005. if (this.props.onSelect) {
  59006. this.props.onSelect(value);
  59007. }
  59008. };
  59009. OptionsLineComponent.prototype.render = function () {
  59010. var _this = this;
  59011. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  59012. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59013. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" },
  59014. 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) {
  59015. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  59016. })))));
  59017. };
  59018. return OptionsLineComponent;
  59019. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59020. /***/ }),
  59021. /***/ "./sharedComponents/popup.ts":
  59022. /*!***********************************!*\
  59023. !*** ./sharedComponents/popup.ts ***!
  59024. \***********************************/
  59025. /*! exports provided: Popup */
  59026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59027. "use strict";
  59028. __webpack_require__.r(__webpack_exports__);
  59029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  59030. var Popup = /** @class */ (function () {
  59031. function Popup() {
  59032. }
  59033. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  59034. var _this = this;
  59035. if (width === void 0) { width = 300; }
  59036. if (height === void 0) { height = 800; }
  59037. var windowCreationOptionsList = {
  59038. width: width,
  59039. height: height,
  59040. top: (window.innerHeight - width) / 2 + window.screenY,
  59041. left: (window.innerWidth - height) / 2 + window.screenX
  59042. };
  59043. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  59044. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  59045. .join(',');
  59046. var popupWindow = window.open("", title, windowCreationOptions);
  59047. if (!popupWindow) {
  59048. return null;
  59049. }
  59050. var parentDocument = popupWindow.document;
  59051. // Font
  59052. var newLinkEl = parentDocument.createElement('link');
  59053. newLinkEl.rel = 'stylesheet';
  59054. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  59055. parentDocument.head.appendChild(newLinkEl);
  59056. parentDocument.title = title;
  59057. parentDocument.body.style.width = "100%";
  59058. parentDocument.body.style.height = "100%";
  59059. parentDocument.body.style.margin = "0";
  59060. parentDocument.body.style.padding = "0";
  59061. var parentControl = parentDocument.createElement("div");
  59062. parentControl.style.width = "100%";
  59063. parentControl.style.height = "100%";
  59064. parentControl.style.margin = "0";
  59065. parentControl.style.padding = "0";
  59066. popupWindow.document.body.appendChild(parentControl);
  59067. this._CopyStyles(window.document, parentDocument);
  59068. setTimeout(function () {
  59069. _this._CopyStyles(window.document, parentDocument);
  59070. }, 0);
  59071. this[windowVariableName] = popupWindow;
  59072. return parentControl;
  59073. };
  59074. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  59075. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  59076. var styleSheet = sourceDoc.styleSheets[index];
  59077. try {
  59078. if (styleSheet.cssRules) { // for <style> elements
  59079. var newStyleEl = sourceDoc.createElement('style');
  59080. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  59081. var cssRule = _a[_i];
  59082. // write the text of each rule into the body of the style element
  59083. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  59084. }
  59085. targetDoc.head.appendChild(newStyleEl);
  59086. }
  59087. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  59088. var newLinkEl = sourceDoc.createElement('link');
  59089. newLinkEl.rel = 'stylesheet';
  59090. newLinkEl.href = styleSheet.href;
  59091. targetDoc.head.appendChild(newLinkEl);
  59092. }
  59093. }
  59094. catch (e) {
  59095. console.log(e);
  59096. }
  59097. }
  59098. };
  59099. return Popup;
  59100. }());
  59101. /***/ }),
  59102. /***/ "./sharedComponents/textInputLineComponent.tsx":
  59103. /*!*****************************************************!*\
  59104. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  59105. \*****************************************************/
  59106. /*! exports provided: TextInputLineComponent */
  59107. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59108. "use strict";
  59109. __webpack_require__.r(__webpack_exports__);
  59110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  59111. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59112. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59113. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59114. var TextInputLineComponent = /** @class */ (function (_super) {
  59115. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextInputLineComponent, _super);
  59116. function TextInputLineComponent(props) {
  59117. var _this = _super.call(this, props) || this;
  59118. _this._localChange = false;
  59119. _this.state = { value: _this.props.value || _this.props.target[_this.props.propertyName] || "" };
  59120. return _this;
  59121. }
  59122. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59123. if (this._localChange) {
  59124. this._localChange = false;
  59125. return true;
  59126. }
  59127. var newValue = nextProps.value || nextProps.target[nextProps.propertyName];
  59128. if (newValue !== nextState.value) {
  59129. nextState.value = newValue || "";
  59130. return true;
  59131. }
  59132. return false;
  59133. };
  59134. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  59135. if (this.props.onChange) {
  59136. this.props.onChange(newValue);
  59137. return;
  59138. }
  59139. if (!this.props.onPropertyChangedObservable) {
  59140. return;
  59141. }
  59142. this.props.onPropertyChangedObservable.notifyObservers({
  59143. object: this.props.target,
  59144. property: this.props.propertyName,
  59145. value: newValue,
  59146. initialValue: previousValue
  59147. });
  59148. };
  59149. TextInputLineComponent.prototype.updateValue = function (value) {
  59150. this._localChange = true;
  59151. var store = this.props.value || this.props.target[this.props.propertyName];
  59152. this.setState({ value: value });
  59153. this.raiseOnPropertyChanged(value, store);
  59154. if (this.props.propertyName) {
  59155. this.props.target[this.props.propertyName] = value;
  59156. }
  59157. };
  59158. TextInputLineComponent.prototype.render = function () {
  59159. var _this = this;
  59160. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  59161. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59162. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  59163. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } }))));
  59164. };
  59165. return TextInputLineComponent;
  59166. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59167. /***/ }),
  59168. /***/ "./sharedComponents/textLineComponent.tsx":
  59169. /*!************************************************!*\
  59170. !*** ./sharedComponents/textLineComponent.tsx ***!
  59171. \************************************************/
  59172. /*! exports provided: TextLineComponent */
  59173. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59174. "use strict";
  59175. __webpack_require__.r(__webpack_exports__);
  59176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  59177. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59178. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59179. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59180. var TextLineComponent = /** @class */ (function (_super) {
  59181. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLineComponent, _super);
  59182. function TextLineComponent(props) {
  59183. return _super.call(this, props) || this;
  59184. }
  59185. TextLineComponent.prototype.onLink = function () {
  59186. if (!this.props.onLink) {
  59187. return;
  59188. }
  59189. this.props.onLink();
  59190. };
  59191. TextLineComponent.prototype.renderContent = function () {
  59192. var _this = this;
  59193. if (this.props.onLink) {
  59194. 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"));
  59195. }
  59196. 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"));
  59197. };
  59198. TextLineComponent.prototype.render = function () {
  59199. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  59200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59201. this.renderContent()));
  59202. };
  59203. return TextLineComponent;
  59204. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59205. /***/ }),
  59206. /***/ "./sharedComponents/textureLineComponent.tsx":
  59207. /*!***************************************************!*\
  59208. !*** ./sharedComponents/textureLineComponent.tsx ***!
  59209. \***************************************************/
  59210. /*! exports provided: TextureLineComponent */
  59211. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59212. "use strict";
  59213. __webpack_require__.r(__webpack_exports__);
  59214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  59215. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59216. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59217. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59218. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  59219. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  59220. var TextureLineComponent = /** @class */ (function (_super) {
  59221. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureLineComponent, _super);
  59222. function TextureLineComponent(props) {
  59223. var _this = _super.call(this, props) || this;
  59224. _this.state = {
  59225. displayRed: true,
  59226. displayGreen: true,
  59227. displayBlue: true,
  59228. displayAlpha: true,
  59229. face: 0
  59230. };
  59231. return _this;
  59232. }
  59233. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59234. return true;
  59235. };
  59236. TextureLineComponent.prototype.componentDidMount = function () {
  59237. this.updatePreview();
  59238. };
  59239. TextureLineComponent.prototype.componentDidUpdate = function () {
  59240. this.updatePreview();
  59241. };
  59242. TextureLineComponent.prototype.updatePreview = function () {
  59243. var _this = this;
  59244. var texture = this.props.texture;
  59245. if (!texture.isReady() && texture._texture) {
  59246. texture._texture.onLoadedObservable.addOnce(function () {
  59247. _this.updatePreview();
  59248. });
  59249. }
  59250. var scene = texture.getScene();
  59251. var engine = scene.getEngine();
  59252. var size = texture.getSize();
  59253. var ratio = size.width / size.height;
  59254. var width = this.props.width;
  59255. var height = (width / ratio) | 1;
  59256. var passPostProcess;
  59257. if (!texture.isCube) {
  59258. 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);
  59259. }
  59260. else {
  59261. 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);
  59262. passCubePostProcess.face = this.state.face;
  59263. passPostProcess = passCubePostProcess;
  59264. }
  59265. if (!passPostProcess.getEffect().isReady()) {
  59266. // Try again later
  59267. passPostProcess.dispose();
  59268. setTimeout(function () { return _this.updatePreview(); }, 250);
  59269. return;
  59270. }
  59271. var previewCanvas = this.refs.canvas;
  59272. if (this.props.globalState) {
  59273. this.props.globalState.blockMutationUpdates = true;
  59274. }
  59275. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  59276. passPostProcess.onApply = function (effect) {
  59277. effect.setTexture("textureSampler", texture);
  59278. };
  59279. var internalTexture = rtt.getInternalTexture();
  59280. if (internalTexture) {
  59281. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  59282. // Read the contents of the framebuffer
  59283. var numberOfChannelsByLine = width * 4;
  59284. var halfHeight = height / 2;
  59285. //Reading datas from WebGL
  59286. var data = engine.readPixels(0, 0, width, height);
  59287. if (!texture.isCube) {
  59288. if (!this.state.displayRed || !this.state.displayGreen || !this.state.displayBlue) {
  59289. for (var i = 0; i < width * height * 4; i += 4) {
  59290. if (!this.state.displayRed) {
  59291. data[i] = 0;
  59292. }
  59293. if (!this.state.displayGreen) {
  59294. data[i + 1] = 0;
  59295. }
  59296. if (!this.state.displayBlue) {
  59297. data[i + 2] = 0;
  59298. }
  59299. if (this.state.displayAlpha) {
  59300. var alpha = data[i + 2];
  59301. data[i] = alpha;
  59302. data[i + 1] = alpha;
  59303. data[i + 2] = alpha;
  59304. data[i + 2] = 0;
  59305. }
  59306. }
  59307. }
  59308. }
  59309. //To flip image on Y axis.
  59310. if (texture.invertY || texture.isCube) {
  59311. for (var i = 0; i < halfHeight; i++) {
  59312. for (var j = 0; j < numberOfChannelsByLine; j++) {
  59313. var currentCell = j + i * numberOfChannelsByLine;
  59314. var targetLine = height - i - 1;
  59315. var targetCell = j + targetLine * numberOfChannelsByLine;
  59316. var temp = data[currentCell];
  59317. data[currentCell] = data[targetCell];
  59318. data[targetCell] = temp;
  59319. }
  59320. }
  59321. }
  59322. previewCanvas.width = width;
  59323. previewCanvas.height = height;
  59324. var context = previewCanvas.getContext('2d');
  59325. if (context) {
  59326. // Copy the pixels to the preview canvas
  59327. var imageData = context.createImageData(width, height);
  59328. var castData = imageData.data;
  59329. castData.set(data);
  59330. context.putImageData(imageData, 0, 0);
  59331. }
  59332. // Unbind
  59333. engine.unBindFramebuffer(internalTexture);
  59334. }
  59335. rtt.dispose();
  59336. passPostProcess.dispose();
  59337. previewCanvas.style.height = height + "px";
  59338. if (this.props.globalState) {
  59339. this.props.globalState.blockMutationUpdates = false;
  59340. }
  59341. };
  59342. TextureLineComponent.prototype.render = function () {
  59343. var _this = this;
  59344. var texture = this.props.texture;
  59345. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  59346. !this.props.hideChannelSelect && texture.isCube &&
  59347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  59348. 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"),
  59349. 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"),
  59350. 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"),
  59351. 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"),
  59352. 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"),
  59353. 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")),
  59354. !this.props.hideChannelSelect && !texture.isCube &&
  59355. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  59356. 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"),
  59357. 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"),
  59358. 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"),
  59359. 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"),
  59360. 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")),
  59361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  59362. };
  59363. return TextureLineComponent;
  59364. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59365. /***/ }),
  59366. /***/ "./sharedComponents/vector2LineComponent.tsx":
  59367. /*!***************************************************!*\
  59368. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  59369. \***************************************************/
  59370. /*! exports provided: Vector2LineComponent */
  59371. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59372. "use strict";
  59373. __webpack_require__.r(__webpack_exports__);
  59374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  59375. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59376. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59377. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59378. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  59379. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  59380. /* 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");
  59381. var Vector2LineComponent = /** @class */ (function (_super) {
  59382. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2LineComponent, _super);
  59383. function Vector2LineComponent(props) {
  59384. var _this = _super.call(this, props) || this;
  59385. _this._localChange = false;
  59386. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  59387. return _this;
  59388. }
  59389. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59390. var nextPropsValue = nextProps.target[nextProps.propertyName];
  59391. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  59392. nextState.value = nextPropsValue.clone();
  59393. this._localChange = false;
  59394. return true;
  59395. }
  59396. return false;
  59397. };
  59398. Vector2LineComponent.prototype.switchExpandState = function () {
  59399. this._localChange = true;
  59400. this.setState({ isExpanded: !this.state.isExpanded });
  59401. };
  59402. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  59403. if (this.props.onChange) {
  59404. this.props.onChange(this.state.value);
  59405. }
  59406. if (!this.props.onPropertyChangedObservable) {
  59407. return;
  59408. }
  59409. this.props.onPropertyChangedObservable.notifyObservers({
  59410. object: this.props.target,
  59411. property: this.props.propertyName,
  59412. value: this.state.value,
  59413. initialValue: previousValue
  59414. });
  59415. };
  59416. Vector2LineComponent.prototype.updateStateX = function (value) {
  59417. this._localChange = true;
  59418. var store = this.state.value.clone();
  59419. this.props.target[this.props.propertyName].x = value;
  59420. this.state.value.x = value;
  59421. this.setState({ value: this.state.value });
  59422. this.raiseOnPropertyChanged(store);
  59423. };
  59424. Vector2LineComponent.prototype.updateStateY = function (value) {
  59425. this._localChange = true;
  59426. var store = this.state.value.clone();
  59427. this.props.target[this.props.propertyName].y = value;
  59428. this.state.value.y = value;
  59429. this.setState({ value: this.state.value });
  59430. this.raiseOnPropertyChanged(store);
  59431. };
  59432. Vector2LineComponent.prototype.render = function () {
  59433. var _this = this;
  59434. 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"] });
  59435. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  59436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  59437. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59438. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  59439. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  59440. this.state.isExpanded &&
  59441. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59442. 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); } }),
  59443. 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); } }))));
  59444. };
  59445. Vector2LineComponent.defaultProps = {
  59446. step: 0.001,
  59447. };
  59448. return Vector2LineComponent;
  59449. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59450. /***/ }),
  59451. /***/ "./sharedComponents/vector3LineComponent.tsx":
  59452. /*!***************************************************!*\
  59453. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  59454. \***************************************************/
  59455. /*! exports provided: Vector3LineComponent */
  59456. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59457. "use strict";
  59458. __webpack_require__.r(__webpack_exports__);
  59459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  59460. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59461. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59462. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59463. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  59464. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  59465. /* 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");
  59466. var Vector3LineComponent = /** @class */ (function (_super) {
  59467. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3LineComponent, _super);
  59468. function Vector3LineComponent(props) {
  59469. var _this = _super.call(this, props) || this;
  59470. _this._localChange = false;
  59471. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  59472. return _this;
  59473. }
  59474. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59475. var nextPropsValue = nextProps.target[nextProps.propertyName];
  59476. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  59477. nextState.value = nextPropsValue.clone();
  59478. this._localChange = false;
  59479. return true;
  59480. }
  59481. return false;
  59482. };
  59483. Vector3LineComponent.prototype.switchExpandState = function () {
  59484. this._localChange = true;
  59485. this.setState({ isExpanded: !this.state.isExpanded });
  59486. };
  59487. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  59488. if (this.props.onChange) {
  59489. this.props.onChange(this.state.value);
  59490. }
  59491. if (!this.props.onPropertyChangedObservable) {
  59492. return;
  59493. }
  59494. this.props.onPropertyChangedObservable.notifyObservers({
  59495. object: this.props.target,
  59496. property: this.props.propertyName,
  59497. value: this.state.value,
  59498. initialValue: previousValue
  59499. });
  59500. };
  59501. Vector3LineComponent.prototype.updateVector3 = function () {
  59502. var store = this.props.target[this.props.propertyName].clone();
  59503. this.props.target[this.props.propertyName] = this.state.value;
  59504. this.setState({ value: store });
  59505. this.raiseOnPropertyChanged(store);
  59506. };
  59507. Vector3LineComponent.prototype.updateStateX = function (value) {
  59508. this._localChange = true;
  59509. this.state.value.x = value;
  59510. this.updateVector3();
  59511. };
  59512. Vector3LineComponent.prototype.updateStateY = function (value) {
  59513. this._localChange = true;
  59514. this.state.value.y = value;
  59515. this.updateVector3();
  59516. };
  59517. Vector3LineComponent.prototype.updateStateZ = function (value) {
  59518. this._localChange = true;
  59519. this.state.value.z = value;
  59520. this.updateVector3();
  59521. };
  59522. Vector3LineComponent.prototype.render = function () {
  59523. var _this = this;
  59524. 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"] });
  59525. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  59526. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  59527. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59528. 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)),
  59529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  59530. this.state.isExpanded &&
  59531. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59532. 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); } }),
  59533. 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); } }),
  59534. 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); } }))));
  59535. };
  59536. Vector3LineComponent.defaultProps = {
  59537. step: 0.001,
  59538. };
  59539. return Vector3LineComponent;
  59540. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59541. /***/ }),
  59542. /***/ "./stringTools.ts":
  59543. /*!************************!*\
  59544. !*** ./stringTools.ts ***!
  59545. \************************/
  59546. /*! exports provided: StringTools */
  59547. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59548. "use strict";
  59549. __webpack_require__.r(__webpack_exports__);
  59550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  59551. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  59552. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__);
  59553. var StringTools = /** @class */ (function () {
  59554. function StringTools() {
  59555. }
  59556. /**
  59557. * Gets the base math type of node material block connection point.
  59558. * @param type Type to parse.
  59559. */
  59560. StringTools.GetBaseType = function (type) {
  59561. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  59562. };
  59563. /**
  59564. * Download a string into a file that will be saved locally by the browser
  59565. * @param content defines the string to download locally as a file
  59566. */
  59567. StringTools.DownloadAsFile = function (content, filename) {
  59568. var blob = new Blob([content], {
  59569. type: "application/octet-stream"
  59570. });
  59571. if (window.navigator.msSaveOrOpenBlob) {
  59572. window.navigator.msSaveOrOpenBlob(blob, filename);
  59573. return;
  59574. }
  59575. var file = new Blob([content], { type: "application/octet-stream" });
  59576. var reader = new FileReader();
  59577. reader.onload = function (e) {
  59578. var bdata = btoa(reader.result);
  59579. var datauri = 'data:text/plain;base64,' + bdata;
  59580. setTimeout(function () {
  59581. var link = document.createElement("a");
  59582. link.setAttribute("href", datauri);
  59583. link.setAttribute("download", filename);
  59584. link.target = "_self";
  59585. link.style.visibility = 'hidden';
  59586. document.body.appendChild(link);
  59587. link.click();
  59588. setTimeout(function () {
  59589. document.body.removeChild(link);
  59590. }, 0);
  59591. }, 10);
  59592. };
  59593. reader.readAsBinaryString(file);
  59594. };
  59595. return StringTools;
  59596. }());
  59597. /***/ }),
  59598. /***/ "babylonjs/Misc/observable":
  59599. /*!****************************************************************************************************!*\
  59600. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  59601. \****************************************************************************************************/
  59602. /*! no static exports found */
  59603. /***/ (function(module, exports) {
  59604. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  59605. /***/ })
  59606. /******/ });
  59607. });
  59608. //# sourceMappingURL=babylon.nodeEditor.max.js.map