main.js 860 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/ // The module cache
  3. /******/ var installedModules = {};
  4. /******/
  5. /******/ // The require function
  6. /******/ function __webpack_require__(moduleId) {
  7. /******/
  8. /******/ // Check if module is in cache
  9. /******/ if(installedModules[moduleId]) {
  10. /******/ return installedModules[moduleId].exports;
  11. /******/ }
  12. /******/ // Create a new module (and put it into the cache)
  13. /******/ var module = installedModules[moduleId] = {
  14. /******/ i: moduleId,
  15. /******/ l: false,
  16. /******/ exports: {}
  17. /******/ };
  18. /******/
  19. /******/ // Execute the module function
  20. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/ // Flag the module as loaded
  23. /******/ module.l = true;
  24. /******/
  25. /******/ // Return the exports of the module
  26. /******/ return module.exports;
  27. /******/ }
  28. /******/
  29. /******/
  30. /******/ // expose the modules object (__webpack_modules__)
  31. /******/ __webpack_require__.m = modules;
  32. /******/
  33. /******/ // expose the module cache
  34. /******/ __webpack_require__.c = installedModules;
  35. /******/
  36. /******/ // define getter function for harmony exports
  37. /******/ __webpack_require__.d = function(exports, name, getter) {
  38. /******/ if(!__webpack_require__.o(exports, name)) {
  39. /******/ Object.defineProperty(exports, name, {
  40. /******/ configurable: false,
  41. /******/ enumerable: true,
  42. /******/ get: getter
  43. /******/ });
  44. /******/ }
  45. /******/ };
  46. /******/
  47. /******/ // getDefaultExport function for compatibility with non-harmony modules
  48. /******/ __webpack_require__.n = function(module) {
  49. /******/ var getter = module && module.__esModule ?
  50. /******/ function getDefault() { return module['default']; } :
  51. /******/ function getModuleExports() { return module; };
  52. /******/ __webpack_require__.d(getter, 'a', getter);
  53. /******/ return getter;
  54. /******/ };
  55. /******/
  56. /******/ // Object.prototype.hasOwnProperty.call
  57. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  58. /******/
  59. /******/ // __webpack_public_path__
  60. /******/ __webpack_require__.p = "";
  61. /******/
  62. /******/ // Load entry module and return exports
  63. /******/ return __webpack_require__(__webpack_require__.s = 85);
  64. /******/ })
  65. /************************************************************************/
  66. /******/ ([
  67. /* 0 */
  68. /***/ (function(module, exports) {
  69. // shim for using process in browser
  70. var process = module.exports = {};
  71. // cached from whatever global is present so that test runners that stub it
  72. // don't break things. But we need to wrap it in a try catch in case it is
  73. // wrapped in strict mode code which doesn't define any globals. It's inside a
  74. // function because try/catches deoptimize in certain engines.
  75. var cachedSetTimeout;
  76. var cachedClearTimeout;
  77. function defaultSetTimout() {
  78. throw new Error('setTimeout has not been defined');
  79. }
  80. function defaultClearTimeout () {
  81. throw new Error('clearTimeout has not been defined');
  82. }
  83. (function () {
  84. try {
  85. if (typeof setTimeout === 'function') {
  86. cachedSetTimeout = setTimeout;
  87. } else {
  88. cachedSetTimeout = defaultSetTimout;
  89. }
  90. } catch (e) {
  91. cachedSetTimeout = defaultSetTimout;
  92. }
  93. try {
  94. if (typeof clearTimeout === 'function') {
  95. cachedClearTimeout = clearTimeout;
  96. } else {
  97. cachedClearTimeout = defaultClearTimeout;
  98. }
  99. } catch (e) {
  100. cachedClearTimeout = defaultClearTimeout;
  101. }
  102. } ())
  103. function runTimeout(fun) {
  104. if (cachedSetTimeout === setTimeout) {
  105. //normal enviroments in sane situations
  106. return setTimeout(fun, 0);
  107. }
  108. // if setTimeout wasn't available but was latter defined
  109. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  110. cachedSetTimeout = setTimeout;
  111. return setTimeout(fun, 0);
  112. }
  113. try {
  114. // when when somebody has screwed with setTimeout but no I.E. maddness
  115. return cachedSetTimeout(fun, 0);
  116. } catch(e){
  117. try {
  118. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  119. return cachedSetTimeout.call(null, fun, 0);
  120. } catch(e){
  121. // 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
  122. return cachedSetTimeout.call(this, fun, 0);
  123. }
  124. }
  125. }
  126. function runClearTimeout(marker) {
  127. if (cachedClearTimeout === clearTimeout) {
  128. //normal enviroments in sane situations
  129. return clearTimeout(marker);
  130. }
  131. // if clearTimeout wasn't available but was latter defined
  132. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  133. cachedClearTimeout = clearTimeout;
  134. return clearTimeout(marker);
  135. }
  136. try {
  137. // when when somebody has screwed with setTimeout but no I.E. maddness
  138. return cachedClearTimeout(marker);
  139. } catch (e){
  140. try {
  141. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  142. return cachedClearTimeout.call(null, marker);
  143. } catch (e){
  144. // 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.
  145. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  146. return cachedClearTimeout.call(this, marker);
  147. }
  148. }
  149. }
  150. var queue = [];
  151. var draining = false;
  152. var currentQueue;
  153. var queueIndex = -1;
  154. function cleanUpNextTick() {
  155. if (!draining || !currentQueue) {
  156. return;
  157. }
  158. draining = false;
  159. if (currentQueue.length) {
  160. queue = currentQueue.concat(queue);
  161. } else {
  162. queueIndex = -1;
  163. }
  164. if (queue.length) {
  165. drainQueue();
  166. }
  167. }
  168. function drainQueue() {
  169. if (draining) {
  170. return;
  171. }
  172. var timeout = runTimeout(cleanUpNextTick);
  173. draining = true;
  174. var len = queue.length;
  175. while(len) {
  176. currentQueue = queue;
  177. queue = [];
  178. while (++queueIndex < len) {
  179. if (currentQueue) {
  180. currentQueue[queueIndex].run();
  181. }
  182. }
  183. queueIndex = -1;
  184. len = queue.length;
  185. }
  186. currentQueue = null;
  187. draining = false;
  188. runClearTimeout(timeout);
  189. }
  190. process.nextTick = function (fun) {
  191. var args = new Array(arguments.length - 1);
  192. if (arguments.length > 1) {
  193. for (var i = 1; i < arguments.length; i++) {
  194. args[i - 1] = arguments[i];
  195. }
  196. }
  197. queue.push(new Item(fun, args));
  198. if (queue.length === 1 && !draining) {
  199. runTimeout(drainQueue);
  200. }
  201. };
  202. // v8 likes predictible objects
  203. function Item(fun, array) {
  204. this.fun = fun;
  205. this.array = array;
  206. }
  207. Item.prototype.run = function () {
  208. this.fun.apply(null, this.array);
  209. };
  210. process.title = 'browser';
  211. process.browser = true;
  212. process.env = {};
  213. process.argv = [];
  214. process.version = ''; // empty string to avoid regexp issues
  215. process.versions = {};
  216. function noop() {}
  217. process.on = noop;
  218. process.addListener = noop;
  219. process.once = noop;
  220. process.off = noop;
  221. process.removeListener = noop;
  222. process.removeAllListeners = noop;
  223. process.emit = noop;
  224. process.prependListener = noop;
  225. process.prependOnceListener = noop;
  226. process.listeners = function (name) { return [] }
  227. process.binding = function (name) {
  228. throw new Error('process.binding is not supported');
  229. };
  230. process.cwd = function () { return '/' };
  231. process.chdir = function (dir) {
  232. throw new Error('process.chdir is not supported');
  233. };
  234. process.umask = function() { return 0; };
  235. /***/ }),
  236. /* 1 */
  237. /***/ (function(module, exports, __webpack_require__) {
  238. "use strict";
  239. /* WEBPACK VAR INJECTION */(function(process) {/**
  240. * Copyright (c) 2013-present, Facebook, Inc.
  241. *
  242. * This source code is licensed under the MIT license found in the
  243. * LICENSE file in the root directory of this source tree.
  244. *
  245. */
  246. /**
  247. * Use invariant() to assert state which your program assumes to be true.
  248. *
  249. * Provide sprintf-style format (only %s is supported) and arguments
  250. * to provide information about what broke and what you were
  251. * expecting.
  252. *
  253. * The invariant message will be stripped in production, but the invariant
  254. * will remain to ensure logic does not differ in production.
  255. */
  256. var validateFormat = function validateFormat(format) {};
  257. if (process.env.NODE_ENV !== 'production') {
  258. validateFormat = function validateFormat(format) {
  259. if (format === undefined) {
  260. throw new Error('invariant requires an error message argument');
  261. }
  262. };
  263. }
  264. function invariant(condition, format, a, b, c, d, e, f) {
  265. validateFormat(format);
  266. if (!condition) {
  267. var error;
  268. if (format === undefined) {
  269. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  270. } else {
  271. var args = [a, b, c, d, e, f];
  272. var argIndex = 0;
  273. error = new Error(format.replace(/%s/g, function () {
  274. return args[argIndex++];
  275. }));
  276. error.name = 'Invariant Violation';
  277. }
  278. error.framesToPop = 1; // we don't care about invariant's own frame
  279. throw error;
  280. }
  281. }
  282. module.exports = invariant;
  283. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  284. /***/ }),
  285. /* 2 */
  286. /***/ (function(module, exports, __webpack_require__) {
  287. "use strict";
  288. /* WEBPACK VAR INJECTION */(function(process) {/**
  289. * Copyright (c) 2014-present, Facebook, Inc.
  290. *
  291. * This source code is licensed under the MIT license found in the
  292. * LICENSE file in the root directory of this source tree.
  293. *
  294. */
  295. var emptyFunction = __webpack_require__(8);
  296. /**
  297. * Similar to invariant but only logs a warning if the condition is not met.
  298. * This can be used to log issues in development environments in critical
  299. * paths. Removing the logging code for production environments will keep the
  300. * same logic and follow the same code paths.
  301. */
  302. var warning = emptyFunction;
  303. if (process.env.NODE_ENV !== 'production') {
  304. var printWarning = function printWarning(format) {
  305. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  306. args[_key - 1] = arguments[_key];
  307. }
  308. var argIndex = 0;
  309. var message = 'Warning: ' + format.replace(/%s/g, function () {
  310. return args[argIndex++];
  311. });
  312. if (typeof console !== 'undefined') {
  313. console.error(message);
  314. }
  315. try {
  316. // --- Welcome to debugging React ---
  317. // This error was thrown as a convenience so that you can use this stack
  318. // to find the callsite that caused this warning to fire.
  319. throw new Error(message);
  320. } catch (x) {}
  321. };
  322. warning = function warning(condition, format) {
  323. if (format === undefined) {
  324. throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
  325. }
  326. if (format.indexOf('Failed Composite propType: ') === 0) {
  327. return; // Ignore CompositeComponent proptype check.
  328. }
  329. if (!condition) {
  330. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  331. args[_key2 - 2] = arguments[_key2];
  332. }
  333. printWarning.apply(undefined, [format].concat(args));
  334. }
  335. };
  336. }
  337. module.exports = warning;
  338. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  339. /***/ }),
  340. /* 3 */
  341. /***/ (function(module, exports, __webpack_require__) {
  342. "use strict";
  343. /**
  344. * Copyright (c) 2013-present, Facebook, Inc.
  345. * All rights reserved.
  346. *
  347. * This source code is licensed under the BSD-style license found in the
  348. * LICENSE file in the root directory of this source tree. An additional grant
  349. * of patent rights can be found in the PATENTS file in the same directory.
  350. *
  351. *
  352. */
  353. /**
  354. * WARNING: DO NOT manually require this module.
  355. * This is a replacement for `invariant(...)` used by the error code system
  356. * and will _only_ be required by the corresponding babel pass.
  357. * It always throws.
  358. */
  359. function reactProdInvariant(code) {
  360. var argCount = arguments.length - 1;
  361. var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
  362. for (var argIdx = 0; argIdx < argCount; argIdx++) {
  363. message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
  364. }
  365. message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
  366. var error = new Error(message);
  367. error.name = 'Invariant Violation';
  368. error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
  369. throw error;
  370. }
  371. module.exports = reactProdInvariant;
  372. /***/ }),
  373. /* 4 */
  374. /***/ (function(module, exports, __webpack_require__) {
  375. "use strict";
  376. /*
  377. object-assign
  378. (c) Sindre Sorhus
  379. @license MIT
  380. */
  381. /* eslint-disable no-unused-vars */
  382. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  383. var hasOwnProperty = Object.prototype.hasOwnProperty;
  384. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  385. function toObject(val) {
  386. if (val === null || val === undefined) {
  387. throw new TypeError('Object.assign cannot be called with null or undefined');
  388. }
  389. return Object(val);
  390. }
  391. function shouldUseNative() {
  392. try {
  393. if (!Object.assign) {
  394. return false;
  395. }
  396. // Detect buggy property enumeration order in older V8 versions.
  397. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  398. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  399. test1[5] = 'de';
  400. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  401. return false;
  402. }
  403. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  404. var test2 = {};
  405. for (var i = 0; i < 10; i++) {
  406. test2['_' + String.fromCharCode(i)] = i;
  407. }
  408. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  409. return test2[n];
  410. });
  411. if (order2.join('') !== '0123456789') {
  412. return false;
  413. }
  414. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  415. var test3 = {};
  416. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  417. test3[letter] = letter;
  418. });
  419. if (Object.keys(Object.assign({}, test3)).join('') !==
  420. 'abcdefghijklmnopqrst') {
  421. return false;
  422. }
  423. return true;
  424. } catch (err) {
  425. // We don't expect any of the above to throw, but better to be safe.
  426. return false;
  427. }
  428. }
  429. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  430. var from;
  431. var to = toObject(target);
  432. var symbols;
  433. for (var s = 1; s < arguments.length; s++) {
  434. from = Object(arguments[s]);
  435. for (var key in from) {
  436. if (hasOwnProperty.call(from, key)) {
  437. to[key] = from[key];
  438. }
  439. }
  440. if (getOwnPropertySymbols) {
  441. symbols = getOwnPropertySymbols(from);
  442. for (var i = 0; i < symbols.length; i++) {
  443. if (propIsEnumerable.call(from, symbols[i])) {
  444. to[symbols[i]] = from[symbols[i]];
  445. }
  446. }
  447. }
  448. }
  449. return to;
  450. };
  451. /***/ }),
  452. /* 5 */
  453. /***/ (function(module, exports, __webpack_require__) {
  454. "use strict";
  455. /* WEBPACK VAR INJECTION */(function(process) {/**
  456. * Copyright 2013-present, Facebook, Inc.
  457. * All rights reserved.
  458. *
  459. * This source code is licensed under the BSD-style license found in the
  460. * LICENSE file in the root directory of this source tree. An additional grant
  461. * of patent rights can be found in the PATENTS file in the same directory.
  462. *
  463. */
  464. var _prodInvariant = __webpack_require__(3);
  465. var DOMProperty = __webpack_require__(13);
  466. var ReactDOMComponentFlags = __webpack_require__(56);
  467. var invariant = __webpack_require__(1);
  468. var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
  469. var Flags = ReactDOMComponentFlags;
  470. var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2);
  471. /**
  472. * Check if a given node should be cached.
  473. */
  474. function shouldPrecacheNode(node, nodeID) {
  475. return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' ';
  476. }
  477. /**
  478. * Drill down (through composites and empty components) until we get a host or
  479. * host text component.
  480. *
  481. * This is pretty polymorphic but unavoidable with the current structure we have
  482. * for `_renderedChildren`.
  483. */
  484. function getRenderedHostOrTextFromComponent(component) {
  485. var rendered;
  486. while (rendered = component._renderedComponent) {
  487. component = rendered;
  488. }
  489. return component;
  490. }
  491. /**
  492. * Populate `_hostNode` on the rendered host/text component with the given
  493. * DOM node. The passed `inst` can be a composite.
  494. */
  495. function precacheNode(inst, node) {
  496. var hostInst = getRenderedHostOrTextFromComponent(inst);
  497. hostInst._hostNode = node;
  498. node[internalInstanceKey] = hostInst;
  499. }
  500. function uncacheNode(inst) {
  501. var node = inst._hostNode;
  502. if (node) {
  503. delete node[internalInstanceKey];
  504. inst._hostNode = null;
  505. }
  506. }
  507. /**
  508. * Populate `_hostNode` on each child of `inst`, assuming that the children
  509. * match up with the DOM (element) children of `node`.
  510. *
  511. * We cache entire levels at once to avoid an n^2 problem where we access the
  512. * children of a node sequentially and have to walk from the start to our target
  513. * node every time.
  514. *
  515. * Since we update `_renderedChildren` and the actual DOM at (slightly)
  516. * different times, we could race here and see a newer `_renderedChildren` than
  517. * the DOM nodes we see. To avoid this, ReactMultiChild calls
  518. * `prepareToManageChildren` before we change `_renderedChildren`, at which
  519. * time the container's child nodes are always cached (until it unmounts).
  520. */
  521. function precacheChildNodes(inst, node) {
  522. if (inst._flags & Flags.hasCachedChildNodes) {
  523. return;
  524. }
  525. var children = inst._renderedChildren;
  526. var childNode = node.firstChild;
  527. outer: for (var name in children) {
  528. if (!children.hasOwnProperty(name)) {
  529. continue;
  530. }
  531. var childInst = children[name];
  532. var childID = getRenderedHostOrTextFromComponent(childInst)._domID;
  533. if (childID === 0) {
  534. // We're currently unmounting this child in ReactMultiChild; skip it.
  535. continue;
  536. }
  537. // We assume the child nodes are in the same order as the child instances.
  538. for (; childNode !== null; childNode = childNode.nextSibling) {
  539. if (shouldPrecacheNode(childNode, childID)) {
  540. precacheNode(childInst, childNode);
  541. continue outer;
  542. }
  543. }
  544. // We reached the end of the DOM children without finding an ID match.
  545. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;
  546. }
  547. inst._flags |= Flags.hasCachedChildNodes;
  548. }
  549. /**
  550. * Given a DOM node, return the closest ReactDOMComponent or
  551. * ReactDOMTextComponent instance ancestor.
  552. */
  553. function getClosestInstanceFromNode(node) {
  554. if (node[internalInstanceKey]) {
  555. return node[internalInstanceKey];
  556. }
  557. // Walk up the tree until we find an ancestor whose instance we have cached.
  558. var parents = [];
  559. while (!node[internalInstanceKey]) {
  560. parents.push(node);
  561. if (node.parentNode) {
  562. node = node.parentNode;
  563. } else {
  564. // Top of the tree. This node must not be part of a React tree (or is
  565. // unmounted, potentially).
  566. return null;
  567. }
  568. }
  569. var closest;
  570. var inst;
  571. for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
  572. closest = inst;
  573. if (parents.length) {
  574. precacheChildNodes(inst, node);
  575. }
  576. }
  577. return closest;
  578. }
  579. /**
  580. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  581. * instance, or null if the node was not rendered by this React.
  582. */
  583. function getInstanceFromNode(node) {
  584. var inst = getClosestInstanceFromNode(node);
  585. if (inst != null && inst._hostNode === node) {
  586. return inst;
  587. } else {
  588. return null;
  589. }
  590. }
  591. /**
  592. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  593. * DOM node.
  594. */
  595. function getNodeFromInstance(inst) {
  596. // Without this first invariant, passing a non-DOM-component triggers the next
  597. // invariant for a missing parent, which is super confusing.
  598. !(inst._hostNode !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  599. if (inst._hostNode) {
  600. return inst._hostNode;
  601. }
  602. // Walk up the tree until we find an ancestor whose DOM node we have cached.
  603. var parents = [];
  604. while (!inst._hostNode) {
  605. parents.push(inst);
  606. !inst._hostParent ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;
  607. inst = inst._hostParent;
  608. }
  609. // Now parents contains each ancestor that does *not* have a cached native
  610. // node, and `inst` is the deepest ancestor that does.
  611. for (; parents.length; inst = parents.pop()) {
  612. precacheChildNodes(inst, inst._hostNode);
  613. }
  614. return inst._hostNode;
  615. }
  616. var ReactDOMComponentTree = {
  617. getClosestInstanceFromNode: getClosestInstanceFromNode,
  618. getInstanceFromNode: getInstanceFromNode,
  619. getNodeFromInstance: getNodeFromInstance,
  620. precacheChildNodes: precacheChildNodes,
  621. precacheNode: precacheNode,
  622. uncacheNode: uncacheNode
  623. };
  624. module.exports = ReactDOMComponentTree;
  625. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  626. /***/ }),
  627. /* 6 */
  628. /***/ (function(module, exports, __webpack_require__) {
  629. "use strict";
  630. /**
  631. * Copyright (c) 2013-present, Facebook, Inc.
  632. *
  633. * This source code is licensed under the MIT license found in the
  634. * LICENSE file in the root directory of this source tree.
  635. *
  636. */
  637. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  638. /**
  639. * Simple, lightweight module assisting with the detection and context of
  640. * Worker. Helps avoid circular dependencies and allows code to reason about
  641. * whether or not they are in a Worker, even if they never include the main
  642. * `ReactWorker` dependency.
  643. */
  644. var ExecutionEnvironment = {
  645. canUseDOM: canUseDOM,
  646. canUseWorkers: typeof Worker !== 'undefined',
  647. canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
  648. canUseViewport: canUseDOM && !!window.screen,
  649. isInWorker: !canUseDOM // For now, this is true - might change in the future.
  650. };
  651. module.exports = ExecutionEnvironment;
  652. /***/ }),
  653. /* 7 */
  654. /***/ (function(module, exports, __webpack_require__) {
  655. "use strict";
  656. /* WEBPACK VAR INJECTION */(function(process) {/**
  657. * Copyright 2016-present, Facebook, Inc.
  658. * All rights reserved.
  659. *
  660. * This source code is licensed under the BSD-style license found in the
  661. * LICENSE file in the root directory of this source tree. An additional grant
  662. * of patent rights can be found in the PATENTS file in the same directory.
  663. *
  664. *
  665. */
  666. var _prodInvariant = __webpack_require__(14);
  667. var ReactCurrentOwner = __webpack_require__(10);
  668. var invariant = __webpack_require__(1);
  669. var warning = __webpack_require__(2);
  670. function isNative(fn) {
  671. // Based on isNative() from Lodash
  672. var funcToString = Function.prototype.toString;
  673. var hasOwnProperty = Object.prototype.hasOwnProperty;
  674. var reIsNative = RegExp('^' + funcToString
  675. // Take an example native function source for comparison
  676. .call(hasOwnProperty)
  677. // Strip regex characters so we can use it for regex
  678. .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
  679. // Remove hasOwnProperty from the template to make it generic
  680. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
  681. try {
  682. var source = funcToString.call(fn);
  683. return reIsNative.test(source);
  684. } catch (err) {
  685. return false;
  686. }
  687. }
  688. var canUseCollections =
  689. // Array.from
  690. typeof Array.from === 'function' &&
  691. // Map
  692. typeof Map === 'function' && isNative(Map) &&
  693. // Map.prototype.keys
  694. Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
  695. // Set
  696. typeof Set === 'function' && isNative(Set) &&
  697. // Set.prototype.keys
  698. Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
  699. var setItem;
  700. var getItem;
  701. var removeItem;
  702. var getItemIDs;
  703. var addRoot;
  704. var removeRoot;
  705. var getRootIDs;
  706. if (canUseCollections) {
  707. var itemMap = new Map();
  708. var rootIDSet = new Set();
  709. setItem = function (id, item) {
  710. itemMap.set(id, item);
  711. };
  712. getItem = function (id) {
  713. return itemMap.get(id);
  714. };
  715. removeItem = function (id) {
  716. itemMap['delete'](id);
  717. };
  718. getItemIDs = function () {
  719. return Array.from(itemMap.keys());
  720. };
  721. addRoot = function (id) {
  722. rootIDSet.add(id);
  723. };
  724. removeRoot = function (id) {
  725. rootIDSet['delete'](id);
  726. };
  727. getRootIDs = function () {
  728. return Array.from(rootIDSet.keys());
  729. };
  730. } else {
  731. var itemByKey = {};
  732. var rootByKey = {};
  733. // Use non-numeric keys to prevent V8 performance issues:
  734. // https://github.com/facebook/react/pull/7232
  735. var getKeyFromID = function (id) {
  736. return '.' + id;
  737. };
  738. var getIDFromKey = function (key) {
  739. return parseInt(key.substr(1), 10);
  740. };
  741. setItem = function (id, item) {
  742. var key = getKeyFromID(id);
  743. itemByKey[key] = item;
  744. };
  745. getItem = function (id) {
  746. var key = getKeyFromID(id);
  747. return itemByKey[key];
  748. };
  749. removeItem = function (id) {
  750. var key = getKeyFromID(id);
  751. delete itemByKey[key];
  752. };
  753. getItemIDs = function () {
  754. return Object.keys(itemByKey).map(getIDFromKey);
  755. };
  756. addRoot = function (id) {
  757. var key = getKeyFromID(id);
  758. rootByKey[key] = true;
  759. };
  760. removeRoot = function (id) {
  761. var key = getKeyFromID(id);
  762. delete rootByKey[key];
  763. };
  764. getRootIDs = function () {
  765. return Object.keys(rootByKey).map(getIDFromKey);
  766. };
  767. }
  768. var unmountedIDs = [];
  769. function purgeDeep(id) {
  770. var item = getItem(id);
  771. if (item) {
  772. var childIDs = item.childIDs;
  773. removeItem(id);
  774. childIDs.forEach(purgeDeep);
  775. }
  776. }
  777. function describeComponentFrame(name, source, ownerName) {
  778. return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
  779. }
  780. function getDisplayName(element) {
  781. if (element == null) {
  782. return '#empty';
  783. } else if (typeof element === 'string' || typeof element === 'number') {
  784. return '#text';
  785. } else if (typeof element.type === 'string') {
  786. return element.type;
  787. } else {
  788. return element.type.displayName || element.type.name || 'Unknown';
  789. }
  790. }
  791. function describeID(id) {
  792. var name = ReactComponentTreeHook.getDisplayName(id);
  793. var element = ReactComponentTreeHook.getElement(id);
  794. var ownerID = ReactComponentTreeHook.getOwnerID(id);
  795. var ownerName;
  796. if (ownerID) {
  797. ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
  798. }
  799. process.env.NODE_ENV !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
  800. return describeComponentFrame(name, element && element._source, ownerName);
  801. }
  802. var ReactComponentTreeHook = {
  803. onSetChildren: function (id, nextChildIDs) {
  804. var item = getItem(id);
  805. !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
  806. item.childIDs = nextChildIDs;
  807. for (var i = 0; i < nextChildIDs.length; i++) {
  808. var nextChildID = nextChildIDs[i];
  809. var nextChild = getItem(nextChildID);
  810. !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;
  811. !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;
  812. !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;
  813. if (nextChild.parentID == null) {
  814. nextChild.parentID = id;
  815. // TODO: This shouldn't be necessary but mounting a new root during in
  816. // componentWillMount currently causes not-yet-mounted components to
  817. // be purged from our tree data so their parent id is missing.
  818. }
  819. !(nextChild.parentID === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;
  820. }
  821. },
  822. onBeforeMountComponent: function (id, element, parentID) {
  823. var item = {
  824. element: element,
  825. parentID: parentID,
  826. text: null,
  827. childIDs: [],
  828. isMounted: false,
  829. updateCount: 0
  830. };
  831. setItem(id, item);
  832. },
  833. onBeforeUpdateComponent: function (id, element) {
  834. var item = getItem(id);
  835. if (!item || !item.isMounted) {
  836. // We may end up here as a result of setState() in componentWillUnmount().
  837. // In this case, ignore the element.
  838. return;
  839. }
  840. item.element = element;
  841. },
  842. onMountComponent: function (id) {
  843. var item = getItem(id);
  844. !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
  845. item.isMounted = true;
  846. var isRoot = item.parentID === 0;
  847. if (isRoot) {
  848. addRoot(id);
  849. }
  850. },
  851. onUpdateComponent: function (id) {
  852. var item = getItem(id);
  853. if (!item || !item.isMounted) {
  854. // We may end up here as a result of setState() in componentWillUnmount().
  855. // In this case, ignore the element.
  856. return;
  857. }
  858. item.updateCount++;
  859. },
  860. onUnmountComponent: function (id) {
  861. var item = getItem(id);
  862. if (item) {
  863. // We need to check if it exists.
  864. // `item` might not exist if it is inside an error boundary, and a sibling
  865. // error boundary child threw while mounting. Then this instance never
  866. // got a chance to mount, but it still gets an unmounting event during
  867. // the error boundary cleanup.
  868. item.isMounted = false;
  869. var isRoot = item.parentID === 0;
  870. if (isRoot) {
  871. removeRoot(id);
  872. }
  873. }
  874. unmountedIDs.push(id);
  875. },
  876. purgeUnmountedComponents: function () {
  877. if (ReactComponentTreeHook._preventPurging) {
  878. // Should only be used for testing.
  879. return;
  880. }
  881. for (var i = 0; i < unmountedIDs.length; i++) {
  882. var id = unmountedIDs[i];
  883. purgeDeep(id);
  884. }
  885. unmountedIDs.length = 0;
  886. },
  887. isMounted: function (id) {
  888. var item = getItem(id);
  889. return item ? item.isMounted : false;
  890. },
  891. getCurrentStackAddendum: function (topElement) {
  892. var info = '';
  893. if (topElement) {
  894. var name = getDisplayName(topElement);
  895. var owner = topElement._owner;
  896. info += describeComponentFrame(name, topElement._source, owner && owner.getName());
  897. }
  898. var currentOwner = ReactCurrentOwner.current;
  899. var id = currentOwner && currentOwner._debugID;
  900. info += ReactComponentTreeHook.getStackAddendumByID(id);
  901. return info;
  902. },
  903. getStackAddendumByID: function (id) {
  904. var info = '';
  905. while (id) {
  906. info += describeID(id);
  907. id = ReactComponentTreeHook.getParentID(id);
  908. }
  909. return info;
  910. },
  911. getChildIDs: function (id) {
  912. var item = getItem(id);
  913. return item ? item.childIDs : [];
  914. },
  915. getDisplayName: function (id) {
  916. var element = ReactComponentTreeHook.getElement(id);
  917. if (!element) {
  918. return null;
  919. }
  920. return getDisplayName(element);
  921. },
  922. getElement: function (id) {
  923. var item = getItem(id);
  924. return item ? item.element : null;
  925. },
  926. getOwnerID: function (id) {
  927. var element = ReactComponentTreeHook.getElement(id);
  928. if (!element || !element._owner) {
  929. return null;
  930. }
  931. return element._owner._debugID;
  932. },
  933. getParentID: function (id) {
  934. var item = getItem(id);
  935. return item ? item.parentID : null;
  936. },
  937. getSource: function (id) {
  938. var item = getItem(id);
  939. var element = item ? item.element : null;
  940. var source = element != null ? element._source : null;
  941. return source;
  942. },
  943. getText: function (id) {
  944. var element = ReactComponentTreeHook.getElement(id);
  945. if (typeof element === 'string') {
  946. return element;
  947. } else if (typeof element === 'number') {
  948. return '' + element;
  949. } else {
  950. return null;
  951. }
  952. },
  953. getUpdateCount: function (id) {
  954. var item = getItem(id);
  955. return item ? item.updateCount : 0;
  956. },
  957. getRootIDs: getRootIDs,
  958. getRegisteredIDs: getItemIDs
  959. };
  960. module.exports = ReactComponentTreeHook;
  961. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  962. /***/ }),
  963. /* 8 */
  964. /***/ (function(module, exports, __webpack_require__) {
  965. "use strict";
  966. /**
  967. * Copyright (c) 2013-present, Facebook, Inc.
  968. *
  969. * This source code is licensed under the MIT license found in the
  970. * LICENSE file in the root directory of this source tree.
  971. *
  972. *
  973. */
  974. function makeEmptyFunction(arg) {
  975. return function () {
  976. return arg;
  977. };
  978. }
  979. /**
  980. * This function accepts and discards inputs; it has no side effects. This is
  981. * primarily useful idiomatically for overridable function endpoints which
  982. * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
  983. */
  984. var emptyFunction = function emptyFunction() {};
  985. emptyFunction.thatReturns = makeEmptyFunction;
  986. emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
  987. emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
  988. emptyFunction.thatReturnsNull = makeEmptyFunction(null);
  989. emptyFunction.thatReturnsThis = function () {
  990. return this;
  991. };
  992. emptyFunction.thatReturnsArgument = function (arg) {
  993. return arg;
  994. };
  995. module.exports = emptyFunction;
  996. /***/ }),
  997. /* 9 */
  998. /***/ (function(module, exports, __webpack_require__) {
  999. "use strict";
  1000. /* WEBPACK VAR INJECTION */(function(process) {/**
  1001. * Copyright 2016-present, Facebook, Inc.
  1002. * All rights reserved.
  1003. *
  1004. * This source code is licensed under the BSD-style license found in the
  1005. * LICENSE file in the root directory of this source tree. An additional grant
  1006. * of patent rights can be found in the PATENTS file in the same directory.
  1007. *
  1008. *
  1009. */
  1010. // Trust the developer to only use ReactInstrumentation with a __DEV__ check
  1011. var debugTool = null;
  1012. if (process.env.NODE_ENV !== 'production') {
  1013. var ReactDebugTool = __webpack_require__(112);
  1014. debugTool = ReactDebugTool;
  1015. }
  1016. module.exports = { debugTool: debugTool };
  1017. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1018. /***/ }),
  1019. /* 10 */
  1020. /***/ (function(module, exports, __webpack_require__) {
  1021. "use strict";
  1022. /**
  1023. * Copyright 2013-present, Facebook, Inc.
  1024. * All rights reserved.
  1025. *
  1026. * This source code is licensed under the BSD-style license found in the
  1027. * LICENSE file in the root directory of this source tree. An additional grant
  1028. * of patent rights can be found in the PATENTS file in the same directory.
  1029. *
  1030. *
  1031. */
  1032. /**
  1033. * Keeps track of the current owner.
  1034. *
  1035. * The current owner is the component who should own any components that are
  1036. * currently being constructed.
  1037. */
  1038. var ReactCurrentOwner = {
  1039. /**
  1040. * @internal
  1041. * @type {ReactComponent}
  1042. */
  1043. current: null
  1044. };
  1045. module.exports = ReactCurrentOwner;
  1046. /***/ }),
  1047. /* 11 */
  1048. /***/ (function(module, exports, __webpack_require__) {
  1049. "use strict";
  1050. /* WEBPACK VAR INJECTION */(function(process) {/**
  1051. * Copyright 2013-present, Facebook, Inc.
  1052. * All rights reserved.
  1053. *
  1054. * This source code is licensed under the BSD-style license found in the
  1055. * LICENSE file in the root directory of this source tree. An additional grant
  1056. * of patent rights can be found in the PATENTS file in the same directory.
  1057. *
  1058. */
  1059. var _prodInvariant = __webpack_require__(3),
  1060. _assign = __webpack_require__(4);
  1061. var CallbackQueue = __webpack_require__(60);
  1062. var PooledClass = __webpack_require__(16);
  1063. var ReactFeatureFlags = __webpack_require__(61);
  1064. var ReactReconciler = __webpack_require__(18);
  1065. var Transaction = __webpack_require__(28);
  1066. var invariant = __webpack_require__(1);
  1067. var dirtyComponents = [];
  1068. var updateBatchNumber = 0;
  1069. var asapCallbackQueue = CallbackQueue.getPooled();
  1070. var asapEnqueued = false;
  1071. var batchingStrategy = null;
  1072. function ensureInjected() {
  1073. !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;
  1074. }
  1075. var NESTED_UPDATES = {
  1076. initialize: function () {
  1077. this.dirtyComponentsLength = dirtyComponents.length;
  1078. },
  1079. close: function () {
  1080. if (this.dirtyComponentsLength !== dirtyComponents.length) {
  1081. // Additional updates were enqueued by componentDidUpdate handlers or
  1082. // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run
  1083. // these new updates so that if A's componentDidUpdate calls setState on
  1084. // B, B will update before the callback A's updater provided when calling
  1085. // setState.
  1086. dirtyComponents.splice(0, this.dirtyComponentsLength);
  1087. flushBatchedUpdates();
  1088. } else {
  1089. dirtyComponents.length = 0;
  1090. }
  1091. }
  1092. };
  1093. var UPDATE_QUEUEING = {
  1094. initialize: function () {
  1095. this.callbackQueue.reset();
  1096. },
  1097. close: function () {
  1098. this.callbackQueue.notifyAll();
  1099. }
  1100. };
  1101. var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING];
  1102. function ReactUpdatesFlushTransaction() {
  1103. this.reinitializeTransaction();
  1104. this.dirtyComponentsLength = null;
  1105. this.callbackQueue = CallbackQueue.getPooled();
  1106. this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(
  1107. /* useCreateElement */true);
  1108. }
  1109. _assign(ReactUpdatesFlushTransaction.prototype, Transaction, {
  1110. getTransactionWrappers: function () {
  1111. return TRANSACTION_WRAPPERS;
  1112. },
  1113. destructor: function () {
  1114. this.dirtyComponentsLength = null;
  1115. CallbackQueue.release(this.callbackQueue);
  1116. this.callbackQueue = null;
  1117. ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction);
  1118. this.reconcileTransaction = null;
  1119. },
  1120. perform: function (method, scope, a) {
  1121. // Essentially calls `this.reconcileTransaction.perform(method, scope, a)`
  1122. // with this transaction's wrappers around it.
  1123. return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a);
  1124. }
  1125. });
  1126. PooledClass.addPoolingTo(ReactUpdatesFlushTransaction);
  1127. function batchedUpdates(callback, a, b, c, d, e) {
  1128. ensureInjected();
  1129. return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);
  1130. }
  1131. /**
  1132. * Array comparator for ReactComponents by mount ordering.
  1133. *
  1134. * @param {ReactComponent} c1 first component you're comparing
  1135. * @param {ReactComponent} c2 second component you're comparing
  1136. * @return {number} Return value usable by Array.prototype.sort().
  1137. */
  1138. function mountOrderComparator(c1, c2) {
  1139. return c1._mountOrder - c2._mountOrder;
  1140. }
  1141. function runBatchedUpdates(transaction) {
  1142. var len = transaction.dirtyComponentsLength;
  1143. !(len === dirtyComponents.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;
  1144. // Since reconciling a component higher in the owner hierarchy usually (not
  1145. // always -- see shouldComponentUpdate()) will reconcile children, reconcile
  1146. // them before their children by sorting the array.
  1147. dirtyComponents.sort(mountOrderComparator);
  1148. // Any updates enqueued while reconciling must be performed after this entire
  1149. // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and
  1150. // C, B could update twice in a single batch if C's render enqueues an update
  1151. // to B (since B would have already updated, we should skip it, and the only
  1152. // way we can know to do so is by checking the batch counter).
  1153. updateBatchNumber++;
  1154. for (var i = 0; i < len; i++) {
  1155. // If a component is unmounted before pending changes apply, it will still
  1156. // be here, but we assume that it has cleared its _pendingCallbacks and
  1157. // that performUpdateIfNecessary is a noop.
  1158. var component = dirtyComponents[i];
  1159. // If performUpdateIfNecessary happens to enqueue any new updates, we
  1160. // shouldn't execute the callbacks until the next render happens, so
  1161. // stash the callbacks first
  1162. var callbacks = component._pendingCallbacks;
  1163. component._pendingCallbacks = null;
  1164. var markerName;
  1165. if (ReactFeatureFlags.logTopLevelRenders) {
  1166. var namedComponent = component;
  1167. // Duck type TopLevelWrapper. This is probably always true.
  1168. if (component._currentElement.type.isReactTopLevelWrapper) {
  1169. namedComponent = component._renderedComponent;
  1170. }
  1171. markerName = 'React update: ' + namedComponent.getName();
  1172. console.time(markerName);
  1173. }
  1174. ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber);
  1175. if (markerName) {
  1176. console.timeEnd(markerName);
  1177. }
  1178. if (callbacks) {
  1179. for (var j = 0; j < callbacks.length; j++) {
  1180. transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance());
  1181. }
  1182. }
  1183. }
  1184. }
  1185. var flushBatchedUpdates = function () {
  1186. // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents
  1187. // array and perform any updates enqueued by mount-ready handlers (i.e.,
  1188. // componentDidUpdate) but we need to check here too in order to catch
  1189. // updates enqueued by setState callbacks and asap calls.
  1190. while (dirtyComponents.length || asapEnqueued) {
  1191. if (dirtyComponents.length) {
  1192. var transaction = ReactUpdatesFlushTransaction.getPooled();
  1193. transaction.perform(runBatchedUpdates, null, transaction);
  1194. ReactUpdatesFlushTransaction.release(transaction);
  1195. }
  1196. if (asapEnqueued) {
  1197. asapEnqueued = false;
  1198. var queue = asapCallbackQueue;
  1199. asapCallbackQueue = CallbackQueue.getPooled();
  1200. queue.notifyAll();
  1201. CallbackQueue.release(queue);
  1202. }
  1203. }
  1204. };
  1205. /**
  1206. * Mark a component as needing a rerender, adding an optional callback to a
  1207. * list of functions which will be executed once the rerender occurs.
  1208. */
  1209. function enqueueUpdate(component) {
  1210. ensureInjected();
  1211. // Various parts of our code (such as ReactCompositeComponent's
  1212. // _renderValidatedComponent) assume that calls to render aren't nested;
  1213. // verify that that's the case. (This is called by each top-level update
  1214. // function, like setState, forceUpdate, etc.; creation and
  1215. // destruction of top-level components is guarded in ReactMount.)
  1216. if (!batchingStrategy.isBatchingUpdates) {
  1217. batchingStrategy.batchedUpdates(enqueueUpdate, component);
  1218. return;
  1219. }
  1220. dirtyComponents.push(component);
  1221. if (component._updateBatchNumber == null) {
  1222. component._updateBatchNumber = updateBatchNumber + 1;
  1223. }
  1224. }
  1225. /**
  1226. * Enqueue a callback to be run at the end of the current batching cycle. Throws
  1227. * if no updates are currently being performed.
  1228. */
  1229. function asap(callback, context) {
  1230. !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;
  1231. asapCallbackQueue.enqueue(callback, context);
  1232. asapEnqueued = true;
  1233. }
  1234. var ReactUpdatesInjection = {
  1235. injectReconcileTransaction: function (ReconcileTransaction) {
  1236. !ReconcileTransaction ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;
  1237. ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;
  1238. },
  1239. injectBatchingStrategy: function (_batchingStrategy) {
  1240. !_batchingStrategy ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;
  1241. !(typeof _batchingStrategy.batchedUpdates === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;
  1242. !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;
  1243. batchingStrategy = _batchingStrategy;
  1244. }
  1245. };
  1246. var ReactUpdates = {
  1247. /**
  1248. * React references `ReactReconcileTransaction` using this property in order
  1249. * to allow dependency injection.
  1250. *
  1251. * @internal
  1252. */
  1253. ReactReconcileTransaction: null,
  1254. batchedUpdates: batchedUpdates,
  1255. enqueueUpdate: enqueueUpdate,
  1256. flushBatchedUpdates: flushBatchedUpdates,
  1257. injection: ReactUpdatesInjection,
  1258. asap: asap
  1259. };
  1260. module.exports = ReactUpdates;
  1261. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1262. /***/ }),
  1263. /* 12 */
  1264. /***/ (function(module, exports, __webpack_require__) {
  1265. "use strict";
  1266. /* WEBPACK VAR INJECTION */(function(process) {/**
  1267. * Copyright 2013-present, Facebook, Inc.
  1268. * All rights reserved.
  1269. *
  1270. * This source code is licensed under the BSD-style license found in the
  1271. * LICENSE file in the root directory of this source tree. An additional grant
  1272. * of patent rights can be found in the PATENTS file in the same directory.
  1273. *
  1274. */
  1275. var _assign = __webpack_require__(4);
  1276. var PooledClass = __webpack_require__(16);
  1277. var emptyFunction = __webpack_require__(8);
  1278. var warning = __webpack_require__(2);
  1279. var didWarnForAddedNewProperty = false;
  1280. var isProxySupported = typeof Proxy === 'function';
  1281. var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];
  1282. /**
  1283. * @interface Event
  1284. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  1285. */
  1286. var EventInterface = {
  1287. type: null,
  1288. target: null,
  1289. // currentTarget is set when dispatching; no use in copying it here
  1290. currentTarget: emptyFunction.thatReturnsNull,
  1291. eventPhase: null,
  1292. bubbles: null,
  1293. cancelable: null,
  1294. timeStamp: function (event) {
  1295. return event.timeStamp || Date.now();
  1296. },
  1297. defaultPrevented: null,
  1298. isTrusted: null
  1299. };
  1300. /**
  1301. * Synthetic events are dispatched by event plugins, typically in response to a
  1302. * top-level event delegation handler.
  1303. *
  1304. * These systems should generally use pooling to reduce the frequency of garbage
  1305. * collection. The system should check `isPersistent` to determine whether the
  1306. * event should be released into the pool after being dispatched. Users that
  1307. * need a persisted event should invoke `persist`.
  1308. *
  1309. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  1310. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  1311. * DOM interface; custom application-specific events can also subclass this.
  1312. *
  1313. * @param {object} dispatchConfig Configuration used to dispatch this event.
  1314. * @param {*} targetInst Marker identifying the event target.
  1315. * @param {object} nativeEvent Native browser event.
  1316. * @param {DOMEventTarget} nativeEventTarget Target node.
  1317. */
  1318. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  1319. if (process.env.NODE_ENV !== 'production') {
  1320. // these have a getter/setter for warnings
  1321. delete this.nativeEvent;
  1322. delete this.preventDefault;
  1323. delete this.stopPropagation;
  1324. }
  1325. this.dispatchConfig = dispatchConfig;
  1326. this._targetInst = targetInst;
  1327. this.nativeEvent = nativeEvent;
  1328. var Interface = this.constructor.Interface;
  1329. for (var propName in Interface) {
  1330. if (!Interface.hasOwnProperty(propName)) {
  1331. continue;
  1332. }
  1333. if (process.env.NODE_ENV !== 'production') {
  1334. delete this[propName]; // this has a getter/setter for warnings
  1335. }
  1336. var normalize = Interface[propName];
  1337. if (normalize) {
  1338. this[propName] = normalize(nativeEvent);
  1339. } else {
  1340. if (propName === 'target') {
  1341. this.target = nativeEventTarget;
  1342. } else {
  1343. this[propName] = nativeEvent[propName];
  1344. }
  1345. }
  1346. }
  1347. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  1348. if (defaultPrevented) {
  1349. this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
  1350. } else {
  1351. this.isDefaultPrevented = emptyFunction.thatReturnsFalse;
  1352. }
  1353. this.isPropagationStopped = emptyFunction.thatReturnsFalse;
  1354. return this;
  1355. }
  1356. _assign(SyntheticEvent.prototype, {
  1357. preventDefault: function () {
  1358. this.defaultPrevented = true;
  1359. var event = this.nativeEvent;
  1360. if (!event) {
  1361. return;
  1362. }
  1363. if (event.preventDefault) {
  1364. event.preventDefault();
  1365. } else if (typeof event.returnValue !== 'unknown') {
  1366. // eslint-disable-line valid-typeof
  1367. event.returnValue = false;
  1368. }
  1369. this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
  1370. },
  1371. stopPropagation: function () {
  1372. var event = this.nativeEvent;
  1373. if (!event) {
  1374. return;
  1375. }
  1376. if (event.stopPropagation) {
  1377. event.stopPropagation();
  1378. } else if (typeof event.cancelBubble !== 'unknown') {
  1379. // eslint-disable-line valid-typeof
  1380. // The ChangeEventPlugin registers a "propertychange" event for
  1381. // IE. This event does not support bubbling or cancelling, and
  1382. // any references to cancelBubble throw "Member not found". A
  1383. // typeof check of "unknown" circumvents this issue (and is also
  1384. // IE specific).
  1385. event.cancelBubble = true;
  1386. }
  1387. this.isPropagationStopped = emptyFunction.thatReturnsTrue;
  1388. },
  1389. /**
  1390. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  1391. * them back into the pool. This allows a way to hold onto a reference that
  1392. * won't be added back into the pool.
  1393. */
  1394. persist: function () {
  1395. this.isPersistent = emptyFunction.thatReturnsTrue;
  1396. },
  1397. /**
  1398. * Checks if this event should be released back into the pool.
  1399. *
  1400. * @return {boolean} True if this should not be released, false otherwise.
  1401. */
  1402. isPersistent: emptyFunction.thatReturnsFalse,
  1403. /**
  1404. * `PooledClass` looks for `destructor` on each instance it releases.
  1405. */
  1406. destructor: function () {
  1407. var Interface = this.constructor.Interface;
  1408. for (var propName in Interface) {
  1409. if (process.env.NODE_ENV !== 'production') {
  1410. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  1411. } else {
  1412. this[propName] = null;
  1413. }
  1414. }
  1415. for (var i = 0; i < shouldBeReleasedProperties.length; i++) {
  1416. this[shouldBeReleasedProperties[i]] = null;
  1417. }
  1418. if (process.env.NODE_ENV !== 'production') {
  1419. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  1420. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));
  1421. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
  1422. }
  1423. }
  1424. });
  1425. SyntheticEvent.Interface = EventInterface;
  1426. if (process.env.NODE_ENV !== 'production') {
  1427. if (isProxySupported) {
  1428. /*eslint-disable no-func-assign */
  1429. SyntheticEvent = new Proxy(SyntheticEvent, {
  1430. construct: function (target, args) {
  1431. return this.apply(target, Object.create(target.prototype), args);
  1432. },
  1433. apply: function (constructor, that, args) {
  1434. return new Proxy(constructor.apply(that, args), {
  1435. set: function (target, prop, value) {
  1436. if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
  1437. process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
  1438. didWarnForAddedNewProperty = true;
  1439. }
  1440. target[prop] = value;
  1441. return true;
  1442. }
  1443. });
  1444. }
  1445. });
  1446. /*eslint-enable no-func-assign */
  1447. }
  1448. }
  1449. /**
  1450. * Helper to reduce boilerplate when creating subclasses.
  1451. *
  1452. * @param {function} Class
  1453. * @param {?object} Interface
  1454. */
  1455. SyntheticEvent.augmentClass = function (Class, Interface) {
  1456. var Super = this;
  1457. var E = function () {};
  1458. E.prototype = Super.prototype;
  1459. var prototype = new E();
  1460. _assign(prototype, Class.prototype);
  1461. Class.prototype = prototype;
  1462. Class.prototype.constructor = Class;
  1463. Class.Interface = _assign({}, Super.Interface, Interface);
  1464. Class.augmentClass = Super.augmentClass;
  1465. PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
  1466. };
  1467. PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
  1468. module.exports = SyntheticEvent;
  1469. /**
  1470. * Helper to nullify syntheticEvent instance properties when destructing
  1471. *
  1472. * @param {object} SyntheticEvent
  1473. * @param {String} propName
  1474. * @return {object} defineProperty object
  1475. */
  1476. function getPooledWarningPropertyDefinition(propName, getVal) {
  1477. var isFunction = typeof getVal === 'function';
  1478. return {
  1479. configurable: true,
  1480. set: set,
  1481. get: get
  1482. };
  1483. function set(val) {
  1484. var action = isFunction ? 'setting the method' : 'setting the property';
  1485. warn(action, 'This is effectively a no-op');
  1486. return val;
  1487. }
  1488. function get() {
  1489. var action = isFunction ? 'accessing the method' : 'accessing the property';
  1490. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  1491. warn(action, result);
  1492. return getVal;
  1493. }
  1494. function warn(action, result) {
  1495. var warningCondition = false;
  1496. process.env.NODE_ENV !== 'production' ? warning(warningCondition, '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;
  1497. }
  1498. }
  1499. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1500. /***/ }),
  1501. /* 13 */
  1502. /***/ (function(module, exports, __webpack_require__) {
  1503. "use strict";
  1504. /* WEBPACK VAR INJECTION */(function(process) {/**
  1505. * Copyright 2013-present, Facebook, Inc.
  1506. * All rights reserved.
  1507. *
  1508. * This source code is licensed under the BSD-style license found in the
  1509. * LICENSE file in the root directory of this source tree. An additional grant
  1510. * of patent rights can be found in the PATENTS file in the same directory.
  1511. *
  1512. */
  1513. var _prodInvariant = __webpack_require__(3);
  1514. var invariant = __webpack_require__(1);
  1515. function checkMask(value, bitmask) {
  1516. return (value & bitmask) === bitmask;
  1517. }
  1518. var DOMPropertyInjection = {
  1519. /**
  1520. * Mapping from normalized, camelcased property names to a configuration that
  1521. * specifies how the associated DOM property should be accessed or rendered.
  1522. */
  1523. MUST_USE_PROPERTY: 0x1,
  1524. HAS_BOOLEAN_VALUE: 0x4,
  1525. HAS_NUMERIC_VALUE: 0x8,
  1526. HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
  1527. HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
  1528. /**
  1529. * Inject some specialized knowledge about the DOM. This takes a config object
  1530. * with the following properties:
  1531. *
  1532. * isCustomAttribute: function that given an attribute name will return true
  1533. * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*
  1534. * attributes where it's impossible to enumerate all of the possible
  1535. * attribute names,
  1536. *
  1537. * Properties: object mapping DOM property name to one of the
  1538. * DOMPropertyInjection constants or null. If your attribute isn't in here,
  1539. * it won't get written to the DOM.
  1540. *
  1541. * DOMAttributeNames: object mapping React attribute name to the DOM
  1542. * attribute name. Attribute names not specified use the **lowercase**
  1543. * normalized name.
  1544. *
  1545. * DOMAttributeNamespaces: object mapping React attribute name to the DOM
  1546. * attribute namespace URL. (Attribute names not specified use no namespace.)
  1547. *
  1548. * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
  1549. * Property names not specified use the normalized name.
  1550. *
  1551. * DOMMutationMethods: Properties that require special mutation methods. If
  1552. * `value` is undefined, the mutation method should unset the property.
  1553. *
  1554. * @param {object} domPropertyConfig the config as described above.
  1555. */
  1556. injectDOMPropertyConfig: function (domPropertyConfig) {
  1557. var Injection = DOMPropertyInjection;
  1558. var Properties = domPropertyConfig.Properties || {};
  1559. var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
  1560. var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
  1561. var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};
  1562. var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
  1563. if (domPropertyConfig.isCustomAttribute) {
  1564. DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);
  1565. }
  1566. for (var propName in Properties) {
  1567. !!DOMProperty.properties.hasOwnProperty(propName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;
  1568. var lowerCased = propName.toLowerCase();
  1569. var propConfig = Properties[propName];
  1570. var propertyInfo = {
  1571. attributeName: lowerCased,
  1572. attributeNamespace: null,
  1573. propertyName: propName,
  1574. mutationMethod: null,
  1575. mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
  1576. hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
  1577. hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
  1578. hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
  1579. hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
  1580. };
  1581. !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;
  1582. if (process.env.NODE_ENV !== 'production') {
  1583. DOMProperty.getPossibleStandardName[lowerCased] = propName;
  1584. }
  1585. if (DOMAttributeNames.hasOwnProperty(propName)) {
  1586. var attributeName = DOMAttributeNames[propName];
  1587. propertyInfo.attributeName = attributeName;
  1588. if (process.env.NODE_ENV !== 'production') {
  1589. DOMProperty.getPossibleStandardName[attributeName] = propName;
  1590. }
  1591. }
  1592. if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
  1593. propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
  1594. }
  1595. if (DOMPropertyNames.hasOwnProperty(propName)) {
  1596. propertyInfo.propertyName = DOMPropertyNames[propName];
  1597. }
  1598. if (DOMMutationMethods.hasOwnProperty(propName)) {
  1599. propertyInfo.mutationMethod = DOMMutationMethods[propName];
  1600. }
  1601. DOMProperty.properties[propName] = propertyInfo;
  1602. }
  1603. }
  1604. };
  1605. /* eslint-disable max-len */
  1606. 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';
  1607. /* eslint-enable max-len */
  1608. /**
  1609. * DOMProperty exports lookup objects that can be used like functions:
  1610. *
  1611. * > DOMProperty.isValid['id']
  1612. * true
  1613. * > DOMProperty.isValid['foobar']
  1614. * undefined
  1615. *
  1616. * Although this may be confusing, it performs better in general.
  1617. *
  1618. * @see http://jsperf.com/key-exists
  1619. * @see http://jsperf.com/key-missing
  1620. */
  1621. var DOMProperty = {
  1622. ID_ATTRIBUTE_NAME: 'data-reactid',
  1623. ROOT_ATTRIBUTE_NAME: 'data-reactroot',
  1624. ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
  1625. ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
  1626. /**
  1627. * Map from property "standard name" to an object with info about how to set
  1628. * the property in the DOM. Each object contains:
  1629. *
  1630. * attributeName:
  1631. * Used when rendering markup or with `*Attribute()`.
  1632. * attributeNamespace
  1633. * propertyName:
  1634. * Used on DOM node instances. (This includes properties that mutate due to
  1635. * external factors.)
  1636. * mutationMethod:
  1637. * If non-null, used instead of the property or `setAttribute()` after
  1638. * initial render.
  1639. * mustUseProperty:
  1640. * Whether the property must be accessed and mutated as an object property.
  1641. * hasBooleanValue:
  1642. * Whether the property should be removed when set to a falsey value.
  1643. * hasNumericValue:
  1644. * Whether the property must be numeric or parse as a numeric and should be
  1645. * removed when set to a falsey value.
  1646. * hasPositiveNumericValue:
  1647. * Whether the property must be positive numeric or parse as a positive
  1648. * numeric and should be removed when set to a falsey value.
  1649. * hasOverloadedBooleanValue:
  1650. * Whether the property can be used as a flag as well as with a value.
  1651. * Removed when strictly equal to false; present without a value when
  1652. * strictly equal to true; present with a value otherwise.
  1653. */
  1654. properties: {},
  1655. /**
  1656. * Mapping from lowercase property names to the properly cased version, used
  1657. * to warn in the case of missing properties. Available only in __DEV__.
  1658. *
  1659. * autofocus is predefined, because adding it to the property whitelist
  1660. * causes unintended side effects.
  1661. *
  1662. * @type {Object}
  1663. */
  1664. getPossibleStandardName: process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null,
  1665. /**
  1666. * All of the isCustomAttribute() functions that have been injected.
  1667. */
  1668. _isCustomAttributeFunctions: [],
  1669. /**
  1670. * Checks whether a property name is a custom attribute.
  1671. * @method
  1672. */
  1673. isCustomAttribute: function (attributeName) {
  1674. for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {
  1675. var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];
  1676. if (isCustomAttributeFn(attributeName)) {
  1677. return true;
  1678. }
  1679. }
  1680. return false;
  1681. },
  1682. injection: DOMPropertyInjection
  1683. };
  1684. module.exports = DOMProperty;
  1685. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  1686. /***/ }),
  1687. /* 14 */
  1688. /***/ (function(module, exports, __webpack_require__) {
  1689. "use strict";
  1690. /**
  1691. * Copyright (c) 2013-present, Facebook, Inc.
  1692. * All rights reserved.
  1693. *
  1694. * This source code is licensed under the BSD-style license found in the
  1695. * LICENSE file in the root directory of this source tree. An additional grant
  1696. * of patent rights can be found in the PATENTS file in the same directory.
  1697. *
  1698. *
  1699. */
  1700. /**
  1701. * WARNING: DO NOT manually require this module.
  1702. * This is a replacement for `invariant(...)` used by the error code system
  1703. * and will _only_ be required by the corresponding babel pass.
  1704. * It always throws.
  1705. */
  1706. function reactProdInvariant(code) {
  1707. var argCount = arguments.length - 1;
  1708. var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
  1709. for (var argIdx = 0; argIdx < argCount; argIdx++) {
  1710. message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
  1711. }
  1712. message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
  1713. var error = new Error(message);
  1714. error.name = 'Invariant Violation';
  1715. error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
  1716. throw error;
  1717. }
  1718. module.exports = reactProdInvariant;
  1719. /***/ }),
  1720. /* 15 */
  1721. /***/ (function(module, exports, __webpack_require__) {
  1722. "use strict";
  1723. /* WEBPACK VAR INJECTION */(function(process) {/**
  1724. * Copyright 2014-present, Facebook, Inc.
  1725. * All rights reserved.
  1726. *
  1727. * This source code is licensed under the BSD-style license found in the
  1728. * LICENSE file in the root directory of this source tree. An additional grant
  1729. * of patent rights can be found in the PATENTS file in the same directory.
  1730. *
  1731. */
  1732. var _assign = __webpack_require__(4);
  1733. var ReactCurrentOwner = __webpack_require__(10);
  1734. var warning = __webpack_require__(2);
  1735. var canDefineProperty = __webpack_require__(26);
  1736. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1737. var REACT_ELEMENT_TYPE = __webpack_require__(51);
  1738. var RESERVED_PROPS = {
  1739. key: true,
  1740. ref: true,
  1741. __self: true,
  1742. __source: true
  1743. };
  1744. var specialPropKeyWarningShown, specialPropRefWarningShown;
  1745. function hasValidRef(config) {
  1746. if (process.env.NODE_ENV !== 'production') {
  1747. if (hasOwnProperty.call(config, 'ref')) {
  1748. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  1749. if (getter && getter.isReactWarning) {
  1750. return false;
  1751. }
  1752. }
  1753. }
  1754. return config.ref !== undefined;
  1755. }
  1756. function hasValidKey(config) {
  1757. if (process.env.NODE_ENV !== 'production') {
  1758. if (hasOwnProperty.call(config, 'key')) {
  1759. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  1760. if (getter && getter.isReactWarning) {
  1761. return false;
  1762. }
  1763. }
  1764. }
  1765. return config.key !== undefined;
  1766. }
  1767. function defineKeyPropWarningGetter(props, displayName) {
  1768. var warnAboutAccessingKey = function () {
  1769. if (!specialPropKeyWarningShown) {
  1770. specialPropKeyWarningShown = true;
  1771. process.env.NODE_ENV !== 'production' ? warning(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) : void 0;
  1772. }
  1773. };
  1774. warnAboutAccessingKey.isReactWarning = true;
  1775. Object.defineProperty(props, 'key', {
  1776. get: warnAboutAccessingKey,
  1777. configurable: true
  1778. });
  1779. }
  1780. function defineRefPropWarningGetter(props, displayName) {
  1781. var warnAboutAccessingRef = function () {
  1782. if (!specialPropRefWarningShown) {
  1783. specialPropRefWarningShown = true;
  1784. process.env.NODE_ENV !== 'production' ? warning(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) : void 0;
  1785. }
  1786. };
  1787. warnAboutAccessingRef.isReactWarning = true;
  1788. Object.defineProperty(props, 'ref', {
  1789. get: warnAboutAccessingRef,
  1790. configurable: true
  1791. });
  1792. }
  1793. /**
  1794. * Factory method to create a new React element. This no longer adheres to
  1795. * the class pattern, so do not use new to call it. Also, no instanceof check
  1796. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  1797. * if something is a React Element.
  1798. *
  1799. * @param {*} type
  1800. * @param {*} key
  1801. * @param {string|object} ref
  1802. * @param {*} self A *temporary* helper to detect places where `this` is
  1803. * different from the `owner` when React.createElement is called, so that we
  1804. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  1805. * functions, and as long as `this` and owner are the same, there will be no
  1806. * change in behavior.
  1807. * @param {*} source An annotation object (added by a transpiler or otherwise)
  1808. * indicating filename, line number, and/or other information.
  1809. * @param {*} owner
  1810. * @param {*} props
  1811. * @internal
  1812. */
  1813. var ReactElement = function (type, key, ref, self, source, owner, props) {
  1814. var element = {
  1815. // This tag allow us to uniquely identify this as a React Element
  1816. $$typeof: REACT_ELEMENT_TYPE,
  1817. // Built-in properties that belong on the element
  1818. type: type,
  1819. key: key,
  1820. ref: ref,
  1821. props: props,
  1822. // Record the component responsible for creating this element.
  1823. _owner: owner
  1824. };
  1825. if (process.env.NODE_ENV !== 'production') {
  1826. // The validation flag is currently mutative. We put it on
  1827. // an external backing store so that we can freeze the whole object.
  1828. // This can be replaced with a WeakMap once they are implemented in
  1829. // commonly used development environments.
  1830. element._store = {};
  1831. // To make comparing ReactElements easier for testing purposes, we make
  1832. // the validation flag non-enumerable (where possible, which should
  1833. // include every environment we run tests in), so the test framework
  1834. // ignores it.
  1835. if (canDefineProperty) {
  1836. Object.defineProperty(element._store, 'validated', {
  1837. configurable: false,
  1838. enumerable: false,
  1839. writable: true,
  1840. value: false
  1841. });
  1842. // self and source are DEV only properties.
  1843. Object.defineProperty(element, '_self', {
  1844. configurable: false,
  1845. enumerable: false,
  1846. writable: false,
  1847. value: self
  1848. });
  1849. // Two elements created in two different places should be considered
  1850. // equal for testing purposes and therefore we hide it from enumeration.
  1851. Object.defineProperty(element, '_source', {
  1852. configurable: false,
  1853. enumerable: false,
  1854. writable: false,
  1855. value: source
  1856. });
  1857. } else {
  1858. element._store.validated = false;
  1859. element._self = self;
  1860. element._source = source;
  1861. }
  1862. if (Object.freeze) {
  1863. Object.freeze(element.props);
  1864. Object.freeze(element);
  1865. }
  1866. }
  1867. return element;
  1868. };
  1869. /**
  1870. * Create and return a new ReactElement of the given type.
  1871. * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement
  1872. */
  1873. ReactElement.createElement = function (type, config, children) {
  1874. var propName;
  1875. // Reserved names are extracted
  1876. var props = {};
  1877. var key = null;
  1878. var ref = null;
  1879. var self = null;
  1880. var source = null;
  1881. if (config != null) {
  1882. if (hasValidRef(config)) {
  1883. ref = config.ref;
  1884. }
  1885. if (hasValidKey(config)) {
  1886. key = '' + config.key;
  1887. }
  1888. self = config.__self === undefined ? null : config.__self;
  1889. source = config.__source === undefined ? null : config.__source;
  1890. // Remaining properties are added to a new props object
  1891. for (propName in config) {
  1892. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  1893. props[propName] = config[propName];
  1894. }
  1895. }
  1896. }
  1897. // Children can be more than one argument, and those are transferred onto
  1898. // the newly allocated props object.
  1899. var childrenLength = arguments.length - 2;
  1900. if (childrenLength === 1) {
  1901. props.children = children;
  1902. } else if (childrenLength > 1) {
  1903. var childArray = Array(childrenLength);
  1904. for (var i = 0; i < childrenLength; i++) {
  1905. childArray[i] = arguments[i + 2];
  1906. }
  1907. if (process.env.NODE_ENV !== 'production') {
  1908. if (Object.freeze) {
  1909. Object.freeze(childArray);
  1910. }
  1911. }
  1912. props.children = childArray;
  1913. }
  1914. // Resolve default props
  1915. if (type && type.defaultProps) {
  1916. var defaultProps = type.defaultProps;
  1917. for (propName in defaultProps) {
  1918. if (props[propName] === undefined) {
  1919. props[propName] = defaultProps[propName];
  1920. }
  1921. }
  1922. }
  1923. if (process.env.NODE_ENV !== 'production') {
  1924. if (key || ref) {
  1925. if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
  1926. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  1927. if (key) {
  1928. defineKeyPropWarningGetter(props, displayName);
  1929. }
  1930. if (ref) {
  1931. defineRefPropWarningGetter(props, displayName);
  1932. }
  1933. }
  1934. }
  1935. }
  1936. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  1937. };
  1938. /**
  1939. * Return a function that produces ReactElements of a given type.
  1940. * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory
  1941. */
  1942. ReactElement.createFactory = function (type) {
  1943. var factory = ReactElement.createElement.bind(null, type);
  1944. // Expose the type on the factory and the prototype so that it can be
  1945. // easily accessed on elements. E.g. `<Foo />.type === Foo`.
  1946. // This should not be named `constructor` since this may not be the function
  1947. // that created the element, and it may not even be a constructor.
  1948. // Legacy hook TODO: Warn if this is accessed
  1949. factory.type = type;
  1950. return factory;
  1951. };
  1952. ReactElement.cloneAndReplaceKey = function (oldElement, newKey) {
  1953. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  1954. return newElement;
  1955. };
  1956. /**
  1957. * Clone and return a new ReactElement using element as the starting point.
  1958. * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement
  1959. */
  1960. ReactElement.cloneElement = function (element, config, children) {
  1961. var propName;
  1962. // Original props are copied
  1963. var props = _assign({}, element.props);
  1964. // Reserved names are extracted
  1965. var key = element.key;
  1966. var ref = element.ref;
  1967. // Self is preserved since the owner is preserved.
  1968. var self = element._self;
  1969. // Source is preserved since cloneElement is unlikely to be targeted by a
  1970. // transpiler, and the original source is probably a better indicator of the
  1971. // true owner.
  1972. var source = element._source;
  1973. // Owner will be preserved, unless ref is overridden
  1974. var owner = element._owner;
  1975. if (config != null) {
  1976. if (hasValidRef(config)) {
  1977. // Silently steal the ref from the parent.
  1978. ref = config.ref;
  1979. owner = ReactCurrentOwner.current;
  1980. }
  1981. if (hasValidKey(config)) {
  1982. key = '' + config.key;
  1983. }
  1984. // Remaining properties override existing props
  1985. var defaultProps;
  1986. if (element.type && element.type.defaultProps) {
  1987. defaultProps = element.type.defaultProps;
  1988. }
  1989. for (propName in config) {
  1990. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  1991. if (config[propName] === undefined && defaultProps !== undefined) {
  1992. // Resolve default props
  1993. props[propName] = defaultProps[propName];
  1994. } else {
  1995. props[propName] = config[propName];
  1996. }
  1997. }
  1998. }
  1999. }
  2000. // Children can be more than one argument, and those are transferred onto
  2001. // the newly allocated props object.
  2002. var childrenLength = arguments.length - 2;
  2003. if (childrenLength === 1) {
  2004. props.children = children;
  2005. } else if (childrenLength > 1) {
  2006. var childArray = Array(childrenLength);
  2007. for (var i = 0; i < childrenLength; i++) {
  2008. childArray[i] = arguments[i + 2];
  2009. }
  2010. props.children = childArray;
  2011. }
  2012. return ReactElement(element.type, key, ref, self, source, owner, props);
  2013. };
  2014. /**
  2015. * Verifies the object is a ReactElement.
  2016. * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement
  2017. * @param {?object} object
  2018. * @return {boolean} True if `object` is a valid component.
  2019. * @final
  2020. */
  2021. ReactElement.isValidElement = function (object) {
  2022. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  2023. };
  2024. module.exports = ReactElement;
  2025. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2026. /***/ }),
  2027. /* 16 */
  2028. /***/ (function(module, exports, __webpack_require__) {
  2029. "use strict";
  2030. /* WEBPACK VAR INJECTION */(function(process) {/**
  2031. * Copyright 2013-present, Facebook, Inc.
  2032. * All rights reserved.
  2033. *
  2034. * This source code is licensed under the BSD-style license found in the
  2035. * LICENSE file in the root directory of this source tree. An additional grant
  2036. * of patent rights can be found in the PATENTS file in the same directory.
  2037. *
  2038. *
  2039. */
  2040. var _prodInvariant = __webpack_require__(3);
  2041. var invariant = __webpack_require__(1);
  2042. /**
  2043. * Static poolers. Several custom versions for each potential number of
  2044. * arguments. A completely generic pooler is easy to implement, but would
  2045. * require accessing the `arguments` object. In each of these, `this` refers to
  2046. * the Class itself, not an instance. If any others are needed, simply add them
  2047. * here, or in their own files.
  2048. */
  2049. var oneArgumentPooler = function (copyFieldsFrom) {
  2050. var Klass = this;
  2051. if (Klass.instancePool.length) {
  2052. var instance = Klass.instancePool.pop();
  2053. Klass.call(instance, copyFieldsFrom);
  2054. return instance;
  2055. } else {
  2056. return new Klass(copyFieldsFrom);
  2057. }
  2058. };
  2059. var twoArgumentPooler = function (a1, a2) {
  2060. var Klass = this;
  2061. if (Klass.instancePool.length) {
  2062. var instance = Klass.instancePool.pop();
  2063. Klass.call(instance, a1, a2);
  2064. return instance;
  2065. } else {
  2066. return new Klass(a1, a2);
  2067. }
  2068. };
  2069. var threeArgumentPooler = function (a1, a2, a3) {
  2070. var Klass = this;
  2071. if (Klass.instancePool.length) {
  2072. var instance = Klass.instancePool.pop();
  2073. Klass.call(instance, a1, a2, a3);
  2074. return instance;
  2075. } else {
  2076. return new Klass(a1, a2, a3);
  2077. }
  2078. };
  2079. var fourArgumentPooler = function (a1, a2, a3, a4) {
  2080. var Klass = this;
  2081. if (Klass.instancePool.length) {
  2082. var instance = Klass.instancePool.pop();
  2083. Klass.call(instance, a1, a2, a3, a4);
  2084. return instance;
  2085. } else {
  2086. return new Klass(a1, a2, a3, a4);
  2087. }
  2088. };
  2089. var standardReleaser = function (instance) {
  2090. var Klass = this;
  2091. !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
  2092. instance.destructor();
  2093. if (Klass.instancePool.length < Klass.poolSize) {
  2094. Klass.instancePool.push(instance);
  2095. }
  2096. };
  2097. var DEFAULT_POOL_SIZE = 10;
  2098. var DEFAULT_POOLER = oneArgumentPooler;
  2099. /**
  2100. * Augments `CopyConstructor` to be a poolable class, augmenting only the class
  2101. * itself (statically) not adding any prototypical fields. Any CopyConstructor
  2102. * you give this may have a `poolSize` property, and will look for a
  2103. * prototypical `destructor` on instances.
  2104. *
  2105. * @param {Function} CopyConstructor Constructor that can be used to reset.
  2106. * @param {Function} pooler Customizable pooler.
  2107. */
  2108. var addPoolingTo = function (CopyConstructor, pooler) {
  2109. // Casting as any so that flow ignores the actual implementation and trusts
  2110. // it to match the type we declared
  2111. var NewKlass = CopyConstructor;
  2112. NewKlass.instancePool = [];
  2113. NewKlass.getPooled = pooler || DEFAULT_POOLER;
  2114. if (!NewKlass.poolSize) {
  2115. NewKlass.poolSize = DEFAULT_POOL_SIZE;
  2116. }
  2117. NewKlass.release = standardReleaser;
  2118. return NewKlass;
  2119. };
  2120. var PooledClass = {
  2121. addPoolingTo: addPoolingTo,
  2122. oneArgumentPooler: oneArgumentPooler,
  2123. twoArgumentPooler: twoArgumentPooler,
  2124. threeArgumentPooler: threeArgumentPooler,
  2125. fourArgumentPooler: fourArgumentPooler
  2126. };
  2127. module.exports = PooledClass;
  2128. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2129. /***/ }),
  2130. /* 17 */
  2131. /***/ (function(module, exports, __webpack_require__) {
  2132. "use strict";
  2133. /* WEBPACK VAR INJECTION */(function(process) {/**
  2134. * Copyright 2013-present, Facebook, Inc.
  2135. * All rights reserved.
  2136. *
  2137. * This source code is licensed under the BSD-style license found in the
  2138. * LICENSE file in the root directory of this source tree. An additional grant
  2139. * of patent rights can be found in the PATENTS file in the same directory.
  2140. *
  2141. */
  2142. var _assign = __webpack_require__(4);
  2143. var ReactChildren = __webpack_require__(86);
  2144. var ReactComponent = __webpack_require__(33);
  2145. var ReactPureComponent = __webpack_require__(90);
  2146. var ReactClass = __webpack_require__(91);
  2147. var ReactDOMFactories = __webpack_require__(92);
  2148. var ReactElement = __webpack_require__(15);
  2149. var ReactPropTypes = __webpack_require__(95);
  2150. var ReactVersion = __webpack_require__(99);
  2151. var onlyChild = __webpack_require__(100);
  2152. var warning = __webpack_require__(2);
  2153. var createElement = ReactElement.createElement;
  2154. var createFactory = ReactElement.createFactory;
  2155. var cloneElement = ReactElement.cloneElement;
  2156. if (process.env.NODE_ENV !== 'production') {
  2157. var canDefineProperty = __webpack_require__(26);
  2158. var ReactElementValidator = __webpack_require__(54);
  2159. var didWarnPropTypesDeprecated = false;
  2160. createElement = ReactElementValidator.createElement;
  2161. createFactory = ReactElementValidator.createFactory;
  2162. cloneElement = ReactElementValidator.cloneElement;
  2163. }
  2164. var __spread = _assign;
  2165. if (process.env.NODE_ENV !== 'production') {
  2166. var warned = false;
  2167. __spread = function () {
  2168. process.env.NODE_ENV !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
  2169. warned = true;
  2170. return _assign.apply(null, arguments);
  2171. };
  2172. }
  2173. var React = {
  2174. // Modern
  2175. Children: {
  2176. map: ReactChildren.map,
  2177. forEach: ReactChildren.forEach,
  2178. count: ReactChildren.count,
  2179. toArray: ReactChildren.toArray,
  2180. only: onlyChild
  2181. },
  2182. Component: ReactComponent,
  2183. PureComponent: ReactPureComponent,
  2184. createElement: createElement,
  2185. cloneElement: cloneElement,
  2186. isValidElement: ReactElement.isValidElement,
  2187. // Classic
  2188. PropTypes: ReactPropTypes,
  2189. createClass: ReactClass.createClass,
  2190. createFactory: createFactory,
  2191. createMixin: function (mixin) {
  2192. // Currently a noop. Will be used to validate and trace mixins.
  2193. return mixin;
  2194. },
  2195. // This looks DOM specific but these are actually isomorphic helpers
  2196. // since they are just generating DOM strings.
  2197. DOM: ReactDOMFactories,
  2198. version: ReactVersion,
  2199. // Deprecated hook for JSX spread, don't use this for anything.
  2200. __spread: __spread
  2201. };
  2202. // TODO: Fix tests so that this deprecation warning doesn't cause failures.
  2203. if (process.env.NODE_ENV !== 'production') {
  2204. if (canDefineProperty) {
  2205. Object.defineProperty(React, 'PropTypes', {
  2206. get: function () {
  2207. process.env.NODE_ENV !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;
  2208. didWarnPropTypesDeprecated = true;
  2209. return ReactPropTypes;
  2210. }
  2211. });
  2212. }
  2213. }
  2214. module.exports = React;
  2215. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2216. /***/ }),
  2217. /* 18 */
  2218. /***/ (function(module, exports, __webpack_require__) {
  2219. "use strict";
  2220. /* WEBPACK VAR INJECTION */(function(process) {/**
  2221. * Copyright 2013-present, Facebook, Inc.
  2222. * All rights reserved.
  2223. *
  2224. * This source code is licensed under the BSD-style license found in the
  2225. * LICENSE file in the root directory of this source tree. An additional grant
  2226. * of patent rights can be found in the PATENTS file in the same directory.
  2227. *
  2228. */
  2229. var ReactRef = __webpack_require__(110);
  2230. var ReactInstrumentation = __webpack_require__(9);
  2231. var warning = __webpack_require__(2);
  2232. /**
  2233. * Helper to call ReactRef.attachRefs with this composite component, split out
  2234. * to avoid allocations in the transaction mount-ready queue.
  2235. */
  2236. function attachRefs() {
  2237. ReactRef.attachRefs(this, this._currentElement);
  2238. }
  2239. var ReactReconciler = {
  2240. /**
  2241. * Initializes the component, renders markup, and registers event listeners.
  2242. *
  2243. * @param {ReactComponent} internalInstance
  2244. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  2245. * @param {?object} the containing host component instance
  2246. * @param {?object} info about the host container
  2247. * @return {?string} Rendered markup to be inserted into the DOM.
  2248. * @final
  2249. * @internal
  2250. */
  2251. mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID // 0 in production and for roots
  2252. ) {
  2253. if (process.env.NODE_ENV !== 'production') {
  2254. if (internalInstance._debugID !== 0) {
  2255. ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);
  2256. }
  2257. }
  2258. var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID);
  2259. if (internalInstance._currentElement && internalInstance._currentElement.ref != null) {
  2260. transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
  2261. }
  2262. if (process.env.NODE_ENV !== 'production') {
  2263. if (internalInstance._debugID !== 0) {
  2264. ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID);
  2265. }
  2266. }
  2267. return markup;
  2268. },
  2269. /**
  2270. * Returns a value that can be passed to
  2271. * ReactComponentEnvironment.replaceNodeWithMarkup.
  2272. */
  2273. getHostNode: function (internalInstance) {
  2274. return internalInstance.getHostNode();
  2275. },
  2276. /**
  2277. * Releases any resources allocated by `mountComponent`.
  2278. *
  2279. * @final
  2280. * @internal
  2281. */
  2282. unmountComponent: function (internalInstance, safely) {
  2283. if (process.env.NODE_ENV !== 'production') {
  2284. if (internalInstance._debugID !== 0) {
  2285. ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID);
  2286. }
  2287. }
  2288. ReactRef.detachRefs(internalInstance, internalInstance._currentElement);
  2289. internalInstance.unmountComponent(safely);
  2290. if (process.env.NODE_ENV !== 'production') {
  2291. if (internalInstance._debugID !== 0) {
  2292. ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);
  2293. }
  2294. }
  2295. },
  2296. /**
  2297. * Update a component using a new element.
  2298. *
  2299. * @param {ReactComponent} internalInstance
  2300. * @param {ReactElement} nextElement
  2301. * @param {ReactReconcileTransaction} transaction
  2302. * @param {object} context
  2303. * @internal
  2304. */
  2305. receiveComponent: function (internalInstance, nextElement, transaction, context) {
  2306. var prevElement = internalInstance._currentElement;
  2307. if (nextElement === prevElement && context === internalInstance._context) {
  2308. // Since elements are immutable after the owner is rendered,
  2309. // we can do a cheap identity compare here to determine if this is a
  2310. // superfluous reconcile. It's possible for state to be mutable but such
  2311. // change should trigger an update of the owner which would recreate
  2312. // the element. We explicitly check for the existence of an owner since
  2313. // it's possible for an element created outside a composite to be
  2314. // deeply mutated and reused.
  2315. // TODO: Bailing out early is just a perf optimization right?
  2316. // TODO: Removing the return statement should affect correctness?
  2317. return;
  2318. }
  2319. if (process.env.NODE_ENV !== 'production') {
  2320. if (internalInstance._debugID !== 0) {
  2321. ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);
  2322. }
  2323. }
  2324. var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement);
  2325. if (refsChanged) {
  2326. ReactRef.detachRefs(internalInstance, prevElement);
  2327. }
  2328. internalInstance.receiveComponent(nextElement, transaction, context);
  2329. if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) {
  2330. transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
  2331. }
  2332. if (process.env.NODE_ENV !== 'production') {
  2333. if (internalInstance._debugID !== 0) {
  2334. ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
  2335. }
  2336. }
  2337. },
  2338. /**
  2339. * Flush any dirty changes in a component.
  2340. *
  2341. * @param {ReactComponent} internalInstance
  2342. * @param {ReactReconcileTransaction} transaction
  2343. * @internal
  2344. */
  2345. performUpdateIfNecessary: function (internalInstance, transaction, updateBatchNumber) {
  2346. if (internalInstance._updateBatchNumber !== updateBatchNumber) {
  2347. // The component's enqueued batch number should always be the current
  2348. // batch or the following one.
  2349. process.env.NODE_ENV !== 'production' ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;
  2350. return;
  2351. }
  2352. if (process.env.NODE_ENV !== 'production') {
  2353. if (internalInstance._debugID !== 0) {
  2354. ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement);
  2355. }
  2356. }
  2357. internalInstance.performUpdateIfNecessary(transaction);
  2358. if (process.env.NODE_ENV !== 'production') {
  2359. if (internalInstance._debugID !== 0) {
  2360. ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
  2361. }
  2362. }
  2363. }
  2364. };
  2365. module.exports = ReactReconciler;
  2366. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2367. /***/ }),
  2368. /* 19 */
  2369. /***/ (function(module, exports, __webpack_require__) {
  2370. "use strict";
  2371. /**
  2372. * Copyright 2015-present, Facebook, Inc.
  2373. * All rights reserved.
  2374. *
  2375. * This source code is licensed under the BSD-style license found in the
  2376. * LICENSE file in the root directory of this source tree. An additional grant
  2377. * of patent rights can be found in the PATENTS file in the same directory.
  2378. *
  2379. */
  2380. var DOMNamespaces = __webpack_require__(41);
  2381. var setInnerHTML = __webpack_require__(30);
  2382. var createMicrosoftUnsafeLocalFunction = __webpack_require__(42);
  2383. var setTextContent = __webpack_require__(64);
  2384. var ELEMENT_NODE_TYPE = 1;
  2385. var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
  2386. /**
  2387. * In IE (8-11) and Edge, appending nodes with no children is dramatically
  2388. * faster than appending a full subtree, so we essentially queue up the
  2389. * .appendChild calls here and apply them so each node is added to its parent
  2390. * before any children are added.
  2391. *
  2392. * In other browsers, doing so is slower or neutral compared to the other order
  2393. * (in Firefox, twice as slow) so we only do this inversion in IE.
  2394. *
  2395. * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.
  2396. */
  2397. var enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge\/\d/.test(navigator.userAgent);
  2398. function insertTreeChildren(tree) {
  2399. if (!enableLazy) {
  2400. return;
  2401. }
  2402. var node = tree.node;
  2403. var children = tree.children;
  2404. if (children.length) {
  2405. for (var i = 0; i < children.length; i++) {
  2406. insertTreeBefore(node, children[i], null);
  2407. }
  2408. } else if (tree.html != null) {
  2409. setInnerHTML(node, tree.html);
  2410. } else if (tree.text != null) {
  2411. setTextContent(node, tree.text);
  2412. }
  2413. }
  2414. var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode, tree, referenceNode) {
  2415. // DocumentFragments aren't actually part of the DOM after insertion so
  2416. // appending children won't update the DOM. We need to ensure the fragment
  2417. // is properly populated first, breaking out of our lazy approach for just
  2418. // this level. Also, some <object> plugins (like Flash Player) will read
  2419. // <param> nodes immediately upon insertion into the DOM, so <object>
  2420. // must also be populated prior to insertion into the DOM.
  2421. if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) {
  2422. insertTreeChildren(tree);
  2423. parentNode.insertBefore(tree.node, referenceNode);
  2424. } else {
  2425. parentNode.insertBefore(tree.node, referenceNode);
  2426. insertTreeChildren(tree);
  2427. }
  2428. });
  2429. function replaceChildWithTree(oldNode, newTree) {
  2430. oldNode.parentNode.replaceChild(newTree.node, oldNode);
  2431. insertTreeChildren(newTree);
  2432. }
  2433. function queueChild(parentTree, childTree) {
  2434. if (enableLazy) {
  2435. parentTree.children.push(childTree);
  2436. } else {
  2437. parentTree.node.appendChild(childTree.node);
  2438. }
  2439. }
  2440. function queueHTML(tree, html) {
  2441. if (enableLazy) {
  2442. tree.html = html;
  2443. } else {
  2444. setInnerHTML(tree.node, html);
  2445. }
  2446. }
  2447. function queueText(tree, text) {
  2448. if (enableLazy) {
  2449. tree.text = text;
  2450. } else {
  2451. setTextContent(tree.node, text);
  2452. }
  2453. }
  2454. function toString() {
  2455. return this.node.nodeName;
  2456. }
  2457. function DOMLazyTree(node) {
  2458. return {
  2459. node: node,
  2460. children: [],
  2461. html: null,
  2462. text: null,
  2463. toString: toString
  2464. };
  2465. }
  2466. DOMLazyTree.insertTreeBefore = insertTreeBefore;
  2467. DOMLazyTree.replaceChildWithTree = replaceChildWithTree;
  2468. DOMLazyTree.queueChild = queueChild;
  2469. DOMLazyTree.queueHTML = queueHTML;
  2470. DOMLazyTree.queueText = queueText;
  2471. module.exports = DOMLazyTree;
  2472. /***/ }),
  2473. /* 20 */
  2474. /***/ (function(module, exports, __webpack_require__) {
  2475. "use strict";
  2476. /* WEBPACK VAR INJECTION */(function(process) {/**
  2477. * Copyright (c) 2013-present, Facebook, Inc.
  2478. *
  2479. * This source code is licensed under the MIT license found in the
  2480. * LICENSE file in the root directory of this source tree.
  2481. *
  2482. */
  2483. var emptyObject = {};
  2484. if (process.env.NODE_ENV !== 'production') {
  2485. Object.freeze(emptyObject);
  2486. }
  2487. module.exports = emptyObject;
  2488. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2489. /***/ }),
  2490. /* 21 */
  2491. /***/ (function(module, exports, __webpack_require__) {
  2492. "use strict";
  2493. /* WEBPACK VAR INJECTION */(function(process) {/**
  2494. * Copyright 2013-present, Facebook, Inc.
  2495. * All rights reserved.
  2496. *
  2497. * This source code is licensed under the BSD-style license found in the
  2498. * LICENSE file in the root directory of this source tree. An additional grant
  2499. * of patent rights can be found in the PATENTS file in the same directory.
  2500. *
  2501. */
  2502. var EventPluginHub = __webpack_require__(22);
  2503. var EventPluginUtils = __webpack_require__(35);
  2504. var accumulateInto = __webpack_require__(57);
  2505. var forEachAccumulated = __webpack_require__(58);
  2506. var warning = __webpack_require__(2);
  2507. var getListener = EventPluginHub.getListener;
  2508. /**
  2509. * Some event types have a notion of different registration names for different
  2510. * "phases" of propagation. This finds listeners by a given phase.
  2511. */
  2512. function listenerAtPhase(inst, event, propagationPhase) {
  2513. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  2514. return getListener(inst, registrationName);
  2515. }
  2516. /**
  2517. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  2518. * here, allows us to not have to bind or create functions for each event.
  2519. * Mutating the event's members allows us to not have to create a wrapping
  2520. * "dispatch" object that pairs the event with the listener.
  2521. */
  2522. function accumulateDirectionalDispatches(inst, phase, event) {
  2523. if (process.env.NODE_ENV !== 'production') {
  2524. process.env.NODE_ENV !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;
  2525. }
  2526. var listener = listenerAtPhase(inst, event, phase);
  2527. if (listener) {
  2528. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  2529. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  2530. }
  2531. }
  2532. /**
  2533. * Collect dispatches (must be entirely collected before dispatching - see unit
  2534. * tests). Lazily allocate the array to conserve memory. We must loop through
  2535. * each event and perform the traversal for each one. We cannot perform a
  2536. * single traversal for the entire collection of events because each event may
  2537. * have a different target.
  2538. */
  2539. function accumulateTwoPhaseDispatchesSingle(event) {
  2540. if (event && event.dispatchConfig.phasedRegistrationNames) {
  2541. EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  2542. }
  2543. }
  2544. /**
  2545. * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.
  2546. */
  2547. function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {
  2548. if (event && event.dispatchConfig.phasedRegistrationNames) {
  2549. var targetInst = event._targetInst;
  2550. var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;
  2551. EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);
  2552. }
  2553. }
  2554. /**
  2555. * Accumulates without regard to direction, does not look for phased
  2556. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  2557. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  2558. */
  2559. function accumulateDispatches(inst, ignoredDirection, event) {
  2560. if (event && event.dispatchConfig.registrationName) {
  2561. var registrationName = event.dispatchConfig.registrationName;
  2562. var listener = getListener(inst, registrationName);
  2563. if (listener) {
  2564. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  2565. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  2566. }
  2567. }
  2568. }
  2569. /**
  2570. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  2571. * `dispatchMarker`.
  2572. * @param {SyntheticEvent} event
  2573. */
  2574. function accumulateDirectDispatchesSingle(event) {
  2575. if (event && event.dispatchConfig.registrationName) {
  2576. accumulateDispatches(event._targetInst, null, event);
  2577. }
  2578. }
  2579. function accumulateTwoPhaseDispatches(events) {
  2580. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  2581. }
  2582. function accumulateTwoPhaseDispatchesSkipTarget(events) {
  2583. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);
  2584. }
  2585. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  2586. EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  2587. }
  2588. function accumulateDirectDispatches(events) {
  2589. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  2590. }
  2591. /**
  2592. * A small set of propagation patterns, each of which will accept a small amount
  2593. * of information, and generate a set of "dispatch ready event objects" - which
  2594. * are sets of events that have already been annotated with a set of dispatched
  2595. * listener functions/ids. The API is designed this way to discourage these
  2596. * propagation strategies from actually executing the dispatches, since we
  2597. * always want to collect the entire set of dispatches before executing event a
  2598. * single one.
  2599. *
  2600. * @constructor EventPropagators
  2601. */
  2602. var EventPropagators = {
  2603. accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,
  2604. accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,
  2605. accumulateDirectDispatches: accumulateDirectDispatches,
  2606. accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches
  2607. };
  2608. module.exports = EventPropagators;
  2609. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2610. /***/ }),
  2611. /* 22 */
  2612. /***/ (function(module, exports, __webpack_require__) {
  2613. "use strict";
  2614. /* WEBPACK VAR INJECTION */(function(process) {/**
  2615. * Copyright 2013-present, Facebook, Inc.
  2616. * All rights reserved.
  2617. *
  2618. * This source code is licensed under the BSD-style license found in the
  2619. * LICENSE file in the root directory of this source tree. An additional grant
  2620. * of patent rights can be found in the PATENTS file in the same directory.
  2621. *
  2622. */
  2623. var _prodInvariant = __webpack_require__(3);
  2624. var EventPluginRegistry = __webpack_require__(27);
  2625. var EventPluginUtils = __webpack_require__(35);
  2626. var ReactErrorUtils = __webpack_require__(36);
  2627. var accumulateInto = __webpack_require__(57);
  2628. var forEachAccumulated = __webpack_require__(58);
  2629. var invariant = __webpack_require__(1);
  2630. /**
  2631. * Internal store for event listeners
  2632. */
  2633. var listenerBank = {};
  2634. /**
  2635. * Internal queue of events that have accumulated their dispatches and are
  2636. * waiting to have their dispatches executed.
  2637. */
  2638. var eventQueue = null;
  2639. /**
  2640. * Dispatches an event and releases it back into the pool, unless persistent.
  2641. *
  2642. * @param {?object} event Synthetic event to be dispatched.
  2643. * @param {boolean} simulated If the event is simulated (changes exn behavior)
  2644. * @private
  2645. */
  2646. var executeDispatchesAndRelease = function (event, simulated) {
  2647. if (event) {
  2648. EventPluginUtils.executeDispatchesInOrder(event, simulated);
  2649. if (!event.isPersistent()) {
  2650. event.constructor.release(event);
  2651. }
  2652. }
  2653. };
  2654. var executeDispatchesAndReleaseSimulated = function (e) {
  2655. return executeDispatchesAndRelease(e, true);
  2656. };
  2657. var executeDispatchesAndReleaseTopLevel = function (e) {
  2658. return executeDispatchesAndRelease(e, false);
  2659. };
  2660. var getDictionaryKey = function (inst) {
  2661. // Prevents V8 performance issue:
  2662. // https://github.com/facebook/react/pull/7232
  2663. return '.' + inst._rootNodeID;
  2664. };
  2665. function isInteractive(tag) {
  2666. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  2667. }
  2668. function shouldPreventMouseEvent(name, type, props) {
  2669. switch (name) {
  2670. case 'onClick':
  2671. case 'onClickCapture':
  2672. case 'onDoubleClick':
  2673. case 'onDoubleClickCapture':
  2674. case 'onMouseDown':
  2675. case 'onMouseDownCapture':
  2676. case 'onMouseMove':
  2677. case 'onMouseMoveCapture':
  2678. case 'onMouseUp':
  2679. case 'onMouseUpCapture':
  2680. return !!(props.disabled && isInteractive(type));
  2681. default:
  2682. return false;
  2683. }
  2684. }
  2685. /**
  2686. * This is a unified interface for event plugins to be installed and configured.
  2687. *
  2688. * Event plugins can implement the following properties:
  2689. *
  2690. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  2691. * Required. When a top-level event is fired, this method is expected to
  2692. * extract synthetic events that will in turn be queued and dispatched.
  2693. *
  2694. * `eventTypes` {object}
  2695. * Optional, plugins that fire events must publish a mapping of registration
  2696. * names that are used to register listeners. Values of this mapping must
  2697. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  2698. *
  2699. * `executeDispatch` {function(object, function, string)}
  2700. * Optional, allows plugins to override how an event gets dispatched. By
  2701. * default, the listener is simply invoked.
  2702. *
  2703. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  2704. *
  2705. * @public
  2706. */
  2707. var EventPluginHub = {
  2708. /**
  2709. * Methods for injecting dependencies.
  2710. */
  2711. injection: {
  2712. /**
  2713. * @param {array} InjectedEventPluginOrder
  2714. * @public
  2715. */
  2716. injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,
  2717. /**
  2718. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  2719. */
  2720. injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName
  2721. },
  2722. /**
  2723. * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent.
  2724. *
  2725. * @param {object} inst The instance, which is the source of events.
  2726. * @param {string} registrationName Name of listener (e.g. `onClick`).
  2727. * @param {function} listener The callback to store.
  2728. */
  2729. putListener: function (inst, registrationName, listener) {
  2730. !(typeof listener === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;
  2731. var key = getDictionaryKey(inst);
  2732. var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});
  2733. bankForRegistrationName[key] = listener;
  2734. var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
  2735. if (PluginModule && PluginModule.didPutListener) {
  2736. PluginModule.didPutListener(inst, registrationName, listener);
  2737. }
  2738. },
  2739. /**
  2740. * @param {object} inst The instance, which is the source of events.
  2741. * @param {string} registrationName Name of listener (e.g. `onClick`).
  2742. * @return {?function} The stored callback.
  2743. */
  2744. getListener: function (inst, registrationName) {
  2745. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  2746. // live here; needs to be moved to a better place soon
  2747. var bankForRegistrationName = listenerBank[registrationName];
  2748. if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) {
  2749. return null;
  2750. }
  2751. var key = getDictionaryKey(inst);
  2752. return bankForRegistrationName && bankForRegistrationName[key];
  2753. },
  2754. /**
  2755. * Deletes a listener from the registration bank.
  2756. *
  2757. * @param {object} inst The instance, which is the source of events.
  2758. * @param {string} registrationName Name of listener (e.g. `onClick`).
  2759. */
  2760. deleteListener: function (inst, registrationName) {
  2761. var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
  2762. if (PluginModule && PluginModule.willDeleteListener) {
  2763. PluginModule.willDeleteListener(inst, registrationName);
  2764. }
  2765. var bankForRegistrationName = listenerBank[registrationName];
  2766. // TODO: This should never be null -- when is it?
  2767. if (bankForRegistrationName) {
  2768. var key = getDictionaryKey(inst);
  2769. delete bankForRegistrationName[key];
  2770. }
  2771. },
  2772. /**
  2773. * Deletes all listeners for the DOM element with the supplied ID.
  2774. *
  2775. * @param {object} inst The instance, which is the source of events.
  2776. */
  2777. deleteAllListeners: function (inst) {
  2778. var key = getDictionaryKey(inst);
  2779. for (var registrationName in listenerBank) {
  2780. if (!listenerBank.hasOwnProperty(registrationName)) {
  2781. continue;
  2782. }
  2783. if (!listenerBank[registrationName][key]) {
  2784. continue;
  2785. }
  2786. var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
  2787. if (PluginModule && PluginModule.willDeleteListener) {
  2788. PluginModule.willDeleteListener(inst, registrationName);
  2789. }
  2790. delete listenerBank[registrationName][key];
  2791. }
  2792. },
  2793. /**
  2794. * Allows registered plugins an opportunity to extract events from top-level
  2795. * native browser events.
  2796. *
  2797. * @return {*} An accumulation of synthetic events.
  2798. * @internal
  2799. */
  2800. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  2801. var events;
  2802. var plugins = EventPluginRegistry.plugins;
  2803. for (var i = 0; i < plugins.length; i++) {
  2804. // Not every plugin in the ordering may be loaded at runtime.
  2805. var possiblePlugin = plugins[i];
  2806. if (possiblePlugin) {
  2807. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  2808. if (extractedEvents) {
  2809. events = accumulateInto(events, extractedEvents);
  2810. }
  2811. }
  2812. }
  2813. return events;
  2814. },
  2815. /**
  2816. * Enqueues a synthetic event that should be dispatched when
  2817. * `processEventQueue` is invoked.
  2818. *
  2819. * @param {*} events An accumulation of synthetic events.
  2820. * @internal
  2821. */
  2822. enqueueEvents: function (events) {
  2823. if (events) {
  2824. eventQueue = accumulateInto(eventQueue, events);
  2825. }
  2826. },
  2827. /**
  2828. * Dispatches all synthetic events on the event queue.
  2829. *
  2830. * @internal
  2831. */
  2832. processEventQueue: function (simulated) {
  2833. // Set `eventQueue` to null before processing it so that we can tell if more
  2834. // events get enqueued while processing.
  2835. var processingEventQueue = eventQueue;
  2836. eventQueue = null;
  2837. if (simulated) {
  2838. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);
  2839. } else {
  2840. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  2841. }
  2842. !!eventQueue ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;
  2843. // This would be a good time to rethrow if any of the event handlers threw.
  2844. ReactErrorUtils.rethrowCaughtError();
  2845. },
  2846. /**
  2847. * These are needed for tests only. Do not use!
  2848. */
  2849. __purge: function () {
  2850. listenerBank = {};
  2851. },
  2852. __getListenerBank: function () {
  2853. return listenerBank;
  2854. }
  2855. };
  2856. module.exports = EventPluginHub;
  2857. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2858. /***/ }),
  2859. /* 23 */
  2860. /***/ (function(module, exports, __webpack_require__) {
  2861. "use strict";
  2862. /**
  2863. * Copyright 2013-present, Facebook, Inc.
  2864. * All rights reserved.
  2865. *
  2866. * This source code is licensed under the BSD-style license found in the
  2867. * LICENSE file in the root directory of this source tree. An additional grant
  2868. * of patent rights can be found in the PATENTS file in the same directory.
  2869. *
  2870. */
  2871. var SyntheticEvent = __webpack_require__(12);
  2872. var getEventTarget = __webpack_require__(37);
  2873. /**
  2874. * @interface UIEvent
  2875. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  2876. */
  2877. var UIEventInterface = {
  2878. view: function (event) {
  2879. if (event.view) {
  2880. return event.view;
  2881. }
  2882. var target = getEventTarget(event);
  2883. if (target.window === target) {
  2884. // target is a window object
  2885. return target;
  2886. }
  2887. var doc = target.ownerDocument;
  2888. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  2889. if (doc) {
  2890. return doc.defaultView || doc.parentWindow;
  2891. } else {
  2892. return window;
  2893. }
  2894. },
  2895. detail: function (event) {
  2896. return event.detail || 0;
  2897. }
  2898. };
  2899. /**
  2900. * @param {object} dispatchConfig Configuration used to dispatch this event.
  2901. * @param {string} dispatchMarker Marker identifying the event target.
  2902. * @param {object} nativeEvent Native browser event.
  2903. * @extends {SyntheticEvent}
  2904. */
  2905. function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  2906. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  2907. }
  2908. SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);
  2909. module.exports = SyntheticUIEvent;
  2910. /***/ }),
  2911. /* 24 */
  2912. /***/ (function(module, exports, __webpack_require__) {
  2913. "use strict";
  2914. /**
  2915. * Copyright 2013-present, Facebook, Inc.
  2916. * All rights reserved.
  2917. *
  2918. * This source code is licensed under the BSD-style license found in the
  2919. * LICENSE file in the root directory of this source tree. An additional grant
  2920. * of patent rights can be found in the PATENTS file in the same directory.
  2921. *
  2922. */
  2923. /**
  2924. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  2925. * instance (key) and the internal representation (value). This allows public
  2926. * methods to accept the user facing instance as an argument and map them back
  2927. * to internal methods.
  2928. */
  2929. // TODO: Replace this with ES6: var ReactInstanceMap = new Map();
  2930. var ReactInstanceMap = {
  2931. /**
  2932. * This API should be called `delete` but we'd have to make sure to always
  2933. * transform these to strings for IE support. When this transform is fully
  2934. * supported we can rename it.
  2935. */
  2936. remove: function (key) {
  2937. key._reactInternalInstance = undefined;
  2938. },
  2939. get: function (key) {
  2940. return key._reactInternalInstance;
  2941. },
  2942. has: function (key) {
  2943. return key._reactInternalInstance !== undefined;
  2944. },
  2945. set: function (key, value) {
  2946. key._reactInternalInstance = value;
  2947. }
  2948. };
  2949. module.exports = ReactInstanceMap;
  2950. /***/ }),
  2951. /* 25 */
  2952. /***/ (function(module, exports, __webpack_require__) {
  2953. "use strict";
  2954. module.exports = __webpack_require__(17);
  2955. /***/ }),
  2956. /* 26 */
  2957. /***/ (function(module, exports, __webpack_require__) {
  2958. "use strict";
  2959. /* WEBPACK VAR INJECTION */(function(process) {/**
  2960. * Copyright 2013-present, Facebook, Inc.
  2961. * All rights reserved.
  2962. *
  2963. * This source code is licensed under the BSD-style license found in the
  2964. * LICENSE file in the root directory of this source tree. An additional grant
  2965. * of patent rights can be found in the PATENTS file in the same directory.
  2966. *
  2967. *
  2968. */
  2969. var canDefineProperty = false;
  2970. if (process.env.NODE_ENV !== 'production') {
  2971. try {
  2972. // $FlowFixMe https://github.com/facebook/flow/issues/285
  2973. Object.defineProperty({}, 'x', { get: function () {} });
  2974. canDefineProperty = true;
  2975. } catch (x) {
  2976. // IE will fail on defineProperty
  2977. }
  2978. }
  2979. module.exports = canDefineProperty;
  2980. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  2981. /***/ }),
  2982. /* 27 */
  2983. /***/ (function(module, exports, __webpack_require__) {
  2984. "use strict";
  2985. /* WEBPACK VAR INJECTION */(function(process) {/**
  2986. * Copyright 2013-present, Facebook, Inc.
  2987. * All rights reserved.
  2988. *
  2989. * This source code is licensed under the BSD-style license found in the
  2990. * LICENSE file in the root directory of this source tree. An additional grant
  2991. * of patent rights can be found in the PATENTS file in the same directory.
  2992. *
  2993. *
  2994. */
  2995. var _prodInvariant = __webpack_require__(3);
  2996. var invariant = __webpack_require__(1);
  2997. /**
  2998. * Injectable ordering of event plugins.
  2999. */
  3000. var eventPluginOrder = null;
  3001. /**
  3002. * Injectable mapping from names to event plugin modules.
  3003. */
  3004. var namesToPlugins = {};
  3005. /**
  3006. * Recomputes the plugin list using the injected plugins and plugin ordering.
  3007. *
  3008. * @private
  3009. */
  3010. function recomputePluginOrdering() {
  3011. if (!eventPluginOrder) {
  3012. // Wait until an `eventPluginOrder` is injected.
  3013. return;
  3014. }
  3015. for (var pluginName in namesToPlugins) {
  3016. var pluginModule = namesToPlugins[pluginName];
  3017. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  3018. !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;
  3019. if (EventPluginRegistry.plugins[pluginIndex]) {
  3020. continue;
  3021. }
  3022. !pluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;
  3023. EventPluginRegistry.plugins[pluginIndex] = pluginModule;
  3024. var publishedEvents = pluginModule.eventTypes;
  3025. for (var eventName in publishedEvents) {
  3026. !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;
  3027. }
  3028. }
  3029. }
  3030. /**
  3031. * Publishes an event so that it can be dispatched by the supplied plugin.
  3032. *
  3033. * @param {object} dispatchConfig Dispatch configuration for the event.
  3034. * @param {object} PluginModule Plugin publishing the event.
  3035. * @return {boolean} True if the event was successfully published.
  3036. * @private
  3037. */
  3038. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  3039. !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;
  3040. EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;
  3041. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  3042. if (phasedRegistrationNames) {
  3043. for (var phaseName in phasedRegistrationNames) {
  3044. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  3045. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  3046. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  3047. }
  3048. }
  3049. return true;
  3050. } else if (dispatchConfig.registrationName) {
  3051. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  3052. return true;
  3053. }
  3054. return false;
  3055. }
  3056. /**
  3057. * Publishes a registration name that is used to identify dispatched events and
  3058. * can be used with `EventPluginHub.putListener` to register listeners.
  3059. *
  3060. * @param {string} registrationName Registration name to add.
  3061. * @param {object} PluginModule Plugin publishing the event.
  3062. * @private
  3063. */
  3064. function publishRegistrationName(registrationName, pluginModule, eventName) {
  3065. !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;
  3066. EventPluginRegistry.registrationNameModules[registrationName] = pluginModule;
  3067. EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  3068. if (process.env.NODE_ENV !== 'production') {
  3069. var lowerCasedName = registrationName.toLowerCase();
  3070. EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName;
  3071. if (registrationName === 'onDoubleClick') {
  3072. EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName;
  3073. }
  3074. }
  3075. }
  3076. /**
  3077. * Registers plugins so that they can extract and dispatch events.
  3078. *
  3079. * @see {EventPluginHub}
  3080. */
  3081. var EventPluginRegistry = {
  3082. /**
  3083. * Ordered list of injected plugins.
  3084. */
  3085. plugins: [],
  3086. /**
  3087. * Mapping from event name to dispatch config
  3088. */
  3089. eventNameDispatchConfigs: {},
  3090. /**
  3091. * Mapping from registration name to plugin module
  3092. */
  3093. registrationNameModules: {},
  3094. /**
  3095. * Mapping from registration name to event name
  3096. */
  3097. registrationNameDependencies: {},
  3098. /**
  3099. * Mapping from lowercase registration names to the properly cased version,
  3100. * used to warn in the case of missing event handlers. Available
  3101. * only in __DEV__.
  3102. * @type {Object}
  3103. */
  3104. possibleRegistrationNames: process.env.NODE_ENV !== 'production' ? {} : null,
  3105. // Trust the developer to only use possibleRegistrationNames in __DEV__
  3106. /**
  3107. * Injects an ordering of plugins (by plugin name). This allows the ordering
  3108. * to be decoupled from injection of the actual plugins so that ordering is
  3109. * always deterministic regardless of packaging, on-the-fly injection, etc.
  3110. *
  3111. * @param {array} InjectedEventPluginOrder
  3112. * @internal
  3113. * @see {EventPluginHub.injection.injectEventPluginOrder}
  3114. */
  3115. injectEventPluginOrder: function (injectedEventPluginOrder) {
  3116. !!eventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;
  3117. // Clone the ordering so it cannot be dynamically mutated.
  3118. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  3119. recomputePluginOrdering();
  3120. },
  3121. /**
  3122. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  3123. * in the ordering injected by `injectEventPluginOrder`.
  3124. *
  3125. * Plugins can be injected as part of page initialization or on-the-fly.
  3126. *
  3127. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  3128. * @internal
  3129. * @see {EventPluginHub.injection.injectEventPluginsByName}
  3130. */
  3131. injectEventPluginsByName: function (injectedNamesToPlugins) {
  3132. var isOrderingDirty = false;
  3133. for (var pluginName in injectedNamesToPlugins) {
  3134. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  3135. continue;
  3136. }
  3137. var pluginModule = injectedNamesToPlugins[pluginName];
  3138. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  3139. !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;
  3140. namesToPlugins[pluginName] = pluginModule;
  3141. isOrderingDirty = true;
  3142. }
  3143. }
  3144. if (isOrderingDirty) {
  3145. recomputePluginOrdering();
  3146. }
  3147. },
  3148. /**
  3149. * Looks up the plugin for the supplied event.
  3150. *
  3151. * @param {object} event A synthetic event.
  3152. * @return {?object} The plugin that created the supplied event.
  3153. * @internal
  3154. */
  3155. getPluginModuleForEvent: function (event) {
  3156. var dispatchConfig = event.dispatchConfig;
  3157. if (dispatchConfig.registrationName) {
  3158. return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;
  3159. }
  3160. if (dispatchConfig.phasedRegistrationNames !== undefined) {
  3161. // pulling phasedRegistrationNames out of dispatchConfig helps Flow see
  3162. // that it is not undefined.
  3163. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  3164. for (var phase in phasedRegistrationNames) {
  3165. if (!phasedRegistrationNames.hasOwnProperty(phase)) {
  3166. continue;
  3167. }
  3168. var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];
  3169. if (pluginModule) {
  3170. return pluginModule;
  3171. }
  3172. }
  3173. }
  3174. return null;
  3175. },
  3176. /**
  3177. * Exposed for unit testing.
  3178. * @private
  3179. */
  3180. _resetEventPlugins: function () {
  3181. eventPluginOrder = null;
  3182. for (var pluginName in namesToPlugins) {
  3183. if (namesToPlugins.hasOwnProperty(pluginName)) {
  3184. delete namesToPlugins[pluginName];
  3185. }
  3186. }
  3187. EventPluginRegistry.plugins.length = 0;
  3188. var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs;
  3189. for (var eventName in eventNameDispatchConfigs) {
  3190. if (eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  3191. delete eventNameDispatchConfigs[eventName];
  3192. }
  3193. }
  3194. var registrationNameModules = EventPluginRegistry.registrationNameModules;
  3195. for (var registrationName in registrationNameModules) {
  3196. if (registrationNameModules.hasOwnProperty(registrationName)) {
  3197. delete registrationNameModules[registrationName];
  3198. }
  3199. }
  3200. if (process.env.NODE_ENV !== 'production') {
  3201. var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;
  3202. for (var lowerCasedName in possibleRegistrationNames) {
  3203. if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) {
  3204. delete possibleRegistrationNames[lowerCasedName];
  3205. }
  3206. }
  3207. }
  3208. }
  3209. };
  3210. module.exports = EventPluginRegistry;
  3211. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  3212. /***/ }),
  3213. /* 28 */
  3214. /***/ (function(module, exports, __webpack_require__) {
  3215. "use strict";
  3216. /* WEBPACK VAR INJECTION */(function(process) {/**
  3217. * Copyright 2013-present, Facebook, Inc.
  3218. * All rights reserved.
  3219. *
  3220. * This source code is licensed under the BSD-style license found in the
  3221. * LICENSE file in the root directory of this source tree. An additional grant
  3222. * of patent rights can be found in the PATENTS file in the same directory.
  3223. *
  3224. *
  3225. */
  3226. var _prodInvariant = __webpack_require__(3);
  3227. var invariant = __webpack_require__(1);
  3228. var OBSERVED_ERROR = {};
  3229. /**
  3230. * `Transaction` creates a black box that is able to wrap any method such that
  3231. * certain invariants are maintained before and after the method is invoked
  3232. * (Even if an exception is thrown while invoking the wrapped method). Whoever
  3233. * instantiates a transaction can provide enforcers of the invariants at
  3234. * creation time. The `Transaction` class itself will supply one additional
  3235. * automatic invariant for you - the invariant that any transaction instance
  3236. * should not be run while it is already being run. You would typically create a
  3237. * single instance of a `Transaction` for reuse multiple times, that potentially
  3238. * is used to wrap several different methods. Wrappers are extremely simple -
  3239. * they only require implementing two methods.
  3240. *
  3241. * <pre>
  3242. * wrappers (injected at creation time)
  3243. * + +
  3244. * | |
  3245. * +-----------------|--------|--------------+
  3246. * | v | |
  3247. * | +---------------+ | |
  3248. * | +--| wrapper1 |---|----+ |
  3249. * | | +---------------+ v | |
  3250. * | | +-------------+ | |
  3251. * | | +----| wrapper2 |--------+ |
  3252. * | | | +-------------+ | | |
  3253. * | | | | | |
  3254. * | v v v v | wrapper
  3255. * | +---+ +---+ +---------+ +---+ +---+ | invariants
  3256. * perform(anyMethod) | | | | | | | | | | | | maintained
  3257. * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|-------->
  3258. * | | | | | | | | | | | |
  3259. * | | | | | | | | | | | |
  3260. * | | | | | | | | | | | |
  3261. * | +---+ +---+ +---------+ +---+ +---+ |
  3262. * | initialize close |
  3263. * +-----------------------------------------+
  3264. * </pre>
  3265. *
  3266. * Use cases:
  3267. * - Preserving the input selection ranges before/after reconciliation.
  3268. * Restoring selection even in the event of an unexpected error.
  3269. * - Deactivating events while rearranging the DOM, preventing blurs/focuses,
  3270. * while guaranteeing that afterwards, the event system is reactivated.
  3271. * - Flushing a queue of collected DOM mutations to the main UI thread after a
  3272. * reconciliation takes place in a worker thread.
  3273. * - Invoking any collected `componentDidUpdate` callbacks after rendering new
  3274. * content.
  3275. * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue
  3276. * to preserve the `scrollTop` (an automatic scroll aware DOM).
  3277. * - (Future use case): Layout calculations before and after DOM updates.
  3278. *
  3279. * Transactional plugin API:
  3280. * - A module that has an `initialize` method that returns any precomputation.
  3281. * - and a `close` method that accepts the precomputation. `close` is invoked
  3282. * when the wrapped process is completed, or has failed.
  3283. *
  3284. * @param {Array<TransactionalWrapper>} transactionWrapper Wrapper modules
  3285. * that implement `initialize` and `close`.
  3286. * @return {Transaction} Single transaction for reuse in thread.
  3287. *
  3288. * @class Transaction
  3289. */
  3290. var TransactionImpl = {
  3291. /**
  3292. * Sets up this instance so that it is prepared for collecting metrics. Does
  3293. * so such that this setup method may be used on an instance that is already
  3294. * initialized, in a way that does not consume additional memory upon reuse.
  3295. * That can be useful if you decide to make your subclass of this mixin a
  3296. * "PooledClass".
  3297. */
  3298. reinitializeTransaction: function () {
  3299. this.transactionWrappers = this.getTransactionWrappers();
  3300. if (this.wrapperInitData) {
  3301. this.wrapperInitData.length = 0;
  3302. } else {
  3303. this.wrapperInitData = [];
  3304. }
  3305. this._isInTransaction = false;
  3306. },
  3307. _isInTransaction: false,
  3308. /**
  3309. * @abstract
  3310. * @return {Array<TransactionWrapper>} Array of transaction wrappers.
  3311. */
  3312. getTransactionWrappers: null,
  3313. isInTransaction: function () {
  3314. return !!this._isInTransaction;
  3315. },
  3316. /**
  3317. * Executes the function within a safety window. Use this for the top level
  3318. * methods that result in large amounts of computation/mutations that would
  3319. * need to be safety checked. The optional arguments helps prevent the need
  3320. * to bind in many cases.
  3321. *
  3322. * @param {function} method Member of scope to call.
  3323. * @param {Object} scope Scope to invoke from.
  3324. * @param {Object?=} a Argument to pass to the method.
  3325. * @param {Object?=} b Argument to pass to the method.
  3326. * @param {Object?=} c Argument to pass to the method.
  3327. * @param {Object?=} d Argument to pass to the method.
  3328. * @param {Object?=} e Argument to pass to the method.
  3329. * @param {Object?=} f Argument to pass to the method.
  3330. *
  3331. * @return {*} Return value from `method`.
  3332. */
  3333. perform: function (method, scope, a, b, c, d, e, f) {
  3334. !!this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;
  3335. var errorThrown;
  3336. var ret;
  3337. try {
  3338. this._isInTransaction = true;
  3339. // Catching errors makes debugging more difficult, so we start with
  3340. // errorThrown set to true before setting it to false after calling
  3341. // close -- if it's still set to true in the finally block, it means
  3342. // one of these calls threw.
  3343. errorThrown = true;
  3344. this.initializeAll(0);
  3345. ret = method.call(scope, a, b, c, d, e, f);
  3346. errorThrown = false;
  3347. } finally {
  3348. try {
  3349. if (errorThrown) {
  3350. // If `method` throws, prefer to show that stack trace over any thrown
  3351. // by invoking `closeAll`.
  3352. try {
  3353. this.closeAll(0);
  3354. } catch (err) {}
  3355. } else {
  3356. // Since `method` didn't throw, we don't want to silence the exception
  3357. // here.
  3358. this.closeAll(0);
  3359. }
  3360. } finally {
  3361. this._isInTransaction = false;
  3362. }
  3363. }
  3364. return ret;
  3365. },
  3366. initializeAll: function (startIndex) {
  3367. var transactionWrappers = this.transactionWrappers;
  3368. for (var i = startIndex; i < transactionWrappers.length; i++) {
  3369. var wrapper = transactionWrappers[i];
  3370. try {
  3371. // Catching errors makes debugging more difficult, so we start with the
  3372. // OBSERVED_ERROR state before overwriting it with the real return value
  3373. // of initialize -- if it's still set to OBSERVED_ERROR in the finally
  3374. // block, it means wrapper.initialize threw.
  3375. this.wrapperInitData[i] = OBSERVED_ERROR;
  3376. this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null;
  3377. } finally {
  3378. if (this.wrapperInitData[i] === OBSERVED_ERROR) {
  3379. // The initializer for wrapper i threw an error; initialize the
  3380. // remaining wrappers but silence any exceptions from them to ensure
  3381. // that the first error is the one to bubble up.
  3382. try {
  3383. this.initializeAll(i + 1);
  3384. } catch (err) {}
  3385. }
  3386. }
  3387. }
  3388. },
  3389. /**
  3390. * Invokes each of `this.transactionWrappers.close[i]` functions, passing into
  3391. * them the respective return values of `this.transactionWrappers.init[i]`
  3392. * (`close`rs that correspond to initializers that failed will not be
  3393. * invoked).
  3394. */
  3395. closeAll: function (startIndex) {
  3396. !this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;
  3397. var transactionWrappers = this.transactionWrappers;
  3398. for (var i = startIndex; i < transactionWrappers.length; i++) {
  3399. var wrapper = transactionWrappers[i];
  3400. var initData = this.wrapperInitData[i];
  3401. var errorThrown;
  3402. try {
  3403. // Catching errors makes debugging more difficult, so we start with
  3404. // errorThrown set to true before setting it to false after calling
  3405. // close -- if it's still set to true in the finally block, it means
  3406. // wrapper.close threw.
  3407. errorThrown = true;
  3408. if (initData !== OBSERVED_ERROR && wrapper.close) {
  3409. wrapper.close.call(this, initData);
  3410. }
  3411. errorThrown = false;
  3412. } finally {
  3413. if (errorThrown) {
  3414. // The closer for wrapper i threw an error; close the remaining
  3415. // wrappers but silence any exceptions from them to ensure that the
  3416. // first error is the one to bubble up.
  3417. try {
  3418. this.closeAll(i + 1);
  3419. } catch (e) {}
  3420. }
  3421. }
  3422. }
  3423. this.wrapperInitData.length = 0;
  3424. }
  3425. };
  3426. module.exports = TransactionImpl;
  3427. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  3428. /***/ }),
  3429. /* 29 */
  3430. /***/ (function(module, exports, __webpack_require__) {
  3431. "use strict";
  3432. /**
  3433. * Copyright 2013-present, Facebook, Inc.
  3434. * All rights reserved.
  3435. *
  3436. * This source code is licensed under the BSD-style license found in the
  3437. * LICENSE file in the root directory of this source tree. An additional grant
  3438. * of patent rights can be found in the PATENTS file in the same directory.
  3439. *
  3440. */
  3441. var SyntheticUIEvent = __webpack_require__(23);
  3442. var ViewportMetrics = __webpack_require__(63);
  3443. var getEventModifierState = __webpack_require__(39);
  3444. /**
  3445. * @interface MouseEvent
  3446. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  3447. */
  3448. var MouseEventInterface = {
  3449. screenX: null,
  3450. screenY: null,
  3451. clientX: null,
  3452. clientY: null,
  3453. ctrlKey: null,
  3454. shiftKey: null,
  3455. altKey: null,
  3456. metaKey: null,
  3457. getModifierState: getEventModifierState,
  3458. button: function (event) {
  3459. // Webkit, Firefox, IE9+
  3460. // which: 1 2 3
  3461. // button: 0 1 2 (standard)
  3462. var button = event.button;
  3463. if ('which' in event) {
  3464. return button;
  3465. }
  3466. // IE<9
  3467. // which: undefined
  3468. // button: 0 0 0
  3469. // button: 1 4 2 (onmouseup)
  3470. return button === 2 ? 2 : button === 4 ? 1 : 0;
  3471. },
  3472. buttons: null,
  3473. relatedTarget: function (event) {
  3474. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  3475. },
  3476. // "Proprietary" Interface.
  3477. pageX: function (event) {
  3478. return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft;
  3479. },
  3480. pageY: function (event) {
  3481. return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop;
  3482. }
  3483. };
  3484. /**
  3485. * @param {object} dispatchConfig Configuration used to dispatch this event.
  3486. * @param {string} dispatchMarker Marker identifying the event target.
  3487. * @param {object} nativeEvent Native browser event.
  3488. * @extends {SyntheticUIEvent}
  3489. */
  3490. function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  3491. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  3492. }
  3493. SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);
  3494. module.exports = SyntheticMouseEvent;
  3495. /***/ }),
  3496. /* 30 */
  3497. /***/ (function(module, exports, __webpack_require__) {
  3498. "use strict";
  3499. /**
  3500. * Copyright 2013-present, Facebook, Inc.
  3501. * All rights reserved.
  3502. *
  3503. * This source code is licensed under the BSD-style license found in the
  3504. * LICENSE file in the root directory of this source tree. An additional grant
  3505. * of patent rights can be found in the PATENTS file in the same directory.
  3506. *
  3507. */
  3508. var ExecutionEnvironment = __webpack_require__(6);
  3509. var DOMNamespaces = __webpack_require__(41);
  3510. var WHITESPACE_TEST = /^[ \r\n\t\f]/;
  3511. var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/;
  3512. var createMicrosoftUnsafeLocalFunction = __webpack_require__(42);
  3513. // SVG temp container for IE lacking innerHTML
  3514. var reusableSVGContainer;
  3515. /**
  3516. * Set the innerHTML property of a node, ensuring that whitespace is preserved
  3517. * even in IE8.
  3518. *
  3519. * @param {DOMElement} node
  3520. * @param {string} html
  3521. * @internal
  3522. */
  3523. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  3524. // IE does not have innerHTML for SVG nodes, so instead we inject the
  3525. // new markup in a temp node and then move the child nodes across into
  3526. // the target node
  3527. if (node.namespaceURI === DOMNamespaces.svg && !('innerHTML' in node)) {
  3528. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  3529. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  3530. var svgNode = reusableSVGContainer.firstChild;
  3531. while (svgNode.firstChild) {
  3532. node.appendChild(svgNode.firstChild);
  3533. }
  3534. } else {
  3535. node.innerHTML = html;
  3536. }
  3537. });
  3538. if (ExecutionEnvironment.canUseDOM) {
  3539. // IE8: When updating a just created node with innerHTML only leading
  3540. // whitespace is removed. When updating an existing node with innerHTML
  3541. // whitespace in root TextNodes is also collapsed.
  3542. // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html
  3543. // Feature detection; only IE8 is known to behave improperly like this.
  3544. var testElement = document.createElement('div');
  3545. testElement.innerHTML = ' ';
  3546. if (testElement.innerHTML === '') {
  3547. setInnerHTML = function (node, html) {
  3548. // Magic theory: IE8 supposedly differentiates between added and updated
  3549. // nodes when processing innerHTML, innerHTML on updated nodes suffers
  3550. // from worse whitespace behavior. Re-adding a node like this triggers
  3551. // the initial and more favorable whitespace behavior.
  3552. // TODO: What to do on a detached node?
  3553. if (node.parentNode) {
  3554. node.parentNode.replaceChild(node, node);
  3555. }
  3556. // We also implement a workaround for non-visible tags disappearing into
  3557. // thin air on IE8, this only happens if there is no visible text
  3558. // in-front of the non-visible tags. Piggyback on the whitespace fix
  3559. // and simply check if any non-visible tags appear in the source.
  3560. if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) {
  3561. // Recover leading whitespace by temporarily prepending any character.
  3562. // \uFEFF has the potential advantage of being zero-width/invisible.
  3563. // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode
  3564. // in hopes that this is preserved even if "\uFEFF" is transformed to
  3565. // the actual Unicode character (by Babel, for example).
  3566. // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216
  3567. node.innerHTML = String.fromCharCode(0xFEFF) + html;
  3568. // deleteData leaves an empty `TextNode` which offsets the index of all
  3569. // children. Definitely want to avoid this.
  3570. var textNode = node.firstChild;
  3571. if (textNode.data.length === 1) {
  3572. node.removeChild(textNode);
  3573. } else {
  3574. textNode.deleteData(0, 1);
  3575. }
  3576. } else {
  3577. node.innerHTML = html;
  3578. }
  3579. };
  3580. }
  3581. testElement = null;
  3582. }
  3583. module.exports = setInnerHTML;
  3584. /***/ }),
  3585. /* 31 */
  3586. /***/ (function(module, exports, __webpack_require__) {
  3587. "use strict";
  3588. /**
  3589. * Copyright 2016-present, Facebook, Inc.
  3590. * All rights reserved.
  3591. *
  3592. * This source code is licensed under the BSD-style license found in the
  3593. * LICENSE file in the root directory of this source tree. An additional grant
  3594. * of patent rights can be found in the PATENTS file in the same directory.
  3595. *
  3596. * Based on the escape-html library, which is used under the MIT License below:
  3597. *
  3598. * Copyright (c) 2012-2013 TJ Holowaychuk
  3599. * Copyright (c) 2015 Andreas Lubbe
  3600. * Copyright (c) 2015 Tiancheng "Timothy" Gu
  3601. *
  3602. * Permission is hereby granted, free of charge, to any person obtaining
  3603. * a copy of this software and associated documentation files (the
  3604. * 'Software'), to deal in the Software without restriction, including
  3605. * without limitation the rights to use, copy, modify, merge, publish,
  3606. * distribute, sublicense, and/or sell copies of the Software, and to
  3607. * permit persons to whom the Software is furnished to do so, subject to
  3608. * the following conditions:
  3609. *
  3610. * The above copyright notice and this permission notice shall be
  3611. * included in all copies or substantial portions of the Software.
  3612. *
  3613. * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  3614. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  3615. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  3616. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  3617. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  3618. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  3619. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  3620. *
  3621. */
  3622. // code copied and modified from escape-html
  3623. /**
  3624. * Module variables.
  3625. * @private
  3626. */
  3627. var matchHtmlRegExp = /["'&<>]/;
  3628. /**
  3629. * Escape special characters in the given string of html.
  3630. *
  3631. * @param {string} string The string to escape for inserting into HTML
  3632. * @return {string}
  3633. * @public
  3634. */
  3635. function escapeHtml(string) {
  3636. var str = '' + string;
  3637. var match = matchHtmlRegExp.exec(str);
  3638. if (!match) {
  3639. return str;
  3640. }
  3641. var escape;
  3642. var html = '';
  3643. var index = 0;
  3644. var lastIndex = 0;
  3645. for (index = match.index; index < str.length; index++) {
  3646. switch (str.charCodeAt(index)) {
  3647. case 34:
  3648. // "
  3649. escape = '&quot;';
  3650. break;
  3651. case 38:
  3652. // &
  3653. escape = '&amp;';
  3654. break;
  3655. case 39:
  3656. // '
  3657. escape = '&#x27;'; // modified from escape-html; used to be '&#39'
  3658. break;
  3659. case 60:
  3660. // <
  3661. escape = '&lt;';
  3662. break;
  3663. case 62:
  3664. // >
  3665. escape = '&gt;';
  3666. break;
  3667. default:
  3668. continue;
  3669. }
  3670. if (lastIndex !== index) {
  3671. html += str.substring(lastIndex, index);
  3672. }
  3673. lastIndex = index + 1;
  3674. html += escape;
  3675. }
  3676. return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
  3677. }
  3678. // end code copied and modified from escape-html
  3679. /**
  3680. * Escapes text to prevent scripting attacks.
  3681. *
  3682. * @param {*} text Text value to escape.
  3683. * @return {string} An escaped string.
  3684. */
  3685. function escapeTextContentForBrowser(text) {
  3686. if (typeof text === 'boolean' || typeof text === 'number') {
  3687. // this shortcircuit helps perf for types that we know will never have
  3688. // special characters, especially given that this function is used often
  3689. // for numeric dom ids.
  3690. return '' + text;
  3691. }
  3692. return escapeHtml(text);
  3693. }
  3694. module.exports = escapeTextContentForBrowser;
  3695. /***/ }),
  3696. /* 32 */
  3697. /***/ (function(module, exports, __webpack_require__) {
  3698. "use strict";
  3699. /**
  3700. * Copyright 2013-present, Facebook, Inc.
  3701. * All rights reserved.
  3702. *
  3703. * This source code is licensed under the BSD-style license found in the
  3704. * LICENSE file in the root directory of this source tree. An additional grant
  3705. * of patent rights can be found in the PATENTS file in the same directory.
  3706. *
  3707. */
  3708. var _assign = __webpack_require__(4);
  3709. var EventPluginRegistry = __webpack_require__(27);
  3710. var ReactEventEmitterMixin = __webpack_require__(136);
  3711. var ViewportMetrics = __webpack_require__(63);
  3712. var getVendorPrefixedEventName = __webpack_require__(137);
  3713. var isEventSupported = __webpack_require__(38);
  3714. /**
  3715. * Summary of `ReactBrowserEventEmitter` event handling:
  3716. *
  3717. * - Top-level delegation is used to trap most native browser events. This
  3718. * may only occur in the main thread and is the responsibility of
  3719. * ReactEventListener, which is injected and can therefore support pluggable
  3720. * event sources. This is the only work that occurs in the main thread.
  3721. *
  3722. * - We normalize and de-duplicate events to account for browser quirks. This
  3723. * may be done in the worker thread.
  3724. *
  3725. * - Forward these native events (with the associated top-level type used to
  3726. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  3727. * to extract any synthetic events.
  3728. *
  3729. * - The `EventPluginHub` will then process each event by annotating them with
  3730. * "dispatches", a sequence of listeners and IDs that care about that event.
  3731. *
  3732. * - The `EventPluginHub` then dispatches the events.
  3733. *
  3734. * Overview of React and the event system:
  3735. *
  3736. * +------------+ .
  3737. * | DOM | .
  3738. * +------------+ .
  3739. * | .
  3740. * v .
  3741. * +------------+ .
  3742. * | ReactEvent | .
  3743. * | Listener | .
  3744. * +------------+ . +-----------+
  3745. * | . +--------+|SimpleEvent|
  3746. * | . | |Plugin |
  3747. * +-----|------+ . v +-----------+
  3748. * | | | . +--------------+ +------------+
  3749. * | +-----------.--->|EventPluginHub| | Event |
  3750. * | | . | | +-----------+ | Propagators|
  3751. * | ReactEvent | . | | |TapEvent | |------------|
  3752. * | Emitter | . | |<---+|Plugin | |other plugin|
  3753. * | | . | | +-----------+ | utilities |
  3754. * | +-----------.--->| | +------------+
  3755. * | | | . +--------------+
  3756. * +-----|------+ . ^ +-----------+
  3757. * | . | |Enter/Leave|
  3758. * + . +-------+|Plugin |
  3759. * +-------------+ . +-----------+
  3760. * | application | .
  3761. * |-------------| .
  3762. * | | .
  3763. * | | .
  3764. * +-------------+ .
  3765. * .
  3766. * React Core . General Purpose Event Plugin System
  3767. */
  3768. var hasEventPageXY;
  3769. var alreadyListeningTo = {};
  3770. var isMonitoringScrollValue = false;
  3771. var reactTopListenersCounter = 0;
  3772. // For events like 'submit' which don't consistently bubble (which we trap at a
  3773. // lower node than `document`), binding at `document` would cause duplicate
  3774. // events so we don't include them here
  3775. var topEventMapping = {
  3776. topAbort: 'abort',
  3777. topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend',
  3778. topAnimationIteration: getVendorPrefixedEventName('animationiteration') || 'animationiteration',
  3779. topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart',
  3780. topBlur: 'blur',
  3781. topCanPlay: 'canplay',
  3782. topCanPlayThrough: 'canplaythrough',
  3783. topChange: 'change',
  3784. topClick: 'click',
  3785. topCompositionEnd: 'compositionend',
  3786. topCompositionStart: 'compositionstart',
  3787. topCompositionUpdate: 'compositionupdate',
  3788. topContextMenu: 'contextmenu',
  3789. topCopy: 'copy',
  3790. topCut: 'cut',
  3791. topDoubleClick: 'dblclick',
  3792. topDrag: 'drag',
  3793. topDragEnd: 'dragend',
  3794. topDragEnter: 'dragenter',
  3795. topDragExit: 'dragexit',
  3796. topDragLeave: 'dragleave',
  3797. topDragOver: 'dragover',
  3798. topDragStart: 'dragstart',
  3799. topDrop: 'drop',
  3800. topDurationChange: 'durationchange',
  3801. topEmptied: 'emptied',
  3802. topEncrypted: 'encrypted',
  3803. topEnded: 'ended',
  3804. topError: 'error',
  3805. topFocus: 'focus',
  3806. topInput: 'input',
  3807. topKeyDown: 'keydown',
  3808. topKeyPress: 'keypress',
  3809. topKeyUp: 'keyup',
  3810. topLoadedData: 'loadeddata',
  3811. topLoadedMetadata: 'loadedmetadata',
  3812. topLoadStart: 'loadstart',
  3813. topMouseDown: 'mousedown',
  3814. topMouseMove: 'mousemove',
  3815. topMouseOut: 'mouseout',
  3816. topMouseOver: 'mouseover',
  3817. topMouseUp: 'mouseup',
  3818. topPaste: 'paste',
  3819. topPause: 'pause',
  3820. topPlay: 'play',
  3821. topPlaying: 'playing',
  3822. topProgress: 'progress',
  3823. topRateChange: 'ratechange',
  3824. topScroll: 'scroll',
  3825. topSeeked: 'seeked',
  3826. topSeeking: 'seeking',
  3827. topSelectionChange: 'selectionchange',
  3828. topStalled: 'stalled',
  3829. topSuspend: 'suspend',
  3830. topTextInput: 'textInput',
  3831. topTimeUpdate: 'timeupdate',
  3832. topTouchCancel: 'touchcancel',
  3833. topTouchEnd: 'touchend',
  3834. topTouchMove: 'touchmove',
  3835. topTouchStart: 'touchstart',
  3836. topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend',
  3837. topVolumeChange: 'volumechange',
  3838. topWaiting: 'waiting',
  3839. topWheel: 'wheel'
  3840. };
  3841. /**
  3842. * To ensure no conflicts with other potential React instances on the page
  3843. */
  3844. var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2);
  3845. function getListeningForDocument(mountAt) {
  3846. // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  3847. // directly.
  3848. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
  3849. mountAt[topListenersIDKey] = reactTopListenersCounter++;
  3850. alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  3851. }
  3852. return alreadyListeningTo[mountAt[topListenersIDKey]];
  3853. }
  3854. /**
  3855. * `ReactBrowserEventEmitter` is used to attach top-level event listeners. For
  3856. * example:
  3857. *
  3858. * EventPluginHub.putListener('myID', 'onClick', myFunction);
  3859. *
  3860. * This would allocate a "registration" of `('onClick', myFunction)` on 'myID'.
  3861. *
  3862. * @internal
  3863. */
  3864. var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, {
  3865. /**
  3866. * Injectable event backend
  3867. */
  3868. ReactEventListener: null,
  3869. injection: {
  3870. /**
  3871. * @param {object} ReactEventListener
  3872. */
  3873. injectReactEventListener: function (ReactEventListener) {
  3874. ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel);
  3875. ReactBrowserEventEmitter.ReactEventListener = ReactEventListener;
  3876. }
  3877. },
  3878. /**
  3879. * Sets whether or not any created callbacks should be enabled.
  3880. *
  3881. * @param {boolean} enabled True if callbacks should be enabled.
  3882. */
  3883. setEnabled: function (enabled) {
  3884. if (ReactBrowserEventEmitter.ReactEventListener) {
  3885. ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled);
  3886. }
  3887. },
  3888. /**
  3889. * @return {boolean} True if callbacks are enabled.
  3890. */
  3891. isEnabled: function () {
  3892. return !!(ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.isEnabled());
  3893. },
  3894. /**
  3895. * We listen for bubbled touch events on the document object.
  3896. *
  3897. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  3898. * mounting `onmousemove` events at some node that was not the document
  3899. * element. The symptoms were that if your mouse is not moving over something
  3900. * contained within that mount point (for example on the background) the
  3901. * top-level listeners for `onmousemove` won't be called. However, if you
  3902. * register the `mousemove` on the document object, then it will of course
  3903. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  3904. * top-level listeners to the document object only, at least for these
  3905. * movement types of events and possibly all events.
  3906. *
  3907. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  3908. *
  3909. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  3910. * they bubble to document.
  3911. *
  3912. * @param {string} registrationName Name of listener (e.g. `onClick`).
  3913. * @param {object} contentDocumentHandle Document which owns the container
  3914. */
  3915. listenTo: function (registrationName, contentDocumentHandle) {
  3916. var mountAt = contentDocumentHandle;
  3917. var isListening = getListeningForDocument(mountAt);
  3918. var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName];
  3919. for (var i = 0; i < dependencies.length; i++) {
  3920. var dependency = dependencies[i];
  3921. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  3922. if (dependency === 'topWheel') {
  3923. if (isEventSupported('wheel')) {
  3924. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'wheel', mountAt);
  3925. } else if (isEventSupported('mousewheel')) {
  3926. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'mousewheel', mountAt);
  3927. } else {
  3928. // Firefox needs to capture a different mouse scroll event.
  3929. // @see http://www.quirksmode.org/dom/events/tests/scroll.html
  3930. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'DOMMouseScroll', mountAt);
  3931. }
  3932. } else if (dependency === 'topScroll') {
  3933. if (isEventSupported('scroll', true)) {
  3934. ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topScroll', 'scroll', mountAt);
  3935. } else {
  3936. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topScroll', 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE);
  3937. }
  3938. } else if (dependency === 'topFocus' || dependency === 'topBlur') {
  3939. if (isEventSupported('focus', true)) {
  3940. ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topFocus', 'focus', mountAt);
  3941. ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topBlur', 'blur', mountAt);
  3942. } else if (isEventSupported('focusin')) {
  3943. // IE has `focusin` and `focusout` events which bubble.
  3944. // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html
  3945. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topFocus', 'focusin', mountAt);
  3946. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topBlur', 'focusout', mountAt);
  3947. }
  3948. // to make sure blur and focus event listeners are only attached once
  3949. isListening.topBlur = true;
  3950. isListening.topFocus = true;
  3951. } else if (topEventMapping.hasOwnProperty(dependency)) {
  3952. ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt);
  3953. }
  3954. isListening[dependency] = true;
  3955. }
  3956. }
  3957. },
  3958. trapBubbledEvent: function (topLevelType, handlerBaseName, handle) {
  3959. return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle);
  3960. },
  3961. trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
  3962. return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle);
  3963. },
  3964. /**
  3965. * Protect against document.createEvent() returning null
  3966. * Some popup blocker extensions appear to do this:
  3967. * https://github.com/facebook/react/issues/6887
  3968. */
  3969. supportsEventPageXY: function () {
  3970. if (!document.createEvent) {
  3971. return false;
  3972. }
  3973. var ev = document.createEvent('MouseEvent');
  3974. return ev != null && 'pageX' in ev;
  3975. },
  3976. /**
  3977. * Listens to window scroll and resize events. We cache scroll values so that
  3978. * application code can access them without triggering reflows.
  3979. *
  3980. * ViewportMetrics is only used by SyntheticMouse/TouchEvent and only when
  3981. * pageX/pageY isn't supported (legacy browsers).
  3982. *
  3983. * NOTE: Scroll events do not bubble.
  3984. *
  3985. * @see http://www.quirksmode.org/dom/events/scroll.html
  3986. */
  3987. ensureScrollValueMonitoring: function () {
  3988. if (hasEventPageXY === undefined) {
  3989. hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY();
  3990. }
  3991. if (!hasEventPageXY && !isMonitoringScrollValue) {
  3992. var refresh = ViewportMetrics.refreshScrollValues;
  3993. ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);
  3994. isMonitoringScrollValue = true;
  3995. }
  3996. }
  3997. });
  3998. module.exports = ReactBrowserEventEmitter;
  3999. /***/ }),
  4000. /* 33 */
  4001. /***/ (function(module, exports, __webpack_require__) {
  4002. "use strict";
  4003. /* WEBPACK VAR INJECTION */(function(process) {/**
  4004. * Copyright 2013-present, Facebook, Inc.
  4005. * All rights reserved.
  4006. *
  4007. * This source code is licensed under the BSD-style license found in the
  4008. * LICENSE file in the root directory of this source tree. An additional grant
  4009. * of patent rights can be found in the PATENTS file in the same directory.
  4010. *
  4011. */
  4012. var _prodInvariant = __webpack_require__(14);
  4013. var ReactNoopUpdateQueue = __webpack_require__(34);
  4014. var canDefineProperty = __webpack_require__(26);
  4015. var emptyObject = __webpack_require__(20);
  4016. var invariant = __webpack_require__(1);
  4017. var warning = __webpack_require__(2);
  4018. /**
  4019. * Base class helpers for the updating state of a component.
  4020. */
  4021. function ReactComponent(props, context, updater) {
  4022. this.props = props;
  4023. this.context = context;
  4024. this.refs = emptyObject;
  4025. // We initialize the default updater but the real one gets injected by the
  4026. // renderer.
  4027. this.updater = updater || ReactNoopUpdateQueue;
  4028. }
  4029. ReactComponent.prototype.isReactComponent = {};
  4030. /**
  4031. * Sets a subset of the state. Always use this to mutate
  4032. * state. You should treat `this.state` as immutable.
  4033. *
  4034. * There is no guarantee that `this.state` will be immediately updated, so
  4035. * accessing `this.state` after calling this method may return the old value.
  4036. *
  4037. * There is no guarantee that calls to `setState` will run synchronously,
  4038. * as they may eventually be batched together. You can provide an optional
  4039. * callback that will be executed when the call to setState is actually
  4040. * completed.
  4041. *
  4042. * When a function is provided to setState, it will be called at some point in
  4043. * the future (not synchronously). It will be called with the up to date
  4044. * component arguments (state, props, context). These values can be different
  4045. * from this.* because your function may be called after receiveProps but before
  4046. * shouldComponentUpdate, and this new state, props, and context will not yet be
  4047. * assigned to this.
  4048. *
  4049. * @param {object|function} partialState Next partial state or function to
  4050. * produce next partial state to be merged with current state.
  4051. * @param {?function} callback Called after state is updated.
  4052. * @final
  4053. * @protected
  4054. */
  4055. ReactComponent.prototype.setState = function (partialState, callback) {
  4056. !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
  4057. this.updater.enqueueSetState(this, partialState);
  4058. if (callback) {
  4059. this.updater.enqueueCallback(this, callback, 'setState');
  4060. }
  4061. };
  4062. /**
  4063. * Forces an update. This should only be invoked when it is known with
  4064. * certainty that we are **not** in a DOM transaction.
  4065. *
  4066. * You may want to call this when you know that some deeper aspect of the
  4067. * component's state has changed but `setState` was not called.
  4068. *
  4069. * This will not invoke `shouldComponentUpdate`, but it will invoke
  4070. * `componentWillUpdate` and `componentDidUpdate`.
  4071. *
  4072. * @param {?function} callback Called after update is complete.
  4073. * @final
  4074. * @protected
  4075. */
  4076. ReactComponent.prototype.forceUpdate = function (callback) {
  4077. this.updater.enqueueForceUpdate(this);
  4078. if (callback) {
  4079. this.updater.enqueueCallback(this, callback, 'forceUpdate');
  4080. }
  4081. };
  4082. /**
  4083. * Deprecated APIs. These APIs used to exist on classic React classes but since
  4084. * we would like to deprecate them, we're not going to move them over to this
  4085. * modern base class. Instead, we define a getter that warns if it's accessed.
  4086. */
  4087. if (process.env.NODE_ENV !== 'production') {
  4088. var deprecatedAPIs = {
  4089. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  4090. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  4091. };
  4092. var defineDeprecationWarning = function (methodName, info) {
  4093. if (canDefineProperty) {
  4094. Object.defineProperty(ReactComponent.prototype, methodName, {
  4095. get: function () {
  4096. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
  4097. return undefined;
  4098. }
  4099. });
  4100. }
  4101. };
  4102. for (var fnName in deprecatedAPIs) {
  4103. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  4104. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  4105. }
  4106. }
  4107. }
  4108. module.exports = ReactComponent;
  4109. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4110. /***/ }),
  4111. /* 34 */
  4112. /***/ (function(module, exports, __webpack_require__) {
  4113. "use strict";
  4114. /* WEBPACK VAR INJECTION */(function(process) {/**
  4115. * Copyright 2015-present, Facebook, Inc.
  4116. * All rights reserved.
  4117. *
  4118. * This source code is licensed under the BSD-style license found in the
  4119. * LICENSE file in the root directory of this source tree. An additional grant
  4120. * of patent rights can be found in the PATENTS file in the same directory.
  4121. *
  4122. */
  4123. var warning = __webpack_require__(2);
  4124. function warnNoop(publicInstance, callerName) {
  4125. if (process.env.NODE_ENV !== 'production') {
  4126. var constructor = publicInstance.constructor;
  4127. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
  4128. }
  4129. }
  4130. /**
  4131. * This is the abstract API for an update queue.
  4132. */
  4133. var ReactNoopUpdateQueue = {
  4134. /**
  4135. * Checks whether or not this composite component is mounted.
  4136. * @param {ReactClass} publicInstance The instance we want to test.
  4137. * @return {boolean} True if mounted, false otherwise.
  4138. * @protected
  4139. * @final
  4140. */
  4141. isMounted: function (publicInstance) {
  4142. return false;
  4143. },
  4144. /**
  4145. * Enqueue a callback that will be executed after all the pending updates
  4146. * have processed.
  4147. *
  4148. * @param {ReactClass} publicInstance The instance to use as `this` context.
  4149. * @param {?function} callback Called after state is updated.
  4150. * @internal
  4151. */
  4152. enqueueCallback: function (publicInstance, callback) {},
  4153. /**
  4154. * Forces an update. This should only be invoked when it is known with
  4155. * certainty that we are **not** in a DOM transaction.
  4156. *
  4157. * You may want to call this when you know that some deeper aspect of the
  4158. * component's state has changed but `setState` was not called.
  4159. *
  4160. * This will not invoke `shouldComponentUpdate`, but it will invoke
  4161. * `componentWillUpdate` and `componentDidUpdate`.
  4162. *
  4163. * @param {ReactClass} publicInstance The instance that should rerender.
  4164. * @internal
  4165. */
  4166. enqueueForceUpdate: function (publicInstance) {
  4167. warnNoop(publicInstance, 'forceUpdate');
  4168. },
  4169. /**
  4170. * Replaces all of the state. Always use this or `setState` to mutate state.
  4171. * You should treat `this.state` as immutable.
  4172. *
  4173. * There is no guarantee that `this.state` will be immediately updated, so
  4174. * accessing `this.state` after calling this method may return the old value.
  4175. *
  4176. * @param {ReactClass} publicInstance The instance that should rerender.
  4177. * @param {object} completeState Next state.
  4178. * @internal
  4179. */
  4180. enqueueReplaceState: function (publicInstance, completeState) {
  4181. warnNoop(publicInstance, 'replaceState');
  4182. },
  4183. /**
  4184. * Sets a subset of the state. This only exists because _pendingState is
  4185. * internal. This provides a merging strategy that is not available to deep
  4186. * properties which is confusing. TODO: Expose pendingState or don't use it
  4187. * during the merge.
  4188. *
  4189. * @param {ReactClass} publicInstance The instance that should rerender.
  4190. * @param {object} partialState Next partial state to be merged with state.
  4191. * @internal
  4192. */
  4193. enqueueSetState: function (publicInstance, partialState) {
  4194. warnNoop(publicInstance, 'setState');
  4195. }
  4196. };
  4197. module.exports = ReactNoopUpdateQueue;
  4198. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4199. /***/ }),
  4200. /* 35 */
  4201. /***/ (function(module, exports, __webpack_require__) {
  4202. "use strict";
  4203. /* WEBPACK VAR INJECTION */(function(process) {/**
  4204. * Copyright 2013-present, Facebook, Inc.
  4205. * All rights reserved.
  4206. *
  4207. * This source code is licensed under the BSD-style license found in the
  4208. * LICENSE file in the root directory of this source tree. An additional grant
  4209. * of patent rights can be found in the PATENTS file in the same directory.
  4210. *
  4211. */
  4212. var _prodInvariant = __webpack_require__(3);
  4213. var ReactErrorUtils = __webpack_require__(36);
  4214. var invariant = __webpack_require__(1);
  4215. var warning = __webpack_require__(2);
  4216. /**
  4217. * Injected dependencies:
  4218. */
  4219. /**
  4220. * - `ComponentTree`: [required] Module that can convert between React instances
  4221. * and actual node references.
  4222. */
  4223. var ComponentTree;
  4224. var TreeTraversal;
  4225. var injection = {
  4226. injectComponentTree: function (Injected) {
  4227. ComponentTree = Injected;
  4228. if (process.env.NODE_ENV !== 'production') {
  4229. process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  4230. }
  4231. },
  4232. injectTreeTraversal: function (Injected) {
  4233. TreeTraversal = Injected;
  4234. if (process.env.NODE_ENV !== 'production') {
  4235. process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0;
  4236. }
  4237. }
  4238. };
  4239. function isEndish(topLevelType) {
  4240. return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';
  4241. }
  4242. function isMoveish(topLevelType) {
  4243. return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';
  4244. }
  4245. function isStartish(topLevelType) {
  4246. return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';
  4247. }
  4248. var validateEventDispatches;
  4249. if (process.env.NODE_ENV !== 'production') {
  4250. validateEventDispatches = function (event) {
  4251. var dispatchListeners = event._dispatchListeners;
  4252. var dispatchInstances = event._dispatchInstances;
  4253. var listenersIsArr = Array.isArray(dispatchListeners);
  4254. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  4255. var instancesIsArr = Array.isArray(dispatchInstances);
  4256. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  4257. process.env.NODE_ENV !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;
  4258. };
  4259. }
  4260. /**
  4261. * Dispatch the event to the listener.
  4262. * @param {SyntheticEvent} event SyntheticEvent to handle
  4263. * @param {boolean} simulated If the event is simulated (changes exn behavior)
  4264. * @param {function} listener Application-level callback
  4265. * @param {*} inst Internal component instance
  4266. */
  4267. function executeDispatch(event, simulated, listener, inst) {
  4268. var type = event.type || 'unknown-event';
  4269. event.currentTarget = EventPluginUtils.getNodeFromInstance(inst);
  4270. if (simulated) {
  4271. ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event);
  4272. } else {
  4273. ReactErrorUtils.invokeGuardedCallback(type, listener, event);
  4274. }
  4275. event.currentTarget = null;
  4276. }
  4277. /**
  4278. * Standard/simple iteration through an event's collected dispatches.
  4279. */
  4280. function executeDispatchesInOrder(event, simulated) {
  4281. var dispatchListeners = event._dispatchListeners;
  4282. var dispatchInstances = event._dispatchInstances;
  4283. if (process.env.NODE_ENV !== 'production') {
  4284. validateEventDispatches(event);
  4285. }
  4286. if (Array.isArray(dispatchListeners)) {
  4287. for (var i = 0; i < dispatchListeners.length; i++) {
  4288. if (event.isPropagationStopped()) {
  4289. break;
  4290. }
  4291. // Listeners and Instances are two parallel arrays that are always in sync.
  4292. executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);
  4293. }
  4294. } else if (dispatchListeners) {
  4295. executeDispatch(event, simulated, dispatchListeners, dispatchInstances);
  4296. }
  4297. event._dispatchListeners = null;
  4298. event._dispatchInstances = null;
  4299. }
  4300. /**
  4301. * Standard/simple iteration through an event's collected dispatches, but stops
  4302. * at the first dispatch execution returning true, and returns that id.
  4303. *
  4304. * @return {?string} id of the first dispatch execution who's listener returns
  4305. * true, or null if no listener returned true.
  4306. */
  4307. function executeDispatchesInOrderStopAtTrueImpl(event) {
  4308. var dispatchListeners = event._dispatchListeners;
  4309. var dispatchInstances = event._dispatchInstances;
  4310. if (process.env.NODE_ENV !== 'production') {
  4311. validateEventDispatches(event);
  4312. }
  4313. if (Array.isArray(dispatchListeners)) {
  4314. for (var i = 0; i < dispatchListeners.length; i++) {
  4315. if (event.isPropagationStopped()) {
  4316. break;
  4317. }
  4318. // Listeners and Instances are two parallel arrays that are always in sync.
  4319. if (dispatchListeners[i](event, dispatchInstances[i])) {
  4320. return dispatchInstances[i];
  4321. }
  4322. }
  4323. } else if (dispatchListeners) {
  4324. if (dispatchListeners(event, dispatchInstances)) {
  4325. return dispatchInstances;
  4326. }
  4327. }
  4328. return null;
  4329. }
  4330. /**
  4331. * @see executeDispatchesInOrderStopAtTrueImpl
  4332. */
  4333. function executeDispatchesInOrderStopAtTrue(event) {
  4334. var ret = executeDispatchesInOrderStopAtTrueImpl(event);
  4335. event._dispatchInstances = null;
  4336. event._dispatchListeners = null;
  4337. return ret;
  4338. }
  4339. /**
  4340. * Execution of a "direct" dispatch - there must be at most one dispatch
  4341. * accumulated on the event or it is considered an error. It doesn't really make
  4342. * sense for an event with multiple dispatches (bubbled) to keep track of the
  4343. * return values at each dispatch execution, but it does tend to make sense when
  4344. * dealing with "direct" dispatches.
  4345. *
  4346. * @return {*} The return value of executing the single dispatch.
  4347. */
  4348. function executeDirectDispatch(event) {
  4349. if (process.env.NODE_ENV !== 'production') {
  4350. validateEventDispatches(event);
  4351. }
  4352. var dispatchListener = event._dispatchListeners;
  4353. var dispatchInstance = event._dispatchInstances;
  4354. !!Array.isArray(dispatchListener) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;
  4355. event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;
  4356. var res = dispatchListener ? dispatchListener(event) : null;
  4357. event.currentTarget = null;
  4358. event._dispatchListeners = null;
  4359. event._dispatchInstances = null;
  4360. return res;
  4361. }
  4362. /**
  4363. * @param {SyntheticEvent} event
  4364. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  4365. */
  4366. function hasDispatches(event) {
  4367. return !!event._dispatchListeners;
  4368. }
  4369. /**
  4370. * General utilities that are useful in creating custom Event Plugins.
  4371. */
  4372. var EventPluginUtils = {
  4373. isEndish: isEndish,
  4374. isMoveish: isMoveish,
  4375. isStartish: isStartish,
  4376. executeDirectDispatch: executeDirectDispatch,
  4377. executeDispatchesInOrder: executeDispatchesInOrder,
  4378. executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue,
  4379. hasDispatches: hasDispatches,
  4380. getInstanceFromNode: function (node) {
  4381. return ComponentTree.getInstanceFromNode(node);
  4382. },
  4383. getNodeFromInstance: function (node) {
  4384. return ComponentTree.getNodeFromInstance(node);
  4385. },
  4386. isAncestor: function (a, b) {
  4387. return TreeTraversal.isAncestor(a, b);
  4388. },
  4389. getLowestCommonAncestor: function (a, b) {
  4390. return TreeTraversal.getLowestCommonAncestor(a, b);
  4391. },
  4392. getParentInstance: function (inst) {
  4393. return TreeTraversal.getParentInstance(inst);
  4394. },
  4395. traverseTwoPhase: function (target, fn, arg) {
  4396. return TreeTraversal.traverseTwoPhase(target, fn, arg);
  4397. },
  4398. traverseEnterLeave: function (from, to, fn, argFrom, argTo) {
  4399. return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo);
  4400. },
  4401. injection: injection
  4402. };
  4403. module.exports = EventPluginUtils;
  4404. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4405. /***/ }),
  4406. /* 36 */
  4407. /***/ (function(module, exports, __webpack_require__) {
  4408. "use strict";
  4409. /* WEBPACK VAR INJECTION */(function(process) {/**
  4410. * Copyright 2013-present, Facebook, Inc.
  4411. * All rights reserved.
  4412. *
  4413. * This source code is licensed under the BSD-style license found in the
  4414. * LICENSE file in the root directory of this source tree. An additional grant
  4415. * of patent rights can be found in the PATENTS file in the same directory.
  4416. *
  4417. *
  4418. */
  4419. var caughtError = null;
  4420. /**
  4421. * Call a function while guarding against errors that happens within it.
  4422. *
  4423. * @param {String} name of the guard to use for logging or debugging
  4424. * @param {Function} func The function to invoke
  4425. * @param {*} a First argument
  4426. * @param {*} b Second argument
  4427. */
  4428. function invokeGuardedCallback(name, func, a) {
  4429. try {
  4430. func(a);
  4431. } catch (x) {
  4432. if (caughtError === null) {
  4433. caughtError = x;
  4434. }
  4435. }
  4436. }
  4437. var ReactErrorUtils = {
  4438. invokeGuardedCallback: invokeGuardedCallback,
  4439. /**
  4440. * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event
  4441. * handler are sure to be rethrown by rethrowCaughtError.
  4442. */
  4443. invokeGuardedCallbackWithCatch: invokeGuardedCallback,
  4444. /**
  4445. * During execution of guarded functions we will capture the first error which
  4446. * we will rethrow to be handled by the top level error handler.
  4447. */
  4448. rethrowCaughtError: function () {
  4449. if (caughtError) {
  4450. var error = caughtError;
  4451. caughtError = null;
  4452. throw error;
  4453. }
  4454. }
  4455. };
  4456. if (process.env.NODE_ENV !== 'production') {
  4457. /**
  4458. * To help development we can get better devtools integration by simulating a
  4459. * real browser event.
  4460. */
  4461. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  4462. var fakeNode = document.createElement('react');
  4463. ReactErrorUtils.invokeGuardedCallback = function (name, func, a) {
  4464. var boundFunc = func.bind(null, a);
  4465. var evtType = 'react-' + name;
  4466. fakeNode.addEventListener(evtType, boundFunc, false);
  4467. var evt = document.createEvent('Event');
  4468. evt.initEvent(evtType, false, false);
  4469. fakeNode.dispatchEvent(evt);
  4470. fakeNode.removeEventListener(evtType, boundFunc, false);
  4471. };
  4472. }
  4473. }
  4474. module.exports = ReactErrorUtils;
  4475. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4476. /***/ }),
  4477. /* 37 */
  4478. /***/ (function(module, exports, __webpack_require__) {
  4479. "use strict";
  4480. /**
  4481. * Copyright 2013-present, Facebook, Inc.
  4482. * All rights reserved.
  4483. *
  4484. * This source code is licensed under the BSD-style license found in the
  4485. * LICENSE file in the root directory of this source tree. An additional grant
  4486. * of patent rights can be found in the PATENTS file in the same directory.
  4487. *
  4488. */
  4489. /**
  4490. * Gets the target node from a native browser event by accounting for
  4491. * inconsistencies in browser DOM APIs.
  4492. *
  4493. * @param {object} nativeEvent Native browser event.
  4494. * @return {DOMEventTarget} Target node.
  4495. */
  4496. function getEventTarget(nativeEvent) {
  4497. var target = nativeEvent.target || nativeEvent.srcElement || window;
  4498. // Normalize SVG <use> element events #4963
  4499. if (target.correspondingUseElement) {
  4500. target = target.correspondingUseElement;
  4501. }
  4502. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  4503. // @see http://www.quirksmode.org/js/events_properties.html
  4504. return target.nodeType === 3 ? target.parentNode : target;
  4505. }
  4506. module.exports = getEventTarget;
  4507. /***/ }),
  4508. /* 38 */
  4509. /***/ (function(module, exports, __webpack_require__) {
  4510. "use strict";
  4511. /**
  4512. * Copyright 2013-present, Facebook, Inc.
  4513. * All rights reserved.
  4514. *
  4515. * This source code is licensed under the BSD-style license found in the
  4516. * LICENSE file in the root directory of this source tree. An additional grant
  4517. * of patent rights can be found in the PATENTS file in the same directory.
  4518. *
  4519. */
  4520. var ExecutionEnvironment = __webpack_require__(6);
  4521. var useHasFeature;
  4522. if (ExecutionEnvironment.canUseDOM) {
  4523. useHasFeature = document.implementation && document.implementation.hasFeature &&
  4524. // always returns true in newer browsers as per the standard.
  4525. // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
  4526. document.implementation.hasFeature('', '') !== true;
  4527. }
  4528. /**
  4529. * Checks if an event is supported in the current execution environment.
  4530. *
  4531. * NOTE: This will not work correctly for non-generic events such as `change`,
  4532. * `reset`, `load`, `error`, and `select`.
  4533. *
  4534. * Borrows from Modernizr.
  4535. *
  4536. * @param {string} eventNameSuffix Event name, e.g. "click".
  4537. * @param {?boolean} capture Check if the capture phase is supported.
  4538. * @return {boolean} True if the event is supported.
  4539. * @internal
  4540. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  4541. */
  4542. function isEventSupported(eventNameSuffix, capture) {
  4543. if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {
  4544. return false;
  4545. }
  4546. var eventName = 'on' + eventNameSuffix;
  4547. var isSupported = eventName in document;
  4548. if (!isSupported) {
  4549. var element = document.createElement('div');
  4550. element.setAttribute(eventName, 'return;');
  4551. isSupported = typeof element[eventName] === 'function';
  4552. }
  4553. if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
  4554. // This is the only way to test support for the `wheel` event in IE9+.
  4555. isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
  4556. }
  4557. return isSupported;
  4558. }
  4559. module.exports = isEventSupported;
  4560. /***/ }),
  4561. /* 39 */
  4562. /***/ (function(module, exports, __webpack_require__) {
  4563. "use strict";
  4564. /**
  4565. * Copyright 2013-present, Facebook, Inc.
  4566. * All rights reserved.
  4567. *
  4568. * This source code is licensed under the BSD-style license found in the
  4569. * LICENSE file in the root directory of this source tree. An additional grant
  4570. * of patent rights can be found in the PATENTS file in the same directory.
  4571. *
  4572. */
  4573. /**
  4574. * Translation from modifier key to the associated property in the event.
  4575. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  4576. */
  4577. var modifierKeyToProp = {
  4578. 'Alt': 'altKey',
  4579. 'Control': 'ctrlKey',
  4580. 'Meta': 'metaKey',
  4581. 'Shift': 'shiftKey'
  4582. };
  4583. // IE8 does not implement getModifierState so we simply map it to the only
  4584. // modifier keys exposed by the event itself, does not support Lock-keys.
  4585. // Currently, all major browsers except Chrome seems to support Lock-keys.
  4586. function modifierStateGetter(keyArg) {
  4587. var syntheticEvent = this;
  4588. var nativeEvent = syntheticEvent.nativeEvent;
  4589. if (nativeEvent.getModifierState) {
  4590. return nativeEvent.getModifierState(keyArg);
  4591. }
  4592. var keyProp = modifierKeyToProp[keyArg];
  4593. return keyProp ? !!nativeEvent[keyProp] : false;
  4594. }
  4595. function getEventModifierState(nativeEvent) {
  4596. return modifierStateGetter;
  4597. }
  4598. module.exports = getEventModifierState;
  4599. /***/ }),
  4600. /* 40 */
  4601. /***/ (function(module, exports, __webpack_require__) {
  4602. "use strict";
  4603. /* WEBPACK VAR INJECTION */(function(process) {/**
  4604. * Copyright 2013-present, Facebook, Inc.
  4605. * All rights reserved.
  4606. *
  4607. * This source code is licensed under the BSD-style license found in the
  4608. * LICENSE file in the root directory of this source tree. An additional grant
  4609. * of patent rights can be found in the PATENTS file in the same directory.
  4610. *
  4611. */
  4612. var DOMLazyTree = __webpack_require__(19);
  4613. var Danger = __webpack_require__(121);
  4614. var ReactDOMComponentTree = __webpack_require__(5);
  4615. var ReactInstrumentation = __webpack_require__(9);
  4616. var createMicrosoftUnsafeLocalFunction = __webpack_require__(42);
  4617. var setInnerHTML = __webpack_require__(30);
  4618. var setTextContent = __webpack_require__(64);
  4619. function getNodeAfter(parentNode, node) {
  4620. // Special case for text components, which return [open, close] comments
  4621. // from getHostNode.
  4622. if (Array.isArray(node)) {
  4623. node = node[1];
  4624. }
  4625. return node ? node.nextSibling : parentNode.firstChild;
  4626. }
  4627. /**
  4628. * Inserts `childNode` as a child of `parentNode` at the `index`.
  4629. *
  4630. * @param {DOMElement} parentNode Parent node in which to insert.
  4631. * @param {DOMElement} childNode Child node to insert.
  4632. * @param {number} index Index at which to insert the child.
  4633. * @internal
  4634. */
  4635. var insertChildAt = createMicrosoftUnsafeLocalFunction(function (parentNode, childNode, referenceNode) {
  4636. // We rely exclusively on `insertBefore(node, null)` instead of also using
  4637. // `appendChild(node)`. (Using `undefined` is not allowed by all browsers so
  4638. // we are careful to use `null`.)
  4639. parentNode.insertBefore(childNode, referenceNode);
  4640. });
  4641. function insertLazyTreeChildAt(parentNode, childTree, referenceNode) {
  4642. DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode);
  4643. }
  4644. function moveChild(parentNode, childNode, referenceNode) {
  4645. if (Array.isArray(childNode)) {
  4646. moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode);
  4647. } else {
  4648. insertChildAt(parentNode, childNode, referenceNode);
  4649. }
  4650. }
  4651. function removeChild(parentNode, childNode) {
  4652. if (Array.isArray(childNode)) {
  4653. var closingComment = childNode[1];
  4654. childNode = childNode[0];
  4655. removeDelimitedText(parentNode, childNode, closingComment);
  4656. parentNode.removeChild(closingComment);
  4657. }
  4658. parentNode.removeChild(childNode);
  4659. }
  4660. function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) {
  4661. var node = openingComment;
  4662. while (true) {
  4663. var nextNode = node.nextSibling;
  4664. insertChildAt(parentNode, node, referenceNode);
  4665. if (node === closingComment) {
  4666. break;
  4667. }
  4668. node = nextNode;
  4669. }
  4670. }
  4671. function removeDelimitedText(parentNode, startNode, closingComment) {
  4672. while (true) {
  4673. var node = startNode.nextSibling;
  4674. if (node === closingComment) {
  4675. // The closing comment is removed by ReactMultiChild.
  4676. break;
  4677. } else {
  4678. parentNode.removeChild(node);
  4679. }
  4680. }
  4681. }
  4682. function replaceDelimitedText(openingComment, closingComment, stringText) {
  4683. var parentNode = openingComment.parentNode;
  4684. var nodeAfterComment = openingComment.nextSibling;
  4685. if (nodeAfterComment === closingComment) {
  4686. // There are no text nodes between the opening and closing comments; insert
  4687. // a new one if stringText isn't empty.
  4688. if (stringText) {
  4689. insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment);
  4690. }
  4691. } else {
  4692. if (stringText) {
  4693. // Set the text content of the first node after the opening comment, and
  4694. // remove all following nodes up until the closing comment.
  4695. setTextContent(nodeAfterComment, stringText);
  4696. removeDelimitedText(parentNode, nodeAfterComment, closingComment);
  4697. } else {
  4698. removeDelimitedText(parentNode, openingComment, closingComment);
  4699. }
  4700. }
  4701. if (process.env.NODE_ENV !== 'production') {
  4702. ReactInstrumentation.debugTool.onHostOperation({
  4703. instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID,
  4704. type: 'replace text',
  4705. payload: stringText
  4706. });
  4707. }
  4708. }
  4709. var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;
  4710. if (process.env.NODE_ENV !== 'production') {
  4711. dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) {
  4712. Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup);
  4713. if (prevInstance._debugID !== 0) {
  4714. ReactInstrumentation.debugTool.onHostOperation({
  4715. instanceID: prevInstance._debugID,
  4716. type: 'replace with',
  4717. payload: markup.toString()
  4718. });
  4719. } else {
  4720. var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node);
  4721. if (nextInstance._debugID !== 0) {
  4722. ReactInstrumentation.debugTool.onHostOperation({
  4723. instanceID: nextInstance._debugID,
  4724. type: 'mount',
  4725. payload: markup.toString()
  4726. });
  4727. }
  4728. }
  4729. };
  4730. }
  4731. /**
  4732. * Operations for updating with DOM children.
  4733. */
  4734. var DOMChildrenOperations = {
  4735. dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup,
  4736. replaceDelimitedText: replaceDelimitedText,
  4737. /**
  4738. * Updates a component's children by processing a series of updates. The
  4739. * update configurations are each expected to have a `parentNode` property.
  4740. *
  4741. * @param {array<object>} updates List of update configurations.
  4742. * @internal
  4743. */
  4744. processUpdates: function (parentNode, updates) {
  4745. if (process.env.NODE_ENV !== 'production') {
  4746. var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;
  4747. }
  4748. for (var k = 0; k < updates.length; k++) {
  4749. var update = updates[k];
  4750. switch (update.type) {
  4751. case 'INSERT_MARKUP':
  4752. insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode));
  4753. if (process.env.NODE_ENV !== 'production') {
  4754. ReactInstrumentation.debugTool.onHostOperation({
  4755. instanceID: parentNodeDebugID,
  4756. type: 'insert child',
  4757. payload: { toIndex: update.toIndex, content: update.content.toString() }
  4758. });
  4759. }
  4760. break;
  4761. case 'MOVE_EXISTING':
  4762. moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode));
  4763. if (process.env.NODE_ENV !== 'production') {
  4764. ReactInstrumentation.debugTool.onHostOperation({
  4765. instanceID: parentNodeDebugID,
  4766. type: 'move child',
  4767. payload: { fromIndex: update.fromIndex, toIndex: update.toIndex }
  4768. });
  4769. }
  4770. break;
  4771. case 'SET_MARKUP':
  4772. setInnerHTML(parentNode, update.content);
  4773. if (process.env.NODE_ENV !== 'production') {
  4774. ReactInstrumentation.debugTool.onHostOperation({
  4775. instanceID: parentNodeDebugID,
  4776. type: 'replace children',
  4777. payload: update.content.toString()
  4778. });
  4779. }
  4780. break;
  4781. case 'TEXT_CONTENT':
  4782. setTextContent(parentNode, update.content);
  4783. if (process.env.NODE_ENV !== 'production') {
  4784. ReactInstrumentation.debugTool.onHostOperation({
  4785. instanceID: parentNodeDebugID,
  4786. type: 'replace text',
  4787. payload: update.content.toString()
  4788. });
  4789. }
  4790. break;
  4791. case 'REMOVE_NODE':
  4792. removeChild(parentNode, update.fromNode);
  4793. if (process.env.NODE_ENV !== 'production') {
  4794. ReactInstrumentation.debugTool.onHostOperation({
  4795. instanceID: parentNodeDebugID,
  4796. type: 'remove child',
  4797. payload: { fromIndex: update.fromIndex }
  4798. });
  4799. }
  4800. break;
  4801. }
  4802. }
  4803. }
  4804. };
  4805. module.exports = DOMChildrenOperations;
  4806. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4807. /***/ }),
  4808. /* 41 */
  4809. /***/ (function(module, exports, __webpack_require__) {
  4810. "use strict";
  4811. /**
  4812. * Copyright 2013-present, Facebook, Inc.
  4813. * All rights reserved.
  4814. *
  4815. * This source code is licensed under the BSD-style license found in the
  4816. * LICENSE file in the root directory of this source tree. An additional grant
  4817. * of patent rights can be found in the PATENTS file in the same directory.
  4818. *
  4819. */
  4820. var DOMNamespaces = {
  4821. html: 'http://www.w3.org/1999/xhtml',
  4822. mathml: 'http://www.w3.org/1998/Math/MathML',
  4823. svg: 'http://www.w3.org/2000/svg'
  4824. };
  4825. module.exports = DOMNamespaces;
  4826. /***/ }),
  4827. /* 42 */
  4828. /***/ (function(module, exports, __webpack_require__) {
  4829. "use strict";
  4830. /**
  4831. * Copyright 2013-present, Facebook, Inc.
  4832. * All rights reserved.
  4833. *
  4834. * This source code is licensed under the BSD-style license found in the
  4835. * LICENSE file in the root directory of this source tree. An additional grant
  4836. * of patent rights can be found in the PATENTS file in the same directory.
  4837. *
  4838. */
  4839. /* globals MSApp */
  4840. /**
  4841. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  4842. */
  4843. var createMicrosoftUnsafeLocalFunction = function (func) {
  4844. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  4845. return function (arg0, arg1, arg2, arg3) {
  4846. MSApp.execUnsafeLocalFunction(function () {
  4847. return func(arg0, arg1, arg2, arg3);
  4848. });
  4849. };
  4850. } else {
  4851. return func;
  4852. }
  4853. };
  4854. module.exports = createMicrosoftUnsafeLocalFunction;
  4855. /***/ }),
  4856. /* 43 */
  4857. /***/ (function(module, exports, __webpack_require__) {
  4858. "use strict";
  4859. /* WEBPACK VAR INJECTION */(function(process) {/**
  4860. * Copyright 2013-present, Facebook, Inc.
  4861. * All rights reserved.
  4862. *
  4863. * This source code is licensed under the BSD-style license found in the
  4864. * LICENSE file in the root directory of this source tree. An additional grant
  4865. * of patent rights can be found in the PATENTS file in the same directory.
  4866. *
  4867. */
  4868. var _prodInvariant = __webpack_require__(3);
  4869. var ReactPropTypesSecret = __webpack_require__(68);
  4870. var propTypesFactory = __webpack_require__(139);
  4871. var React = __webpack_require__(17);
  4872. var PropTypes = propTypesFactory(React.isValidElement);
  4873. var invariant = __webpack_require__(1);
  4874. var warning = __webpack_require__(2);
  4875. var hasReadOnlyValue = {
  4876. 'button': true,
  4877. 'checkbox': true,
  4878. 'image': true,
  4879. 'hidden': true,
  4880. 'radio': true,
  4881. 'reset': true,
  4882. 'submit': true
  4883. };
  4884. function _assertSingleLink(inputProps) {
  4885. !(inputProps.checkedLink == null || inputProps.valueLink == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don\'t want to use valueLink and vice versa.') : _prodInvariant('87') : void 0;
  4886. }
  4887. function _assertValueLink(inputProps) {
  4888. _assertSingleLink(inputProps);
  4889. !(inputProps.value == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don\'t want to use valueLink.') : _prodInvariant('88') : void 0;
  4890. }
  4891. function _assertCheckedLink(inputProps) {
  4892. _assertSingleLink(inputProps);
  4893. !(inputProps.checked == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don\'t want to use checkedLink') : _prodInvariant('89') : void 0;
  4894. }
  4895. var propTypes = {
  4896. value: function (props, propName, componentName) {
  4897. if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) {
  4898. return null;
  4899. }
  4900. 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`.');
  4901. },
  4902. checked: function (props, propName, componentName) {
  4903. if (!props[propName] || props.onChange || props.readOnly || props.disabled) {
  4904. return null;
  4905. }
  4906. 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`.');
  4907. },
  4908. onChange: PropTypes.func
  4909. };
  4910. var loggedTypeFailures = {};
  4911. function getDeclarationErrorAddendum(owner) {
  4912. if (owner) {
  4913. var name = owner.getName();
  4914. if (name) {
  4915. return ' Check the render method of `' + name + '`.';
  4916. }
  4917. }
  4918. return '';
  4919. }
  4920. /**
  4921. * Provide a linked `value` attribute for controlled forms. You should not use
  4922. * this outside of the ReactDOM controlled form components.
  4923. */
  4924. var LinkedValueUtils = {
  4925. checkPropTypes: function (tagName, props, owner) {
  4926. for (var propName in propTypes) {
  4927. if (propTypes.hasOwnProperty(propName)) {
  4928. var error = propTypes[propName](props, propName, tagName, 'prop', null, ReactPropTypesSecret);
  4929. }
  4930. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  4931. // Only monitor this failure once because there tends to be a lot of the
  4932. // same error.
  4933. loggedTypeFailures[error.message] = true;
  4934. var addendum = getDeclarationErrorAddendum(owner);
  4935. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : void 0;
  4936. }
  4937. }
  4938. },
  4939. /**
  4940. * @param {object} inputProps Props for form component
  4941. * @return {*} current value of the input either from value prop or link.
  4942. */
  4943. getValue: function (inputProps) {
  4944. if (inputProps.valueLink) {
  4945. _assertValueLink(inputProps);
  4946. return inputProps.valueLink.value;
  4947. }
  4948. return inputProps.value;
  4949. },
  4950. /**
  4951. * @param {object} inputProps Props for form component
  4952. * @return {*} current checked status of the input either from checked prop
  4953. * or link.
  4954. */
  4955. getChecked: function (inputProps) {
  4956. if (inputProps.checkedLink) {
  4957. _assertCheckedLink(inputProps);
  4958. return inputProps.checkedLink.value;
  4959. }
  4960. return inputProps.checked;
  4961. },
  4962. /**
  4963. * @param {object} inputProps Props for form component
  4964. * @param {SyntheticEvent} event change event to handle
  4965. */
  4966. executeOnChange: function (inputProps, event) {
  4967. if (inputProps.valueLink) {
  4968. _assertValueLink(inputProps);
  4969. return inputProps.valueLink.requestChange(event.target.value);
  4970. } else if (inputProps.checkedLink) {
  4971. _assertCheckedLink(inputProps);
  4972. return inputProps.checkedLink.requestChange(event.target.checked);
  4973. } else if (inputProps.onChange) {
  4974. return inputProps.onChange.call(undefined, event);
  4975. }
  4976. }
  4977. };
  4978. module.exports = LinkedValueUtils;
  4979. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  4980. /***/ }),
  4981. /* 44 */
  4982. /***/ (function(module, exports, __webpack_require__) {
  4983. "use strict";
  4984. /* WEBPACK VAR INJECTION */(function(process) {/**
  4985. * Copyright 2014-present, Facebook, Inc.
  4986. * All rights reserved.
  4987. *
  4988. * This source code is licensed under the BSD-style license found in the
  4989. * LICENSE file in the root directory of this source tree. An additional grant
  4990. * of patent rights can be found in the PATENTS file in the same directory.
  4991. *
  4992. *
  4993. */
  4994. var _prodInvariant = __webpack_require__(3);
  4995. var invariant = __webpack_require__(1);
  4996. var injected = false;
  4997. var ReactComponentEnvironment = {
  4998. /**
  4999. * Optionally injectable hook for swapping out mount images in the middle of
  5000. * the tree.
  5001. */
  5002. replaceNodeWithMarkup: null,
  5003. /**
  5004. * Optionally injectable hook for processing a queue of child updates. Will
  5005. * later move into MultiChildComponents.
  5006. */
  5007. processChildrenUpdates: null,
  5008. injection: {
  5009. injectEnvironment: function (environment) {
  5010. !!injected ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactCompositeComponent: injectEnvironment() can only be called once.') : _prodInvariant('104') : void 0;
  5011. ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup;
  5012. ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates;
  5013. injected = true;
  5014. }
  5015. }
  5016. };
  5017. module.exports = ReactComponentEnvironment;
  5018. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5019. /***/ }),
  5020. /* 45 */
  5021. /***/ (function(module, exports, __webpack_require__) {
  5022. "use strict";
  5023. /**
  5024. * Copyright (c) 2013-present, Facebook, Inc.
  5025. *
  5026. * This source code is licensed under the MIT license found in the
  5027. * LICENSE file in the root directory of this source tree.
  5028. *
  5029. * @typechecks
  5030. *
  5031. */
  5032. /*eslint-disable no-self-compare */
  5033. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5034. /**
  5035. * inlined Object.is polyfill to avoid requiring consumers ship their own
  5036. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  5037. */
  5038. function is(x, y) {
  5039. // SameValue algorithm
  5040. if (x === y) {
  5041. // Steps 1-5, 7-10
  5042. // Steps 6.b-6.e: +0 != -0
  5043. // Added the nonzero y check to make Flow happy, but it is redundant
  5044. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  5045. } else {
  5046. // Step 6.a: NaN == NaN
  5047. return x !== x && y !== y;
  5048. }
  5049. }
  5050. /**
  5051. * Performs equality by iterating through keys on an object and returning false
  5052. * when any key has values which are not strictly equal between the arguments.
  5053. * Returns true when the values of all keys are strictly equal.
  5054. */
  5055. function shallowEqual(objA, objB) {
  5056. if (is(objA, objB)) {
  5057. return true;
  5058. }
  5059. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  5060. return false;
  5061. }
  5062. var keysA = Object.keys(objA);
  5063. var keysB = Object.keys(objB);
  5064. if (keysA.length !== keysB.length) {
  5065. return false;
  5066. }
  5067. // Test for A's keys different from B.
  5068. for (var i = 0; i < keysA.length; i++) {
  5069. if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  5070. return false;
  5071. }
  5072. }
  5073. return true;
  5074. }
  5075. module.exports = shallowEqual;
  5076. /***/ }),
  5077. /* 46 */
  5078. /***/ (function(module, exports, __webpack_require__) {
  5079. "use strict";
  5080. /**
  5081. * Copyright 2013-present, Facebook, Inc.
  5082. * All rights reserved.
  5083. *
  5084. * This source code is licensed under the BSD-style license found in the
  5085. * LICENSE file in the root directory of this source tree. An additional grant
  5086. * of patent rights can be found in the PATENTS file in the same directory.
  5087. *
  5088. */
  5089. /**
  5090. * Given a `prevElement` and `nextElement`, determines if the existing
  5091. * instance should be updated as opposed to being destroyed or replaced by a new
  5092. * instance. Both arguments are elements. This ensures that this logic can
  5093. * operate on stateless trees without any backing instance.
  5094. *
  5095. * @param {?object} prevElement
  5096. * @param {?object} nextElement
  5097. * @return {boolean} True if the existing instance should be updated.
  5098. * @protected
  5099. */
  5100. function shouldUpdateReactComponent(prevElement, nextElement) {
  5101. var prevEmpty = prevElement === null || prevElement === false;
  5102. var nextEmpty = nextElement === null || nextElement === false;
  5103. if (prevEmpty || nextEmpty) {
  5104. return prevEmpty === nextEmpty;
  5105. }
  5106. var prevType = typeof prevElement;
  5107. var nextType = typeof nextElement;
  5108. if (prevType === 'string' || prevType === 'number') {
  5109. return nextType === 'string' || nextType === 'number';
  5110. } else {
  5111. return nextType === 'object' && prevElement.type === nextElement.type && prevElement.key === nextElement.key;
  5112. }
  5113. }
  5114. module.exports = shouldUpdateReactComponent;
  5115. /***/ }),
  5116. /* 47 */
  5117. /***/ (function(module, exports, __webpack_require__) {
  5118. "use strict";
  5119. /**
  5120. * Copyright 2013-present, Facebook, Inc.
  5121. * All rights reserved.
  5122. *
  5123. * This source code is licensed under the BSD-style license found in the
  5124. * LICENSE file in the root directory of this source tree. An additional grant
  5125. * of patent rights can be found in the PATENTS file in the same directory.
  5126. *
  5127. *
  5128. */
  5129. /**
  5130. * Escape and wrap key so it is safe to use as a reactid
  5131. *
  5132. * @param {string} key to be escaped.
  5133. * @return {string} the escaped key.
  5134. */
  5135. function escape(key) {
  5136. var escapeRegex = /[=:]/g;
  5137. var escaperLookup = {
  5138. '=': '=0',
  5139. ':': '=2'
  5140. };
  5141. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  5142. return escaperLookup[match];
  5143. });
  5144. return '$' + escapedString;
  5145. }
  5146. /**
  5147. * Unescape and unwrap key for human-readable display
  5148. *
  5149. * @param {string} key to unescape.
  5150. * @return {string} the unescaped key.
  5151. */
  5152. function unescape(key) {
  5153. var unescapeRegex = /(=0|=2)/g;
  5154. var unescaperLookup = {
  5155. '=0': '=',
  5156. '=2': ':'
  5157. };
  5158. var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
  5159. return ('' + keySubstring).replace(unescapeRegex, function (match) {
  5160. return unescaperLookup[match];
  5161. });
  5162. }
  5163. var KeyEscapeUtils = {
  5164. escape: escape,
  5165. unescape: unescape
  5166. };
  5167. module.exports = KeyEscapeUtils;
  5168. /***/ }),
  5169. /* 48 */
  5170. /***/ (function(module, exports, __webpack_require__) {
  5171. "use strict";
  5172. /* WEBPACK VAR INJECTION */(function(process) {/**
  5173. * Copyright 2015-present, Facebook, Inc.
  5174. * All rights reserved.
  5175. *
  5176. * This source code is licensed under the BSD-style license found in the
  5177. * LICENSE file in the root directory of this source tree. An additional grant
  5178. * of patent rights can be found in the PATENTS file in the same directory.
  5179. *
  5180. */
  5181. var _prodInvariant = __webpack_require__(3);
  5182. var ReactCurrentOwner = __webpack_require__(10);
  5183. var ReactInstanceMap = __webpack_require__(24);
  5184. var ReactInstrumentation = __webpack_require__(9);
  5185. var ReactUpdates = __webpack_require__(11);
  5186. var invariant = __webpack_require__(1);
  5187. var warning = __webpack_require__(2);
  5188. function enqueueUpdate(internalInstance) {
  5189. ReactUpdates.enqueueUpdate(internalInstance);
  5190. }
  5191. function formatUnexpectedArgument(arg) {
  5192. var type = typeof arg;
  5193. if (type !== 'object') {
  5194. return type;
  5195. }
  5196. var displayName = arg.constructor && arg.constructor.name || type;
  5197. var keys = Object.keys(arg);
  5198. if (keys.length > 0 && keys.length < 20) {
  5199. return displayName + ' (keys: ' + keys.join(', ') + ')';
  5200. }
  5201. return displayName;
  5202. }
  5203. function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
  5204. var internalInstance = ReactInstanceMap.get(publicInstance);
  5205. if (!internalInstance) {
  5206. if (process.env.NODE_ENV !== 'production') {
  5207. var ctor = publicInstance.constructor;
  5208. // Only warn when we have a callerName. Otherwise we should be silent.
  5209. // We're probably calling from enqueueCallback. We don't want to warn
  5210. // there because we already warned for the corresponding lifecycle method.
  5211. process.env.NODE_ENV !== 'production' ? warning(!callerName, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, ctor && (ctor.displayName || ctor.name) || 'ReactClass') : void 0;
  5212. }
  5213. return null;
  5214. }
  5215. if (process.env.NODE_ENV !== 'production') {
  5216. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + 'within `render` or another component\'s constructor). Render methods ' + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
  5217. }
  5218. return internalInstance;
  5219. }
  5220. /**
  5221. * ReactUpdateQueue allows for state updates to be scheduled into a later
  5222. * reconciliation step.
  5223. */
  5224. var ReactUpdateQueue = {
  5225. /**
  5226. * Checks whether or not this composite component is mounted.
  5227. * @param {ReactClass} publicInstance The instance we want to test.
  5228. * @return {boolean} True if mounted, false otherwise.
  5229. * @protected
  5230. * @final
  5231. */
  5232. isMounted: function (publicInstance) {
  5233. if (process.env.NODE_ENV !== 'production') {
  5234. var owner = ReactCurrentOwner.current;
  5235. if (owner !== null) {
  5236. process.env.NODE_ENV !== 'production' ? warning(owner._warnedAboutRefsInRender, '%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.', owner.getName() || 'A component') : void 0;
  5237. owner._warnedAboutRefsInRender = true;
  5238. }
  5239. }
  5240. var internalInstance = ReactInstanceMap.get(publicInstance);
  5241. if (internalInstance) {
  5242. // During componentWillMount and render this will still be null but after
  5243. // that will always render to something. At least for now. So we can use
  5244. // this hack.
  5245. return !!internalInstance._renderedComponent;
  5246. } else {
  5247. return false;
  5248. }
  5249. },
  5250. /**
  5251. * Enqueue a callback that will be executed after all the pending updates
  5252. * have processed.
  5253. *
  5254. * @param {ReactClass} publicInstance The instance to use as `this` context.
  5255. * @param {?function} callback Called after state is updated.
  5256. * @param {string} callerName Name of the calling function in the public API.
  5257. * @internal
  5258. */
  5259. enqueueCallback: function (publicInstance, callback, callerName) {
  5260. ReactUpdateQueue.validateCallback(callback, callerName);
  5261. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance);
  5262. // Previously we would throw an error if we didn't have an internal
  5263. // instance. Since we want to make it a no-op instead, we mirror the same
  5264. // behavior we have in other enqueue* methods.
  5265. // We also need to ignore callbacks in componentWillMount. See
  5266. // enqueueUpdates.
  5267. if (!internalInstance) {
  5268. return null;
  5269. }
  5270. if (internalInstance._pendingCallbacks) {
  5271. internalInstance._pendingCallbacks.push(callback);
  5272. } else {
  5273. internalInstance._pendingCallbacks = [callback];
  5274. }
  5275. // TODO: The callback here is ignored when setState is called from
  5276. // componentWillMount. Either fix it or disallow doing so completely in
  5277. // favor of getInitialState. Alternatively, we can disallow
  5278. // componentWillMount during server-side rendering.
  5279. enqueueUpdate(internalInstance);
  5280. },
  5281. enqueueCallbackInternal: function (internalInstance, callback) {
  5282. if (internalInstance._pendingCallbacks) {
  5283. internalInstance._pendingCallbacks.push(callback);
  5284. } else {
  5285. internalInstance._pendingCallbacks = [callback];
  5286. }
  5287. enqueueUpdate(internalInstance);
  5288. },
  5289. /**
  5290. * Forces an update. This should only be invoked when it is known with
  5291. * certainty that we are **not** in a DOM transaction.
  5292. *
  5293. * You may want to call this when you know that some deeper aspect of the
  5294. * component's state has changed but `setState` was not called.
  5295. *
  5296. * This will not invoke `shouldComponentUpdate`, but it will invoke
  5297. * `componentWillUpdate` and `componentDidUpdate`.
  5298. *
  5299. * @param {ReactClass} publicInstance The instance that should rerender.
  5300. * @internal
  5301. */
  5302. enqueueForceUpdate: function (publicInstance) {
  5303. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'forceUpdate');
  5304. if (!internalInstance) {
  5305. return;
  5306. }
  5307. internalInstance._pendingForceUpdate = true;
  5308. enqueueUpdate(internalInstance);
  5309. },
  5310. /**
  5311. * Replaces all of the state. Always use this or `setState` to mutate state.
  5312. * You should treat `this.state` as immutable.
  5313. *
  5314. * There is no guarantee that `this.state` will be immediately updated, so
  5315. * accessing `this.state` after calling this method may return the old value.
  5316. *
  5317. * @param {ReactClass} publicInstance The instance that should rerender.
  5318. * @param {object} completeState Next state.
  5319. * @internal
  5320. */
  5321. enqueueReplaceState: function (publicInstance, completeState, callback) {
  5322. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState');
  5323. if (!internalInstance) {
  5324. return;
  5325. }
  5326. internalInstance._pendingStateQueue = [completeState];
  5327. internalInstance._pendingReplaceState = true;
  5328. // Future-proof 15.5
  5329. if (callback !== undefined && callback !== null) {
  5330. ReactUpdateQueue.validateCallback(callback, 'replaceState');
  5331. if (internalInstance._pendingCallbacks) {
  5332. internalInstance._pendingCallbacks.push(callback);
  5333. } else {
  5334. internalInstance._pendingCallbacks = [callback];
  5335. }
  5336. }
  5337. enqueueUpdate(internalInstance);
  5338. },
  5339. /**
  5340. * Sets a subset of the state. This only exists because _pendingState is
  5341. * internal. This provides a merging strategy that is not available to deep
  5342. * properties which is confusing. TODO: Expose pendingState or don't use it
  5343. * during the merge.
  5344. *
  5345. * @param {ReactClass} publicInstance The instance that should rerender.
  5346. * @param {object} partialState Next partial state to be merged with state.
  5347. * @internal
  5348. */
  5349. enqueueSetState: function (publicInstance, partialState) {
  5350. if (process.env.NODE_ENV !== 'production') {
  5351. ReactInstrumentation.debugTool.onSetState();
  5352. process.env.NODE_ENV !== 'production' ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0;
  5353. }
  5354. var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setState');
  5355. if (!internalInstance) {
  5356. return;
  5357. }
  5358. var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []);
  5359. queue.push(partialState);
  5360. enqueueUpdate(internalInstance);
  5361. },
  5362. enqueueElementInternal: function (internalInstance, nextElement, nextContext) {
  5363. internalInstance._pendingElement = nextElement;
  5364. // TODO: introduce _pendingContext instead of setting it directly.
  5365. internalInstance._context = nextContext;
  5366. enqueueUpdate(internalInstance);
  5367. },
  5368. validateCallback: function (callback, callerName) {
  5369. !(!callback || typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;
  5370. }
  5371. };
  5372. module.exports = ReactUpdateQueue;
  5373. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5374. /***/ }),
  5375. /* 49 */
  5376. /***/ (function(module, exports, __webpack_require__) {
  5377. "use strict";
  5378. /* WEBPACK VAR INJECTION */(function(process) {/**
  5379. * Copyright 2015-present, Facebook, Inc.
  5380. * All rights reserved.
  5381. *
  5382. * This source code is licensed under the BSD-style license found in the
  5383. * LICENSE file in the root directory of this source tree. An additional grant
  5384. * of patent rights can be found in the PATENTS file in the same directory.
  5385. *
  5386. */
  5387. var _assign = __webpack_require__(4);
  5388. var emptyFunction = __webpack_require__(8);
  5389. var warning = __webpack_require__(2);
  5390. var validateDOMNesting = emptyFunction;
  5391. if (process.env.NODE_ENV !== 'production') {
  5392. // This validation code was written based on the HTML5 parsing spec:
  5393. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  5394. //
  5395. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  5396. // not clear what practical benefit doing so provides); instead, we warn only
  5397. // for cases where the parser will give a parse tree differing from what React
  5398. // intended. For example, <b><div></div></b> is invalid but we don't warn
  5399. // because it still parses correctly; we do warn for other cases like nested
  5400. // <p> tags where the beginning of the second element implicitly closes the
  5401. // first, causing a confusing mess.
  5402. // https://html.spec.whatwg.org/multipage/syntax.html#special
  5403. 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'];
  5404. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  5405. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  5406. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  5407. // TODO: Distinguish by namespace here -- for <title>, including it here
  5408. // errs on the side of fewer warnings
  5409. 'foreignObject', 'desc', 'title'];
  5410. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  5411. var buttonScopeTags = inScopeTags.concat(['button']);
  5412. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  5413. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  5414. var emptyAncestorInfo = {
  5415. current: null,
  5416. formTag: null,
  5417. aTagInScope: null,
  5418. buttonTagInScope: null,
  5419. nobrTagInScope: null,
  5420. pTagInButtonScope: null,
  5421. listItemTagAutoclosing: null,
  5422. dlItemTagAutoclosing: null
  5423. };
  5424. var updatedAncestorInfo = function (oldInfo, tag, instance) {
  5425. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  5426. var info = { tag: tag, instance: instance };
  5427. if (inScopeTags.indexOf(tag) !== -1) {
  5428. ancestorInfo.aTagInScope = null;
  5429. ancestorInfo.buttonTagInScope = null;
  5430. ancestorInfo.nobrTagInScope = null;
  5431. }
  5432. if (buttonScopeTags.indexOf(tag) !== -1) {
  5433. ancestorInfo.pTagInButtonScope = null;
  5434. }
  5435. // See rules for 'li', 'dd', 'dt' start tags in
  5436. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  5437. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  5438. ancestorInfo.listItemTagAutoclosing = null;
  5439. ancestorInfo.dlItemTagAutoclosing = null;
  5440. }
  5441. ancestorInfo.current = info;
  5442. if (tag === 'form') {
  5443. ancestorInfo.formTag = info;
  5444. }
  5445. if (tag === 'a') {
  5446. ancestorInfo.aTagInScope = info;
  5447. }
  5448. if (tag === 'button') {
  5449. ancestorInfo.buttonTagInScope = info;
  5450. }
  5451. if (tag === 'nobr') {
  5452. ancestorInfo.nobrTagInScope = info;
  5453. }
  5454. if (tag === 'p') {
  5455. ancestorInfo.pTagInButtonScope = info;
  5456. }
  5457. if (tag === 'li') {
  5458. ancestorInfo.listItemTagAutoclosing = info;
  5459. }
  5460. if (tag === 'dd' || tag === 'dt') {
  5461. ancestorInfo.dlItemTagAutoclosing = info;
  5462. }
  5463. return ancestorInfo;
  5464. };
  5465. /**
  5466. * Returns whether
  5467. */
  5468. var isTagValidWithParent = function (tag, parentTag) {
  5469. // First, let's check if we're in an unusual parsing mode...
  5470. switch (parentTag) {
  5471. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  5472. case 'select':
  5473. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  5474. case 'optgroup':
  5475. return tag === 'option' || tag === '#text';
  5476. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  5477. // but
  5478. case 'option':
  5479. return tag === '#text';
  5480. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  5481. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  5482. // No special behavior since these rules fall back to "in body" mode for
  5483. // all except special table nodes which cause bad parsing behavior anyway.
  5484. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  5485. case 'tr':
  5486. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  5487. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  5488. case 'tbody':
  5489. case 'thead':
  5490. case 'tfoot':
  5491. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  5492. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  5493. case 'colgroup':
  5494. return tag === 'col' || tag === 'template';
  5495. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  5496. case 'table':
  5497. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  5498. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  5499. case 'head':
  5500. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  5501. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  5502. case 'html':
  5503. return tag === 'head' || tag === 'body';
  5504. case '#document':
  5505. return tag === 'html';
  5506. }
  5507. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  5508. // where the parsing rules cause implicit opens or closes to be added.
  5509. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  5510. switch (tag) {
  5511. case 'h1':
  5512. case 'h2':
  5513. case 'h3':
  5514. case 'h4':
  5515. case 'h5':
  5516. case 'h6':
  5517. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  5518. case 'rp':
  5519. case 'rt':
  5520. return impliedEndTags.indexOf(parentTag) === -1;
  5521. case 'body':
  5522. case 'caption':
  5523. case 'col':
  5524. case 'colgroup':
  5525. case 'frame':
  5526. case 'head':
  5527. case 'html':
  5528. case 'tbody':
  5529. case 'td':
  5530. case 'tfoot':
  5531. case 'th':
  5532. case 'thead':
  5533. case 'tr':
  5534. // These tags are only valid with a few parents that have special child
  5535. // parsing rules -- if we're down here, then none of those matched and
  5536. // so we allow it only if we don't know what the parent is, as all other
  5537. // cases are invalid.
  5538. return parentTag == null;
  5539. }
  5540. return true;
  5541. };
  5542. /**
  5543. * Returns whether
  5544. */
  5545. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  5546. switch (tag) {
  5547. case 'address':
  5548. case 'article':
  5549. case 'aside':
  5550. case 'blockquote':
  5551. case 'center':
  5552. case 'details':
  5553. case 'dialog':
  5554. case 'dir':
  5555. case 'div':
  5556. case 'dl':
  5557. case 'fieldset':
  5558. case 'figcaption':
  5559. case 'figure':
  5560. case 'footer':
  5561. case 'header':
  5562. case 'hgroup':
  5563. case 'main':
  5564. case 'menu':
  5565. case 'nav':
  5566. case 'ol':
  5567. case 'p':
  5568. case 'section':
  5569. case 'summary':
  5570. case 'ul':
  5571. case 'pre':
  5572. case 'listing':
  5573. case 'table':
  5574. case 'hr':
  5575. case 'xmp':
  5576. case 'h1':
  5577. case 'h2':
  5578. case 'h3':
  5579. case 'h4':
  5580. case 'h5':
  5581. case 'h6':
  5582. return ancestorInfo.pTagInButtonScope;
  5583. case 'form':
  5584. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  5585. case 'li':
  5586. return ancestorInfo.listItemTagAutoclosing;
  5587. case 'dd':
  5588. case 'dt':
  5589. return ancestorInfo.dlItemTagAutoclosing;
  5590. case 'button':
  5591. return ancestorInfo.buttonTagInScope;
  5592. case 'a':
  5593. // Spec says something about storing a list of markers, but it sounds
  5594. // equivalent to this check.
  5595. return ancestorInfo.aTagInScope;
  5596. case 'nobr':
  5597. return ancestorInfo.nobrTagInScope;
  5598. }
  5599. return null;
  5600. };
  5601. /**
  5602. * Given a ReactCompositeComponent instance, return a list of its recursive
  5603. * owners, starting at the root and ending with the instance itself.
  5604. */
  5605. var findOwnerStack = function (instance) {
  5606. if (!instance) {
  5607. return [];
  5608. }
  5609. var stack = [];
  5610. do {
  5611. stack.push(instance);
  5612. } while (instance = instance._currentElement._owner);
  5613. stack.reverse();
  5614. return stack;
  5615. };
  5616. var didWarn = {};
  5617. validateDOMNesting = function (childTag, childText, childInstance, ancestorInfo) {
  5618. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  5619. var parentInfo = ancestorInfo.current;
  5620. var parentTag = parentInfo && parentInfo.tag;
  5621. if (childText != null) {
  5622. process.env.NODE_ENV !== 'production' ? warning(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  5623. childTag = '#text';
  5624. }
  5625. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  5626. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  5627. var problematic = invalidParent || invalidAncestor;
  5628. if (problematic) {
  5629. var ancestorTag = problematic.tag;
  5630. var ancestorInstance = problematic.instance;
  5631. var childOwner = childInstance && childInstance._currentElement._owner;
  5632. var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner;
  5633. var childOwners = findOwnerStack(childOwner);
  5634. var ancestorOwners = findOwnerStack(ancestorOwner);
  5635. var minStackLen = Math.min(childOwners.length, ancestorOwners.length);
  5636. var i;
  5637. var deepestCommon = -1;
  5638. for (i = 0; i < minStackLen; i++) {
  5639. if (childOwners[i] === ancestorOwners[i]) {
  5640. deepestCommon = i;
  5641. } else {
  5642. break;
  5643. }
  5644. }
  5645. var UNKNOWN = '(unknown)';
  5646. var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) {
  5647. return inst.getName() || UNKNOWN;
  5648. });
  5649. var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) {
  5650. return inst.getName() || UNKNOWN;
  5651. });
  5652. var ownerInfo = [].concat(
  5653. // If the parent and child instances have a common owner ancestor, start
  5654. // with that -- otherwise we just start with the parent's owners.
  5655. deepestCommon !== -1 ? childOwners[deepestCommon].getName() || UNKNOWN : [], ancestorOwnerNames, ancestorTag,
  5656. // If we're warning about an invalid (non-parent) ancestry, add '...'
  5657. invalidAncestor ? ['...'] : [], childOwnerNames, childTag).join(' > ');
  5658. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + ownerInfo;
  5659. if (didWarn[warnKey]) {
  5660. return;
  5661. }
  5662. didWarn[warnKey] = true;
  5663. var tagDisplayName = childTag;
  5664. var whitespaceInfo = '';
  5665. if (childTag === '#text') {
  5666. if (/\S/.test(childText)) {
  5667. tagDisplayName = 'Text nodes';
  5668. } else {
  5669. tagDisplayName = 'Whitespace text nodes';
  5670. whitespaceInfo = ' Make sure you don\'t have any extra whitespace between tags on ' + 'each line of your source code.';
  5671. }
  5672. } else {
  5673. tagDisplayName = '<' + childTag + '>';
  5674. }
  5675. if (invalidParent) {
  5676. var info = '';
  5677. if (ancestorTag === 'table' && childTag === 'tr') {
  5678. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  5679. }
  5680. process.env.NODE_ENV !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s ' + 'See %s.%s', tagDisplayName, ancestorTag, whitespaceInfo, ownerInfo, info) : void 0;
  5681. } else {
  5682. process.env.NODE_ENV !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>. See %s.', tagDisplayName, ancestorTag, ownerInfo) : void 0;
  5683. }
  5684. }
  5685. };
  5686. validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo;
  5687. // For testing
  5688. validateDOMNesting.isTagValidInContext = function (tag, ancestorInfo) {
  5689. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  5690. var parentInfo = ancestorInfo.current;
  5691. var parentTag = parentInfo && parentInfo.tag;
  5692. return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo);
  5693. };
  5694. }
  5695. module.exports = validateDOMNesting;
  5696. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5697. /***/ }),
  5698. /* 50 */
  5699. /***/ (function(module, exports, __webpack_require__) {
  5700. "use strict";
  5701. /**
  5702. * Copyright 2013-present, Facebook, Inc.
  5703. * All rights reserved.
  5704. *
  5705. * This source code is licensed under the BSD-style license found in the
  5706. * LICENSE file in the root directory of this source tree. An additional grant
  5707. * of patent rights can be found in the PATENTS file in the same directory.
  5708. *
  5709. */
  5710. /**
  5711. * `charCode` represents the actual "character code" and is safe to use with
  5712. * `String.fromCharCode`. As such, only keys that correspond to printable
  5713. * characters produce a valid `charCode`, the only exception to this is Enter.
  5714. * The Tab-key is considered non-printable and does not have a `charCode`,
  5715. * presumably because it does not produce a tab-character in browsers.
  5716. *
  5717. * @param {object} nativeEvent Native browser event.
  5718. * @return {number} Normalized `charCode` property.
  5719. */
  5720. function getEventCharCode(nativeEvent) {
  5721. var charCode;
  5722. var keyCode = nativeEvent.keyCode;
  5723. if ('charCode' in nativeEvent) {
  5724. charCode = nativeEvent.charCode;
  5725. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  5726. if (charCode === 0 && keyCode === 13) {
  5727. charCode = 13;
  5728. }
  5729. } else {
  5730. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  5731. charCode = keyCode;
  5732. }
  5733. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  5734. // Must not discard the (non-)printable Enter-key.
  5735. if (charCode >= 32 || charCode === 13) {
  5736. return charCode;
  5737. }
  5738. return 0;
  5739. }
  5740. module.exports = getEventCharCode;
  5741. /***/ }),
  5742. /* 51 */
  5743. /***/ (function(module, exports, __webpack_require__) {
  5744. "use strict";
  5745. /**
  5746. * Copyright 2014-present, Facebook, Inc.
  5747. * All rights reserved.
  5748. *
  5749. * This source code is licensed under the BSD-style license found in the
  5750. * LICENSE file in the root directory of this source tree. An additional grant
  5751. * of patent rights can be found in the PATENTS file in the same directory.
  5752. *
  5753. *
  5754. */
  5755. // The Symbol used to tag the ReactElement type. If there is no native Symbol
  5756. // nor polyfill, then a plain number is used for performance.
  5757. var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
  5758. module.exports = REACT_ELEMENT_TYPE;
  5759. /***/ }),
  5760. /* 52 */
  5761. /***/ (function(module, exports, __webpack_require__) {
  5762. "use strict";
  5763. /**
  5764. * Copyright 2013-present, Facebook, Inc.
  5765. * All rights reserved.
  5766. *
  5767. * This source code is licensed under the BSD-style license found in the
  5768. * LICENSE file in the root directory of this source tree. An additional grant
  5769. * of patent rights can be found in the PATENTS file in the same directory.
  5770. *
  5771. *
  5772. */
  5773. /* global Symbol */
  5774. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  5775. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  5776. /**
  5777. * Returns the iterator method function contained on the iterable object.
  5778. *
  5779. * Be sure to invoke the function with the iterable as context:
  5780. *
  5781. * var iteratorFn = getIteratorFn(myIterable);
  5782. * if (iteratorFn) {
  5783. * var iterator = iteratorFn.call(myIterable);
  5784. * ...
  5785. * }
  5786. *
  5787. * @param {?object} maybeIterable
  5788. * @return {?function}
  5789. */
  5790. function getIteratorFn(maybeIterable) {
  5791. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  5792. if (typeof iteratorFn === 'function') {
  5793. return iteratorFn;
  5794. }
  5795. }
  5796. module.exports = getIteratorFn;
  5797. /***/ }),
  5798. /* 53 */
  5799. /***/ (function(module, exports, __webpack_require__) {
  5800. "use strict";
  5801. /* WEBPACK VAR INJECTION */(function(process) {/**
  5802. * Copyright 2013-present, Facebook, Inc.
  5803. * All rights reserved.
  5804. *
  5805. * This source code is licensed under the BSD-style license found in the
  5806. * LICENSE file in the root directory of this source tree. An additional grant
  5807. * of patent rights can be found in the PATENTS file in the same directory.
  5808. *
  5809. *
  5810. */
  5811. var ReactPropTypeLocationNames = {};
  5812. if (process.env.NODE_ENV !== 'production') {
  5813. ReactPropTypeLocationNames = {
  5814. prop: 'prop',
  5815. context: 'context',
  5816. childContext: 'child context'
  5817. };
  5818. }
  5819. module.exports = ReactPropTypeLocationNames;
  5820. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  5821. /***/ }),
  5822. /* 54 */
  5823. /***/ (function(module, exports, __webpack_require__) {
  5824. "use strict";
  5825. /* WEBPACK VAR INJECTION */(function(process) {/**
  5826. * Copyright 2014-present, Facebook, Inc.
  5827. * All rights reserved.
  5828. *
  5829. * This source code is licensed under the BSD-style license found in the
  5830. * LICENSE file in the root directory of this source tree. An additional grant
  5831. * of patent rights can be found in the PATENTS file in the same directory.
  5832. *
  5833. */
  5834. /**
  5835. * ReactElementValidator provides a wrapper around a element factory
  5836. * which validates the props passed to the element. This is intended to be
  5837. * used only in DEV and could be replaced by a static type checker for languages
  5838. * that support it.
  5839. */
  5840. var ReactCurrentOwner = __webpack_require__(10);
  5841. var ReactComponentTreeHook = __webpack_require__(7);
  5842. var ReactElement = __webpack_require__(15);
  5843. var checkReactTypeSpec = __webpack_require__(93);
  5844. var canDefineProperty = __webpack_require__(26);
  5845. var getIteratorFn = __webpack_require__(52);
  5846. var warning = __webpack_require__(2);
  5847. function getDeclarationErrorAddendum() {
  5848. if (ReactCurrentOwner.current) {
  5849. var name = ReactCurrentOwner.current.getName();
  5850. if (name) {
  5851. return ' Check the render method of `' + name + '`.';
  5852. }
  5853. }
  5854. return '';
  5855. }
  5856. function getSourceInfoErrorAddendum(elementProps) {
  5857. if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  5858. var source = elementProps.__source;
  5859. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  5860. var lineNumber = source.lineNumber;
  5861. return ' Check your code at ' + fileName + ':' + lineNumber + '.';
  5862. }
  5863. return '';
  5864. }
  5865. /**
  5866. * Warn if there's no key explicitly set on dynamic arrays of children or
  5867. * object keys are not valid. This allows us to keep track of children between
  5868. * updates.
  5869. */
  5870. var ownerHasKeyUseWarning = {};
  5871. function getCurrentComponentErrorInfo(parentType) {
  5872. var info = getDeclarationErrorAddendum();
  5873. if (!info) {
  5874. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  5875. if (parentName) {
  5876. info = ' Check the top-level render call using <' + parentName + '>.';
  5877. }
  5878. }
  5879. return info;
  5880. }
  5881. /**
  5882. * Warn if the element doesn't have an explicit key assigned to it.
  5883. * This element is in an array. The array could grow and shrink or be
  5884. * reordered. All children that haven't already been validated are required to
  5885. * have a "key" property assigned to it. Error statuses are cached so a warning
  5886. * will only be shown once.
  5887. *
  5888. * @internal
  5889. * @param {ReactElement} element Element that requires a key.
  5890. * @param {*} parentType element's parent's type.
  5891. */
  5892. function validateExplicitKey(element, parentType) {
  5893. if (!element._store || element._store.validated || element.key != null) {
  5894. return;
  5895. }
  5896. element._store.validated = true;
  5897. var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});
  5898. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  5899. if (memoizer[currentComponentErrorInfo]) {
  5900. return;
  5901. }
  5902. memoizer[currentComponentErrorInfo] = true;
  5903. // Usually the current owner is the offender, but if it accepts children as a
  5904. // property, it may be the creator of the child that's responsible for
  5905. // assigning it a key.
  5906. var childOwner = '';
  5907. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  5908. // Give the component that originally created this child.
  5909. childOwner = ' It was passed a child from ' + element._owner.getName() + '.';
  5910. }
  5911. process.env.NODE_ENV !== 'production' ? warning(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.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
  5912. }
  5913. /**
  5914. * Ensure that every element either is passed in a static location, in an
  5915. * array with an explicit keys property defined, or in an object literal
  5916. * with valid key property.
  5917. *
  5918. * @internal
  5919. * @param {ReactNode} node Statically passed child of any type.
  5920. * @param {*} parentType node's parent's type.
  5921. */
  5922. function validateChildKeys(node, parentType) {
  5923. if (typeof node !== 'object') {
  5924. return;
  5925. }
  5926. if (Array.isArray(node)) {
  5927. for (var i = 0; i < node.length; i++) {
  5928. var child = node[i];
  5929. if (ReactElement.isValidElement(child)) {
  5930. validateExplicitKey(child, parentType);
  5931. }
  5932. }
  5933. } else if (ReactElement.isValidElement(node)) {
  5934. // This element was passed in a valid location.
  5935. if (node._store) {
  5936. node._store.validated = true;
  5937. }
  5938. } else if (node) {
  5939. var iteratorFn = getIteratorFn(node);
  5940. // Entry iterators provide implicit keys.
  5941. if (iteratorFn) {
  5942. if (iteratorFn !== node.entries) {
  5943. var iterator = iteratorFn.call(node);
  5944. var step;
  5945. while (!(step = iterator.next()).done) {
  5946. if (ReactElement.isValidElement(step.value)) {
  5947. validateExplicitKey(step.value, parentType);
  5948. }
  5949. }
  5950. }
  5951. }
  5952. }
  5953. }
  5954. /**
  5955. * Given an element, validate that its props follow the propTypes definition,
  5956. * provided by the type.
  5957. *
  5958. * @param {ReactElement} element
  5959. */
  5960. function validatePropTypes(element) {
  5961. var componentClass = element.type;
  5962. if (typeof componentClass !== 'function') {
  5963. return;
  5964. }
  5965. var name = componentClass.displayName || componentClass.name;
  5966. if (componentClass.propTypes) {
  5967. checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
  5968. }
  5969. if (typeof componentClass.getDefaultProps === 'function') {
  5970. process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  5971. }
  5972. }
  5973. var ReactElementValidator = {
  5974. createElement: function (type, props, children) {
  5975. var validType = typeof type === 'string' || typeof type === 'function';
  5976. // We warn in this case but don't throw. We expect the element creation to
  5977. // succeed and there will likely be errors in render.
  5978. if (!validType) {
  5979. if (typeof type !== 'function' && typeof type !== 'string') {
  5980. var info = '';
  5981. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  5982. info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
  5983. }
  5984. var sourceInfo = getSourceInfoErrorAddendum(props);
  5985. if (sourceInfo) {
  5986. info += sourceInfo;
  5987. } else {
  5988. info += getDeclarationErrorAddendum();
  5989. }
  5990. info += ReactComponentTreeHook.getCurrentStackAddendum();
  5991. process.env.NODE_ENV !== 'production' ? warning(false, 'React.createElement: 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) : void 0;
  5992. }
  5993. }
  5994. var element = ReactElement.createElement.apply(this, arguments);
  5995. // The result can be nullish if a mock or a custom function is used.
  5996. // TODO: Drop this when these are no longer allowed as the type argument.
  5997. if (element == null) {
  5998. return element;
  5999. }
  6000. // Skip key warning if the type isn't valid since our key validation logic
  6001. // doesn't expect a non-string/function type and can throw confusing errors.
  6002. // We don't want exception behavior to differ between dev and prod.
  6003. // (Rendering will throw with a helpful message and as soon as the type is
  6004. // fixed, the key warnings will appear.)
  6005. if (validType) {
  6006. for (var i = 2; i < arguments.length; i++) {
  6007. validateChildKeys(arguments[i], type);
  6008. }
  6009. }
  6010. validatePropTypes(element);
  6011. return element;
  6012. },
  6013. createFactory: function (type) {
  6014. var validatedFactory = ReactElementValidator.createElement.bind(null, type);
  6015. // Legacy hook TODO: Warn if this is accessed
  6016. validatedFactory.type = type;
  6017. if (process.env.NODE_ENV !== 'production') {
  6018. if (canDefineProperty) {
  6019. Object.defineProperty(validatedFactory, 'type', {
  6020. enumerable: false,
  6021. get: function () {
  6022. process.env.NODE_ENV !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;
  6023. Object.defineProperty(this, 'type', {
  6024. value: type
  6025. });
  6026. return type;
  6027. }
  6028. });
  6029. }
  6030. }
  6031. return validatedFactory;
  6032. },
  6033. cloneElement: function (element, props, children) {
  6034. var newElement = ReactElement.cloneElement.apply(this, arguments);
  6035. for (var i = 2; i < arguments.length; i++) {
  6036. validateChildKeys(arguments[i], newElement.type);
  6037. }
  6038. validatePropTypes(newElement);
  6039. return newElement;
  6040. }
  6041. };
  6042. module.exports = ReactElementValidator;
  6043. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6044. /***/ }),
  6045. /* 55 */
  6046. /***/ (function(module, exports, __webpack_require__) {
  6047. "use strict";
  6048. /**
  6049. * Copyright (c) 2013-present, Facebook, Inc.
  6050. *
  6051. * This source code is licensed under the MIT license found in the
  6052. * LICENSE file in the root directory of this source tree.
  6053. */
  6054. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6055. module.exports = ReactPropTypesSecret;
  6056. /***/ }),
  6057. /* 56 */
  6058. /***/ (function(module, exports, __webpack_require__) {
  6059. "use strict";
  6060. /**
  6061. * Copyright 2015-present, Facebook, Inc.
  6062. * All rights reserved.
  6063. *
  6064. * This source code is licensed under the BSD-style license found in the
  6065. * LICENSE file in the root directory of this source tree. An additional grant
  6066. * of patent rights can be found in the PATENTS file in the same directory.
  6067. *
  6068. */
  6069. var ReactDOMComponentFlags = {
  6070. hasCachedChildNodes: 1 << 0
  6071. };
  6072. module.exports = ReactDOMComponentFlags;
  6073. /***/ }),
  6074. /* 57 */
  6075. /***/ (function(module, exports, __webpack_require__) {
  6076. "use strict";
  6077. /* WEBPACK VAR INJECTION */(function(process) {/**
  6078. * Copyright 2014-present, Facebook, Inc.
  6079. * All rights reserved.
  6080. *
  6081. * This source code is licensed under the BSD-style license found in the
  6082. * LICENSE file in the root directory of this source tree. An additional grant
  6083. * of patent rights can be found in the PATENTS file in the same directory.
  6084. *
  6085. *
  6086. */
  6087. var _prodInvariant = __webpack_require__(3);
  6088. var invariant = __webpack_require__(1);
  6089. /**
  6090. * Accumulates items that must not be null or undefined into the first one. This
  6091. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  6092. * API cleanness. Since `current` can be null before being passed in and not
  6093. * null after this function, make sure to assign it back to `current`:
  6094. *
  6095. * `a = accumulateInto(a, b);`
  6096. *
  6097. * This API should be sparingly used. Try `accumulate` for something cleaner.
  6098. *
  6099. * @return {*|array<*>} An accumulation of items.
  6100. */
  6101. function accumulateInto(current, next) {
  6102. !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;
  6103. if (current == null) {
  6104. return next;
  6105. }
  6106. // Both are not empty. Warning: Never call x.concat(y) when you are not
  6107. // certain that x is an Array (x could be a string with concat method).
  6108. if (Array.isArray(current)) {
  6109. if (Array.isArray(next)) {
  6110. current.push.apply(current, next);
  6111. return current;
  6112. }
  6113. current.push(next);
  6114. return current;
  6115. }
  6116. if (Array.isArray(next)) {
  6117. // A bit too dangerous to mutate `next`.
  6118. return [current].concat(next);
  6119. }
  6120. return [current, next];
  6121. }
  6122. module.exports = accumulateInto;
  6123. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6124. /***/ }),
  6125. /* 58 */
  6126. /***/ (function(module, exports, __webpack_require__) {
  6127. "use strict";
  6128. /**
  6129. * Copyright 2013-present, Facebook, Inc.
  6130. * All rights reserved.
  6131. *
  6132. * This source code is licensed under the BSD-style license found in the
  6133. * LICENSE file in the root directory of this source tree. An additional grant
  6134. * of patent rights can be found in the PATENTS file in the same directory.
  6135. *
  6136. *
  6137. */
  6138. /**
  6139. * @param {array} arr an "accumulation" of items which is either an Array or
  6140. * a single item. Useful when paired with the `accumulate` module. This is a
  6141. * simple utility that allows us to reason about a collection of items, but
  6142. * handling the case when there is exactly one item (and we do not need to
  6143. * allocate an array).
  6144. */
  6145. function forEachAccumulated(arr, cb, scope) {
  6146. if (Array.isArray(arr)) {
  6147. arr.forEach(cb, scope);
  6148. } else if (arr) {
  6149. cb.call(scope, arr);
  6150. }
  6151. }
  6152. module.exports = forEachAccumulated;
  6153. /***/ }),
  6154. /* 59 */
  6155. /***/ (function(module, exports, __webpack_require__) {
  6156. "use strict";
  6157. /**
  6158. * Copyright 2013-present, Facebook, Inc.
  6159. * All rights reserved.
  6160. *
  6161. * This source code is licensed under the BSD-style license found in the
  6162. * LICENSE file in the root directory of this source tree. An additional grant
  6163. * of patent rights can be found in the PATENTS file in the same directory.
  6164. *
  6165. */
  6166. var ExecutionEnvironment = __webpack_require__(6);
  6167. var contentKey = null;
  6168. /**
  6169. * Gets the key used to access text content on a DOM node.
  6170. *
  6171. * @return {?string} Key used to access text content.
  6172. * @internal
  6173. */
  6174. function getTextContentAccessor() {
  6175. if (!contentKey && ExecutionEnvironment.canUseDOM) {
  6176. // Prefer textContent to innerText because many browsers support both but
  6177. // SVG <text> elements don't support innerText even when <div> does.
  6178. contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';
  6179. }
  6180. return contentKey;
  6181. }
  6182. module.exports = getTextContentAccessor;
  6183. /***/ }),
  6184. /* 60 */
  6185. /***/ (function(module, exports, __webpack_require__) {
  6186. "use strict";
  6187. /* WEBPACK VAR INJECTION */(function(process) {/**
  6188. * Copyright 2013-present, Facebook, Inc.
  6189. * All rights reserved.
  6190. *
  6191. * This source code is licensed under the BSD-style license found in the
  6192. * LICENSE file in the root directory of this source tree. An additional grant
  6193. * of patent rights can be found in the PATENTS file in the same directory.
  6194. *
  6195. *
  6196. */
  6197. var _prodInvariant = __webpack_require__(3);
  6198. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6199. var PooledClass = __webpack_require__(16);
  6200. var invariant = __webpack_require__(1);
  6201. /**
  6202. * A specialized pseudo-event module to help keep track of components waiting to
  6203. * be notified when their DOM representations are available for use.
  6204. *
  6205. * This implements `PooledClass`, so you should never need to instantiate this.
  6206. * Instead, use `CallbackQueue.getPooled()`.
  6207. *
  6208. * @class ReactMountReady
  6209. * @implements PooledClass
  6210. * @internal
  6211. */
  6212. var CallbackQueue = function () {
  6213. function CallbackQueue(arg) {
  6214. _classCallCheck(this, CallbackQueue);
  6215. this._callbacks = null;
  6216. this._contexts = null;
  6217. this._arg = arg;
  6218. }
  6219. /**
  6220. * Enqueues a callback to be invoked when `notifyAll` is invoked.
  6221. *
  6222. * @param {function} callback Invoked when `notifyAll` is invoked.
  6223. * @param {?object} context Context to call `callback` with.
  6224. * @internal
  6225. */
  6226. CallbackQueue.prototype.enqueue = function enqueue(callback, context) {
  6227. this._callbacks = this._callbacks || [];
  6228. this._callbacks.push(callback);
  6229. this._contexts = this._contexts || [];
  6230. this._contexts.push(context);
  6231. };
  6232. /**
  6233. * Invokes all enqueued callbacks and clears the queue. This is invoked after
  6234. * the DOM representation of a component has been created or updated.
  6235. *
  6236. * @internal
  6237. */
  6238. CallbackQueue.prototype.notifyAll = function notifyAll() {
  6239. var callbacks = this._callbacks;
  6240. var contexts = this._contexts;
  6241. var arg = this._arg;
  6242. if (callbacks && contexts) {
  6243. !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;
  6244. this._callbacks = null;
  6245. this._contexts = null;
  6246. for (var i = 0; i < callbacks.length; i++) {
  6247. callbacks[i].call(contexts[i], arg);
  6248. }
  6249. callbacks.length = 0;
  6250. contexts.length = 0;
  6251. }
  6252. };
  6253. CallbackQueue.prototype.checkpoint = function checkpoint() {
  6254. return this._callbacks ? this._callbacks.length : 0;
  6255. };
  6256. CallbackQueue.prototype.rollback = function rollback(len) {
  6257. if (this._callbacks && this._contexts) {
  6258. this._callbacks.length = len;
  6259. this._contexts.length = len;
  6260. }
  6261. };
  6262. /**
  6263. * Resets the internal queue.
  6264. *
  6265. * @internal
  6266. */
  6267. CallbackQueue.prototype.reset = function reset() {
  6268. this._callbacks = null;
  6269. this._contexts = null;
  6270. };
  6271. /**
  6272. * `PooledClass` looks for this.
  6273. */
  6274. CallbackQueue.prototype.destructor = function destructor() {
  6275. this.reset();
  6276. };
  6277. return CallbackQueue;
  6278. }();
  6279. module.exports = PooledClass.addPoolingTo(CallbackQueue);
  6280. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6281. /***/ }),
  6282. /* 61 */
  6283. /***/ (function(module, exports, __webpack_require__) {
  6284. "use strict";
  6285. /**
  6286. * Copyright 2013-present, Facebook, Inc.
  6287. * All rights reserved.
  6288. *
  6289. * This source code is licensed under the BSD-style license found in the
  6290. * LICENSE file in the root directory of this source tree. An additional grant
  6291. * of patent rights can be found in the PATENTS file in the same directory.
  6292. *
  6293. *
  6294. */
  6295. var ReactFeatureFlags = {
  6296. // When true, call console.time() before and .timeEnd() after each top-level
  6297. // render (both initial renders and updates). Useful when looking at prod-mode
  6298. // timeline profiles in Chrome, for example.
  6299. logTopLevelRenders: false
  6300. };
  6301. module.exports = ReactFeatureFlags;
  6302. /***/ }),
  6303. /* 62 */
  6304. /***/ (function(module, exports, __webpack_require__) {
  6305. "use strict";
  6306. /**
  6307. * Copyright 2013-present, Facebook, Inc.
  6308. * All rights reserved.
  6309. *
  6310. * This source code is licensed under the BSD-style license found in the
  6311. * LICENSE file in the root directory of this source tree. An additional grant
  6312. * of patent rights can be found in the PATENTS file in the same directory.
  6313. *
  6314. *
  6315. */
  6316. /**
  6317. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  6318. */
  6319. var supportedInputTypes = {
  6320. 'color': true,
  6321. 'date': true,
  6322. 'datetime': true,
  6323. 'datetime-local': true,
  6324. 'email': true,
  6325. 'month': true,
  6326. 'number': true,
  6327. 'password': true,
  6328. 'range': true,
  6329. 'search': true,
  6330. 'tel': true,
  6331. 'text': true,
  6332. 'time': true,
  6333. 'url': true,
  6334. 'week': true
  6335. };
  6336. function isTextInputElement(elem) {
  6337. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  6338. if (nodeName === 'input') {
  6339. return !!supportedInputTypes[elem.type];
  6340. }
  6341. if (nodeName === 'textarea') {
  6342. return true;
  6343. }
  6344. return false;
  6345. }
  6346. module.exports = isTextInputElement;
  6347. /***/ }),
  6348. /* 63 */
  6349. /***/ (function(module, exports, __webpack_require__) {
  6350. "use strict";
  6351. /**
  6352. * Copyright 2013-present, Facebook, Inc.
  6353. * All rights reserved.
  6354. *
  6355. * This source code is licensed under the BSD-style license found in the
  6356. * LICENSE file in the root directory of this source tree. An additional grant
  6357. * of patent rights can be found in the PATENTS file in the same directory.
  6358. *
  6359. */
  6360. var ViewportMetrics = {
  6361. currentScrollLeft: 0,
  6362. currentScrollTop: 0,
  6363. refreshScrollValues: function (scrollPosition) {
  6364. ViewportMetrics.currentScrollLeft = scrollPosition.x;
  6365. ViewportMetrics.currentScrollTop = scrollPosition.y;
  6366. }
  6367. };
  6368. module.exports = ViewportMetrics;
  6369. /***/ }),
  6370. /* 64 */
  6371. /***/ (function(module, exports, __webpack_require__) {
  6372. "use strict";
  6373. /**
  6374. * Copyright 2013-present, Facebook, Inc.
  6375. * All rights reserved.
  6376. *
  6377. * This source code is licensed under the BSD-style license found in the
  6378. * LICENSE file in the root directory of this source tree. An additional grant
  6379. * of patent rights can be found in the PATENTS file in the same directory.
  6380. *
  6381. */
  6382. var ExecutionEnvironment = __webpack_require__(6);
  6383. var escapeTextContentForBrowser = __webpack_require__(31);
  6384. var setInnerHTML = __webpack_require__(30);
  6385. /**
  6386. * Set the textContent property of a node, ensuring that whitespace is preserved
  6387. * even in IE8. innerText is a poor substitute for textContent and, among many
  6388. * issues, inserts <br> instead of the literal newline chars. innerHTML behaves
  6389. * as it should.
  6390. *
  6391. * @param {DOMElement} node
  6392. * @param {string} text
  6393. * @internal
  6394. */
  6395. var setTextContent = function (node, text) {
  6396. if (text) {
  6397. var firstChild = node.firstChild;
  6398. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {
  6399. firstChild.nodeValue = text;
  6400. return;
  6401. }
  6402. }
  6403. node.textContent = text;
  6404. };
  6405. if (ExecutionEnvironment.canUseDOM) {
  6406. if (!('textContent' in document.documentElement)) {
  6407. setTextContent = function (node, text) {
  6408. if (node.nodeType === 3) {
  6409. node.nodeValue = text;
  6410. return;
  6411. }
  6412. setInnerHTML(node, escapeTextContentForBrowser(text));
  6413. };
  6414. }
  6415. }
  6416. module.exports = setTextContent;
  6417. /***/ }),
  6418. /* 65 */
  6419. /***/ (function(module, exports, __webpack_require__) {
  6420. "use strict";
  6421. /**
  6422. * Copyright (c) 2013-present, Facebook, Inc.
  6423. *
  6424. * This source code is licensed under the MIT license found in the
  6425. * LICENSE file in the root directory of this source tree.
  6426. *
  6427. */
  6428. /**
  6429. * @param {DOMElement} node input/textarea to focus
  6430. */
  6431. function focusNode(node) {
  6432. // IE8 can throw "Can't move focus to the control because it is invisible,
  6433. // not enabled, or of a type that does not accept the focus." for all kinds of
  6434. // reasons that are too expensive and fragile to test.
  6435. try {
  6436. node.focus();
  6437. } catch (e) {}
  6438. }
  6439. module.exports = focusNode;
  6440. /***/ }),
  6441. /* 66 */
  6442. /***/ (function(module, exports, __webpack_require__) {
  6443. "use strict";
  6444. /**
  6445. * Copyright 2013-present, Facebook, Inc.
  6446. * All rights reserved.
  6447. *
  6448. * This source code is licensed under the BSD-style license found in the
  6449. * LICENSE file in the root directory of this source tree. An additional grant
  6450. * of patent rights can be found in the PATENTS file in the same directory.
  6451. *
  6452. */
  6453. /**
  6454. * CSS properties which accept numbers but are not in units of "px".
  6455. */
  6456. var isUnitlessNumber = {
  6457. animationIterationCount: true,
  6458. borderImageOutset: true,
  6459. borderImageSlice: true,
  6460. borderImageWidth: true,
  6461. boxFlex: true,
  6462. boxFlexGroup: true,
  6463. boxOrdinalGroup: true,
  6464. columnCount: true,
  6465. flex: true,
  6466. flexGrow: true,
  6467. flexPositive: true,
  6468. flexShrink: true,
  6469. flexNegative: true,
  6470. flexOrder: true,
  6471. gridRow: true,
  6472. gridColumn: true,
  6473. fontWeight: true,
  6474. lineClamp: true,
  6475. lineHeight: true,
  6476. opacity: true,
  6477. order: true,
  6478. orphans: true,
  6479. tabSize: true,
  6480. widows: true,
  6481. zIndex: true,
  6482. zoom: true,
  6483. // SVG-related properties
  6484. fillOpacity: true,
  6485. floodOpacity: true,
  6486. stopOpacity: true,
  6487. strokeDasharray: true,
  6488. strokeDashoffset: true,
  6489. strokeMiterlimit: true,
  6490. strokeOpacity: true,
  6491. strokeWidth: true
  6492. };
  6493. /**
  6494. * @param {string} prefix vendor-specific prefix, eg: Webkit
  6495. * @param {string} key style name, eg: transitionDuration
  6496. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  6497. * WebkitTransitionDuration
  6498. */
  6499. function prefixKey(prefix, key) {
  6500. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  6501. }
  6502. /**
  6503. * Support style names that may come passed in prefixed by adding permutations
  6504. * of vendor prefixes.
  6505. */
  6506. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  6507. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  6508. // infinite loop, because it iterates over the newly added props too.
  6509. Object.keys(isUnitlessNumber).forEach(function (prop) {
  6510. prefixes.forEach(function (prefix) {
  6511. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  6512. });
  6513. });
  6514. /**
  6515. * Most style properties can be unset by doing .style[prop] = '' but IE8
  6516. * doesn't like doing that with shorthand properties so for the properties that
  6517. * IE8 breaks on, which are listed here, we instead unset each of the
  6518. * individual properties. See http://bugs.jquery.com/ticket/12385.
  6519. * The 4-value 'clock' properties like margin, padding, border-width seem to
  6520. * behave without any problems. Curiously, list-style works too without any
  6521. * special prodding.
  6522. */
  6523. var shorthandPropertyExpansions = {
  6524. background: {
  6525. backgroundAttachment: true,
  6526. backgroundColor: true,
  6527. backgroundImage: true,
  6528. backgroundPositionX: true,
  6529. backgroundPositionY: true,
  6530. backgroundRepeat: true
  6531. },
  6532. backgroundPosition: {
  6533. backgroundPositionX: true,
  6534. backgroundPositionY: true
  6535. },
  6536. border: {
  6537. borderWidth: true,
  6538. borderStyle: true,
  6539. borderColor: true
  6540. },
  6541. borderBottom: {
  6542. borderBottomWidth: true,
  6543. borderBottomStyle: true,
  6544. borderBottomColor: true
  6545. },
  6546. borderLeft: {
  6547. borderLeftWidth: true,
  6548. borderLeftStyle: true,
  6549. borderLeftColor: true
  6550. },
  6551. borderRight: {
  6552. borderRightWidth: true,
  6553. borderRightStyle: true,
  6554. borderRightColor: true
  6555. },
  6556. borderTop: {
  6557. borderTopWidth: true,
  6558. borderTopStyle: true,
  6559. borderTopColor: true
  6560. },
  6561. font: {
  6562. fontStyle: true,
  6563. fontVariant: true,
  6564. fontWeight: true,
  6565. fontSize: true,
  6566. lineHeight: true,
  6567. fontFamily: true
  6568. },
  6569. outline: {
  6570. outlineWidth: true,
  6571. outlineStyle: true,
  6572. outlineColor: true
  6573. }
  6574. };
  6575. var CSSProperty = {
  6576. isUnitlessNumber: isUnitlessNumber,
  6577. shorthandPropertyExpansions: shorthandPropertyExpansions
  6578. };
  6579. module.exports = CSSProperty;
  6580. /***/ }),
  6581. /* 67 */
  6582. /***/ (function(module, exports, __webpack_require__) {
  6583. "use strict";
  6584. /* WEBPACK VAR INJECTION */(function(process) {/**
  6585. * Copyright 2013-present, Facebook, Inc.
  6586. * All rights reserved.
  6587. *
  6588. * This source code is licensed under the BSD-style license found in the
  6589. * LICENSE file in the root directory of this source tree. An additional grant
  6590. * of patent rights can be found in the PATENTS file in the same directory.
  6591. *
  6592. */
  6593. var DOMProperty = __webpack_require__(13);
  6594. var ReactDOMComponentTree = __webpack_require__(5);
  6595. var ReactInstrumentation = __webpack_require__(9);
  6596. var quoteAttributeValueForBrowser = __webpack_require__(135);
  6597. var warning = __webpack_require__(2);
  6598. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
  6599. var illegalAttributeNameCache = {};
  6600. var validatedAttributeNameCache = {};
  6601. function isAttributeNameSafe(attributeName) {
  6602. if (validatedAttributeNameCache.hasOwnProperty(attributeName)) {
  6603. return true;
  6604. }
  6605. if (illegalAttributeNameCache.hasOwnProperty(attributeName)) {
  6606. return false;
  6607. }
  6608. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  6609. validatedAttributeNameCache[attributeName] = true;
  6610. return true;
  6611. }
  6612. illegalAttributeNameCache[attributeName] = true;
  6613. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid attribute name: `%s`', attributeName) : void 0;
  6614. return false;
  6615. }
  6616. function shouldIgnoreValue(propertyInfo, value) {
  6617. return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false;
  6618. }
  6619. /**
  6620. * Operations for dealing with DOM properties.
  6621. */
  6622. var DOMPropertyOperations = {
  6623. /**
  6624. * Creates markup for the ID property.
  6625. *
  6626. * @param {string} id Unescaped ID.
  6627. * @return {string} Markup string.
  6628. */
  6629. createMarkupForID: function (id) {
  6630. return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id);
  6631. },
  6632. setAttributeForID: function (node, id) {
  6633. node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id);
  6634. },
  6635. createMarkupForRoot: function () {
  6636. return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""';
  6637. },
  6638. setAttributeForRoot: function (node) {
  6639. node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, '');
  6640. },
  6641. /**
  6642. * Creates markup for a property.
  6643. *
  6644. * @param {string} name
  6645. * @param {*} value
  6646. * @return {?string} Markup string, or null if the property was invalid.
  6647. */
  6648. createMarkupForProperty: function (name, value) {
  6649. var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
  6650. if (propertyInfo) {
  6651. if (shouldIgnoreValue(propertyInfo, value)) {
  6652. return '';
  6653. }
  6654. var attributeName = propertyInfo.attributeName;
  6655. if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {
  6656. return attributeName + '=""';
  6657. }
  6658. return attributeName + '=' + quoteAttributeValueForBrowser(value);
  6659. } else if (DOMProperty.isCustomAttribute(name)) {
  6660. if (value == null) {
  6661. return '';
  6662. }
  6663. return name + '=' + quoteAttributeValueForBrowser(value);
  6664. }
  6665. return null;
  6666. },
  6667. /**
  6668. * Creates markup for a custom property.
  6669. *
  6670. * @param {string} name
  6671. * @param {*} value
  6672. * @return {string} Markup string, or empty string if the property was invalid.
  6673. */
  6674. createMarkupForCustomAttribute: function (name, value) {
  6675. if (!isAttributeNameSafe(name) || value == null) {
  6676. return '';
  6677. }
  6678. return name + '=' + quoteAttributeValueForBrowser(value);
  6679. },
  6680. /**
  6681. * Sets the value for a property on a node.
  6682. *
  6683. * @param {DOMElement} node
  6684. * @param {string} name
  6685. * @param {*} value
  6686. */
  6687. setValueForProperty: function (node, name, value) {
  6688. var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
  6689. if (propertyInfo) {
  6690. var mutationMethod = propertyInfo.mutationMethod;
  6691. if (mutationMethod) {
  6692. mutationMethod(node, value);
  6693. } else if (shouldIgnoreValue(propertyInfo, value)) {
  6694. this.deleteValueForProperty(node, name);
  6695. return;
  6696. } else if (propertyInfo.mustUseProperty) {
  6697. // Contrary to `setAttribute`, object properties are properly
  6698. // `toString`ed by IE8/9.
  6699. node[propertyInfo.propertyName] = value;
  6700. } else {
  6701. var attributeName = propertyInfo.attributeName;
  6702. var namespace = propertyInfo.attributeNamespace;
  6703. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  6704. // ('' + value) makes it output the correct toString()-value.
  6705. if (namespace) {
  6706. node.setAttributeNS(namespace, attributeName, '' + value);
  6707. } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {
  6708. node.setAttribute(attributeName, '');
  6709. } else {
  6710. node.setAttribute(attributeName, '' + value);
  6711. }
  6712. }
  6713. } else if (DOMProperty.isCustomAttribute(name)) {
  6714. DOMPropertyOperations.setValueForAttribute(node, name, value);
  6715. return;
  6716. }
  6717. if (process.env.NODE_ENV !== 'production') {
  6718. var payload = {};
  6719. payload[name] = value;
  6720. ReactInstrumentation.debugTool.onHostOperation({
  6721. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6722. type: 'update attribute',
  6723. payload: payload
  6724. });
  6725. }
  6726. },
  6727. setValueForAttribute: function (node, name, value) {
  6728. if (!isAttributeNameSafe(name)) {
  6729. return;
  6730. }
  6731. if (value == null) {
  6732. node.removeAttribute(name);
  6733. } else {
  6734. node.setAttribute(name, '' + value);
  6735. }
  6736. if (process.env.NODE_ENV !== 'production') {
  6737. var payload = {};
  6738. payload[name] = value;
  6739. ReactInstrumentation.debugTool.onHostOperation({
  6740. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6741. type: 'update attribute',
  6742. payload: payload
  6743. });
  6744. }
  6745. },
  6746. /**
  6747. * Deletes an attributes from a node.
  6748. *
  6749. * @param {DOMElement} node
  6750. * @param {string} name
  6751. */
  6752. deleteValueForAttribute: function (node, name) {
  6753. node.removeAttribute(name);
  6754. if (process.env.NODE_ENV !== 'production') {
  6755. ReactInstrumentation.debugTool.onHostOperation({
  6756. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6757. type: 'remove attribute',
  6758. payload: name
  6759. });
  6760. }
  6761. },
  6762. /**
  6763. * Deletes the value for a property on a node.
  6764. *
  6765. * @param {DOMElement} node
  6766. * @param {string} name
  6767. */
  6768. deleteValueForProperty: function (node, name) {
  6769. var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
  6770. if (propertyInfo) {
  6771. var mutationMethod = propertyInfo.mutationMethod;
  6772. if (mutationMethod) {
  6773. mutationMethod(node, undefined);
  6774. } else if (propertyInfo.mustUseProperty) {
  6775. var propName = propertyInfo.propertyName;
  6776. if (propertyInfo.hasBooleanValue) {
  6777. node[propName] = false;
  6778. } else {
  6779. node[propName] = '';
  6780. }
  6781. } else {
  6782. node.removeAttribute(propertyInfo.attributeName);
  6783. }
  6784. } else if (DOMProperty.isCustomAttribute(name)) {
  6785. node.removeAttribute(name);
  6786. }
  6787. if (process.env.NODE_ENV !== 'production') {
  6788. ReactInstrumentation.debugTool.onHostOperation({
  6789. instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
  6790. type: 'remove attribute',
  6791. payload: name
  6792. });
  6793. }
  6794. }
  6795. };
  6796. module.exports = DOMPropertyOperations;
  6797. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  6798. /***/ }),
  6799. /* 68 */
  6800. /***/ (function(module, exports, __webpack_require__) {
  6801. "use strict";
  6802. /**
  6803. * Copyright 2013-present, Facebook, Inc.
  6804. * All rights reserved.
  6805. *
  6806. * This source code is licensed under the BSD-style license found in the
  6807. * LICENSE file in the root directory of this source tree. An additional grant
  6808. * of patent rights can be found in the PATENTS file in the same directory.
  6809. *
  6810. *
  6811. */
  6812. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6813. module.exports = ReactPropTypesSecret;
  6814. /***/ }),
  6815. /* 69 */
  6816. /***/ (function(module, exports, __webpack_require__) {
  6817. "use strict";
  6818. /**
  6819. * Copyright 2013-present, Facebook, Inc.
  6820. * All rights reserved.
  6821. *
  6822. * This source code is licensed under the BSD-style license found in the
  6823. * LICENSE file in the root directory of this source tree. An additional grant
  6824. * of patent rights can be found in the PATENTS file in the same directory.
  6825. */
  6826. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  6827. module.exports = ReactPropTypesSecret;
  6828. /***/ }),
  6829. /* 70 */
  6830. /***/ (function(module, exports, __webpack_require__) {
  6831. "use strict";
  6832. /* WEBPACK VAR INJECTION */(function(process) {/**
  6833. * Copyright 2013-present, Facebook, Inc.
  6834. * All rights reserved.
  6835. *
  6836. * This source code is licensed under the BSD-style license found in the
  6837. * LICENSE file in the root directory of this source tree. An additional grant
  6838. * of patent rights can be found in the PATENTS file in the same directory.
  6839. *
  6840. */
  6841. var _assign = __webpack_require__(4);
  6842. var LinkedValueUtils = __webpack_require__(43);
  6843. var ReactDOMComponentTree = __webpack_require__(5);
  6844. var ReactUpdates = __webpack_require__(11);
  6845. var warning = __webpack_require__(2);
  6846. var didWarnValueLink = false;
  6847. var didWarnValueDefaultValue = false;
  6848. function updateOptionsIfPendingUpdateAndMounted() {
  6849. if (this._rootNodeID && this._wrapperState.pendingUpdate) {
  6850. this._wrapperState.pendingUpdate = false;
  6851. var props = this._currentElement.props;
  6852. var value = LinkedValueUtils.getValue(props);
  6853. if (value != null) {
  6854. updateOptions(this, Boolean(props.multiple), value);
  6855. }
  6856. }
  6857. }
  6858. function getDeclarationErrorAddendum(owner) {
  6859. if (owner) {
  6860. var name = owner.getName();
  6861. if (name) {
  6862. return ' Check the render method of `' + name + '`.';
  6863. }
  6864. }
  6865. return '';
  6866. }
  6867. var valuePropNames = ['value', 'defaultValue'];
  6868. /**
  6869. * Validation function for `value` and `defaultValue`.
  6870. * @private
  6871. */
  6872. function checkSelectPropTypes(inst, props) {
  6873. var owner = inst._currentElement._owner;
  6874. LinkedValueUtils.checkPropTypes('select', props, owner);
  6875. if (props.valueLink !== undefined && !didWarnValueLink) {
  6876. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead.') : void 0;
  6877. didWarnValueLink = true;
  6878. }
  6879. for (var i = 0; i < valuePropNames.length; i++) {
  6880. var propName = valuePropNames[i];
  6881. if (props[propName] == null) {
  6882. continue;
  6883. }
  6884. var isArray = Array.isArray(props[propName]);
  6885. if (props.multiple && !isArray) {
  6886. process.env.NODE_ENV !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;
  6887. } else if (!props.multiple && isArray) {
  6888. process.env.NODE_ENV !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;
  6889. }
  6890. }
  6891. }
  6892. /**
  6893. * @param {ReactDOMComponent} inst
  6894. * @param {boolean} multiple
  6895. * @param {*} propValue A stringable (with `multiple`, a list of stringables).
  6896. * @private
  6897. */
  6898. function updateOptions(inst, multiple, propValue) {
  6899. var selectedValue, i;
  6900. var options = ReactDOMComponentTree.getNodeFromInstance(inst).options;
  6901. if (multiple) {
  6902. selectedValue = {};
  6903. for (i = 0; i < propValue.length; i++) {
  6904. selectedValue['' + propValue[i]] = true;
  6905. }
  6906. for (i = 0; i < options.length; i++) {
  6907. var selected = selectedValue.hasOwnProperty(options[i].value);
  6908. if (options[i].selected !== selected) {
  6909. options[i].selected = selected;
  6910. }
  6911. }
  6912. } else {
  6913. // Do not set `select.value` as exact behavior isn't consistent across all
  6914. // browsers for all cases.
  6915. selectedValue = '' + propValue;
  6916. for (i = 0; i < options.length; i++) {
  6917. if (options[i].value === selectedValue) {
  6918. options[i].selected = true;
  6919. return;
  6920. }
  6921. }
  6922. if (options.length) {
  6923. options[0].selected = true;
  6924. }
  6925. }
  6926. }
  6927. /**
  6928. * Implements a <select> host component that allows optionally setting the
  6929. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  6930. * stringable. If `multiple` is true, the prop must be an array of stringables.
  6931. *
  6932. * If `value` is not supplied (or null/undefined), user actions that change the
  6933. * selected option will trigger updates to the rendered options.
  6934. *
  6935. * If it is supplied (and not null/undefined), the rendered options will not
  6936. * update in response to user actions. Instead, the `value` prop must change in
  6937. * order for the rendered options to update.
  6938. *
  6939. * If `defaultValue` is provided, any options with the supplied values will be
  6940. * selected.
  6941. */
  6942. var ReactDOMSelect = {
  6943. getHostProps: function (inst, props) {
  6944. return _assign({}, props, {
  6945. onChange: inst._wrapperState.onChange,
  6946. value: undefined
  6947. });
  6948. },
  6949. mountWrapper: function (inst, props) {
  6950. if (process.env.NODE_ENV !== 'production') {
  6951. checkSelectPropTypes(inst, props);
  6952. }
  6953. var value = LinkedValueUtils.getValue(props);
  6954. inst._wrapperState = {
  6955. pendingUpdate: false,
  6956. initialValue: value != null ? value : props.defaultValue,
  6957. listeners: null,
  6958. onChange: _handleChange.bind(inst),
  6959. wasMultiple: Boolean(props.multiple)
  6960. };
  6961. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  6962. process.env.NODE_ENV !== 'production' ? warning(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') : void 0;
  6963. didWarnValueDefaultValue = true;
  6964. }
  6965. },
  6966. getSelectValueContext: function (inst) {
  6967. // ReactDOMOption looks at this initial value so the initial generated
  6968. // markup has correct `selected` attributes
  6969. return inst._wrapperState.initialValue;
  6970. },
  6971. postUpdateWrapper: function (inst) {
  6972. var props = inst._currentElement.props;
  6973. // After the initial mount, we control selected-ness manually so don't pass
  6974. // this value down
  6975. inst._wrapperState.initialValue = undefined;
  6976. var wasMultiple = inst._wrapperState.wasMultiple;
  6977. inst._wrapperState.wasMultiple = Boolean(props.multiple);
  6978. var value = LinkedValueUtils.getValue(props);
  6979. if (value != null) {
  6980. inst._wrapperState.pendingUpdate = false;
  6981. updateOptions(inst, Boolean(props.multiple), value);
  6982. } else if (wasMultiple !== Boolean(props.multiple)) {
  6983. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  6984. if (props.defaultValue != null) {
  6985. updateOptions(inst, Boolean(props.multiple), props.defaultValue);
  6986. } else {
  6987. // Revert the select back to its default unselected state.
  6988. updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : '');
  6989. }
  6990. }
  6991. }
  6992. };
  6993. function _handleChange(event) {
  6994. var props = this._currentElement.props;
  6995. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  6996. if (this._rootNodeID) {
  6997. this._wrapperState.pendingUpdate = true;
  6998. }
  6999. ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this);
  7000. return returnValue;
  7001. }
  7002. module.exports = ReactDOMSelect;
  7003. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7004. /***/ }),
  7005. /* 71 */
  7006. /***/ (function(module, exports, __webpack_require__) {
  7007. "use strict";
  7008. /* WEBPACK VAR INJECTION */(function(process) {/**
  7009. * Copyright 2013-present, Facebook, Inc.
  7010. * All rights reserved.
  7011. *
  7012. * This source code is licensed under the BSD-style license found in the
  7013. * LICENSE file in the root directory of this source tree. An additional grant
  7014. * of patent rights can be found in the PATENTS file in the same directory.
  7015. *
  7016. */
  7017. var _prodInvariant = __webpack_require__(3),
  7018. _assign = __webpack_require__(4);
  7019. var ReactCompositeComponent = __webpack_require__(146);
  7020. var ReactEmptyComponent = __webpack_require__(73);
  7021. var ReactHostComponent = __webpack_require__(74);
  7022. var getNextDebugID = __webpack_require__(149);
  7023. var invariant = __webpack_require__(1);
  7024. var warning = __webpack_require__(2);
  7025. // To avoid a cyclic dependency, we create the final class in this module
  7026. var ReactCompositeComponentWrapper = function (element) {
  7027. this.construct(element);
  7028. };
  7029. function getDeclarationErrorAddendum(owner) {
  7030. if (owner) {
  7031. var name = owner.getName();
  7032. if (name) {
  7033. return ' Check the render method of `' + name + '`.';
  7034. }
  7035. }
  7036. return '';
  7037. }
  7038. /**
  7039. * Check if the type reference is a known internal type. I.e. not a user
  7040. * provided composite type.
  7041. *
  7042. * @param {function} type
  7043. * @return {boolean} Returns true if this is a valid internal type.
  7044. */
  7045. function isInternalComponentType(type) {
  7046. return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';
  7047. }
  7048. /**
  7049. * Given a ReactNode, create an instance that will actually be mounted.
  7050. *
  7051. * @param {ReactNode} node
  7052. * @param {boolean} shouldHaveDebugID
  7053. * @return {object} A new instance of the element's constructor.
  7054. * @protected
  7055. */
  7056. function instantiateReactComponent(node, shouldHaveDebugID) {
  7057. var instance;
  7058. if (node === null || node === false) {
  7059. instance = ReactEmptyComponent.create(instantiateReactComponent);
  7060. } else if (typeof node === 'object') {
  7061. var element = node;
  7062. var type = element.type;
  7063. if (typeof type !== 'function' && typeof type !== 'string') {
  7064. var info = '';
  7065. if (process.env.NODE_ENV !== 'production') {
  7066. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  7067. info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
  7068. }
  7069. }
  7070. info += getDeclarationErrorAddendum(element._owner);
  7071. true ? process.env.NODE_ENV !== 'production' ? 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) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0;
  7072. }
  7073. // Special case string values
  7074. if (typeof element.type === 'string') {
  7075. instance = ReactHostComponent.createInternalComponent(element);
  7076. } else if (isInternalComponentType(element.type)) {
  7077. // This is temporarily available for custom components that are not string
  7078. // representations. I.e. ART. Once those are updated to use the string
  7079. // representation, we can drop this code path.
  7080. instance = new element.type(element);
  7081. // We renamed this. Allow the old name for compat. :(
  7082. if (!instance.getHostNode) {
  7083. instance.getHostNode = instance.getNativeNode;
  7084. }
  7085. } else {
  7086. instance = new ReactCompositeComponentWrapper(element);
  7087. }
  7088. } else if (typeof node === 'string' || typeof node === 'number') {
  7089. instance = ReactHostComponent.createInstanceForText(node);
  7090. } else {
  7091. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0;
  7092. }
  7093. if (process.env.NODE_ENV !== 'production') {
  7094. process.env.NODE_ENV !== 'production' ? warning(typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.getHostNode === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : void 0;
  7095. }
  7096. // These two fields are used by the DOM and ART diffing algorithms
  7097. // respectively. Instead of using expandos on components, we should be
  7098. // storing the state needed by the diffing algorithms elsewhere.
  7099. instance._mountIndex = 0;
  7100. instance._mountImage = null;
  7101. if (process.env.NODE_ENV !== 'production') {
  7102. instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;
  7103. }
  7104. // Internal instances should fully constructed at this point, so they should
  7105. // not get any new fields added to them at this point.
  7106. if (process.env.NODE_ENV !== 'production') {
  7107. if (Object.preventExtensions) {
  7108. Object.preventExtensions(instance);
  7109. }
  7110. }
  7111. return instance;
  7112. }
  7113. _assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
  7114. _instantiateReactComponent: instantiateReactComponent
  7115. });
  7116. module.exports = instantiateReactComponent;
  7117. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7118. /***/ }),
  7119. /* 72 */
  7120. /***/ (function(module, exports, __webpack_require__) {
  7121. "use strict";
  7122. /* WEBPACK VAR INJECTION */(function(process) {/**
  7123. * Copyright 2013-present, Facebook, Inc.
  7124. * All rights reserved.
  7125. *
  7126. * This source code is licensed under the BSD-style license found in the
  7127. * LICENSE file in the root directory of this source tree. An additional grant
  7128. * of patent rights can be found in the PATENTS file in the same directory.
  7129. *
  7130. *
  7131. */
  7132. var _prodInvariant = __webpack_require__(3);
  7133. var React = __webpack_require__(17);
  7134. var invariant = __webpack_require__(1);
  7135. var ReactNodeTypes = {
  7136. HOST: 0,
  7137. COMPOSITE: 1,
  7138. EMPTY: 2,
  7139. getType: function (node) {
  7140. if (node === null || node === false) {
  7141. return ReactNodeTypes.EMPTY;
  7142. } else if (React.isValidElement(node)) {
  7143. if (typeof node.type === 'function') {
  7144. return ReactNodeTypes.COMPOSITE;
  7145. } else {
  7146. return ReactNodeTypes.HOST;
  7147. }
  7148. }
  7149. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unexpected node: %s', node) : _prodInvariant('26', node) : void 0;
  7150. }
  7151. };
  7152. module.exports = ReactNodeTypes;
  7153. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7154. /***/ }),
  7155. /* 73 */
  7156. /***/ (function(module, exports, __webpack_require__) {
  7157. "use strict";
  7158. /**
  7159. * Copyright 2014-present, Facebook, Inc.
  7160. * All rights reserved.
  7161. *
  7162. * This source code is licensed under the BSD-style license found in the
  7163. * LICENSE file in the root directory of this source tree. An additional grant
  7164. * of patent rights can be found in the PATENTS file in the same directory.
  7165. *
  7166. */
  7167. var emptyComponentFactory;
  7168. var ReactEmptyComponentInjection = {
  7169. injectEmptyComponentFactory: function (factory) {
  7170. emptyComponentFactory = factory;
  7171. }
  7172. };
  7173. var ReactEmptyComponent = {
  7174. create: function (instantiate) {
  7175. return emptyComponentFactory(instantiate);
  7176. }
  7177. };
  7178. ReactEmptyComponent.injection = ReactEmptyComponentInjection;
  7179. module.exports = ReactEmptyComponent;
  7180. /***/ }),
  7181. /* 74 */
  7182. /***/ (function(module, exports, __webpack_require__) {
  7183. "use strict";
  7184. /* WEBPACK VAR INJECTION */(function(process) {/**
  7185. * Copyright 2014-present, Facebook, Inc.
  7186. * All rights reserved.
  7187. *
  7188. * This source code is licensed under the BSD-style license found in the
  7189. * LICENSE file in the root directory of this source tree. An additional grant
  7190. * of patent rights can be found in the PATENTS file in the same directory.
  7191. *
  7192. */
  7193. var _prodInvariant = __webpack_require__(3);
  7194. var invariant = __webpack_require__(1);
  7195. var genericComponentClass = null;
  7196. var textComponentClass = null;
  7197. var ReactHostComponentInjection = {
  7198. // This accepts a class that receives the tag string. This is a catch all
  7199. // that can render any kind of tag.
  7200. injectGenericComponentClass: function (componentClass) {
  7201. genericComponentClass = componentClass;
  7202. },
  7203. // This accepts a text component class that takes the text string to be
  7204. // rendered as props.
  7205. injectTextComponentClass: function (componentClass) {
  7206. textComponentClass = componentClass;
  7207. }
  7208. };
  7209. /**
  7210. * Get a host internal component class for a specific tag.
  7211. *
  7212. * @param {ReactElement} element The element to create.
  7213. * @return {function} The internal class constructor function.
  7214. */
  7215. function createInternalComponent(element) {
  7216. !genericComponentClass ? process.env.NODE_ENV !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : _prodInvariant('111', element.type) : void 0;
  7217. return new genericComponentClass(element);
  7218. }
  7219. /**
  7220. * @param {ReactText} text
  7221. * @return {ReactComponent}
  7222. */
  7223. function createInstanceForText(text) {
  7224. return new textComponentClass(text);
  7225. }
  7226. /**
  7227. * @param {ReactComponent} component
  7228. * @return {boolean}
  7229. */
  7230. function isTextComponent(component) {
  7231. return component instanceof textComponentClass;
  7232. }
  7233. var ReactHostComponent = {
  7234. createInternalComponent: createInternalComponent,
  7235. createInstanceForText: createInstanceForText,
  7236. isTextComponent: isTextComponent,
  7237. injection: ReactHostComponentInjection
  7238. };
  7239. module.exports = ReactHostComponent;
  7240. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7241. /***/ }),
  7242. /* 75 */
  7243. /***/ (function(module, exports, __webpack_require__) {
  7244. "use strict";
  7245. /* WEBPACK VAR INJECTION */(function(process) {/**
  7246. * Copyright 2013-present, Facebook, Inc.
  7247. * All rights reserved.
  7248. *
  7249. * This source code is licensed under the BSD-style license found in the
  7250. * LICENSE file in the root directory of this source tree. An additional grant
  7251. * of patent rights can be found in the PATENTS file in the same directory.
  7252. *
  7253. */
  7254. var _prodInvariant = __webpack_require__(3);
  7255. var ReactCurrentOwner = __webpack_require__(10);
  7256. var REACT_ELEMENT_TYPE = __webpack_require__(150);
  7257. var getIteratorFn = __webpack_require__(151);
  7258. var invariant = __webpack_require__(1);
  7259. var KeyEscapeUtils = __webpack_require__(47);
  7260. var warning = __webpack_require__(2);
  7261. var SEPARATOR = '.';
  7262. var SUBSEPARATOR = ':';
  7263. /**
  7264. * This is inlined from ReactElement since this file is shared between
  7265. * isomorphic and renderers. We could extract this to a
  7266. *
  7267. */
  7268. /**
  7269. * TODO: Test that a single child and an array with one item have the same key
  7270. * pattern.
  7271. */
  7272. var didWarnAboutMaps = false;
  7273. /**
  7274. * Generate a key string that identifies a component within a set.
  7275. *
  7276. * @param {*} component A component that could contain a manual key.
  7277. * @param {number} index Index that is used if a manual key is not provided.
  7278. * @return {string}
  7279. */
  7280. function getComponentKey(component, index) {
  7281. // Do some typechecking here since we call this blindly. We want to ensure
  7282. // that we don't block potential future ES APIs.
  7283. if (component && typeof component === 'object' && component.key != null) {
  7284. // Explicit key
  7285. return KeyEscapeUtils.escape(component.key);
  7286. }
  7287. // Implicit key determined by the index in the set
  7288. return index.toString(36);
  7289. }
  7290. /**
  7291. * @param {?*} children Children tree container.
  7292. * @param {!string} nameSoFar Name of the key path so far.
  7293. * @param {!function} callback Callback to invoke with each child found.
  7294. * @param {?*} traverseContext Used to pass information throughout the traversal
  7295. * process.
  7296. * @return {!number} The number of children in this subtree.
  7297. */
  7298. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  7299. var type = typeof children;
  7300. if (type === 'undefined' || type === 'boolean') {
  7301. // All of the above are perceived as null.
  7302. children = null;
  7303. }
  7304. if (children === null || type === 'string' || type === 'number' ||
  7305. // The following is inlined from ReactElement. This means we can optimize
  7306. // some checks. React Fiber also inlines this logic for similar purposes.
  7307. type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
  7308. callback(traverseContext, children,
  7309. // If it's the only child, treat the name as if it was wrapped in an array
  7310. // so that it's consistent if the number of children grows.
  7311. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  7312. return 1;
  7313. }
  7314. var child;
  7315. var nextName;
  7316. var subtreeCount = 0; // Count of children found in the current subtree.
  7317. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  7318. if (Array.isArray(children)) {
  7319. for (var i = 0; i < children.length; i++) {
  7320. child = children[i];
  7321. nextName = nextNamePrefix + getComponentKey(child, i);
  7322. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  7323. }
  7324. } else {
  7325. var iteratorFn = getIteratorFn(children);
  7326. if (iteratorFn) {
  7327. var iterator = iteratorFn.call(children);
  7328. var step;
  7329. if (iteratorFn !== children.entries) {
  7330. var ii = 0;
  7331. while (!(step = iterator.next()).done) {
  7332. child = step.value;
  7333. nextName = nextNamePrefix + getComponentKey(child, ii++);
  7334. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  7335. }
  7336. } else {
  7337. if (process.env.NODE_ENV !== 'production') {
  7338. var mapsAsChildrenAddendum = '';
  7339. if (ReactCurrentOwner.current) {
  7340. var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
  7341. if (mapsAsChildrenOwnerName) {
  7342. mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
  7343. }
  7344. }
  7345. process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
  7346. didWarnAboutMaps = true;
  7347. }
  7348. // Iterator will provide entry [k,v] tuples rather than values.
  7349. while (!(step = iterator.next()).done) {
  7350. var entry = step.value;
  7351. if (entry) {
  7352. child = entry[1];
  7353. nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
  7354. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  7355. }
  7356. }
  7357. }
  7358. } else if (type === 'object') {
  7359. var addendum = '';
  7360. if (process.env.NODE_ENV !== 'production') {
  7361. addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
  7362. if (children._isReactElement) {
  7363. addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
  7364. }
  7365. if (ReactCurrentOwner.current) {
  7366. var name = ReactCurrentOwner.current.getName();
  7367. if (name) {
  7368. addendum += ' Check the render method of `' + name + '`.';
  7369. }
  7370. }
  7371. }
  7372. var childrenString = String(children);
  7373. true ? process.env.NODE_ENV !== 'production' ? 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) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
  7374. }
  7375. }
  7376. return subtreeCount;
  7377. }
  7378. /**
  7379. * Traverses children that are typically specified as `props.children`, but
  7380. * might also be specified through attributes:
  7381. *
  7382. * - `traverseAllChildren(this.props.children, ...)`
  7383. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  7384. *
  7385. * The `traverseContext` is an optional argument that is passed through the
  7386. * entire traversal. It can be used to store accumulations or anything else that
  7387. * the callback might find relevant.
  7388. *
  7389. * @param {?*} children Children tree object.
  7390. * @param {!function} callback To invoke upon traversing each child.
  7391. * @param {?*} traverseContext Context for traversal.
  7392. * @return {!number} The number of children in this subtree.
  7393. */
  7394. function traverseAllChildren(children, callback, traverseContext) {
  7395. if (children == null) {
  7396. return 0;
  7397. }
  7398. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  7399. }
  7400. module.exports = traverseAllChildren;
  7401. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7402. /***/ }),
  7403. /* 76 */
  7404. /***/ (function(module, exports, __webpack_require__) {
  7405. "use strict";
  7406. /* WEBPACK VAR INJECTION */(function(process) {
  7407. /**
  7408. * Copyright (c) 2013-present, Facebook, Inc.
  7409. *
  7410. * This source code is licensed under the MIT license found in the
  7411. * LICENSE file in the root directory of this source tree.
  7412. *
  7413. * @typechecks
  7414. */
  7415. var emptyFunction = __webpack_require__(8);
  7416. /**
  7417. * Upstream version of event listener. Does not take into account specific
  7418. * nature of platform.
  7419. */
  7420. var EventListener = {
  7421. /**
  7422. * Listen to DOM events during the bubble phase.
  7423. *
  7424. * @param {DOMEventTarget} target DOM element to register listener on.
  7425. * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
  7426. * @param {function} callback Callback function.
  7427. * @return {object} Object with a `remove` method.
  7428. */
  7429. listen: function listen(target, eventType, callback) {
  7430. if (target.addEventListener) {
  7431. target.addEventListener(eventType, callback, false);
  7432. return {
  7433. remove: function remove() {
  7434. target.removeEventListener(eventType, callback, false);
  7435. }
  7436. };
  7437. } else if (target.attachEvent) {
  7438. target.attachEvent('on' + eventType, callback);
  7439. return {
  7440. remove: function remove() {
  7441. target.detachEvent('on' + eventType, callback);
  7442. }
  7443. };
  7444. }
  7445. },
  7446. /**
  7447. * Listen to DOM events during the capture phase.
  7448. *
  7449. * @param {DOMEventTarget} target DOM element to register listener on.
  7450. * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
  7451. * @param {function} callback Callback function.
  7452. * @return {object} Object with a `remove` method.
  7453. */
  7454. capture: function capture(target, eventType, callback) {
  7455. if (target.addEventListener) {
  7456. target.addEventListener(eventType, callback, true);
  7457. return {
  7458. remove: function remove() {
  7459. target.removeEventListener(eventType, callback, true);
  7460. }
  7461. };
  7462. } else {
  7463. if (process.env.NODE_ENV !== 'production') {
  7464. console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.');
  7465. }
  7466. return {
  7467. remove: emptyFunction
  7468. };
  7469. }
  7470. },
  7471. registerDefault: function registerDefault() {}
  7472. };
  7473. module.exports = EventListener;
  7474. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  7475. /***/ }),
  7476. /* 77 */
  7477. /***/ (function(module, exports, __webpack_require__) {
  7478. "use strict";
  7479. /**
  7480. * Copyright 2013-present, Facebook, Inc.
  7481. * All rights reserved.
  7482. *
  7483. * This source code is licensed under the BSD-style license found in the
  7484. * LICENSE file in the root directory of this source tree. An additional grant
  7485. * of patent rights can be found in the PATENTS file in the same directory.
  7486. *
  7487. */
  7488. var ReactDOMSelection = __webpack_require__(163);
  7489. var containsNode = __webpack_require__(165);
  7490. var focusNode = __webpack_require__(65);
  7491. var getActiveElement = __webpack_require__(78);
  7492. function isInDocument(node) {
  7493. return containsNode(document.documentElement, node);
  7494. }
  7495. /**
  7496. * @ReactInputSelection: React input selection module. Based on Selection.js,
  7497. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  7498. * assume buttons have range selections allowed).
  7499. * Input selection module for React.
  7500. */
  7501. var ReactInputSelection = {
  7502. hasSelectionCapabilities: function (elem) {
  7503. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  7504. return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true');
  7505. },
  7506. getSelectionInformation: function () {
  7507. var focusedElem = getActiveElement();
  7508. return {
  7509. focusedElem: focusedElem,
  7510. selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null
  7511. };
  7512. },
  7513. /**
  7514. * @restoreSelection: If any selection information was potentially lost,
  7515. * restore it. This is useful when performing operations that could remove dom
  7516. * nodes and place them back in, resulting in focus being lost.
  7517. */
  7518. restoreSelection: function (priorSelectionInformation) {
  7519. var curFocusedElem = getActiveElement();
  7520. var priorFocusedElem = priorSelectionInformation.focusedElem;
  7521. var priorSelectionRange = priorSelectionInformation.selectionRange;
  7522. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  7523. if (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)) {
  7524. ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange);
  7525. }
  7526. focusNode(priorFocusedElem);
  7527. }
  7528. },
  7529. /**
  7530. * @getSelection: Gets the selection bounds of a focused textarea, input or
  7531. * contentEditable node.
  7532. * -@input: Look up selection bounds of this input
  7533. * -@return {start: selectionStart, end: selectionEnd}
  7534. */
  7535. getSelection: function (input) {
  7536. var selection;
  7537. if ('selectionStart' in input) {
  7538. // Modern browser with input or textarea.
  7539. selection = {
  7540. start: input.selectionStart,
  7541. end: input.selectionEnd
  7542. };
  7543. } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {
  7544. // IE8 input.
  7545. var range = document.selection.createRange();
  7546. // There can only be one selection per document in IE, so it must
  7547. // be in our element.
  7548. if (range.parentElement() === input) {
  7549. selection = {
  7550. start: -range.moveStart('character', -input.value.length),
  7551. end: -range.moveEnd('character', -input.value.length)
  7552. };
  7553. }
  7554. } else {
  7555. // Content editable or old IE textarea.
  7556. selection = ReactDOMSelection.getOffsets(input);
  7557. }
  7558. return selection || { start: 0, end: 0 };
  7559. },
  7560. /**
  7561. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  7562. * the input.
  7563. * -@input Set selection bounds of this input or textarea
  7564. * -@offsets Object of same form that is returned from get*
  7565. */
  7566. setSelection: function (input, offsets) {
  7567. var start = offsets.start;
  7568. var end = offsets.end;
  7569. if (end === undefined) {
  7570. end = start;
  7571. }
  7572. if ('selectionStart' in input) {
  7573. input.selectionStart = start;
  7574. input.selectionEnd = Math.min(end, input.value.length);
  7575. } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {
  7576. var range = input.createTextRange();
  7577. range.collapse(true);
  7578. range.moveStart('character', start);
  7579. range.moveEnd('character', end - start);
  7580. range.select();
  7581. } else {
  7582. ReactDOMSelection.setOffsets(input, offsets);
  7583. }
  7584. }
  7585. };
  7586. module.exports = ReactInputSelection;
  7587. /***/ }),
  7588. /* 78 */
  7589. /***/ (function(module, exports, __webpack_require__) {
  7590. "use strict";
  7591. /**
  7592. * Copyright (c) 2013-present, Facebook, Inc.
  7593. *
  7594. * This source code is licensed under the MIT license found in the
  7595. * LICENSE file in the root directory of this source tree.
  7596. *
  7597. * @typechecks
  7598. */
  7599. /* eslint-disable fb-www/typeof-undefined */
  7600. /**
  7601. * Same as document.activeElement but wraps in a try-catch block. In IE it is
  7602. * not safe to call document.activeElement if there is nothing focused.
  7603. *
  7604. * The activeElement will be null only if the document or document body is not
  7605. * yet defined.
  7606. *
  7607. * @param {?DOMDocument} doc Defaults to current document.
  7608. * @return {?DOMElement}
  7609. */
  7610. function getActiveElement(doc) /*?DOMElement*/{
  7611. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  7612. if (typeof doc === 'undefined') {
  7613. return null;
  7614. }
  7615. try {
  7616. return doc.activeElement || doc.body;
  7617. } catch (e) {
  7618. return doc.body;
  7619. }
  7620. }
  7621. module.exports = getActiveElement;
  7622. /***/ }),
  7623. /* 79 */
  7624. /***/ (function(module, exports, __webpack_require__) {
  7625. "use strict";
  7626. /* WEBPACK VAR INJECTION */(function(process) {/**
  7627. * Copyright 2013-present, Facebook, Inc.
  7628. * All rights reserved.
  7629. *
  7630. * This source code is licensed under the BSD-style license found in the
  7631. * LICENSE file in the root directory of this source tree. An additional grant
  7632. * of patent rights can be found in the PATENTS file in the same directory.
  7633. *
  7634. */
  7635. var _prodInvariant = __webpack_require__(3);
  7636. var DOMLazyTree = __webpack_require__(19);
  7637. var DOMProperty = __webpack_require__(13);
  7638. var React = __webpack_require__(17);
  7639. var ReactBrowserEventEmitter = __webpack_require__(32);
  7640. var ReactCurrentOwner = __webpack_require__(10);
  7641. var ReactDOMComponentTree = __webpack_require__(5);
  7642. var ReactDOMContainerInfo = __webpack_require__(180);
  7643. var ReactDOMFeatureFlags = __webpack_require__(181);
  7644. var ReactFeatureFlags = __webpack_require__(61);
  7645. var ReactInstanceMap = __webpack_require__(24);
  7646. var ReactInstrumentation = __webpack_require__(9);
  7647. var ReactMarkupChecksum = __webpack_require__(182);
  7648. var ReactReconciler = __webpack_require__(18);
  7649. var ReactUpdateQueue = __webpack_require__(48);
  7650. var ReactUpdates = __webpack_require__(11);
  7651. var emptyObject = __webpack_require__(20);
  7652. var instantiateReactComponent = __webpack_require__(71);
  7653. var invariant = __webpack_require__(1);
  7654. var setInnerHTML = __webpack_require__(30);
  7655. var shouldUpdateReactComponent = __webpack_require__(46);
  7656. var warning = __webpack_require__(2);
  7657. var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
  7658. var ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME;
  7659. var ELEMENT_NODE_TYPE = 1;
  7660. var DOC_NODE_TYPE = 9;
  7661. var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
  7662. var instancesByReactRootID = {};
  7663. /**
  7664. * Finds the index of the first character
  7665. * that's not common between the two given strings.
  7666. *
  7667. * @return {number} the index of the character where the strings diverge
  7668. */
  7669. function firstDifferenceIndex(string1, string2) {
  7670. var minLen = Math.min(string1.length, string2.length);
  7671. for (var i = 0; i < minLen; i++) {
  7672. if (string1.charAt(i) !== string2.charAt(i)) {
  7673. return i;
  7674. }
  7675. }
  7676. return string1.length === string2.length ? -1 : minLen;
  7677. }
  7678. /**
  7679. * @param {DOMElement|DOMDocument} container DOM element that may contain
  7680. * a React component
  7681. * @return {?*} DOM element that may have the reactRoot ID, or null.
  7682. */
  7683. function getReactRootElementInContainer(container) {
  7684. if (!container) {
  7685. return null;
  7686. }
  7687. if (container.nodeType === DOC_NODE_TYPE) {
  7688. return container.documentElement;
  7689. } else {
  7690. return container.firstChild;
  7691. }
  7692. }
  7693. function internalGetID(node) {
  7694. // If node is something like a window, document, or text node, none of
  7695. // which support attributes or a .getAttribute method, gracefully return
  7696. // the empty string, as if the attribute were missing.
  7697. return node.getAttribute && node.getAttribute(ATTR_NAME) || '';
  7698. }
  7699. /**
  7700. * Mounts this component and inserts it into the DOM.
  7701. *
  7702. * @param {ReactComponent} componentInstance The instance to mount.
  7703. * @param {DOMElement} container DOM element to mount into.
  7704. * @param {ReactReconcileTransaction} transaction
  7705. * @param {boolean} shouldReuseMarkup If true, do not insert markup
  7706. */
  7707. function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) {
  7708. var markerName;
  7709. if (ReactFeatureFlags.logTopLevelRenders) {
  7710. var wrappedElement = wrapperInstance._currentElement.props.child;
  7711. var type = wrappedElement.type;
  7712. markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name);
  7713. console.time(markerName);
  7714. }
  7715. var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0 /* parentDebugID */
  7716. );
  7717. if (markerName) {
  7718. console.timeEnd(markerName);
  7719. }
  7720. wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance;
  7721. ReactMount._mountImageIntoNode(markup, container, wrapperInstance, shouldReuseMarkup, transaction);
  7722. }
  7723. /**
  7724. * Batched mount.
  7725. *
  7726. * @param {ReactComponent} componentInstance The instance to mount.
  7727. * @param {DOMElement} container DOM element to mount into.
  7728. * @param {boolean} shouldReuseMarkup If true, do not insert markup
  7729. */
  7730. function batchedMountComponentIntoNode(componentInstance, container, shouldReuseMarkup, context) {
  7731. var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(
  7732. /* useCreateElement */
  7733. !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement);
  7734. transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context);
  7735. ReactUpdates.ReactReconcileTransaction.release(transaction);
  7736. }
  7737. /**
  7738. * Unmounts a component and removes it from the DOM.
  7739. *
  7740. * @param {ReactComponent} instance React component instance.
  7741. * @param {DOMElement} container DOM element to unmount from.
  7742. * @final
  7743. * @internal
  7744. * @see {ReactMount.unmountComponentAtNode}
  7745. */
  7746. function unmountComponentFromNode(instance, container, safely) {
  7747. if (process.env.NODE_ENV !== 'production') {
  7748. ReactInstrumentation.debugTool.onBeginFlush();
  7749. }
  7750. ReactReconciler.unmountComponent(instance, safely);
  7751. if (process.env.NODE_ENV !== 'production') {
  7752. ReactInstrumentation.debugTool.onEndFlush();
  7753. }
  7754. if (container.nodeType === DOC_NODE_TYPE) {
  7755. container = container.documentElement;
  7756. }
  7757. // http://jsperf.com/emptying-a-node
  7758. while (container.lastChild) {
  7759. container.removeChild(container.lastChild);
  7760. }
  7761. }
  7762. /**
  7763. * True if the supplied DOM node has a direct React-rendered child that is
  7764. * not a React root element. Useful for warning in `render`,
  7765. * `unmountComponentAtNode`, etc.
  7766. *
  7767. * @param {?DOMElement} node The candidate DOM node.
  7768. * @return {boolean} True if the DOM element contains a direct child that was
  7769. * rendered by React but is not a root element.
  7770. * @internal
  7771. */
  7772. function hasNonRootReactChild(container) {
  7773. var rootEl = getReactRootElementInContainer(container);
  7774. if (rootEl) {
  7775. var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl);
  7776. return !!(inst && inst._hostParent);
  7777. }
  7778. }
  7779. /**
  7780. * True if the supplied DOM node is a React DOM element and
  7781. * it has been rendered by another copy of React.
  7782. *
  7783. * @param {?DOMElement} node The candidate DOM node.
  7784. * @return {boolean} True if the DOM has been rendered by another copy of React
  7785. * @internal
  7786. */
  7787. function nodeIsRenderedByOtherInstance(container) {
  7788. var rootEl = getReactRootElementInContainer(container);
  7789. return !!(rootEl && isReactNode(rootEl) && !ReactDOMComponentTree.getInstanceFromNode(rootEl));
  7790. }
  7791. /**
  7792. * True if the supplied DOM node is a valid node element.
  7793. *
  7794. * @param {?DOMElement} node The candidate DOM node.
  7795. * @return {boolean} True if the DOM is a valid DOM node.
  7796. * @internal
  7797. */
  7798. function isValidContainer(node) {
  7799. return !!(node && (node.nodeType === ELEMENT_NODE_TYPE || node.nodeType === DOC_NODE_TYPE || node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE));
  7800. }
  7801. /**
  7802. * True if the supplied DOM node is a valid React node element.
  7803. *
  7804. * @param {?DOMElement} node The candidate DOM node.
  7805. * @return {boolean} True if the DOM is a valid React DOM node.
  7806. * @internal
  7807. */
  7808. function isReactNode(node) {
  7809. return isValidContainer(node) && (node.hasAttribute(ROOT_ATTR_NAME) || node.hasAttribute(ATTR_NAME));
  7810. }
  7811. function getHostRootInstanceInContainer(container) {
  7812. var rootEl = getReactRootElementInContainer(container);
  7813. var prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl);
  7814. return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null;
  7815. }
  7816. function getTopLevelWrapperInContainer(container) {
  7817. var root = getHostRootInstanceInContainer(container);
  7818. return root ? root._hostContainerInfo._topLevelWrapper : null;
  7819. }
  7820. /**
  7821. * Temporary (?) hack so that we can store all top-level pending updates on
  7822. * composites instead of having to worry about different types of components
  7823. * here.
  7824. */
  7825. var topLevelRootCounter = 1;
  7826. var TopLevelWrapper = function () {
  7827. this.rootID = topLevelRootCounter++;
  7828. };
  7829. TopLevelWrapper.prototype.isReactComponent = {};
  7830. if (process.env.NODE_ENV !== 'production') {
  7831. TopLevelWrapper.displayName = 'TopLevelWrapper';
  7832. }
  7833. TopLevelWrapper.prototype.render = function () {
  7834. return this.props.child;
  7835. };
  7836. TopLevelWrapper.isReactTopLevelWrapper = true;
  7837. /**
  7838. * Mounting is the process of initializing a React component by creating its
  7839. * representative DOM elements and inserting them into a supplied `container`.
  7840. * Any prior content inside `container` is destroyed in the process.
  7841. *
  7842. * ReactMount.render(
  7843. * component,
  7844. * document.getElementById('container')
  7845. * );
  7846. *
  7847. * <div id="container"> <-- Supplied `container`.
  7848. * <div data-reactid=".3"> <-- Rendered reactRoot of React
  7849. * // ... component.
  7850. * </div>
  7851. * </div>
  7852. *
  7853. * Inside of `container`, the first element rendered is the "reactRoot".
  7854. */
  7855. var ReactMount = {
  7856. TopLevelWrapper: TopLevelWrapper,
  7857. /**
  7858. * Used by devtools. The keys are not important.
  7859. */
  7860. _instancesByReactRootID: instancesByReactRootID,
  7861. /**
  7862. * This is a hook provided to support rendering React components while
  7863. * ensuring that the apparent scroll position of its `container` does not
  7864. * change.
  7865. *
  7866. * @param {DOMElement} container The `container` being rendered into.
  7867. * @param {function} renderCallback This must be called once to do the render.
  7868. */
  7869. scrollMonitor: function (container, renderCallback) {
  7870. renderCallback();
  7871. },
  7872. /**
  7873. * Take a component that's already mounted into the DOM and replace its props
  7874. * @param {ReactComponent} prevComponent component instance already in the DOM
  7875. * @param {ReactElement} nextElement component instance to render
  7876. * @param {DOMElement} container container to render into
  7877. * @param {?function} callback function triggered on completion
  7878. */
  7879. _updateRootComponent: function (prevComponent, nextElement, nextContext, container, callback) {
  7880. ReactMount.scrollMonitor(container, function () {
  7881. ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext);
  7882. if (callback) {
  7883. ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback);
  7884. }
  7885. });
  7886. return prevComponent;
  7887. },
  7888. /**
  7889. * Render a new component into the DOM. Hooked by hooks!
  7890. *
  7891. * @param {ReactElement} nextElement element to render
  7892. * @param {DOMElement} container container to render into
  7893. * @param {boolean} shouldReuseMarkup if we should skip the markup insertion
  7894. * @return {ReactComponent} nextComponent
  7895. */
  7896. _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context) {
  7897. // Various parts of our code (such as ReactCompositeComponent's
  7898. // _renderValidatedComponent) assume that calls to render aren't nested;
  7899. // verify that that's the case.
  7900. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): 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. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;
  7901. !isValidContainer(container) ? process.env.NODE_ENV !== 'production' ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : _prodInvariant('37') : void 0;
  7902. ReactBrowserEventEmitter.ensureScrollValueMonitoring();
  7903. var componentInstance = instantiateReactComponent(nextElement, false);
  7904. // The initial render is synchronous but any updates that happen during
  7905. // rendering, in componentWillMount or componentDidMount, will be batched
  7906. // according to the current batching strategy.
  7907. ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);
  7908. var wrapperID = componentInstance._instance.rootID;
  7909. instancesByReactRootID[wrapperID] = componentInstance;
  7910. return componentInstance;
  7911. },
  7912. /**
  7913. * Renders a React component into the DOM in the supplied `container`.
  7914. *
  7915. * If the React component was previously rendered into `container`, this will
  7916. * perform an update on it and only mutate the DOM as necessary to reflect the
  7917. * latest React component.
  7918. *
  7919. * @param {ReactComponent} parentComponent The conceptual parent of this render tree.
  7920. * @param {ReactElement} nextElement Component element to render.
  7921. * @param {DOMElement} container DOM element to render into.
  7922. * @param {?function} callback function triggered on completion
  7923. * @return {ReactComponent} Component instance rendered in `container`.
  7924. */
  7925. renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {
  7926. !(parentComponent != null && ReactInstanceMap.has(parentComponent)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'parentComponent must be a valid React Component') : _prodInvariant('38') : void 0;
  7927. return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);
  7928. },
  7929. _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {
  7930. ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render');
  7931. !React.isValidElement(nextElement) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' :
  7932. // Check if it quacks like an element
  7933. nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0;
  7934. process.env.NODE_ENV !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', '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;
  7935. var nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement });
  7936. var nextContext;
  7937. if (parentComponent) {
  7938. var parentInst = ReactInstanceMap.get(parentComponent);
  7939. nextContext = parentInst._processChildContext(parentInst._context);
  7940. } else {
  7941. nextContext = emptyObject;
  7942. }
  7943. var prevComponent = getTopLevelWrapperInContainer(container);
  7944. if (prevComponent) {
  7945. var prevWrappedElement = prevComponent._currentElement;
  7946. var prevElement = prevWrappedElement.props.child;
  7947. if (shouldUpdateReactComponent(prevElement, nextElement)) {
  7948. var publicInst = prevComponent._renderedComponent.getPublicInstance();
  7949. var updatedCallback = callback && function () {
  7950. callback.call(publicInst);
  7951. };
  7952. ReactMount._updateRootComponent(prevComponent, nextWrappedElement, nextContext, container, updatedCallback);
  7953. return publicInst;
  7954. } else {
  7955. ReactMount.unmountComponentAtNode(container);
  7956. }
  7957. }
  7958. var reactRootElement = getReactRootElementInContainer(container);
  7959. var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement);
  7960. var containerHasNonRootReactChild = hasNonRootReactChild(container);
  7961. if (process.env.NODE_ENV !== 'production') {
  7962. process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, '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;
  7963. if (!containerHasReactMarkup || reactRootElement.nextSibling) {
  7964. var rootElementSibling = reactRootElement;
  7965. while (rootElementSibling) {
  7966. if (internalGetID(rootElementSibling)) {
  7967. process.env.NODE_ENV !== 'production' ? warning(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.') : void 0;
  7968. break;
  7969. }
  7970. rootElementSibling = rootElementSibling.nextSibling;
  7971. }
  7972. }
  7973. }
  7974. var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild;
  7975. var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance();
  7976. if (callback) {
  7977. callback.call(component);
  7978. }
  7979. return component;
  7980. },
  7981. /**
  7982. * Renders a React component into the DOM in the supplied `container`.
  7983. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.render
  7984. *
  7985. * If the React component was previously rendered into `container`, this will
  7986. * perform an update on it and only mutate the DOM as necessary to reflect the
  7987. * latest React component.
  7988. *
  7989. * @param {ReactElement} nextElement Component element to render.
  7990. * @param {DOMElement} container DOM element to render into.
  7991. * @param {?function} callback function triggered on completion
  7992. * @return {ReactComponent} Component instance rendered in `container`.
  7993. */
  7994. render: function (nextElement, container, callback) {
  7995. return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);
  7996. },
  7997. /**
  7998. * Unmounts and destroys the React component rendered in the `container`.
  7999. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.unmountcomponentatnode
  8000. *
  8001. * @param {DOMElement} container DOM element containing a React component.
  8002. * @return {boolean} True if a component was found in and unmounted from
  8003. * `container`
  8004. */
  8005. unmountComponentAtNode: function (container) {
  8006. // Various parts of our code (such as ReactCompositeComponent's
  8007. // _renderValidatedComponent) assume that calls to render aren't nested;
  8008. // verify that that's the case. (Strictly speaking, unmounting won't cause a
  8009. // render but we still don't expect to be in a render call here.)
  8010. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): 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. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;
  8011. !isValidContainer(container) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : _prodInvariant('40') : void 0;
  8012. if (process.env.NODE_ENV !== 'production') {
  8013. process.env.NODE_ENV !== 'production' ? warning(!nodeIsRenderedByOtherInstance(container), 'unmountComponentAtNode(): The node you\'re attempting to unmount ' + 'was rendered by another copy of React.') : void 0;
  8014. }
  8015. var prevComponent = getTopLevelWrapperInContainer(container);
  8016. if (!prevComponent) {
  8017. // Check if the node being unmounted was rendered by React, but isn't a
  8018. // root node.
  8019. var containerHasNonRootReactChild = hasNonRootReactChild(container);
  8020. // Check if the container itself is a React root node.
  8021. var isContainerReactRoot = container.nodeType === 1 && container.hasAttribute(ROOT_ATTR_NAME);
  8022. if (process.env.NODE_ENV !== 'production') {
  8023. process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, '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;
  8024. }
  8025. return false;
  8026. }
  8027. delete instancesByReactRootID[prevComponent._instance.rootID];
  8028. ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, false);
  8029. return true;
  8030. },
  8031. _mountImageIntoNode: function (markup, container, instance, shouldReuseMarkup, transaction) {
  8032. !isValidContainer(container) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : _prodInvariant('41') : void 0;
  8033. if (shouldReuseMarkup) {
  8034. var rootElement = getReactRootElementInContainer(container);
  8035. if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) {
  8036. ReactDOMComponentTree.precacheNode(instance, rootElement);
  8037. return;
  8038. } else {
  8039. var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  8040. rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  8041. var rootMarkup = rootElement.outerHTML;
  8042. rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum);
  8043. var normalizedMarkup = markup;
  8044. if (process.env.NODE_ENV !== 'production') {
  8045. // because rootMarkup is retrieved from the DOM, various normalizations
  8046. // will have occurred which will not be present in `markup`. Here,
  8047. // insert markup into a <div> or <iframe> depending on the container
  8048. // type to perform the same normalizations before comparing.
  8049. var normalizer;
  8050. if (container.nodeType === ELEMENT_NODE_TYPE) {
  8051. normalizer = document.createElement('div');
  8052. normalizer.innerHTML = markup;
  8053. normalizedMarkup = normalizer.innerHTML;
  8054. } else {
  8055. normalizer = document.createElement('iframe');
  8056. document.body.appendChild(normalizer);
  8057. normalizer.contentDocument.write(markup);
  8058. normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML;
  8059. document.body.removeChild(normalizer);
  8060. }
  8061. }
  8062. var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup);
  8063. var difference = ' (client) ' + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + '\n (server) ' + rootMarkup.substring(diffIndex - 20, diffIndex + 20);
  8064. !(container.nodeType !== DOC_NODE_TYPE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You\'re trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s', difference) : _prodInvariant('42', difference) : void 0;
  8065. if (process.env.NODE_ENV !== 'production') {
  8066. process.env.NODE_ENV !== 'production' ? warning(false, 'React attempted to reuse markup in a container but the ' + 'checksum was invalid. This generally means that you are ' + 'using server rendering and the markup generated on the ' + 'server was not what the client was expecting. React injected ' + 'new markup to compensate which works but you have lost many ' + 'of the benefits of server rendering. Instead, figure out ' + 'why the markup being generated is different on the client ' + 'or server:\n%s', difference) : void 0;
  8067. }
  8068. }
  8069. }
  8070. !(container.nodeType !== DOC_NODE_TYPE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You\'re trying to render a component to the document but you didn\'t use server rendering. We can\'t do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('43') : void 0;
  8071. if (transaction.useCreateElement) {
  8072. while (container.lastChild) {
  8073. container.removeChild(container.lastChild);
  8074. }
  8075. DOMLazyTree.insertTreeBefore(container, markup, null);
  8076. } else {
  8077. setInnerHTML(container, markup);
  8078. ReactDOMComponentTree.precacheNode(instance, container.firstChild);
  8079. }
  8080. if (process.env.NODE_ENV !== 'production') {
  8081. var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild);
  8082. if (hostNode._debugID !== 0) {
  8083. ReactInstrumentation.debugTool.onHostOperation({
  8084. instanceID: hostNode._debugID,
  8085. type: 'mount',
  8086. payload: markup.toString()
  8087. });
  8088. }
  8089. }
  8090. }
  8091. };
  8092. module.exports = ReactMount;
  8093. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  8094. /***/ }),
  8095. /* 80 */
  8096. /***/ (function(module, exports, __webpack_require__) {
  8097. "use strict";
  8098. /**
  8099. * Copyright 2013-present, Facebook, Inc.
  8100. * All rights reserved.
  8101. *
  8102. * This source code is licensed under the BSD-style license found in the
  8103. * LICENSE file in the root directory of this source tree. An additional grant
  8104. * of patent rights can be found in the PATENTS file in the same directory.
  8105. *
  8106. */
  8107. var ReactNodeTypes = __webpack_require__(72);
  8108. function getHostComponentFromComposite(inst) {
  8109. var type;
  8110. while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) {
  8111. inst = inst._renderedComponent;
  8112. }
  8113. if (type === ReactNodeTypes.HOST) {
  8114. return inst._renderedComponent;
  8115. } else if (type === ReactNodeTypes.EMPTY) {
  8116. return null;
  8117. }
  8118. }
  8119. module.exports = getHostComponentFromComposite;
  8120. /***/ }),
  8121. /* 81 */
  8122. /***/ (function(module, exports, __webpack_require__) {
  8123. /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
  8124. true ? module.exports = factory() :
  8125. typeof define === 'function' && define.amd ? define(factory) :
  8126. (global.BrowserSpriteSymbol = factory());
  8127. }(this, (function () { 'use strict';
  8128. var SpriteSymbol = function SpriteSymbol(ref) {
  8129. var id = ref.id;
  8130. var viewBox = ref.viewBox;
  8131. var content = ref.content;
  8132. this.id = id;
  8133. this.viewBox = viewBox;
  8134. this.content = content;
  8135. };
  8136. /**
  8137. * @return {string}
  8138. */
  8139. SpriteSymbol.prototype.stringify = function stringify () {
  8140. return this.content;
  8141. };
  8142. /**
  8143. * @return {string}
  8144. */
  8145. SpriteSymbol.prototype.toString = function toString () {
  8146. return this.stringify();
  8147. };
  8148. SpriteSymbol.prototype.destroy = function destroy () {
  8149. var this$1 = this;
  8150. ['id', 'viewBox', 'content'].forEach(function (prop) { return delete this$1[prop]; });
  8151. };
  8152. /**
  8153. * @param {string} content
  8154. * @return {Element}
  8155. */
  8156. var parse = function (content) {
  8157. var hasImportNode = !!document.importNode;
  8158. var doc = new DOMParser().parseFromString(content, 'image/svg+xml').documentElement;
  8159. /**
  8160. * Fix for browser which are throwing WrongDocumentError
  8161. * if you insert an element which is not part of the document
  8162. * @see http://stackoverflow.com/a/7986519/4624403
  8163. */
  8164. if (hasImportNode) {
  8165. return document.importNode(doc, true);
  8166. }
  8167. return doc;
  8168. };
  8169. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  8170. function createCommonjsModule(fn, module) {
  8171. return module = { exports: {} }, fn(module, module.exports), module.exports;
  8172. }
  8173. var deepmerge = createCommonjsModule(function (module, exports) {
  8174. (function (root, factory) {
  8175. if (false) {
  8176. undefined(factory);
  8177. } else {
  8178. module.exports = factory();
  8179. }
  8180. }(commonjsGlobal, function () {
  8181. function isMergeableObject(val) {
  8182. var nonNullObject = val && typeof val === 'object';
  8183. return nonNullObject
  8184. && Object.prototype.toString.call(val) !== '[object RegExp]'
  8185. && Object.prototype.toString.call(val) !== '[object Date]'
  8186. }
  8187. function emptyTarget(val) {
  8188. return Array.isArray(val) ? [] : {}
  8189. }
  8190. function cloneIfNecessary(value, optionsArgument) {
  8191. var clone = optionsArgument && optionsArgument.clone === true;
  8192. return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
  8193. }
  8194. function defaultArrayMerge(target, source, optionsArgument) {
  8195. var destination = target.slice();
  8196. source.forEach(function(e, i) {
  8197. if (typeof destination[i] === 'undefined') {
  8198. destination[i] = cloneIfNecessary(e, optionsArgument);
  8199. } else if (isMergeableObject(e)) {
  8200. destination[i] = deepmerge(target[i], e, optionsArgument);
  8201. } else if (target.indexOf(e) === -1) {
  8202. destination.push(cloneIfNecessary(e, optionsArgument));
  8203. }
  8204. });
  8205. return destination
  8206. }
  8207. function mergeObject(target, source, optionsArgument) {
  8208. var destination = {};
  8209. if (isMergeableObject(target)) {
  8210. Object.keys(target).forEach(function (key) {
  8211. destination[key] = cloneIfNecessary(target[key], optionsArgument);
  8212. });
  8213. }
  8214. Object.keys(source).forEach(function (key) {
  8215. if (!isMergeableObject(source[key]) || !target[key]) {
  8216. destination[key] = cloneIfNecessary(source[key], optionsArgument);
  8217. } else {
  8218. destination[key] = deepmerge(target[key], source[key], optionsArgument);
  8219. }
  8220. });
  8221. return destination
  8222. }
  8223. function deepmerge(target, source, optionsArgument) {
  8224. var array = Array.isArray(source);
  8225. var options = optionsArgument || { arrayMerge: defaultArrayMerge };
  8226. var arrayMerge = options.arrayMerge || defaultArrayMerge;
  8227. if (array) {
  8228. return Array.isArray(target) ? arrayMerge(target, source, optionsArgument) : cloneIfNecessary(source, optionsArgument)
  8229. } else {
  8230. return mergeObject(target, source, optionsArgument)
  8231. }
  8232. }
  8233. deepmerge.all = function deepmergeAll(array, optionsArgument) {
  8234. if (!Array.isArray(array) || array.length < 2) {
  8235. throw new Error('first argument should be an array with at least two elements')
  8236. }
  8237. // we are sure there are at least 2 values, so it is safe to have no initial value
  8238. return array.reduce(function(prev, next) {
  8239. return deepmerge(prev, next, optionsArgument)
  8240. })
  8241. };
  8242. return deepmerge
  8243. }));
  8244. });
  8245. var namespaces_1 = createCommonjsModule(function (module, exports) {
  8246. var namespaces = {
  8247. svg: {
  8248. name: 'xmlns',
  8249. uri: 'http://www.w3.org/2000/svg'
  8250. },
  8251. xlink: {
  8252. name: 'xmlns:xlink',
  8253. uri: 'http://www.w3.org/1999/xlink'
  8254. }
  8255. };
  8256. exports.default = namespaces;
  8257. module.exports = exports.default;
  8258. });
  8259. /**
  8260. * @param {Object} attrs
  8261. * @return {string}
  8262. */
  8263. var objectToAttrsString = function (attrs) {
  8264. return Object.keys(attrs).map(function (attr) {
  8265. var value = attrs[attr].toString().replace(/"/g, '&quot;');
  8266. return (attr + "=\"" + value + "\"");
  8267. }).join(' ');
  8268. };
  8269. var svg = namespaces_1.svg;
  8270. var xlink = namespaces_1.xlink;
  8271. var defaultAttrs = {};
  8272. defaultAttrs[svg.name] = svg.uri;
  8273. defaultAttrs[xlink.name] = xlink.uri;
  8274. /**
  8275. * @param {string} [content]
  8276. * @param {Object} [attributes]
  8277. * @return {string}
  8278. */
  8279. var wrapInSvgString = function (content, attributes) {
  8280. if ( content === void 0 ) content = '';
  8281. var attrs = deepmerge(defaultAttrs, attributes || {});
  8282. var attrsRendered = objectToAttrsString(attrs);
  8283. return ("<svg " + attrsRendered + ">" + content + "</svg>");
  8284. };
  8285. var BrowserSpriteSymbol = (function (SpriteSymbol$$1) {
  8286. function BrowserSpriteSymbol () {
  8287. SpriteSymbol$$1.apply(this, arguments);
  8288. }
  8289. if ( SpriteSymbol$$1 ) BrowserSpriteSymbol.__proto__ = SpriteSymbol$$1;
  8290. BrowserSpriteSymbol.prototype = Object.create( SpriteSymbol$$1 && SpriteSymbol$$1.prototype );
  8291. BrowserSpriteSymbol.prototype.constructor = BrowserSpriteSymbol;
  8292. var prototypeAccessors = { isMounted: {} };
  8293. prototypeAccessors.isMounted.get = function () {
  8294. return !!this.node;
  8295. };
  8296. /**
  8297. * @param {Element} node
  8298. * @return {BrowserSpriteSymbol}
  8299. */
  8300. BrowserSpriteSymbol.createFromExistingNode = function createFromExistingNode (node) {
  8301. return new BrowserSpriteSymbol({
  8302. id: node.getAttribute('id'),
  8303. viewBox: node.getAttribute('viewBox'),
  8304. content: node.outerHTML
  8305. });
  8306. };
  8307. BrowserSpriteSymbol.prototype.destroy = function destroy () {
  8308. if (this.isMounted) {
  8309. this.unmount();
  8310. }
  8311. SpriteSymbol$$1.prototype.destroy.call(this);
  8312. };
  8313. /**
  8314. * @param {Element|string} target
  8315. * @return {Element}
  8316. */
  8317. BrowserSpriteSymbol.prototype.mount = function mount (target) {
  8318. if (this.isMounted) {
  8319. return this.node;
  8320. }
  8321. var mountTarget = typeof target === 'string' ? document.querySelector(target) : target;
  8322. var node = this.render();
  8323. this.node = node;
  8324. mountTarget.appendChild(node);
  8325. return node;
  8326. };
  8327. /**
  8328. * @return {Element}
  8329. */
  8330. BrowserSpriteSymbol.prototype.render = function render () {
  8331. var content = this.stringify();
  8332. return parse(wrapInSvgString(content)).childNodes[0];
  8333. };
  8334. BrowserSpriteSymbol.prototype.unmount = function unmount () {
  8335. this.node.parentNode.removeChild(this.node);
  8336. };
  8337. Object.defineProperties( BrowserSpriteSymbol.prototype, prototypeAccessors );
  8338. return BrowserSpriteSymbol;
  8339. }(SpriteSymbol));
  8340. return BrowserSpriteSymbol;
  8341. })));
  8342. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(82)))
  8343. /***/ }),
  8344. /* 82 */
  8345. /***/ (function(module, exports) {
  8346. var g;
  8347. // This works in non-strict mode
  8348. g = (function() {
  8349. return this;
  8350. })();
  8351. try {
  8352. // This works if eval is allowed (see CSP)
  8353. g = g || Function("return this")() || (1,eval)("this");
  8354. } catch(e) {
  8355. // This works if the window reference is available
  8356. if(typeof window === "object")
  8357. g = window;
  8358. }
  8359. // g can still be undefined, but nothing to do about it...
  8360. // We return undefined, instead of nothing here, so it's
  8361. // easier to handle this case. if(!global) { ...}
  8362. module.exports = g;
  8363. /***/ }),
  8364. /* 83 */
  8365. /***/ (function(module, exports, __webpack_require__) {
  8366. /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
  8367. true ? module.exports = factory() :
  8368. typeof define === 'function' && define.amd ? define(factory) :
  8369. (global.BrowserSprite = factory());
  8370. }(this, (function () { 'use strict';
  8371. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  8372. function createCommonjsModule(fn, module) {
  8373. return module = { exports: {} }, fn(module, module.exports), module.exports;
  8374. }
  8375. var deepmerge = createCommonjsModule(function (module, exports) {
  8376. (function (root, factory) {
  8377. if (false) {
  8378. undefined(factory);
  8379. } else {
  8380. module.exports = factory();
  8381. }
  8382. }(commonjsGlobal, function () {
  8383. function isMergeableObject(val) {
  8384. var nonNullObject = val && typeof val === 'object';
  8385. return nonNullObject
  8386. && Object.prototype.toString.call(val) !== '[object RegExp]'
  8387. && Object.prototype.toString.call(val) !== '[object Date]'
  8388. }
  8389. function emptyTarget(val) {
  8390. return Array.isArray(val) ? [] : {}
  8391. }
  8392. function cloneIfNecessary(value, optionsArgument) {
  8393. var clone = optionsArgument && optionsArgument.clone === true;
  8394. return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
  8395. }
  8396. function defaultArrayMerge(target, source, optionsArgument) {
  8397. var destination = target.slice();
  8398. source.forEach(function(e, i) {
  8399. if (typeof destination[i] === 'undefined') {
  8400. destination[i] = cloneIfNecessary(e, optionsArgument);
  8401. } else if (isMergeableObject(e)) {
  8402. destination[i] = deepmerge(target[i], e, optionsArgument);
  8403. } else if (target.indexOf(e) === -1) {
  8404. destination.push(cloneIfNecessary(e, optionsArgument));
  8405. }
  8406. });
  8407. return destination
  8408. }
  8409. function mergeObject(target, source, optionsArgument) {
  8410. var destination = {};
  8411. if (isMergeableObject(target)) {
  8412. Object.keys(target).forEach(function (key) {
  8413. destination[key] = cloneIfNecessary(target[key], optionsArgument);
  8414. });
  8415. }
  8416. Object.keys(source).forEach(function (key) {
  8417. if (!isMergeableObject(source[key]) || !target[key]) {
  8418. destination[key] = cloneIfNecessary(source[key], optionsArgument);
  8419. } else {
  8420. destination[key] = deepmerge(target[key], source[key], optionsArgument);
  8421. }
  8422. });
  8423. return destination
  8424. }
  8425. function deepmerge(target, source, optionsArgument) {
  8426. var array = Array.isArray(source);
  8427. var options = optionsArgument || { arrayMerge: defaultArrayMerge };
  8428. var arrayMerge = options.arrayMerge || defaultArrayMerge;
  8429. if (array) {
  8430. return Array.isArray(target) ? arrayMerge(target, source, optionsArgument) : cloneIfNecessary(source, optionsArgument)
  8431. } else {
  8432. return mergeObject(target, source, optionsArgument)
  8433. }
  8434. }
  8435. deepmerge.all = function deepmergeAll(array, optionsArgument) {
  8436. if (!Array.isArray(array) || array.length < 2) {
  8437. throw new Error('first argument should be an array with at least two elements')
  8438. }
  8439. // we are sure there are at least 2 values, so it is safe to have no initial value
  8440. return array.reduce(function(prev, next) {
  8441. return deepmerge(prev, next, optionsArgument)
  8442. })
  8443. };
  8444. return deepmerge
  8445. }));
  8446. });
  8447. //
  8448. // An event handler can take an optional event argument
  8449. // and should not return a value
  8450. // An array of all currently registered event handlers for a type
  8451. // A map of event types and their corresponding event handlers.
  8452. /** Mitt: Tiny (~200b) functional event emitter / pubsub.
  8453. * @name mitt
  8454. * @returns {Mitt}
  8455. */
  8456. function mitt(all ) {
  8457. all = all || Object.create(null);
  8458. return {
  8459. /**
  8460. * Register an event handler for the given type.
  8461. *
  8462. * @param {String} type Type of event to listen for, or `"*"` for all events
  8463. * @param {Function} handler Function to call in response to given event
  8464. * @memberOf mitt
  8465. */
  8466. on: function on(type , handler ) {
  8467. (all[type] || (all[type] = [])).push(handler);
  8468. },
  8469. /**
  8470. * Remove an event handler for the given type.
  8471. *
  8472. * @param {String} type Type of event to unregister `handler` from, or `"*"`
  8473. * @param {Function} handler Handler function to remove
  8474. * @memberOf mitt
  8475. */
  8476. off: function off(type , handler ) {
  8477. if (all[type]) {
  8478. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  8479. }
  8480. },
  8481. /**
  8482. * Invoke all handlers for the given type.
  8483. * If present, `"*"` handlers are invoked after type-matched handlers.
  8484. *
  8485. * @param {String} type The event type to invoke
  8486. * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
  8487. * @memberof mitt
  8488. */
  8489. emit: function emit(type , evt ) {
  8490. (all[type] || []).map(function (handler) { handler(evt); });
  8491. (all['*'] || []).map(function (handler) { handler(type, evt); });
  8492. }
  8493. };
  8494. }
  8495. var namespaces_1 = createCommonjsModule(function (module, exports) {
  8496. var namespaces = {
  8497. svg: {
  8498. name: 'xmlns',
  8499. uri: 'http://www.w3.org/2000/svg'
  8500. },
  8501. xlink: {
  8502. name: 'xmlns:xlink',
  8503. uri: 'http://www.w3.org/1999/xlink'
  8504. }
  8505. };
  8506. exports.default = namespaces;
  8507. module.exports = exports.default;
  8508. });
  8509. /**
  8510. * @param {Object} attrs
  8511. * @return {string}
  8512. */
  8513. var objectToAttrsString = function (attrs) {
  8514. return Object.keys(attrs).map(function (attr) {
  8515. var value = attrs[attr].toString().replace(/"/g, '&quot;');
  8516. return (attr + "=\"" + value + "\"");
  8517. }).join(' ');
  8518. };
  8519. var svg = namespaces_1.svg;
  8520. var xlink = namespaces_1.xlink;
  8521. var defaultAttrs = {};
  8522. defaultAttrs[svg.name] = svg.uri;
  8523. defaultAttrs[xlink.name] = xlink.uri;
  8524. /**
  8525. * @param {string} [content]
  8526. * @param {Object} [attributes]
  8527. * @return {string}
  8528. */
  8529. var wrapInSvgString = function (content, attributes) {
  8530. if ( content === void 0 ) content = '';
  8531. var attrs = deepmerge(defaultAttrs, attributes || {});
  8532. var attrsRendered = objectToAttrsString(attrs);
  8533. return ("<svg " + attrsRendered + ">" + content + "</svg>");
  8534. };
  8535. var svg$1 = namespaces_1.svg;
  8536. var xlink$1 = namespaces_1.xlink;
  8537. var defaultConfig = {
  8538. attrs: ( obj = {
  8539. style: ['position: absolute', 'width: 0', 'height: 0'].join('; ')
  8540. }, obj[svg$1.name] = svg$1.uri, obj[xlink$1.name] = xlink$1.uri, obj )
  8541. };
  8542. var obj;
  8543. var Sprite = function Sprite(config) {
  8544. this.config = deepmerge(defaultConfig, config || {});
  8545. this.symbols = [];
  8546. };
  8547. /**
  8548. * Add new symbol. If symbol with the same id exists it will be replaced.
  8549. * @param {SpriteSymbol} symbol
  8550. * @return {boolean} `true` - symbol was added, `false` - replaced
  8551. */
  8552. Sprite.prototype.add = function add (symbol) {
  8553. var ref = this;
  8554. var symbols = ref.symbols;
  8555. var existing = this.find(symbol.id);
  8556. if (existing) {
  8557. symbols[symbols.indexOf(existing)] = symbol;
  8558. return false;
  8559. }
  8560. symbols.push(symbol);
  8561. return true;
  8562. };
  8563. /**
  8564. * Remove symbol & destroy it
  8565. * @param {string} id
  8566. * @return {boolean} `true` - symbol was found & successfully destroyed, `false` - otherwise
  8567. */
  8568. Sprite.prototype.remove = function remove (id) {
  8569. var ref = this;
  8570. var symbols = ref.symbols;
  8571. var symbol = this.find(id);
  8572. if (symbol) {
  8573. symbols.splice(symbols.indexOf(symbol), 1);
  8574. symbol.destroy();
  8575. return true;
  8576. }
  8577. return false;
  8578. };
  8579. /**
  8580. * @param {string} id
  8581. * @return {SpriteSymbol|null}
  8582. */
  8583. Sprite.prototype.find = function find (id) {
  8584. return this.symbols.filter(function (s) { return s.id === id; })[0] || null;
  8585. };
  8586. /**
  8587. * @param {string} id
  8588. * @return {boolean}
  8589. */
  8590. Sprite.prototype.has = function has (id) {
  8591. return this.find(id) !== null;
  8592. };
  8593. /**
  8594. * @return {string}
  8595. */
  8596. Sprite.prototype.stringify = function stringify () {
  8597. var ref = this.config;
  8598. var attrs = ref.attrs;
  8599. var stringifiedSymbols = this.symbols.map(function (s) { return s.stringify(); }).join('');
  8600. return wrapInSvgString(stringifiedSymbols, attrs);
  8601. };
  8602. /**
  8603. * @return {string}
  8604. */
  8605. Sprite.prototype.toString = function toString () {
  8606. return this.stringify();
  8607. };
  8608. Sprite.prototype.destroy = function destroy () {
  8609. this.symbols.forEach(function (s) { return s.destroy(); });
  8610. };
  8611. var SpriteSymbol = function SpriteSymbol(ref) {
  8612. var id = ref.id;
  8613. var viewBox = ref.viewBox;
  8614. var content = ref.content;
  8615. this.id = id;
  8616. this.viewBox = viewBox;
  8617. this.content = content;
  8618. };
  8619. /**
  8620. * @return {string}
  8621. */
  8622. SpriteSymbol.prototype.stringify = function stringify () {
  8623. return this.content;
  8624. };
  8625. /**
  8626. * @return {string}
  8627. */
  8628. SpriteSymbol.prototype.toString = function toString () {
  8629. return this.stringify();
  8630. };
  8631. SpriteSymbol.prototype.destroy = function destroy () {
  8632. var this$1 = this;
  8633. ['id', 'viewBox', 'content'].forEach(function (prop) { return delete this$1[prop]; });
  8634. };
  8635. /**
  8636. * @param {string} content
  8637. * @return {Element}
  8638. */
  8639. var parse = function (content) {
  8640. var hasImportNode = !!document.importNode;
  8641. var doc = new DOMParser().parseFromString(content, 'image/svg+xml').documentElement;
  8642. /**
  8643. * Fix for browser which are throwing WrongDocumentError
  8644. * if you insert an element which is not part of the document
  8645. * @see http://stackoverflow.com/a/7986519/4624403
  8646. */
  8647. if (hasImportNode) {
  8648. return document.importNode(doc, true);
  8649. }
  8650. return doc;
  8651. };
  8652. var BrowserSpriteSymbol = (function (SpriteSymbol$$1) {
  8653. function BrowserSpriteSymbol () {
  8654. SpriteSymbol$$1.apply(this, arguments);
  8655. }
  8656. if ( SpriteSymbol$$1 ) BrowserSpriteSymbol.__proto__ = SpriteSymbol$$1;
  8657. BrowserSpriteSymbol.prototype = Object.create( SpriteSymbol$$1 && SpriteSymbol$$1.prototype );
  8658. BrowserSpriteSymbol.prototype.constructor = BrowserSpriteSymbol;
  8659. var prototypeAccessors = { isMounted: {} };
  8660. prototypeAccessors.isMounted.get = function () {
  8661. return !!this.node;
  8662. };
  8663. /**
  8664. * @param {Element} node
  8665. * @return {BrowserSpriteSymbol}
  8666. */
  8667. BrowserSpriteSymbol.createFromExistingNode = function createFromExistingNode (node) {
  8668. return new BrowserSpriteSymbol({
  8669. id: node.getAttribute('id'),
  8670. viewBox: node.getAttribute('viewBox'),
  8671. content: node.outerHTML
  8672. });
  8673. };
  8674. BrowserSpriteSymbol.prototype.destroy = function destroy () {
  8675. if (this.isMounted) {
  8676. this.unmount();
  8677. }
  8678. SpriteSymbol$$1.prototype.destroy.call(this);
  8679. };
  8680. /**
  8681. * @param {Element|string} target
  8682. * @return {Element}
  8683. */
  8684. BrowserSpriteSymbol.prototype.mount = function mount (target) {
  8685. if (this.isMounted) {
  8686. return this.node;
  8687. }
  8688. var mountTarget = typeof target === 'string' ? document.querySelector(target) : target;
  8689. var node = this.render();
  8690. this.node = node;
  8691. mountTarget.appendChild(node);
  8692. return node;
  8693. };
  8694. /**
  8695. * @return {Element}
  8696. */
  8697. BrowserSpriteSymbol.prototype.render = function render () {
  8698. var content = this.stringify();
  8699. return parse(wrapInSvgString(content)).childNodes[0];
  8700. };
  8701. BrowserSpriteSymbol.prototype.unmount = function unmount () {
  8702. this.node.parentNode.removeChild(this.node);
  8703. };
  8704. Object.defineProperties( BrowserSpriteSymbol.prototype, prototypeAccessors );
  8705. return BrowserSpriteSymbol;
  8706. }(SpriteSymbol));
  8707. var defaultConfig$1 = {
  8708. /**
  8709. * Should following options be automatically configured:
  8710. * - `syncUrlsWithBaseTag`
  8711. * - `locationChangeAngularEmitter`
  8712. * - `moveGradientsOutsideSymbol`
  8713. * @type {boolean}
  8714. */
  8715. autoConfigure: true,
  8716. /**
  8717. * Default mounting selector
  8718. * @type {string}
  8719. */
  8720. mountTo: 'body',
  8721. /**
  8722. * Fix disappearing SVG elements when <base href> exists.
  8723. * Executes when sprite mounted.
  8724. * @see http://stackoverflow.com/a/18265336/796152
  8725. * @see https://github.com/everdimension/angular-svg-base-fix
  8726. * @see https://github.com/angular/angular.js/issues/8934#issuecomment-56568466
  8727. * @type {boolean}
  8728. */
  8729. syncUrlsWithBaseTag: false,
  8730. /**
  8731. * Should sprite listen custom location change event
  8732. * @type {boolean}
  8733. */
  8734. listenLocationChangeEvent: true,
  8735. /**
  8736. * Custom window event name which should be emitted to update sprite urls
  8737. * @type {string}
  8738. */
  8739. locationChangeEvent: 'locationChange',
  8740. /**
  8741. * Emit location change event in Angular automatically
  8742. * @type {boolean}
  8743. */
  8744. locationChangeAngularEmitter: false,
  8745. /**
  8746. * Selector to find symbols usages when updating sprite urls
  8747. * @type {string}
  8748. */
  8749. usagesToUpdate: 'use[*|href]',
  8750. /**
  8751. * Fix Firefox bug when gradients and patterns don't work if they are within a symbol.
  8752. * Executes when sprite is rendered, but not mounted.
  8753. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=306674
  8754. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=353575
  8755. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=1235364
  8756. * @type {boolean}
  8757. */
  8758. moveGradientsOutsideSymbol: false
  8759. };
  8760. /**
  8761. * @param {*} arrayLike
  8762. * @return {Array}
  8763. */
  8764. var arrayFrom = function (arrayLike) {
  8765. return Array.prototype.slice.call(arrayLike, 0);
  8766. };
  8767. var browser = {
  8768. isChrome: function () { return /chrome/i.test(navigator.userAgent); },
  8769. isFirefox: function () { return /firefox/i.test(navigator.userAgent); },
  8770. // https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
  8771. isIE: function () { return /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent); },
  8772. isEdge: function () { return /edge/i.test(navigator.userAgent); }
  8773. };
  8774. /**
  8775. * @param {string} name
  8776. * @param {*} data
  8777. */
  8778. var dispatchEvent = function (name, data) {
  8779. var event = document.createEvent('CustomEvent');
  8780. event.initCustomEvent(name, false, false, data);
  8781. window.dispatchEvent(event);
  8782. };
  8783. /**
  8784. * IE doesn't evaluate <style> tags in SVGs that are dynamically added to the page.
  8785. * This trick will trigger IE to read and use any existing SVG <style> tags.
  8786. * @see https://github.com/iconic/SVGInjector/issues/23
  8787. * @see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/
  8788. *
  8789. * @param {Element} node DOM Element to search <style> tags in
  8790. * @return {Array<HTMLStyleElement>}
  8791. */
  8792. var evalStylesIEWorkaround = function (node) {
  8793. var updatedNodes = [];
  8794. arrayFrom(node.querySelectorAll('style'))
  8795. .forEach(function (style) {
  8796. style.textContent += '';
  8797. updatedNodes.push(style);
  8798. });
  8799. return updatedNodes;
  8800. };
  8801. /**
  8802. * @param {string} [url] If not provided - current URL will be used
  8803. * @return {string}
  8804. */
  8805. var getUrlWithoutFragment = function (url) {
  8806. return (url || window.location.href).split('#')[0];
  8807. };
  8808. /* global angular */
  8809. /**
  8810. * @param {string} eventName
  8811. */
  8812. var locationChangeAngularEmitter = function (eventName) {
  8813. angular.module('ng').run(['$rootScope', function ($rootScope) {
  8814. $rootScope.$on('$locationChangeSuccess', function (e, newUrl, oldUrl) {
  8815. dispatchEvent(eventName, { oldUrl: oldUrl, newUrl: newUrl });
  8816. });
  8817. }]);
  8818. };
  8819. var defaultSelector = 'linearGradient, radialGradient, pattern';
  8820. /**
  8821. * @param {Element} svg
  8822. * @param {string} [selector]
  8823. * @return {Element}
  8824. */
  8825. var moveGradientsOutsideSymbol = function (svg, selector) {
  8826. if ( selector === void 0 ) selector = defaultSelector;
  8827. arrayFrom(svg.querySelectorAll('symbol')).forEach(function (symbol) {
  8828. arrayFrom(symbol.querySelectorAll(selector)).forEach(function (node) {
  8829. symbol.parentNode.insertBefore(node, symbol);
  8830. });
  8831. });
  8832. return svg;
  8833. };
  8834. /**
  8835. * @param {NodeList} nodes
  8836. * @param {Function} [matcher]
  8837. * @return {Attr[]}
  8838. */
  8839. function selectAttributes(nodes, matcher) {
  8840. var attrs = arrayFrom(nodes).reduce(function (acc, node) {
  8841. if (!node.attributes) {
  8842. return acc;
  8843. }
  8844. var arrayfied = arrayFrom(node.attributes);
  8845. var matched = matcher ? arrayfied.filter(matcher) : arrayfied;
  8846. return acc.concat(matched);
  8847. }, []);
  8848. return attrs;
  8849. }
  8850. /**
  8851. * @param {NodeList|Node} nodes
  8852. * @param {boolean} [clone=true]
  8853. * @return {string}
  8854. */
  8855. var xLinkNS = namespaces_1.xlink.uri;
  8856. var xLinkAttrName = 'xlink:href';
  8857. // eslint-disable-next-line no-useless-escape
  8858. var specialUrlCharsPattern = /[{}|\\\^\[\]`"<>]/g;
  8859. function encoder(url) {
  8860. return url.replace(specialUrlCharsPattern, function (match) {
  8861. return ("%" + (match[0].charCodeAt(0).toString(16).toUpperCase()));
  8862. });
  8863. }
  8864. function escapeRegExp(str) {
  8865. return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
  8866. }
  8867. /**
  8868. * @param {NodeList} nodes
  8869. * @param {string} startsWith
  8870. * @param {string} replaceWith
  8871. * @return {NodeList}
  8872. */
  8873. function updateReferences(nodes, startsWith, replaceWith) {
  8874. arrayFrom(nodes).forEach(function (node) {
  8875. var href = node.getAttribute(xLinkAttrName);
  8876. if (href && href.indexOf(startsWith) === 0) {
  8877. var newUrl = href.replace(startsWith, replaceWith);
  8878. node.setAttributeNS(xLinkNS, xLinkAttrName, newUrl);
  8879. }
  8880. });
  8881. return nodes;
  8882. }
  8883. /**
  8884. * List of SVG attributes to update url() target in them
  8885. */
  8886. var attList = [
  8887. 'clipPath',
  8888. 'colorProfile',
  8889. 'src',
  8890. 'cursor',
  8891. 'fill',
  8892. 'filter',
  8893. 'marker',
  8894. 'markerStart',
  8895. 'markerMid',
  8896. 'markerEnd',
  8897. 'mask',
  8898. 'stroke',
  8899. 'style'
  8900. ];
  8901. var attSelector = attList.map(function (attr) { return ("[" + attr + "]"); }).join(',');
  8902. /**
  8903. * Update URLs in svg image (like `fill="url(...)"`) and update referencing elements
  8904. * @param {Element} svg
  8905. * @param {NodeList} references
  8906. * @param {string|RegExp} startsWith
  8907. * @param {string} replaceWith
  8908. * @return {void}
  8909. *
  8910. * @example
  8911. * const sprite = document.querySelector('svg.sprite');
  8912. * const usages = document.querySelectorAll('use');
  8913. * updateUrls(sprite, usages, '#', 'prefix#');
  8914. */
  8915. var updateUrls = function (svg, references, startsWith, replaceWith) {
  8916. var startsWithEncoded = encoder(startsWith);
  8917. var replaceWithEncoded = encoder(replaceWith);
  8918. var nodes = svg.querySelectorAll(attSelector);
  8919. var attrs = selectAttributes(nodes, function (ref) {
  8920. var localName = ref.localName;
  8921. var value = ref.value;
  8922. return attList.indexOf(localName) !== -1 && value.indexOf(("url(" + startsWithEncoded)) !== -1;
  8923. });
  8924. attrs.forEach(function (attr) { return attr.value = attr.value.replace(new RegExp(escapeRegExp(startsWithEncoded), 'g'), replaceWithEncoded); });
  8925. updateReferences(references, startsWithEncoded, replaceWithEncoded);
  8926. };
  8927. /**
  8928. * Internal emitter events
  8929. * @enum
  8930. * @private
  8931. */
  8932. var Events = {
  8933. MOUNT: 'mount',
  8934. SYMBOL_MOUNT: 'symbol_mount'
  8935. };
  8936. var BrowserSprite = (function (Sprite$$1) {
  8937. function BrowserSprite(cfg) {
  8938. var this$1 = this;
  8939. if ( cfg === void 0 ) cfg = {};
  8940. Sprite$$1.call(this, deepmerge(defaultConfig$1, cfg));
  8941. var emitter = mitt();
  8942. this._emitter = emitter;
  8943. this.node = null;
  8944. var ref = this;
  8945. var config = ref.config;
  8946. if (config.autoConfigure) {
  8947. this._autoConfigure(cfg);
  8948. }
  8949. if (config.syncUrlsWithBaseTag) {
  8950. var baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');
  8951. emitter.on(Events.MOUNT, function () { return this$1.updateUrls('#', baseUrl); });
  8952. }
  8953. var handleLocationChange = this._handleLocationChange.bind(this);
  8954. this._handleLocationChange = handleLocationChange;
  8955. // Provide way to update sprite urls externally via dispatching custom window event
  8956. if (config.listenLocationChangeEvent) {
  8957. window.addEventListener(config.locationChangeEvent, handleLocationChange);
  8958. }
  8959. // Emit location change event in Angular automatically
  8960. if (config.locationChangeAngularEmitter) {
  8961. locationChangeAngularEmitter(config.locationChangeEvent);
  8962. }
  8963. // After sprite mounted
  8964. emitter.on(Events.MOUNT, function (spriteNode) {
  8965. if (config.moveGradientsOutsideSymbol) {
  8966. moveGradientsOutsideSymbol(spriteNode);
  8967. }
  8968. });
  8969. // After symbol mounted into sprite
  8970. emitter.on(Events.SYMBOL_MOUNT, function (symbolNode) {
  8971. if (config.moveGradientsOutsideSymbol) {
  8972. moveGradientsOutsideSymbol(symbolNode.parentNode);
  8973. }
  8974. if (browser.isIE() || browser.isEdge()) {
  8975. evalStylesIEWorkaround(symbolNode);
  8976. }
  8977. });
  8978. }
  8979. if ( Sprite$$1 ) BrowserSprite.__proto__ = Sprite$$1;
  8980. BrowserSprite.prototype = Object.create( Sprite$$1 && Sprite$$1.prototype );
  8981. BrowserSprite.prototype.constructor = BrowserSprite;
  8982. var prototypeAccessors = { isMounted: {} };
  8983. /**
  8984. * @return {boolean}
  8985. */
  8986. prototypeAccessors.isMounted.get = function () {
  8987. return !!this.node;
  8988. };
  8989. /**
  8990. * Automatically configure following options
  8991. * - `syncUrlsWithBaseTag`
  8992. * - `locationChangeAngularEmitter`
  8993. * - `moveGradientsOutsideSymbol`
  8994. * @param {Object} cfg
  8995. * @private
  8996. */
  8997. BrowserSprite.prototype._autoConfigure = function _autoConfigure (cfg) {
  8998. var ref = this;
  8999. var config = ref.config;
  9000. if (typeof cfg.syncUrlsWithBaseTag === 'undefined') {
  9001. config.syncUrlsWithBaseTag = typeof document.getElementsByTagName('base')[0] !== 'undefined';
  9002. }
  9003. if (typeof cfg.locationChangeAngularEmitter === 'undefined') {
  9004. config.locationChangeAngularEmitter = 'angular' in window;
  9005. }
  9006. if (typeof cfg.moveGradientsOutsideSymbol === 'undefined') {
  9007. config.moveGradientsOutsideSymbol = browser.isFirefox();
  9008. }
  9009. };
  9010. /**
  9011. * @param {Event} event
  9012. * @param {Object} event.detail
  9013. * @param {string} event.detail.oldUrl
  9014. * @param {string} event.detail.newUrl
  9015. * @private
  9016. */
  9017. BrowserSprite.prototype._handleLocationChange = function _handleLocationChange (event) {
  9018. var ref = event.detail;
  9019. var oldUrl = ref.oldUrl;
  9020. var newUrl = ref.newUrl;
  9021. this.updateUrls(oldUrl, newUrl);
  9022. };
  9023. /**
  9024. * Add new symbol. If symbol with the same id exists it will be replaced.
  9025. * If sprite already mounted - `symbol.mount(sprite.node)` will be called.
  9026. * @fires Events#SYMBOL_MOUNT
  9027. * @param {BrowserSpriteSymbol} symbol
  9028. * @return {boolean} `true` - symbol was added, `false` - replaced
  9029. */
  9030. BrowserSprite.prototype.add = function add (symbol) {
  9031. var sprite = this;
  9032. var isNewSymbol = Sprite$$1.prototype.add.call(this, symbol);
  9033. if (this.isMounted && isNewSymbol) {
  9034. symbol.mount(sprite.node);
  9035. this._emitter.emit(Events.SYMBOL_MOUNT, symbol.node);
  9036. }
  9037. return isNewSymbol;
  9038. };
  9039. /**
  9040. * Attach to existing DOM node
  9041. * @param {string|Element} target
  9042. * @return {Element|null} attached DOM Element. null if node to attach not found.
  9043. */
  9044. BrowserSprite.prototype.attach = function attach (target) {
  9045. var this$1 = this;
  9046. var sprite = this;
  9047. if (sprite.isMounted) {
  9048. return sprite.node;
  9049. }
  9050. /** @type Element */
  9051. var node = typeof target === 'string' ? document.querySelector(target) : target;
  9052. sprite.node = node;
  9053. // Already added symbols needs to be mounted
  9054. this.symbols.forEach(function (symbol) {
  9055. symbol.mount(sprite.node);
  9056. this$1._emitter.emit(Events.SYMBOL_MOUNT, symbol.node);
  9057. });
  9058. // Create symbols from existing DOM nodes, add and mount them
  9059. arrayFrom(node.querySelectorAll('symbol'))
  9060. .forEach(function (symbolNode) {
  9061. var symbol = BrowserSpriteSymbol.createFromExistingNode(symbolNode);
  9062. symbol.node = symbolNode; // hack to prevent symbol mounting to sprite when adding
  9063. sprite.add(symbol);
  9064. });
  9065. this._emitter.emit(Events.MOUNT, node);
  9066. return node;
  9067. };
  9068. BrowserSprite.prototype.destroy = function destroy () {
  9069. var ref = this;
  9070. var config = ref.config;
  9071. var symbols = ref.symbols;
  9072. var _emitter = ref._emitter;
  9073. symbols.forEach(function (s) { return s.destroy(); });
  9074. _emitter.off('*');
  9075. window.removeEventListener(config.locationChangeEvent, this._handleLocationChange);
  9076. if (this.isMounted) {
  9077. this.unmount();
  9078. }
  9079. };
  9080. /**
  9081. * @fires Events#MOUNT
  9082. * @param {string|Element} [target]
  9083. * @param {boolean} [prepend=false]
  9084. * @return {Element|null} rendered sprite node. null if mount node not found.
  9085. */
  9086. BrowserSprite.prototype.mount = function mount (target, prepend) {
  9087. if ( target === void 0 ) target = this.config.mountTo;
  9088. if ( prepend === void 0 ) prepend = false;
  9089. var sprite = this;
  9090. if (sprite.isMounted) {
  9091. return sprite.node;
  9092. }
  9093. var mountNode = typeof target === 'string' ? document.querySelector(target) : target;
  9094. var node = sprite.render();
  9095. this.node = node;
  9096. if (prepend && mountNode.childNodes[0]) {
  9097. mountNode.insertBefore(node, mountNode.childNodes[0]);
  9098. } else {
  9099. mountNode.appendChild(node);
  9100. }
  9101. this._emitter.emit(Events.MOUNT, node);
  9102. return node;
  9103. };
  9104. /**
  9105. * @return {Element}
  9106. */
  9107. BrowserSprite.prototype.render = function render () {
  9108. return parse(this.stringify());
  9109. };
  9110. /**
  9111. * Detach sprite from the DOM
  9112. */
  9113. BrowserSprite.prototype.unmount = function unmount () {
  9114. this.node.parentNode.removeChild(this.node);
  9115. };
  9116. /**
  9117. * Update URLs in sprite and usage elements
  9118. * @param {string} oldUrl
  9119. * @param {string} newUrl
  9120. * @return {boolean} `true` - URLs was updated, `false` - sprite is not mounted
  9121. */
  9122. BrowserSprite.prototype.updateUrls = function updateUrls$1 (oldUrl, newUrl) {
  9123. if (!this.isMounted) {
  9124. return false;
  9125. }
  9126. var usages = document.querySelectorAll(this.config.usagesToUpdate);
  9127. updateUrls(
  9128. this.node,
  9129. usages,
  9130. ((getUrlWithoutFragment(oldUrl)) + "#"),
  9131. ((getUrlWithoutFragment(newUrl)) + "#")
  9132. );
  9133. return true;
  9134. };
  9135. Object.defineProperties( BrowserSprite.prototype, prototypeAccessors );
  9136. return BrowserSprite;
  9137. }(Sprite));
  9138. var ready$1 = createCommonjsModule(function (module) {
  9139. /*!
  9140. * domready (c) Dustin Diaz 2014 - License MIT
  9141. */
  9142. !function (name, definition) {
  9143. { module.exports = definition(); }
  9144. }('domready', function () {
  9145. var fns = [], listener
  9146. , doc = document
  9147. , hack = doc.documentElement.doScroll
  9148. , domContentLoaded = 'DOMContentLoaded'
  9149. , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);
  9150. if (!loaded)
  9151. { doc.addEventListener(domContentLoaded, listener = function () {
  9152. doc.removeEventListener(domContentLoaded, listener);
  9153. loaded = 1;
  9154. while (listener = fns.shift()) { listener(); }
  9155. }); }
  9156. return function (fn) {
  9157. loaded ? setTimeout(fn, 0) : fns.push(fn);
  9158. }
  9159. });
  9160. });
  9161. var spriteNodeId = '__SVG_SPRITE_NODE__';
  9162. var spriteGlobalVarName = '__SVG_SPRITE__';
  9163. var isSpriteExists = !!window[spriteGlobalVarName];
  9164. // eslint-disable-next-line import/no-mutable-exports
  9165. var sprite;
  9166. if (isSpriteExists) {
  9167. sprite = window[spriteGlobalVarName];
  9168. } else {
  9169. sprite = new BrowserSprite({ attrs: { id: spriteNodeId } });
  9170. window[spriteGlobalVarName] = sprite;
  9171. }
  9172. var loadSprite = function () {
  9173. /**
  9174. * Check for page already contains sprite node
  9175. * If found - attach to and reuse it's content
  9176. * If not - render and mount the new sprite
  9177. */
  9178. var existing = document.getElementById(spriteNodeId);
  9179. if (existing) {
  9180. sprite.attach(existing);
  9181. } else {
  9182. sprite.mount(document.body, true);
  9183. }
  9184. };
  9185. if (document.body) {
  9186. loadSprite();
  9187. } else {
  9188. ready$1(loadSprite);
  9189. }
  9190. var sprite$1 = sprite;
  9191. return sprite$1;
  9192. })));
  9193. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(82)))
  9194. /***/ }),
  9195. /* 84 */
  9196. /***/ (function(module, exports, __webpack_require__) {
  9197. "use strict";
  9198. Object.defineProperty(exports, "__esModule", {
  9199. value: true
  9200. });
  9201. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  9202. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  9203. var _react = __webpack_require__(25);
  9204. var _react2 = _interopRequireDefault(_react);
  9205. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9206. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  9207. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  9208. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  9209. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  9210. var Icon = function (_PureComponent) {
  9211. _inherits(Icon, _PureComponent);
  9212. function Icon() {
  9213. _classCallCheck(this, Icon);
  9214. return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments));
  9215. }
  9216. _createClass(Icon, [{
  9217. key: 'render',
  9218. value: function render() {
  9219. var _props = this.props,
  9220. className = _props.className,
  9221. glyph = _props.glyph,
  9222. restProps = _objectWithoutProperties(_props, ['className', 'glyph']);
  9223. return _react2.default.createElement(
  9224. 'svg',
  9225. _extends({ className: className }, restProps),
  9226. _react2.default.createElement('use', { xlinkHref: '#' + glyph })
  9227. );
  9228. }
  9229. }]);
  9230. return Icon;
  9231. }(_react.PureComponent);
  9232. exports.default = Icon;
  9233. Icon.defaultProps = {
  9234. glyph: '',
  9235. className: 'icon'
  9236. };
  9237. /***/ }),
  9238. /* 85 */
  9239. /***/ (function(module, exports, __webpack_require__) {
  9240. "use strict";
  9241. var _react = __webpack_require__(25);
  9242. var _react2 = _interopRequireDefault(_react);
  9243. var _reactDom = __webpack_require__(101);
  9244. var _twitter = __webpack_require__(190);
  9245. var _twitter2 = _interopRequireDefault(_twitter);
  9246. var _wikipedia = __webpack_require__(191);
  9247. var _wikipedia2 = _interopRequireDefault(_wikipedia);
  9248. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9249. document.addEventListener('DOMContentLoaded', function () {
  9250. (0, _reactDom.render)(_react2.default.createElement(
  9251. 'div',
  9252. null,
  9253. _react2.default.createElement(_twitter2.default, { width: '100' }),
  9254. _react2.default.createElement(_wikipedia2.default, { width: '200' })
  9255. ), document.querySelector('.app'));
  9256. });
  9257. /***/ }),
  9258. /* 86 */
  9259. /***/ (function(module, exports, __webpack_require__) {
  9260. "use strict";
  9261. /**
  9262. * Copyright 2013-present, Facebook, Inc.
  9263. * All rights reserved.
  9264. *
  9265. * This source code is licensed under the BSD-style license found in the
  9266. * LICENSE file in the root directory of this source tree. An additional grant
  9267. * of patent rights can be found in the PATENTS file in the same directory.
  9268. *
  9269. */
  9270. var PooledClass = __webpack_require__(87);
  9271. var ReactElement = __webpack_require__(15);
  9272. var emptyFunction = __webpack_require__(8);
  9273. var traverseAllChildren = __webpack_require__(88);
  9274. var twoArgumentPooler = PooledClass.twoArgumentPooler;
  9275. var fourArgumentPooler = PooledClass.fourArgumentPooler;
  9276. var userProvidedKeyEscapeRegex = /\/+/g;
  9277. function escapeUserProvidedKey(text) {
  9278. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  9279. }
  9280. /**
  9281. * PooledClass representing the bookkeeping associated with performing a child
  9282. * traversal. Allows avoiding binding callbacks.
  9283. *
  9284. * @constructor ForEachBookKeeping
  9285. * @param {!function} forEachFunction Function to perform traversal with.
  9286. * @param {?*} forEachContext Context to perform context with.
  9287. */
  9288. function ForEachBookKeeping(forEachFunction, forEachContext) {
  9289. this.func = forEachFunction;
  9290. this.context = forEachContext;
  9291. this.count = 0;
  9292. }
  9293. ForEachBookKeeping.prototype.destructor = function () {
  9294. this.func = null;
  9295. this.context = null;
  9296. this.count = 0;
  9297. };
  9298. PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);
  9299. function forEachSingleChild(bookKeeping, child, name) {
  9300. var func = bookKeeping.func,
  9301. context = bookKeeping.context;
  9302. func.call(context, child, bookKeeping.count++);
  9303. }
  9304. /**
  9305. * Iterates through children that are typically specified as `props.children`.
  9306. *
  9307. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach
  9308. *
  9309. * The provided forEachFunc(child, index) will be called for each
  9310. * leaf child.
  9311. *
  9312. * @param {?*} children Children tree container.
  9313. * @param {function(*, int)} forEachFunc
  9314. * @param {*} forEachContext Context for forEachContext.
  9315. */
  9316. function forEachChildren(children, forEachFunc, forEachContext) {
  9317. if (children == null) {
  9318. return children;
  9319. }
  9320. var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);
  9321. traverseAllChildren(children, forEachSingleChild, traverseContext);
  9322. ForEachBookKeeping.release(traverseContext);
  9323. }
  9324. /**
  9325. * PooledClass representing the bookkeeping associated with performing a child
  9326. * mapping. Allows avoiding binding callbacks.
  9327. *
  9328. * @constructor MapBookKeeping
  9329. * @param {!*} mapResult Object containing the ordered map of results.
  9330. * @param {!function} mapFunction Function to perform mapping with.
  9331. * @param {?*} mapContext Context to perform mapping with.
  9332. */
  9333. function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {
  9334. this.result = mapResult;
  9335. this.keyPrefix = keyPrefix;
  9336. this.func = mapFunction;
  9337. this.context = mapContext;
  9338. this.count = 0;
  9339. }
  9340. MapBookKeeping.prototype.destructor = function () {
  9341. this.result = null;
  9342. this.keyPrefix = null;
  9343. this.func = null;
  9344. this.context = null;
  9345. this.count = 0;
  9346. };
  9347. PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);
  9348. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  9349. var result = bookKeeping.result,
  9350. keyPrefix = bookKeeping.keyPrefix,
  9351. func = bookKeeping.func,
  9352. context = bookKeeping.context;
  9353. var mappedChild = func.call(context, child, bookKeeping.count++);
  9354. if (Array.isArray(mappedChild)) {
  9355. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
  9356. } else if (mappedChild != null) {
  9357. if (ReactElement.isValidElement(mappedChild)) {
  9358. mappedChild = ReactElement.cloneAndReplaceKey(mappedChild,
  9359. // Keep both the (mapped) and old keys if they differ, just as
  9360. // traverseAllChildren used to do for objects as children
  9361. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  9362. }
  9363. result.push(mappedChild);
  9364. }
  9365. }
  9366. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  9367. var escapedPrefix = '';
  9368. if (prefix != null) {
  9369. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  9370. }
  9371. var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
  9372. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  9373. MapBookKeeping.release(traverseContext);
  9374. }
  9375. /**
  9376. * Maps children that are typically specified as `props.children`.
  9377. *
  9378. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map
  9379. *
  9380. * The provided mapFunction(child, key, index) will be called for each
  9381. * leaf child.
  9382. *
  9383. * @param {?*} children Children tree container.
  9384. * @param {function(*, int)} func The map function.
  9385. * @param {*} context Context for mapFunction.
  9386. * @return {object} Object containing the ordered map of results.
  9387. */
  9388. function mapChildren(children, func, context) {
  9389. if (children == null) {
  9390. return children;
  9391. }
  9392. var result = [];
  9393. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  9394. return result;
  9395. }
  9396. function forEachSingleChildDummy(traverseContext, child, name) {
  9397. return null;
  9398. }
  9399. /**
  9400. * Count the number of children that are typically specified as
  9401. * `props.children`.
  9402. *
  9403. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count
  9404. *
  9405. * @param {?*} children Children tree container.
  9406. * @return {number} The number of children.
  9407. */
  9408. function countChildren(children, context) {
  9409. return traverseAllChildren(children, forEachSingleChildDummy, null);
  9410. }
  9411. /**
  9412. * Flatten a children object (typically specified as `props.children`) and
  9413. * return an array with appropriately re-keyed children.
  9414. *
  9415. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray
  9416. */
  9417. function toArray(children) {
  9418. var result = [];
  9419. mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
  9420. return result;
  9421. }
  9422. var ReactChildren = {
  9423. forEach: forEachChildren,
  9424. map: mapChildren,
  9425. mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,
  9426. count: countChildren,
  9427. toArray: toArray
  9428. };
  9429. module.exports = ReactChildren;
  9430. /***/ }),
  9431. /* 87 */
  9432. /***/ (function(module, exports, __webpack_require__) {
  9433. "use strict";
  9434. /* WEBPACK VAR INJECTION */(function(process) {/**
  9435. * Copyright 2013-present, Facebook, Inc.
  9436. * All rights reserved.
  9437. *
  9438. * This source code is licensed under the BSD-style license found in the
  9439. * LICENSE file in the root directory of this source tree. An additional grant
  9440. * of patent rights can be found in the PATENTS file in the same directory.
  9441. *
  9442. *
  9443. */
  9444. var _prodInvariant = __webpack_require__(14);
  9445. var invariant = __webpack_require__(1);
  9446. /**
  9447. * Static poolers. Several custom versions for each potential number of
  9448. * arguments. A completely generic pooler is easy to implement, but would
  9449. * require accessing the `arguments` object. In each of these, `this` refers to
  9450. * the Class itself, not an instance. If any others are needed, simply add them
  9451. * here, or in their own files.
  9452. */
  9453. var oneArgumentPooler = function (copyFieldsFrom) {
  9454. var Klass = this;
  9455. if (Klass.instancePool.length) {
  9456. var instance = Klass.instancePool.pop();
  9457. Klass.call(instance, copyFieldsFrom);
  9458. return instance;
  9459. } else {
  9460. return new Klass(copyFieldsFrom);
  9461. }
  9462. };
  9463. var twoArgumentPooler = function (a1, a2) {
  9464. var Klass = this;
  9465. if (Klass.instancePool.length) {
  9466. var instance = Klass.instancePool.pop();
  9467. Klass.call(instance, a1, a2);
  9468. return instance;
  9469. } else {
  9470. return new Klass(a1, a2);
  9471. }
  9472. };
  9473. var threeArgumentPooler = function (a1, a2, a3) {
  9474. var Klass = this;
  9475. if (Klass.instancePool.length) {
  9476. var instance = Klass.instancePool.pop();
  9477. Klass.call(instance, a1, a2, a3);
  9478. return instance;
  9479. } else {
  9480. return new Klass(a1, a2, a3);
  9481. }
  9482. };
  9483. var fourArgumentPooler = function (a1, a2, a3, a4) {
  9484. var Klass = this;
  9485. if (Klass.instancePool.length) {
  9486. var instance = Klass.instancePool.pop();
  9487. Klass.call(instance, a1, a2, a3, a4);
  9488. return instance;
  9489. } else {
  9490. return new Klass(a1, a2, a3, a4);
  9491. }
  9492. };
  9493. var standardReleaser = function (instance) {
  9494. var Klass = this;
  9495. !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
  9496. instance.destructor();
  9497. if (Klass.instancePool.length < Klass.poolSize) {
  9498. Klass.instancePool.push(instance);
  9499. }
  9500. };
  9501. var DEFAULT_POOL_SIZE = 10;
  9502. var DEFAULT_POOLER = oneArgumentPooler;
  9503. /**
  9504. * Augments `CopyConstructor` to be a poolable class, augmenting only the class
  9505. * itself (statically) not adding any prototypical fields. Any CopyConstructor
  9506. * you give this may have a `poolSize` property, and will look for a
  9507. * prototypical `destructor` on instances.
  9508. *
  9509. * @param {Function} CopyConstructor Constructor that can be used to reset.
  9510. * @param {Function} pooler Customizable pooler.
  9511. */
  9512. var addPoolingTo = function (CopyConstructor, pooler) {
  9513. // Casting as any so that flow ignores the actual implementation and trusts
  9514. // it to match the type we declared
  9515. var NewKlass = CopyConstructor;
  9516. NewKlass.instancePool = [];
  9517. NewKlass.getPooled = pooler || DEFAULT_POOLER;
  9518. if (!NewKlass.poolSize) {
  9519. NewKlass.poolSize = DEFAULT_POOL_SIZE;
  9520. }
  9521. NewKlass.release = standardReleaser;
  9522. return NewKlass;
  9523. };
  9524. var PooledClass = {
  9525. addPoolingTo: addPoolingTo,
  9526. oneArgumentPooler: oneArgumentPooler,
  9527. twoArgumentPooler: twoArgumentPooler,
  9528. threeArgumentPooler: threeArgumentPooler,
  9529. fourArgumentPooler: fourArgumentPooler
  9530. };
  9531. module.exports = PooledClass;
  9532. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  9533. /***/ }),
  9534. /* 88 */
  9535. /***/ (function(module, exports, __webpack_require__) {
  9536. "use strict";
  9537. /* WEBPACK VAR INJECTION */(function(process) {/**
  9538. * Copyright 2013-present, Facebook, Inc.
  9539. * All rights reserved.
  9540. *
  9541. * This source code is licensed under the BSD-style license found in the
  9542. * LICENSE file in the root directory of this source tree. An additional grant
  9543. * of patent rights can be found in the PATENTS file in the same directory.
  9544. *
  9545. */
  9546. var _prodInvariant = __webpack_require__(14);
  9547. var ReactCurrentOwner = __webpack_require__(10);
  9548. var REACT_ELEMENT_TYPE = __webpack_require__(51);
  9549. var getIteratorFn = __webpack_require__(52);
  9550. var invariant = __webpack_require__(1);
  9551. var KeyEscapeUtils = __webpack_require__(89);
  9552. var warning = __webpack_require__(2);
  9553. var SEPARATOR = '.';
  9554. var SUBSEPARATOR = ':';
  9555. /**
  9556. * This is inlined from ReactElement since this file is shared between
  9557. * isomorphic and renderers. We could extract this to a
  9558. *
  9559. */
  9560. /**
  9561. * TODO: Test that a single child and an array with one item have the same key
  9562. * pattern.
  9563. */
  9564. var didWarnAboutMaps = false;
  9565. /**
  9566. * Generate a key string that identifies a component within a set.
  9567. *
  9568. * @param {*} component A component that could contain a manual key.
  9569. * @param {number} index Index that is used if a manual key is not provided.
  9570. * @return {string}
  9571. */
  9572. function getComponentKey(component, index) {
  9573. // Do some typechecking here since we call this blindly. We want to ensure
  9574. // that we don't block potential future ES APIs.
  9575. if (component && typeof component === 'object' && component.key != null) {
  9576. // Explicit key
  9577. return KeyEscapeUtils.escape(component.key);
  9578. }
  9579. // Implicit key determined by the index in the set
  9580. return index.toString(36);
  9581. }
  9582. /**
  9583. * @param {?*} children Children tree container.
  9584. * @param {!string} nameSoFar Name of the key path so far.
  9585. * @param {!function} callback Callback to invoke with each child found.
  9586. * @param {?*} traverseContext Used to pass information throughout the traversal
  9587. * process.
  9588. * @return {!number} The number of children in this subtree.
  9589. */
  9590. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  9591. var type = typeof children;
  9592. if (type === 'undefined' || type === 'boolean') {
  9593. // All of the above are perceived as null.
  9594. children = null;
  9595. }
  9596. if (children === null || type === 'string' || type === 'number' ||
  9597. // The following is inlined from ReactElement. This means we can optimize
  9598. // some checks. React Fiber also inlines this logic for similar purposes.
  9599. type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
  9600. callback(traverseContext, children,
  9601. // If it's the only child, treat the name as if it was wrapped in an array
  9602. // so that it's consistent if the number of children grows.
  9603. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  9604. return 1;
  9605. }
  9606. var child;
  9607. var nextName;
  9608. var subtreeCount = 0; // Count of children found in the current subtree.
  9609. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  9610. if (Array.isArray(children)) {
  9611. for (var i = 0; i < children.length; i++) {
  9612. child = children[i];
  9613. nextName = nextNamePrefix + getComponentKey(child, i);
  9614. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9615. }
  9616. } else {
  9617. var iteratorFn = getIteratorFn(children);
  9618. if (iteratorFn) {
  9619. var iterator = iteratorFn.call(children);
  9620. var step;
  9621. if (iteratorFn !== children.entries) {
  9622. var ii = 0;
  9623. while (!(step = iterator.next()).done) {
  9624. child = step.value;
  9625. nextName = nextNamePrefix + getComponentKey(child, ii++);
  9626. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9627. }
  9628. } else {
  9629. if (process.env.NODE_ENV !== 'production') {
  9630. var mapsAsChildrenAddendum = '';
  9631. if (ReactCurrentOwner.current) {
  9632. var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
  9633. if (mapsAsChildrenOwnerName) {
  9634. mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
  9635. }
  9636. }
  9637. process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
  9638. didWarnAboutMaps = true;
  9639. }
  9640. // Iterator will provide entry [k,v] tuples rather than values.
  9641. while (!(step = iterator.next()).done) {
  9642. var entry = step.value;
  9643. if (entry) {
  9644. child = entry[1];
  9645. nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
  9646. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9647. }
  9648. }
  9649. }
  9650. } else if (type === 'object') {
  9651. var addendum = '';
  9652. if (process.env.NODE_ENV !== 'production') {
  9653. addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
  9654. if (children._isReactElement) {
  9655. addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
  9656. }
  9657. if (ReactCurrentOwner.current) {
  9658. var name = ReactCurrentOwner.current.getName();
  9659. if (name) {
  9660. addendum += ' Check the render method of `' + name + '`.';
  9661. }
  9662. }
  9663. }
  9664. var childrenString = String(children);
  9665. true ? process.env.NODE_ENV !== 'production' ? 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) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
  9666. }
  9667. }
  9668. return subtreeCount;
  9669. }
  9670. /**
  9671. * Traverses children that are typically specified as `props.children`, but
  9672. * might also be specified through attributes:
  9673. *
  9674. * - `traverseAllChildren(this.props.children, ...)`
  9675. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  9676. *
  9677. * The `traverseContext` is an optional argument that is passed through the
  9678. * entire traversal. It can be used to store accumulations or anything else that
  9679. * the callback might find relevant.
  9680. *
  9681. * @param {?*} children Children tree object.
  9682. * @param {!function} callback To invoke upon traversing each child.
  9683. * @param {?*} traverseContext Context for traversal.
  9684. * @return {!number} The number of children in this subtree.
  9685. */
  9686. function traverseAllChildren(children, callback, traverseContext) {
  9687. if (children == null) {
  9688. return 0;
  9689. }
  9690. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  9691. }
  9692. module.exports = traverseAllChildren;
  9693. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  9694. /***/ }),
  9695. /* 89 */
  9696. /***/ (function(module, exports, __webpack_require__) {
  9697. "use strict";
  9698. /**
  9699. * Copyright 2013-present, Facebook, Inc.
  9700. * All rights reserved.
  9701. *
  9702. * This source code is licensed under the BSD-style license found in the
  9703. * LICENSE file in the root directory of this source tree. An additional grant
  9704. * of patent rights can be found in the PATENTS file in the same directory.
  9705. *
  9706. *
  9707. */
  9708. /**
  9709. * Escape and wrap key so it is safe to use as a reactid
  9710. *
  9711. * @param {string} key to be escaped.
  9712. * @return {string} the escaped key.
  9713. */
  9714. function escape(key) {
  9715. var escapeRegex = /[=:]/g;
  9716. var escaperLookup = {
  9717. '=': '=0',
  9718. ':': '=2'
  9719. };
  9720. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  9721. return escaperLookup[match];
  9722. });
  9723. return '$' + escapedString;
  9724. }
  9725. /**
  9726. * Unescape and unwrap key for human-readable display
  9727. *
  9728. * @param {string} key to unescape.
  9729. * @return {string} the unescaped key.
  9730. */
  9731. function unescape(key) {
  9732. var unescapeRegex = /(=0|=2)/g;
  9733. var unescaperLookup = {
  9734. '=0': '=',
  9735. '=2': ':'
  9736. };
  9737. var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
  9738. return ('' + keySubstring).replace(unescapeRegex, function (match) {
  9739. return unescaperLookup[match];
  9740. });
  9741. }
  9742. var KeyEscapeUtils = {
  9743. escape: escape,
  9744. unescape: unescape
  9745. };
  9746. module.exports = KeyEscapeUtils;
  9747. /***/ }),
  9748. /* 90 */
  9749. /***/ (function(module, exports, __webpack_require__) {
  9750. "use strict";
  9751. /**
  9752. * Copyright 2013-present, Facebook, Inc.
  9753. * All rights reserved.
  9754. *
  9755. * This source code is licensed under the BSD-style license found in the
  9756. * LICENSE file in the root directory of this source tree. An additional grant
  9757. * of patent rights can be found in the PATENTS file in the same directory.
  9758. *
  9759. */
  9760. var _assign = __webpack_require__(4);
  9761. var ReactComponent = __webpack_require__(33);
  9762. var ReactNoopUpdateQueue = __webpack_require__(34);
  9763. var emptyObject = __webpack_require__(20);
  9764. /**
  9765. * Base class helpers for the updating state of a component.
  9766. */
  9767. function ReactPureComponent(props, context, updater) {
  9768. // Duplicated from ReactComponent.
  9769. this.props = props;
  9770. this.context = context;
  9771. this.refs = emptyObject;
  9772. // We initialize the default updater but the real one gets injected by the
  9773. // renderer.
  9774. this.updater = updater || ReactNoopUpdateQueue;
  9775. }
  9776. function ComponentDummy() {}
  9777. ComponentDummy.prototype = ReactComponent.prototype;
  9778. ReactPureComponent.prototype = new ComponentDummy();
  9779. ReactPureComponent.prototype.constructor = ReactPureComponent;
  9780. // Avoid an extra prototype jump for these methods.
  9781. _assign(ReactPureComponent.prototype, ReactComponent.prototype);
  9782. ReactPureComponent.prototype.isPureReactComponent = true;
  9783. module.exports = ReactPureComponent;
  9784. /***/ }),
  9785. /* 91 */
  9786. /***/ (function(module, exports, __webpack_require__) {
  9787. "use strict";
  9788. /* WEBPACK VAR INJECTION */(function(process) {/**
  9789. * Copyright 2013-present, Facebook, Inc.
  9790. * All rights reserved.
  9791. *
  9792. * This source code is licensed under the BSD-style license found in the
  9793. * LICENSE file in the root directory of this source tree. An additional grant
  9794. * of patent rights can be found in the PATENTS file in the same directory.
  9795. *
  9796. */
  9797. var _prodInvariant = __webpack_require__(14),
  9798. _assign = __webpack_require__(4);
  9799. var ReactComponent = __webpack_require__(33);
  9800. var ReactElement = __webpack_require__(15);
  9801. var ReactPropTypeLocationNames = __webpack_require__(53);
  9802. var ReactNoopUpdateQueue = __webpack_require__(34);
  9803. var emptyObject = __webpack_require__(20);
  9804. var invariant = __webpack_require__(1);
  9805. var warning = __webpack_require__(2);
  9806. var MIXINS_KEY = 'mixins';
  9807. // Helper function to allow the creation of anonymous functions which do not
  9808. // have .name set to the name of the variable being assigned to.
  9809. function identity(fn) {
  9810. return fn;
  9811. }
  9812. /**
  9813. * Policies that describe methods in `ReactClassInterface`.
  9814. */
  9815. var injectedMixins = [];
  9816. /**
  9817. * Composite components are higher-level components that compose other composite
  9818. * or host components.
  9819. *
  9820. * To create a new type of `ReactClass`, pass a specification of
  9821. * your new class to `React.createClass`. The only requirement of your class
  9822. * specification is that you implement a `render` method.
  9823. *
  9824. * var MyComponent = React.createClass({
  9825. * render: function() {
  9826. * return <div>Hello World</div>;
  9827. * }
  9828. * });
  9829. *
  9830. * The class specification supports a specific protocol of methods that have
  9831. * special meaning (e.g. `render`). See `ReactClassInterface` for
  9832. * more the comprehensive protocol. Any other properties and methods in the
  9833. * class specification will be available on the prototype.
  9834. *
  9835. * @interface ReactClassInterface
  9836. * @internal
  9837. */
  9838. var ReactClassInterface = {
  9839. /**
  9840. * An array of Mixin objects to include when defining your component.
  9841. *
  9842. * @type {array}
  9843. * @optional
  9844. */
  9845. mixins: 'DEFINE_MANY',
  9846. /**
  9847. * An object containing properties and methods that should be defined on
  9848. * the component's constructor instead of its prototype (static methods).
  9849. *
  9850. * @type {object}
  9851. * @optional
  9852. */
  9853. statics: 'DEFINE_MANY',
  9854. /**
  9855. * Definition of prop types for this component.
  9856. *
  9857. * @type {object}
  9858. * @optional
  9859. */
  9860. propTypes: 'DEFINE_MANY',
  9861. /**
  9862. * Definition of context types for this component.
  9863. *
  9864. * @type {object}
  9865. * @optional
  9866. */
  9867. contextTypes: 'DEFINE_MANY',
  9868. /**
  9869. * Definition of context types this component sets for its children.
  9870. *
  9871. * @type {object}
  9872. * @optional
  9873. */
  9874. childContextTypes: 'DEFINE_MANY',
  9875. // ==== Definition methods ====
  9876. /**
  9877. * Invoked when the component is mounted. Values in the mapping will be set on
  9878. * `this.props` if that prop is not specified (i.e. using an `in` check).
  9879. *
  9880. * This method is invoked before `getInitialState` and therefore cannot rely
  9881. * on `this.state` or use `this.setState`.
  9882. *
  9883. * @return {object}
  9884. * @optional
  9885. */
  9886. getDefaultProps: 'DEFINE_MANY_MERGED',
  9887. /**
  9888. * Invoked once before the component is mounted. The return value will be used
  9889. * as the initial value of `this.state`.
  9890. *
  9891. * getInitialState: function() {
  9892. * return {
  9893. * isOn: false,
  9894. * fooBaz: new BazFoo()
  9895. * }
  9896. * }
  9897. *
  9898. * @return {object}
  9899. * @optional
  9900. */
  9901. getInitialState: 'DEFINE_MANY_MERGED',
  9902. /**
  9903. * @return {object}
  9904. * @optional
  9905. */
  9906. getChildContext: 'DEFINE_MANY_MERGED',
  9907. /**
  9908. * Uses props from `this.props` and state from `this.state` to render the
  9909. * structure of the component.
  9910. *
  9911. * No guarantees are made about when or how often this method is invoked, so
  9912. * it must not have side effects.
  9913. *
  9914. * render: function() {
  9915. * var name = this.props.name;
  9916. * return <div>Hello, {name}!</div>;
  9917. * }
  9918. *
  9919. * @return {ReactComponent}
  9920. * @required
  9921. */
  9922. render: 'DEFINE_ONCE',
  9923. // ==== Delegate methods ====
  9924. /**
  9925. * Invoked when the component is initially created and about to be mounted.
  9926. * This may have side effects, but any external subscriptions or data created
  9927. * by this method must be cleaned up in `componentWillUnmount`.
  9928. *
  9929. * @optional
  9930. */
  9931. componentWillMount: 'DEFINE_MANY',
  9932. /**
  9933. * Invoked when the component has been mounted and has a DOM representation.
  9934. * However, there is no guarantee that the DOM node is in the document.
  9935. *
  9936. * Use this as an opportunity to operate on the DOM when the component has
  9937. * been mounted (initialized and rendered) for the first time.
  9938. *
  9939. * @param {DOMElement} rootNode DOM element representing the component.
  9940. * @optional
  9941. */
  9942. componentDidMount: 'DEFINE_MANY',
  9943. /**
  9944. * Invoked before the component receives new props.
  9945. *
  9946. * Use this as an opportunity to react to a prop transition by updating the
  9947. * state using `this.setState`. Current props are accessed via `this.props`.
  9948. *
  9949. * componentWillReceiveProps: function(nextProps, nextContext) {
  9950. * this.setState({
  9951. * likesIncreasing: nextProps.likeCount > this.props.likeCount
  9952. * });
  9953. * }
  9954. *
  9955. * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
  9956. * transition may cause a state change, but the opposite is not true. If you
  9957. * need it, you are probably looking for `componentWillUpdate`.
  9958. *
  9959. * @param {object} nextProps
  9960. * @optional
  9961. */
  9962. componentWillReceiveProps: 'DEFINE_MANY',
  9963. /**
  9964. * Invoked while deciding if the component should be updated as a result of
  9965. * receiving new props, state and/or context.
  9966. *
  9967. * Use this as an opportunity to `return false` when you're certain that the
  9968. * transition to the new props/state/context will not require a component
  9969. * update.
  9970. *
  9971. * shouldComponentUpdate: function(nextProps, nextState, nextContext) {
  9972. * return !equal(nextProps, this.props) ||
  9973. * !equal(nextState, this.state) ||
  9974. * !equal(nextContext, this.context);
  9975. * }
  9976. *
  9977. * @param {object} nextProps
  9978. * @param {?object} nextState
  9979. * @param {?object} nextContext
  9980. * @return {boolean} True if the component should update.
  9981. * @optional
  9982. */
  9983. shouldComponentUpdate: 'DEFINE_ONCE',
  9984. /**
  9985. * Invoked when the component is about to update due to a transition from
  9986. * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
  9987. * and `nextContext`.
  9988. *
  9989. * Use this as an opportunity to perform preparation before an update occurs.
  9990. *
  9991. * NOTE: You **cannot** use `this.setState()` in this method.
  9992. *
  9993. * @param {object} nextProps
  9994. * @param {?object} nextState
  9995. * @param {?object} nextContext
  9996. * @param {ReactReconcileTransaction} transaction
  9997. * @optional
  9998. */
  9999. componentWillUpdate: 'DEFINE_MANY',
  10000. /**
  10001. * Invoked when the component's DOM representation has been updated.
  10002. *
  10003. * Use this as an opportunity to operate on the DOM when the component has
  10004. * been updated.
  10005. *
  10006. * @param {object} prevProps
  10007. * @param {?object} prevState
  10008. * @param {?object} prevContext
  10009. * @param {DOMElement} rootNode DOM element representing the component.
  10010. * @optional
  10011. */
  10012. componentDidUpdate: 'DEFINE_MANY',
  10013. /**
  10014. * Invoked when the component is about to be removed from its parent and have
  10015. * its DOM representation destroyed.
  10016. *
  10017. * Use this as an opportunity to deallocate any external resources.
  10018. *
  10019. * NOTE: There is no `componentDidUnmount` since your component will have been
  10020. * destroyed by that point.
  10021. *
  10022. * @optional
  10023. */
  10024. componentWillUnmount: 'DEFINE_MANY',
  10025. // ==== Advanced methods ====
  10026. /**
  10027. * Updates the component's currently mounted DOM representation.
  10028. *
  10029. * By default, this implements React's rendering and reconciliation algorithm.
  10030. * Sophisticated clients may wish to override this.
  10031. *
  10032. * @param {ReactReconcileTransaction} transaction
  10033. * @internal
  10034. * @overridable
  10035. */
  10036. updateComponent: 'OVERRIDE_BASE'
  10037. };
  10038. /**
  10039. * Mapping from class specification keys to special processing functions.
  10040. *
  10041. * Although these are declared like instance properties in the specification
  10042. * when defining classes using `React.createClass`, they are actually static
  10043. * and are accessible on the constructor instead of the prototype. Despite
  10044. * being static, they must be defined outside of the "statics" key under
  10045. * which all other static methods are defined.
  10046. */
  10047. var RESERVED_SPEC_KEYS = {
  10048. displayName: function (Constructor, displayName) {
  10049. Constructor.displayName = displayName;
  10050. },
  10051. mixins: function (Constructor, mixins) {
  10052. if (mixins) {
  10053. for (var i = 0; i < mixins.length; i++) {
  10054. mixSpecIntoComponent(Constructor, mixins[i]);
  10055. }
  10056. }
  10057. },
  10058. childContextTypes: function (Constructor, childContextTypes) {
  10059. if (process.env.NODE_ENV !== 'production') {
  10060. validateTypeDef(Constructor, childContextTypes, 'childContext');
  10061. }
  10062. Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
  10063. },
  10064. contextTypes: function (Constructor, contextTypes) {
  10065. if (process.env.NODE_ENV !== 'production') {
  10066. validateTypeDef(Constructor, contextTypes, 'context');
  10067. }
  10068. Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
  10069. },
  10070. /**
  10071. * Special case getDefaultProps which should move into statics but requires
  10072. * automatic merging.
  10073. */
  10074. getDefaultProps: function (Constructor, getDefaultProps) {
  10075. if (Constructor.getDefaultProps) {
  10076. Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);
  10077. } else {
  10078. Constructor.getDefaultProps = getDefaultProps;
  10079. }
  10080. },
  10081. propTypes: function (Constructor, propTypes) {
  10082. if (process.env.NODE_ENV !== 'production') {
  10083. validateTypeDef(Constructor, propTypes, 'prop');
  10084. }
  10085. Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
  10086. },
  10087. statics: function (Constructor, statics) {
  10088. mixStaticSpecIntoComponent(Constructor, statics);
  10089. },
  10090. autobind: function () {} };
  10091. function validateTypeDef(Constructor, typeDef, location) {
  10092. for (var propName in typeDef) {
  10093. if (typeDef.hasOwnProperty(propName)) {
  10094. // use a warning instead of an invariant so components
  10095. // don't show up in prod but only in __DEV__
  10096. process.env.NODE_ENV !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;
  10097. }
  10098. }
  10099. }
  10100. function validateMethodOverride(isAlreadyDefined, name) {
  10101. var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
  10102. // Disallow overriding of base class methods unless explicitly allowed.
  10103. if (ReactClassMixin.hasOwnProperty(name)) {
  10104. !(specPolicy === 'OVERRIDE_BASE') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;
  10105. }
  10106. // Disallow defining methods more than once unless explicitly allowed.
  10107. if (isAlreadyDefined) {
  10108. !(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;
  10109. }
  10110. }
  10111. /**
  10112. * Mixin helper which handles policy validation and reserved
  10113. * specification keys when building React classes.
  10114. */
  10115. function mixSpecIntoComponent(Constructor, spec) {
  10116. if (!spec) {
  10117. if (process.env.NODE_ENV !== 'production') {
  10118. var typeofSpec = typeof spec;
  10119. var isMixinValid = typeofSpec === 'object' && spec !== null;
  10120. process.env.NODE_ENV !== 'production' ? warning(isMixinValid, '%s: You\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;
  10121. }
  10122. return;
  10123. }
  10124. !(typeof spec !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;
  10125. !!ReactElement.isValidElement(spec) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;
  10126. var proto = Constructor.prototype;
  10127. var autoBindPairs = proto.__reactAutoBindPairs;
  10128. // By handling mixins before any other properties, we ensure the same
  10129. // chaining order is applied to methods with DEFINE_MANY policy, whether
  10130. // mixins are listed before or after these methods in the spec.
  10131. if (spec.hasOwnProperty(MIXINS_KEY)) {
  10132. RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
  10133. }
  10134. for (var name in spec) {
  10135. if (!spec.hasOwnProperty(name)) {
  10136. continue;
  10137. }
  10138. if (name === MIXINS_KEY) {
  10139. // We have already handled mixins in a special case above.
  10140. continue;
  10141. }
  10142. var property = spec[name];
  10143. var isAlreadyDefined = proto.hasOwnProperty(name);
  10144. validateMethodOverride(isAlreadyDefined, name);
  10145. if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
  10146. RESERVED_SPEC_KEYS[name](Constructor, property);
  10147. } else {
  10148. // Setup methods on prototype:
  10149. // The following member methods should not be automatically bound:
  10150. // 1. Expected ReactClass methods (in the "interface").
  10151. // 2. Overridden methods (that were mixed in).
  10152. var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
  10153. var isFunction = typeof property === 'function';
  10154. var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;
  10155. if (shouldAutoBind) {
  10156. autoBindPairs.push(name, property);
  10157. proto[name] = property;
  10158. } else {
  10159. if (isAlreadyDefined) {
  10160. var specPolicy = ReactClassInterface[name];
  10161. // These cases should already be caught by validateMethodOverride.
  10162. !(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;
  10163. // For methods which are defined more than once, call the existing
  10164. // methods before calling the new property, merging if appropriate.
  10165. if (specPolicy === 'DEFINE_MANY_MERGED') {
  10166. proto[name] = createMergedResultFunction(proto[name], property);
  10167. } else if (specPolicy === 'DEFINE_MANY') {
  10168. proto[name] = createChainedFunction(proto[name], property);
  10169. }
  10170. } else {
  10171. proto[name] = property;
  10172. if (process.env.NODE_ENV !== 'production') {
  10173. // Add verbose displayName to the function, which helps when looking
  10174. // at profiling tools.
  10175. if (typeof property === 'function' && spec.displayName) {
  10176. proto[name].displayName = spec.displayName + '_' + name;
  10177. }
  10178. }
  10179. }
  10180. }
  10181. }
  10182. }
  10183. }
  10184. function mixStaticSpecIntoComponent(Constructor, statics) {
  10185. if (!statics) {
  10186. return;
  10187. }
  10188. for (var name in statics) {
  10189. var property = statics[name];
  10190. if (!statics.hasOwnProperty(name)) {
  10191. continue;
  10192. }
  10193. var isReserved = name in RESERVED_SPEC_KEYS;
  10194. !!isReserved ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;
  10195. var isInherited = name in Constructor;
  10196. !!isInherited ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;
  10197. Constructor[name] = property;
  10198. }
  10199. }
  10200. /**
  10201. * Merge two objects, but throw if both contain the same key.
  10202. *
  10203. * @param {object} one The first object, which is mutated.
  10204. * @param {object} two The second object
  10205. * @return {object} one after it has been mutated to contain everything in two.
  10206. */
  10207. function mergeIntoWithNoDuplicateKeys(one, two) {
  10208. !(one && two && typeof one === 'object' && typeof two === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
  10209. for (var key in two) {
  10210. if (two.hasOwnProperty(key)) {
  10211. !(one[key] === undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;
  10212. one[key] = two[key];
  10213. }
  10214. }
  10215. return one;
  10216. }
  10217. /**
  10218. * Creates a function that invokes two functions and merges their return values.
  10219. *
  10220. * @param {function} one Function to invoke first.
  10221. * @param {function} two Function to invoke second.
  10222. * @return {function} Function that invokes the two argument functions.
  10223. * @private
  10224. */
  10225. function createMergedResultFunction(one, two) {
  10226. return function mergedResult() {
  10227. var a = one.apply(this, arguments);
  10228. var b = two.apply(this, arguments);
  10229. if (a == null) {
  10230. return b;
  10231. } else if (b == null) {
  10232. return a;
  10233. }
  10234. var c = {};
  10235. mergeIntoWithNoDuplicateKeys(c, a);
  10236. mergeIntoWithNoDuplicateKeys(c, b);
  10237. return c;
  10238. };
  10239. }
  10240. /**
  10241. * Creates a function that invokes two functions and ignores their return vales.
  10242. *
  10243. * @param {function} one Function to invoke first.
  10244. * @param {function} two Function to invoke second.
  10245. * @return {function} Function that invokes the two argument functions.
  10246. * @private
  10247. */
  10248. function createChainedFunction(one, two) {
  10249. return function chainedFunction() {
  10250. one.apply(this, arguments);
  10251. two.apply(this, arguments);
  10252. };
  10253. }
  10254. /**
  10255. * Binds a method to the component.
  10256. *
  10257. * @param {object} component Component whose method is going to be bound.
  10258. * @param {function} method Method to be bound.
  10259. * @return {function} The bound method.
  10260. */
  10261. function bindAutoBindMethod(component, method) {
  10262. var boundMethod = method.bind(component);
  10263. if (process.env.NODE_ENV !== 'production') {
  10264. boundMethod.__reactBoundContext = component;
  10265. boundMethod.__reactBoundMethod = method;
  10266. boundMethod.__reactBoundArguments = null;
  10267. var componentName = component.constructor.displayName;
  10268. var _bind = boundMethod.bind;
  10269. boundMethod.bind = function (newThis) {
  10270. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  10271. args[_key - 1] = arguments[_key];
  10272. }
  10273. // User is trying to bind() an autobound method; we effectively will
  10274. // ignore the value of "this" that the user is trying to use, so
  10275. // let's warn.
  10276. if (newThis !== component && newThis !== null) {
  10277. process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
  10278. } else if (!args.length) {
  10279. process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;
  10280. return boundMethod;
  10281. }
  10282. var reboundMethod = _bind.apply(boundMethod, arguments);
  10283. reboundMethod.__reactBoundContext = component;
  10284. reboundMethod.__reactBoundMethod = method;
  10285. reboundMethod.__reactBoundArguments = args;
  10286. return reboundMethod;
  10287. };
  10288. }
  10289. return boundMethod;
  10290. }
  10291. /**
  10292. * Binds all auto-bound methods in a component.
  10293. *
  10294. * @param {object} component Component whose method is going to be bound.
  10295. */
  10296. function bindAutoBindMethods(component) {
  10297. var pairs = component.__reactAutoBindPairs;
  10298. for (var i = 0; i < pairs.length; i += 2) {
  10299. var autoBindKey = pairs[i];
  10300. var method = pairs[i + 1];
  10301. component[autoBindKey] = bindAutoBindMethod(component, method);
  10302. }
  10303. }
  10304. /**
  10305. * Add more to the ReactClass base class. These are all legacy features and
  10306. * therefore not already part of the modern ReactComponent.
  10307. */
  10308. var ReactClassMixin = {
  10309. /**
  10310. * TODO: This will be deprecated because state should always keep a consistent
  10311. * type signature and the only use case for this, is to avoid that.
  10312. */
  10313. replaceState: function (newState, callback) {
  10314. this.updater.enqueueReplaceState(this, newState);
  10315. if (callback) {
  10316. this.updater.enqueueCallback(this, callback, 'replaceState');
  10317. }
  10318. },
  10319. /**
  10320. * Checks whether or not this composite component is mounted.
  10321. * @return {boolean} True if mounted, false otherwise.
  10322. * @protected
  10323. * @final
  10324. */
  10325. isMounted: function () {
  10326. return this.updater.isMounted(this);
  10327. }
  10328. };
  10329. var ReactClassComponent = function () {};
  10330. _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
  10331. var didWarnDeprecated = false;
  10332. /**
  10333. * Module for creating composite components.
  10334. *
  10335. * @class ReactClass
  10336. */
  10337. var ReactClass = {
  10338. /**
  10339. * Creates a composite component class given a class specification.
  10340. * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass
  10341. *
  10342. * @param {object} spec Class specification (which must define `render`).
  10343. * @return {function} Component constructor function.
  10344. * @public
  10345. */
  10346. createClass: function (spec) {
  10347. if (process.env.NODE_ENV !== 'production') {
  10348. process.env.NODE_ENV !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;
  10349. didWarnDeprecated = true;
  10350. }
  10351. // To keep our warnings more understandable, we'll use a little hack here to
  10352. // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
  10353. // unnecessarily identify a class without displayName as 'Constructor'.
  10354. var Constructor = identity(function (props, context, updater) {
  10355. // This constructor gets overridden by mocks. The argument is used
  10356. // by mocks to assert on what gets mounted.
  10357. if (process.env.NODE_ENV !== 'production') {
  10358. process.env.NODE_ENV !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;
  10359. }
  10360. // Wire up auto-binding
  10361. if (this.__reactAutoBindPairs.length) {
  10362. bindAutoBindMethods(this);
  10363. }
  10364. this.props = props;
  10365. this.context = context;
  10366. this.refs = emptyObject;
  10367. this.updater = updater || ReactNoopUpdateQueue;
  10368. this.state = null;
  10369. // ReactClasses doesn't have constructors. Instead, they use the
  10370. // getInitialState and componentWillMount methods for initialization.
  10371. var initialState = this.getInitialState ? this.getInitialState() : null;
  10372. if (process.env.NODE_ENV !== 'production') {
  10373. // We allow auto-mocks to proceed as if they're returning null.
  10374. if (initialState === undefined && this.getInitialState._isMockFunction) {
  10375. // This is probably bad practice. Consider warning here and
  10376. // deprecating this convenience.
  10377. initialState = null;
  10378. }
  10379. }
  10380. !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;
  10381. this.state = initialState;
  10382. });
  10383. Constructor.prototype = new ReactClassComponent();
  10384. Constructor.prototype.constructor = Constructor;
  10385. Constructor.prototype.__reactAutoBindPairs = [];
  10386. injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
  10387. mixSpecIntoComponent(Constructor, spec);
  10388. // Initialize the defaultProps property after all mixins have been merged.
  10389. if (Constructor.getDefaultProps) {
  10390. Constructor.defaultProps = Constructor.getDefaultProps();
  10391. }
  10392. if (process.env.NODE_ENV !== 'production') {
  10393. // This is a tag to indicate that the use of these method names is ok,
  10394. // since it's used with createClass. If it's not, then it's likely a
  10395. // mistake so we'll warn you to use the static property, property
  10396. // initializer or constructor respectively.
  10397. if (Constructor.getDefaultProps) {
  10398. Constructor.getDefaultProps.isReactClassApproved = {};
  10399. }
  10400. if (Constructor.prototype.getInitialState) {
  10401. Constructor.prototype.getInitialState.isReactClassApproved = {};
  10402. }
  10403. }
  10404. !Constructor.prototype.render ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;
  10405. if (process.env.NODE_ENV !== 'production') {
  10406. process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%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.', spec.displayName || 'A component') : void 0;
  10407. process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;
  10408. }
  10409. // Reduce time spent doing lookups by setting these on the prototype.
  10410. for (var methodName in ReactClassInterface) {
  10411. if (!Constructor.prototype[methodName]) {
  10412. Constructor.prototype[methodName] = null;
  10413. }
  10414. }
  10415. return Constructor;
  10416. },
  10417. injection: {
  10418. injectMixin: function (mixin) {
  10419. injectedMixins.push(mixin);
  10420. }
  10421. }
  10422. };
  10423. module.exports = ReactClass;
  10424. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10425. /***/ }),
  10426. /* 92 */
  10427. /***/ (function(module, exports, __webpack_require__) {
  10428. "use strict";
  10429. /* WEBPACK VAR INJECTION */(function(process) {/**
  10430. * Copyright 2013-present, Facebook, Inc.
  10431. * All rights reserved.
  10432. *
  10433. * This source code is licensed under the BSD-style license found in the
  10434. * LICENSE file in the root directory of this source tree. An additional grant
  10435. * of patent rights can be found in the PATENTS file in the same directory.
  10436. *
  10437. */
  10438. var ReactElement = __webpack_require__(15);
  10439. /**
  10440. * Create a factory that creates HTML tag elements.
  10441. *
  10442. * @private
  10443. */
  10444. var createDOMFactory = ReactElement.createFactory;
  10445. if (process.env.NODE_ENV !== 'production') {
  10446. var ReactElementValidator = __webpack_require__(54);
  10447. createDOMFactory = ReactElementValidator.createFactory;
  10448. }
  10449. /**
  10450. * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
  10451. * This is also accessible via `React.DOM`.
  10452. *
  10453. * @public
  10454. */
  10455. var ReactDOMFactories = {
  10456. a: createDOMFactory('a'),
  10457. abbr: createDOMFactory('abbr'),
  10458. address: createDOMFactory('address'),
  10459. area: createDOMFactory('area'),
  10460. article: createDOMFactory('article'),
  10461. aside: createDOMFactory('aside'),
  10462. audio: createDOMFactory('audio'),
  10463. b: createDOMFactory('b'),
  10464. base: createDOMFactory('base'),
  10465. bdi: createDOMFactory('bdi'),
  10466. bdo: createDOMFactory('bdo'),
  10467. big: createDOMFactory('big'),
  10468. blockquote: createDOMFactory('blockquote'),
  10469. body: createDOMFactory('body'),
  10470. br: createDOMFactory('br'),
  10471. button: createDOMFactory('button'),
  10472. canvas: createDOMFactory('canvas'),
  10473. caption: createDOMFactory('caption'),
  10474. cite: createDOMFactory('cite'),
  10475. code: createDOMFactory('code'),
  10476. col: createDOMFactory('col'),
  10477. colgroup: createDOMFactory('colgroup'),
  10478. data: createDOMFactory('data'),
  10479. datalist: createDOMFactory('datalist'),
  10480. dd: createDOMFactory('dd'),
  10481. del: createDOMFactory('del'),
  10482. details: createDOMFactory('details'),
  10483. dfn: createDOMFactory('dfn'),
  10484. dialog: createDOMFactory('dialog'),
  10485. div: createDOMFactory('div'),
  10486. dl: createDOMFactory('dl'),
  10487. dt: createDOMFactory('dt'),
  10488. em: createDOMFactory('em'),
  10489. embed: createDOMFactory('embed'),
  10490. fieldset: createDOMFactory('fieldset'),
  10491. figcaption: createDOMFactory('figcaption'),
  10492. figure: createDOMFactory('figure'),
  10493. footer: createDOMFactory('footer'),
  10494. form: createDOMFactory('form'),
  10495. h1: createDOMFactory('h1'),
  10496. h2: createDOMFactory('h2'),
  10497. h3: createDOMFactory('h3'),
  10498. h4: createDOMFactory('h4'),
  10499. h5: createDOMFactory('h5'),
  10500. h6: createDOMFactory('h6'),
  10501. head: createDOMFactory('head'),
  10502. header: createDOMFactory('header'),
  10503. hgroup: createDOMFactory('hgroup'),
  10504. hr: createDOMFactory('hr'),
  10505. html: createDOMFactory('html'),
  10506. i: createDOMFactory('i'),
  10507. iframe: createDOMFactory('iframe'),
  10508. img: createDOMFactory('img'),
  10509. input: createDOMFactory('input'),
  10510. ins: createDOMFactory('ins'),
  10511. kbd: createDOMFactory('kbd'),
  10512. keygen: createDOMFactory('keygen'),
  10513. label: createDOMFactory('label'),
  10514. legend: createDOMFactory('legend'),
  10515. li: createDOMFactory('li'),
  10516. link: createDOMFactory('link'),
  10517. main: createDOMFactory('main'),
  10518. map: createDOMFactory('map'),
  10519. mark: createDOMFactory('mark'),
  10520. menu: createDOMFactory('menu'),
  10521. menuitem: createDOMFactory('menuitem'),
  10522. meta: createDOMFactory('meta'),
  10523. meter: createDOMFactory('meter'),
  10524. nav: createDOMFactory('nav'),
  10525. noscript: createDOMFactory('noscript'),
  10526. object: createDOMFactory('object'),
  10527. ol: createDOMFactory('ol'),
  10528. optgroup: createDOMFactory('optgroup'),
  10529. option: createDOMFactory('option'),
  10530. output: createDOMFactory('output'),
  10531. p: createDOMFactory('p'),
  10532. param: createDOMFactory('param'),
  10533. picture: createDOMFactory('picture'),
  10534. pre: createDOMFactory('pre'),
  10535. progress: createDOMFactory('progress'),
  10536. q: createDOMFactory('q'),
  10537. rp: createDOMFactory('rp'),
  10538. rt: createDOMFactory('rt'),
  10539. ruby: createDOMFactory('ruby'),
  10540. s: createDOMFactory('s'),
  10541. samp: createDOMFactory('samp'),
  10542. script: createDOMFactory('script'),
  10543. section: createDOMFactory('section'),
  10544. select: createDOMFactory('select'),
  10545. small: createDOMFactory('small'),
  10546. source: createDOMFactory('source'),
  10547. span: createDOMFactory('span'),
  10548. strong: createDOMFactory('strong'),
  10549. style: createDOMFactory('style'),
  10550. sub: createDOMFactory('sub'),
  10551. summary: createDOMFactory('summary'),
  10552. sup: createDOMFactory('sup'),
  10553. table: createDOMFactory('table'),
  10554. tbody: createDOMFactory('tbody'),
  10555. td: createDOMFactory('td'),
  10556. textarea: createDOMFactory('textarea'),
  10557. tfoot: createDOMFactory('tfoot'),
  10558. th: createDOMFactory('th'),
  10559. thead: createDOMFactory('thead'),
  10560. time: createDOMFactory('time'),
  10561. title: createDOMFactory('title'),
  10562. tr: createDOMFactory('tr'),
  10563. track: createDOMFactory('track'),
  10564. u: createDOMFactory('u'),
  10565. ul: createDOMFactory('ul'),
  10566. 'var': createDOMFactory('var'),
  10567. video: createDOMFactory('video'),
  10568. wbr: createDOMFactory('wbr'),
  10569. // SVG
  10570. circle: createDOMFactory('circle'),
  10571. clipPath: createDOMFactory('clipPath'),
  10572. defs: createDOMFactory('defs'),
  10573. ellipse: createDOMFactory('ellipse'),
  10574. g: createDOMFactory('g'),
  10575. image: createDOMFactory('image'),
  10576. line: createDOMFactory('line'),
  10577. linearGradient: createDOMFactory('linearGradient'),
  10578. mask: createDOMFactory('mask'),
  10579. path: createDOMFactory('path'),
  10580. pattern: createDOMFactory('pattern'),
  10581. polygon: createDOMFactory('polygon'),
  10582. polyline: createDOMFactory('polyline'),
  10583. radialGradient: createDOMFactory('radialGradient'),
  10584. rect: createDOMFactory('rect'),
  10585. stop: createDOMFactory('stop'),
  10586. svg: createDOMFactory('svg'),
  10587. text: createDOMFactory('text'),
  10588. tspan: createDOMFactory('tspan')
  10589. };
  10590. module.exports = ReactDOMFactories;
  10591. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10592. /***/ }),
  10593. /* 93 */
  10594. /***/ (function(module, exports, __webpack_require__) {
  10595. "use strict";
  10596. /* WEBPACK VAR INJECTION */(function(process) {/**
  10597. * Copyright 2013-present, Facebook, Inc.
  10598. * All rights reserved.
  10599. *
  10600. * This source code is licensed under the BSD-style license found in the
  10601. * LICENSE file in the root directory of this source tree. An additional grant
  10602. * of patent rights can be found in the PATENTS file in the same directory.
  10603. *
  10604. */
  10605. var _prodInvariant = __webpack_require__(14);
  10606. var ReactPropTypeLocationNames = __webpack_require__(53);
  10607. var ReactPropTypesSecret = __webpack_require__(94);
  10608. var invariant = __webpack_require__(1);
  10609. var warning = __webpack_require__(2);
  10610. var ReactComponentTreeHook;
  10611. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  10612. // Temporary hack.
  10613. // Inline requires don't work well with Jest:
  10614. // https://github.com/facebook/react/issues/7240
  10615. // Remove the inline requires when we don't need them anymore:
  10616. // https://github.com/facebook/react/pull/7178
  10617. ReactComponentTreeHook = __webpack_require__(7);
  10618. }
  10619. var loggedTypeFailures = {};
  10620. /**
  10621. * Assert that the values match with the type specs.
  10622. * Error messages are memorized and will only be shown once.
  10623. *
  10624. * @param {object} typeSpecs Map of name to a ReactPropType
  10625. * @param {object} values Runtime values that need to be type-checked
  10626. * @param {string} location e.g. "prop", "context", "child context"
  10627. * @param {string} componentName Name of the component for error messages.
  10628. * @param {?object} element The React element that is being type-checked
  10629. * @param {?number} debugID The React component instance that is being type-checked
  10630. * @private
  10631. */
  10632. function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
  10633. for (var typeSpecName in typeSpecs) {
  10634. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  10635. var error;
  10636. // Prop type validation may throw. In case they do, we don't want to
  10637. // fail the render phase where it didn't fail before. So we log it.
  10638. // After these have been cleaned up, we'll let them throw.
  10639. try {
  10640. // This is intentionally an invariant that gets caught. It's the same
  10641. // behavior as without this statement except with a better message.
  10642. !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
  10643. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  10644. } catch (ex) {
  10645. error = ex;
  10646. }
  10647. process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
  10648. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  10649. // Only monitor this failure once because there tends to be a lot of the
  10650. // same error.
  10651. loggedTypeFailures[error.message] = true;
  10652. var componentStackInfo = '';
  10653. if (process.env.NODE_ENV !== 'production') {
  10654. if (!ReactComponentTreeHook) {
  10655. ReactComponentTreeHook = __webpack_require__(7);
  10656. }
  10657. if (debugID !== null) {
  10658. componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
  10659. } else if (element !== null) {
  10660. componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
  10661. }
  10662. }
  10663. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
  10664. }
  10665. }
  10666. }
  10667. }
  10668. module.exports = checkReactTypeSpec;
  10669. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10670. /***/ }),
  10671. /* 94 */
  10672. /***/ (function(module, exports, __webpack_require__) {
  10673. "use strict";
  10674. /**
  10675. * Copyright 2013-present, Facebook, Inc.
  10676. * All rights reserved.
  10677. *
  10678. * This source code is licensed under the BSD-style license found in the
  10679. * LICENSE file in the root directory of this source tree. An additional grant
  10680. * of patent rights can be found in the PATENTS file in the same directory.
  10681. *
  10682. *
  10683. */
  10684. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  10685. module.exports = ReactPropTypesSecret;
  10686. /***/ }),
  10687. /* 95 */
  10688. /***/ (function(module, exports, __webpack_require__) {
  10689. "use strict";
  10690. /**
  10691. * Copyright 2013-present, Facebook, Inc.
  10692. * All rights reserved.
  10693. *
  10694. * This source code is licensed under the BSD-style license found in the
  10695. * LICENSE file in the root directory of this source tree. An additional grant
  10696. * of patent rights can be found in the PATENTS file in the same directory.
  10697. *
  10698. */
  10699. var _require = __webpack_require__(15),
  10700. isValidElement = _require.isValidElement;
  10701. var factory = __webpack_require__(96);
  10702. module.exports = factory(isValidElement);
  10703. /***/ }),
  10704. /* 96 */
  10705. /***/ (function(module, exports, __webpack_require__) {
  10706. "use strict";
  10707. /**
  10708. * Copyright (c) 2013-present, Facebook, Inc.
  10709. *
  10710. * This source code is licensed under the MIT license found in the
  10711. * LICENSE file in the root directory of this source tree.
  10712. */
  10713. // React 15.5 references this module, and assumes PropTypes are still callable in production.
  10714. // Therefore we re-export development-only version with all the PropTypes checks here.
  10715. // However if one is migrating to the `prop-types` npm library, they will go through the
  10716. // `index.js` entry point, and it will branch depending on the environment.
  10717. var factory = __webpack_require__(97);
  10718. module.exports = function(isValidElement) {
  10719. // It is still allowed in 15.5.
  10720. var throwOnDirectAccess = false;
  10721. return factory(isValidElement, throwOnDirectAccess);
  10722. };
  10723. /***/ }),
  10724. /* 97 */
  10725. /***/ (function(module, exports, __webpack_require__) {
  10726. "use strict";
  10727. /* WEBPACK VAR INJECTION */(function(process) {/**
  10728. * Copyright (c) 2013-present, Facebook, Inc.
  10729. *
  10730. * This source code is licensed under the MIT license found in the
  10731. * LICENSE file in the root directory of this source tree.
  10732. */
  10733. var emptyFunction = __webpack_require__(8);
  10734. var invariant = __webpack_require__(1);
  10735. var warning = __webpack_require__(2);
  10736. var assign = __webpack_require__(4);
  10737. var ReactPropTypesSecret = __webpack_require__(55);
  10738. var checkPropTypes = __webpack_require__(98);
  10739. module.exports = function(isValidElement, throwOnDirectAccess) {
  10740. /* global Symbol */
  10741. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  10742. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  10743. /**
  10744. * Returns the iterator method function contained on the iterable object.
  10745. *
  10746. * Be sure to invoke the function with the iterable as context:
  10747. *
  10748. * var iteratorFn = getIteratorFn(myIterable);
  10749. * if (iteratorFn) {
  10750. * var iterator = iteratorFn.call(myIterable);
  10751. * ...
  10752. * }
  10753. *
  10754. * @param {?object} maybeIterable
  10755. * @return {?function}
  10756. */
  10757. function getIteratorFn(maybeIterable) {
  10758. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  10759. if (typeof iteratorFn === 'function') {
  10760. return iteratorFn;
  10761. }
  10762. }
  10763. /**
  10764. * Collection of methods that allow declaration and validation of props that are
  10765. * supplied to React components. Example usage:
  10766. *
  10767. * var Props = require('ReactPropTypes');
  10768. * var MyArticle = React.createClass({
  10769. * propTypes: {
  10770. * // An optional string prop named "description".
  10771. * description: Props.string,
  10772. *
  10773. * // A required enum prop named "category".
  10774. * category: Props.oneOf(['News','Photos']).isRequired,
  10775. *
  10776. * // A prop named "dialog" that requires an instance of Dialog.
  10777. * dialog: Props.instanceOf(Dialog).isRequired
  10778. * },
  10779. * render: function() { ... }
  10780. * });
  10781. *
  10782. * A more formal specification of how these methods are used:
  10783. *
  10784. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  10785. * decl := ReactPropTypes.{type}(.isRequired)?
  10786. *
  10787. * Each and every declaration produces a function with the same signature. This
  10788. * allows the creation of custom validation functions. For example:
  10789. *
  10790. * var MyLink = React.createClass({
  10791. * propTypes: {
  10792. * // An optional string or URI prop named "href".
  10793. * href: function(props, propName, componentName) {
  10794. * var propValue = props[propName];
  10795. * if (propValue != null && typeof propValue !== 'string' &&
  10796. * !(propValue instanceof URI)) {
  10797. * return new Error(
  10798. * 'Expected a string or an URI for ' + propName + ' in ' +
  10799. * componentName
  10800. * );
  10801. * }
  10802. * }
  10803. * },
  10804. * render: function() {...}
  10805. * });
  10806. *
  10807. * @internal
  10808. */
  10809. var ANONYMOUS = '<<anonymous>>';
  10810. // Important!
  10811. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  10812. var ReactPropTypes = {
  10813. array: createPrimitiveTypeChecker('array'),
  10814. bool: createPrimitiveTypeChecker('boolean'),
  10815. func: createPrimitiveTypeChecker('function'),
  10816. number: createPrimitiveTypeChecker('number'),
  10817. object: createPrimitiveTypeChecker('object'),
  10818. string: createPrimitiveTypeChecker('string'),
  10819. symbol: createPrimitiveTypeChecker('symbol'),
  10820. any: createAnyTypeChecker(),
  10821. arrayOf: createArrayOfTypeChecker,
  10822. element: createElementTypeChecker(),
  10823. instanceOf: createInstanceTypeChecker,
  10824. node: createNodeChecker(),
  10825. objectOf: createObjectOfTypeChecker,
  10826. oneOf: createEnumTypeChecker,
  10827. oneOfType: createUnionTypeChecker,
  10828. shape: createShapeTypeChecker,
  10829. exact: createStrictShapeTypeChecker,
  10830. };
  10831. /**
  10832. * inlined Object.is polyfill to avoid requiring consumers ship their own
  10833. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  10834. */
  10835. /*eslint-disable no-self-compare*/
  10836. function is(x, y) {
  10837. // SameValue algorithm
  10838. if (x === y) {
  10839. // Steps 1-5, 7-10
  10840. // Steps 6.b-6.e: +0 != -0
  10841. return x !== 0 || 1 / x === 1 / y;
  10842. } else {
  10843. // Step 6.a: NaN == NaN
  10844. return x !== x && y !== y;
  10845. }
  10846. }
  10847. /*eslint-enable no-self-compare*/
  10848. /**
  10849. * We use an Error-like object for backward compatibility as people may call
  10850. * PropTypes directly and inspect their output. However, we don't use real
  10851. * Errors anymore. We don't inspect their stack anyway, and creating them
  10852. * is prohibitively expensive if they are created too often, such as what
  10853. * happens in oneOfType() for any type before the one that matched.
  10854. */
  10855. function PropTypeError(message) {
  10856. this.message = message;
  10857. this.stack = '';
  10858. }
  10859. // Make `instanceof Error` still work for returned errors.
  10860. PropTypeError.prototype = Error.prototype;
  10861. function createChainableTypeChecker(validate) {
  10862. if (process.env.NODE_ENV !== 'production') {
  10863. var manualPropTypeCallCache = {};
  10864. var manualPropTypeWarningCount = 0;
  10865. }
  10866. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  10867. componentName = componentName || ANONYMOUS;
  10868. propFullName = propFullName || propName;
  10869. if (secret !== ReactPropTypesSecret) {
  10870. if (throwOnDirectAccess) {
  10871. // New behavior only for users of `prop-types` package
  10872. invariant(
  10873. false,
  10874. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  10875. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  10876. 'Read more at http://fb.me/use-check-prop-types'
  10877. );
  10878. } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
  10879. // Old behavior for people using React.PropTypes
  10880. var cacheKey = componentName + ':' + propName;
  10881. if (
  10882. !manualPropTypeCallCache[cacheKey] &&
  10883. // Avoid spamming the console because they are often not actionable except for lib authors
  10884. manualPropTypeWarningCount < 3
  10885. ) {
  10886. warning(
  10887. false,
  10888. 'You are manually calling a React.PropTypes validation ' +
  10889. 'function for the `%s` prop on `%s`. This is deprecated ' +
  10890. 'and will throw in the standalone `prop-types` package. ' +
  10891. 'You may be seeing this warning due to a third-party PropTypes ' +
  10892. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
  10893. propFullName,
  10894. componentName
  10895. );
  10896. manualPropTypeCallCache[cacheKey] = true;
  10897. manualPropTypeWarningCount++;
  10898. }
  10899. }
  10900. }
  10901. if (props[propName] == null) {
  10902. if (isRequired) {
  10903. if (props[propName] === null) {
  10904. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  10905. }
  10906. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  10907. }
  10908. return null;
  10909. } else {
  10910. return validate(props, propName, componentName, location, propFullName);
  10911. }
  10912. }
  10913. var chainedCheckType = checkType.bind(null, false);
  10914. chainedCheckType.isRequired = checkType.bind(null, true);
  10915. return chainedCheckType;
  10916. }
  10917. function createPrimitiveTypeChecker(expectedType) {
  10918. function validate(props, propName, componentName, location, propFullName, secret) {
  10919. var propValue = props[propName];
  10920. var propType = getPropType(propValue);
  10921. if (propType !== expectedType) {
  10922. // `propValue` being instance of, say, date/regexp, pass the 'object'
  10923. // check, but we can offer a more precise error message here rather than
  10924. // 'of type `object`'.
  10925. var preciseType = getPreciseType(propValue);
  10926. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  10927. }
  10928. return null;
  10929. }
  10930. return createChainableTypeChecker(validate);
  10931. }
  10932. function createAnyTypeChecker() {
  10933. return createChainableTypeChecker(emptyFunction.thatReturnsNull);
  10934. }
  10935. function createArrayOfTypeChecker(typeChecker) {
  10936. function validate(props, propName, componentName, location, propFullName) {
  10937. if (typeof typeChecker !== 'function') {
  10938. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  10939. }
  10940. var propValue = props[propName];
  10941. if (!Array.isArray(propValue)) {
  10942. var propType = getPropType(propValue);
  10943. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  10944. }
  10945. for (var i = 0; i < propValue.length; i++) {
  10946. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  10947. if (error instanceof Error) {
  10948. return error;
  10949. }
  10950. }
  10951. return null;
  10952. }
  10953. return createChainableTypeChecker(validate);
  10954. }
  10955. function createElementTypeChecker() {
  10956. function validate(props, propName, componentName, location, propFullName) {
  10957. var propValue = props[propName];
  10958. if (!isValidElement(propValue)) {
  10959. var propType = getPropType(propValue);
  10960. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  10961. }
  10962. return null;
  10963. }
  10964. return createChainableTypeChecker(validate);
  10965. }
  10966. function createInstanceTypeChecker(expectedClass) {
  10967. function validate(props, propName, componentName, location, propFullName) {
  10968. if (!(props[propName] instanceof expectedClass)) {
  10969. var expectedClassName = expectedClass.name || ANONYMOUS;
  10970. var actualClassName = getClassName(props[propName]);
  10971. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  10972. }
  10973. return null;
  10974. }
  10975. return createChainableTypeChecker(validate);
  10976. }
  10977. function createEnumTypeChecker(expectedValues) {
  10978. if (!Array.isArray(expectedValues)) {
  10979. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
  10980. return emptyFunction.thatReturnsNull;
  10981. }
  10982. function validate(props, propName, componentName, location, propFullName) {
  10983. var propValue = props[propName];
  10984. for (var i = 0; i < expectedValues.length; i++) {
  10985. if (is(propValue, expectedValues[i])) {
  10986. return null;
  10987. }
  10988. }
  10989. var valuesString = JSON.stringify(expectedValues);
  10990. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  10991. }
  10992. return createChainableTypeChecker(validate);
  10993. }
  10994. function createObjectOfTypeChecker(typeChecker) {
  10995. function validate(props, propName, componentName, location, propFullName) {
  10996. if (typeof typeChecker !== 'function') {
  10997. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  10998. }
  10999. var propValue = props[propName];
  11000. var propType = getPropType(propValue);
  11001. if (propType !== 'object') {
  11002. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  11003. }
  11004. for (var key in propValue) {
  11005. if (propValue.hasOwnProperty(key)) {
  11006. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11007. if (error instanceof Error) {
  11008. return error;
  11009. }
  11010. }
  11011. }
  11012. return null;
  11013. }
  11014. return createChainableTypeChecker(validate);
  11015. }
  11016. function createUnionTypeChecker(arrayOfTypeCheckers) {
  11017. if (!Array.isArray(arrayOfTypeCheckers)) {
  11018. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
  11019. return emptyFunction.thatReturnsNull;
  11020. }
  11021. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  11022. var checker = arrayOfTypeCheckers[i];
  11023. if (typeof checker !== 'function') {
  11024. warning(
  11025. false,
  11026. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  11027. 'received %s at index %s.',
  11028. getPostfixForTypeWarning(checker),
  11029. i
  11030. );
  11031. return emptyFunction.thatReturnsNull;
  11032. }
  11033. }
  11034. function validate(props, propName, componentName, location, propFullName) {
  11035. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  11036. var checker = arrayOfTypeCheckers[i];
  11037. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  11038. return null;
  11039. }
  11040. }
  11041. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  11042. }
  11043. return createChainableTypeChecker(validate);
  11044. }
  11045. function createNodeChecker() {
  11046. function validate(props, propName, componentName, location, propFullName) {
  11047. if (!isNode(props[propName])) {
  11048. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  11049. }
  11050. return null;
  11051. }
  11052. return createChainableTypeChecker(validate);
  11053. }
  11054. function createShapeTypeChecker(shapeTypes) {
  11055. function validate(props, propName, componentName, location, propFullName) {
  11056. var propValue = props[propName];
  11057. var propType = getPropType(propValue);
  11058. if (propType !== 'object') {
  11059. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  11060. }
  11061. for (var key in shapeTypes) {
  11062. var checker = shapeTypes[key];
  11063. if (!checker) {
  11064. continue;
  11065. }
  11066. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11067. if (error) {
  11068. return error;
  11069. }
  11070. }
  11071. return null;
  11072. }
  11073. return createChainableTypeChecker(validate);
  11074. }
  11075. function createStrictShapeTypeChecker(shapeTypes) {
  11076. function validate(props, propName, componentName, location, propFullName) {
  11077. var propValue = props[propName];
  11078. var propType = getPropType(propValue);
  11079. if (propType !== 'object') {
  11080. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  11081. }
  11082. // We need to check all keys in case some are required but missing from
  11083. // props.
  11084. var allKeys = assign({}, props[propName], shapeTypes);
  11085. for (var key in allKeys) {
  11086. var checker = shapeTypes[key];
  11087. if (!checker) {
  11088. return new PropTypeError(
  11089. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  11090. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  11091. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  11092. );
  11093. }
  11094. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11095. if (error) {
  11096. return error;
  11097. }
  11098. }
  11099. return null;
  11100. }
  11101. return createChainableTypeChecker(validate);
  11102. }
  11103. function isNode(propValue) {
  11104. switch (typeof propValue) {
  11105. case 'number':
  11106. case 'string':
  11107. case 'undefined':
  11108. return true;
  11109. case 'boolean':
  11110. return !propValue;
  11111. case 'object':
  11112. if (Array.isArray(propValue)) {
  11113. return propValue.every(isNode);
  11114. }
  11115. if (propValue === null || isValidElement(propValue)) {
  11116. return true;
  11117. }
  11118. var iteratorFn = getIteratorFn(propValue);
  11119. if (iteratorFn) {
  11120. var iterator = iteratorFn.call(propValue);
  11121. var step;
  11122. if (iteratorFn !== propValue.entries) {
  11123. while (!(step = iterator.next()).done) {
  11124. if (!isNode(step.value)) {
  11125. return false;
  11126. }
  11127. }
  11128. } else {
  11129. // Iterator will provide entry [k,v] tuples rather than values.
  11130. while (!(step = iterator.next()).done) {
  11131. var entry = step.value;
  11132. if (entry) {
  11133. if (!isNode(entry[1])) {
  11134. return false;
  11135. }
  11136. }
  11137. }
  11138. }
  11139. } else {
  11140. return false;
  11141. }
  11142. return true;
  11143. default:
  11144. return false;
  11145. }
  11146. }
  11147. function isSymbol(propType, propValue) {
  11148. // Native Symbol.
  11149. if (propType === 'symbol') {
  11150. return true;
  11151. }
  11152. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  11153. if (propValue['@@toStringTag'] === 'Symbol') {
  11154. return true;
  11155. }
  11156. // Fallback for non-spec compliant Symbols which are polyfilled.
  11157. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  11158. return true;
  11159. }
  11160. return false;
  11161. }
  11162. // Equivalent of `typeof` but with special handling for array and regexp.
  11163. function getPropType(propValue) {
  11164. var propType = typeof propValue;
  11165. if (Array.isArray(propValue)) {
  11166. return 'array';
  11167. }
  11168. if (propValue instanceof RegExp) {
  11169. // Old webkits (at least until Android 4.0) return 'function' rather than
  11170. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  11171. // passes PropTypes.object.
  11172. return 'object';
  11173. }
  11174. if (isSymbol(propType, propValue)) {
  11175. return 'symbol';
  11176. }
  11177. return propType;
  11178. }
  11179. // This handles more types than `getPropType`. Only used for error messages.
  11180. // See `createPrimitiveTypeChecker`.
  11181. function getPreciseType(propValue) {
  11182. if (typeof propValue === 'undefined' || propValue === null) {
  11183. return '' + propValue;
  11184. }
  11185. var propType = getPropType(propValue);
  11186. if (propType === 'object') {
  11187. if (propValue instanceof Date) {
  11188. return 'date';
  11189. } else if (propValue instanceof RegExp) {
  11190. return 'regexp';
  11191. }
  11192. }
  11193. return propType;
  11194. }
  11195. // Returns a string that is postfixed to a warning about an invalid type.
  11196. // For example, "undefined" or "of type array"
  11197. function getPostfixForTypeWarning(value) {
  11198. var type = getPreciseType(value);
  11199. switch (type) {
  11200. case 'array':
  11201. case 'object':
  11202. return 'an ' + type;
  11203. case 'boolean':
  11204. case 'date':
  11205. case 'regexp':
  11206. return 'a ' + type;
  11207. default:
  11208. return type;
  11209. }
  11210. }
  11211. // Returns class name of the object, if any.
  11212. function getClassName(propValue) {
  11213. if (!propValue.constructor || !propValue.constructor.name) {
  11214. return ANONYMOUS;
  11215. }
  11216. return propValue.constructor.name;
  11217. }
  11218. ReactPropTypes.checkPropTypes = checkPropTypes;
  11219. ReactPropTypes.PropTypes = ReactPropTypes;
  11220. return ReactPropTypes;
  11221. };
  11222. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11223. /***/ }),
  11224. /* 98 */
  11225. /***/ (function(module, exports, __webpack_require__) {
  11226. "use strict";
  11227. /* WEBPACK VAR INJECTION */(function(process) {/**
  11228. * Copyright (c) 2013-present, Facebook, Inc.
  11229. *
  11230. * This source code is licensed under the MIT license found in the
  11231. * LICENSE file in the root directory of this source tree.
  11232. */
  11233. if (process.env.NODE_ENV !== 'production') {
  11234. var invariant = __webpack_require__(1);
  11235. var warning = __webpack_require__(2);
  11236. var ReactPropTypesSecret = __webpack_require__(55);
  11237. var loggedTypeFailures = {};
  11238. }
  11239. /**
  11240. * Assert that the values match with the type specs.
  11241. * Error messages are memorized and will only be shown once.
  11242. *
  11243. * @param {object} typeSpecs Map of name to a ReactPropType
  11244. * @param {object} values Runtime values that need to be type-checked
  11245. * @param {string} location e.g. "prop", "context", "child context"
  11246. * @param {string} componentName Name of the component for error messages.
  11247. * @param {?Function} getStack Returns the component stack.
  11248. * @private
  11249. */
  11250. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  11251. if (process.env.NODE_ENV !== 'production') {
  11252. for (var typeSpecName in typeSpecs) {
  11253. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  11254. var error;
  11255. // Prop type validation may throw. In case they do, we don't want to
  11256. // fail the render phase where it didn't fail before. So we log it.
  11257. // After these have been cleaned up, we'll let them throw.
  11258. try {
  11259. // This is intentionally an invariant that gets caught. It's the same
  11260. // behavior as without this statement except with a better message.
  11261. invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);
  11262. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  11263. } catch (ex) {
  11264. error = ex;
  11265. }
  11266. warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
  11267. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  11268. // Only monitor this failure once because there tends to be a lot of the
  11269. // same error.
  11270. loggedTypeFailures[error.message] = true;
  11271. var stack = getStack ? getStack() : '';
  11272. warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
  11273. }
  11274. }
  11275. }
  11276. }
  11277. }
  11278. module.exports = checkPropTypes;
  11279. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11280. /***/ }),
  11281. /* 99 */
  11282. /***/ (function(module, exports, __webpack_require__) {
  11283. "use strict";
  11284. /**
  11285. * Copyright 2013-present, Facebook, Inc.
  11286. * All rights reserved.
  11287. *
  11288. * This source code is licensed under the BSD-style license found in the
  11289. * LICENSE file in the root directory of this source tree. An additional grant
  11290. * of patent rights can be found in the PATENTS file in the same directory.
  11291. *
  11292. */
  11293. module.exports = '15.5.4';
  11294. /***/ }),
  11295. /* 100 */
  11296. /***/ (function(module, exports, __webpack_require__) {
  11297. "use strict";
  11298. /* WEBPACK VAR INJECTION */(function(process) {/**
  11299. * Copyright 2013-present, Facebook, Inc.
  11300. * All rights reserved.
  11301. *
  11302. * This source code is licensed under the BSD-style license found in the
  11303. * LICENSE file in the root directory of this source tree. An additional grant
  11304. * of patent rights can be found in the PATENTS file in the same directory.
  11305. *
  11306. */
  11307. var _prodInvariant = __webpack_require__(14);
  11308. var ReactElement = __webpack_require__(15);
  11309. var invariant = __webpack_require__(1);
  11310. /**
  11311. * Returns the first child in a collection of children and verifies that there
  11312. * is only one child in the collection.
  11313. *
  11314. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only
  11315. *
  11316. * The current implementation of this function assumes that a single child gets
  11317. * passed without a wrapper, but the purpose of this helper function is to
  11318. * abstract away the particular structure of children.
  11319. *
  11320. * @param {?object} children Child collection structure.
  11321. * @return {ReactElement} The first and only `ReactElement` contained in the
  11322. * structure.
  11323. */
  11324. function onlyChild(children) {
  11325. !ReactElement.isValidElement(children) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;
  11326. return children;
  11327. }
  11328. module.exports = onlyChild;
  11329. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11330. /***/ }),
  11331. /* 101 */
  11332. /***/ (function(module, exports, __webpack_require__) {
  11333. "use strict";
  11334. module.exports = __webpack_require__(102);
  11335. /***/ }),
  11336. /* 102 */
  11337. /***/ (function(module, exports, __webpack_require__) {
  11338. "use strict";
  11339. /* WEBPACK VAR INJECTION */(function(process) {/**
  11340. * Copyright 2013-present, Facebook, Inc.
  11341. * All rights reserved.
  11342. *
  11343. * This source code is licensed under the BSD-style license found in the
  11344. * LICENSE file in the root directory of this source tree. An additional grant
  11345. * of patent rights can be found in the PATENTS file in the same directory.
  11346. *
  11347. */
  11348. /* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
  11349. var ReactDOMComponentTree = __webpack_require__(5);
  11350. var ReactDefaultInjection = __webpack_require__(103);
  11351. var ReactMount = __webpack_require__(79);
  11352. var ReactReconciler = __webpack_require__(18);
  11353. var ReactUpdates = __webpack_require__(11);
  11354. var ReactVersion = __webpack_require__(184);
  11355. var findDOMNode = __webpack_require__(185);
  11356. var getHostComponentFromComposite = __webpack_require__(80);
  11357. var renderSubtreeIntoContainer = __webpack_require__(186);
  11358. var warning = __webpack_require__(2);
  11359. ReactDefaultInjection.inject();
  11360. var ReactDOM = {
  11361. findDOMNode: findDOMNode,
  11362. render: ReactMount.render,
  11363. unmountComponentAtNode: ReactMount.unmountComponentAtNode,
  11364. version: ReactVersion,
  11365. /* eslint-disable camelcase */
  11366. unstable_batchedUpdates: ReactUpdates.batchedUpdates,
  11367. unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
  11368. };
  11369. // Inject the runtime into a devtools global hook regardless of browser.
  11370. // Allows for debugging when the hook is injected on the page.
  11371. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {
  11372. __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
  11373. ComponentTree: {
  11374. getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,
  11375. getNodeFromInstance: function (inst) {
  11376. // inst is an internal instance (but could be a composite)
  11377. if (inst._renderedComponent) {
  11378. inst = getHostComponentFromComposite(inst);
  11379. }
  11380. if (inst) {
  11381. return ReactDOMComponentTree.getNodeFromInstance(inst);
  11382. } else {
  11383. return null;
  11384. }
  11385. }
  11386. },
  11387. Mount: ReactMount,
  11388. Reconciler: ReactReconciler
  11389. });
  11390. }
  11391. if (process.env.NODE_ENV !== 'production') {
  11392. var ExecutionEnvironment = __webpack_require__(6);
  11393. if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
  11394. // First check if devtools is not installed
  11395. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  11396. // If we're in Chrome or Firefox, provide a download link if not installed.
  11397. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  11398. // Firefox does not have the issue with devtools loaded over file://
  11399. var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1;
  11400. console.debug('Download the React DevTools ' + (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') + 'for a better development experience: ' + 'https://fb.me/react-devtools');
  11401. }
  11402. }
  11403. var testFunc = function testFn() {};
  11404. process.env.NODE_ENV !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;
  11405. // If we're in IE8, check to see if we are in compatibility mode and provide
  11406. // information on preventing compatibility mode
  11407. var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
  11408. process.env.NODE_ENV !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '<meta http-equiv="X-UA-Compatible" content="IE=edge" />') : void 0;
  11409. var expectedFeatures = [
  11410. // shims
  11411. Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim];
  11412. for (var i = 0; i < expectedFeatures.length; i++) {
  11413. if (!expectedFeatures[i]) {
  11414. process.env.NODE_ENV !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;
  11415. break;
  11416. }
  11417. }
  11418. }
  11419. }
  11420. if (process.env.NODE_ENV !== 'production') {
  11421. var ReactInstrumentation = __webpack_require__(9);
  11422. var ReactDOMUnknownPropertyHook = __webpack_require__(187);
  11423. var ReactDOMNullInputValuePropHook = __webpack_require__(188);
  11424. var ReactDOMInvalidARIAHook = __webpack_require__(189);
  11425. ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);
  11426. ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);
  11427. ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);
  11428. }
  11429. module.exports = ReactDOM;
  11430. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11431. /***/ }),
  11432. /* 103 */
  11433. /***/ (function(module, exports, __webpack_require__) {
  11434. "use strict";
  11435. /**
  11436. * Copyright 2013-present, Facebook, Inc.
  11437. * All rights reserved.
  11438. *
  11439. * This source code is licensed under the BSD-style license found in the
  11440. * LICENSE file in the root directory of this source tree. An additional grant
  11441. * of patent rights can be found in the PATENTS file in the same directory.
  11442. *
  11443. */
  11444. var ARIADOMPropertyConfig = __webpack_require__(104);
  11445. var BeforeInputEventPlugin = __webpack_require__(105);
  11446. var ChangeEventPlugin = __webpack_require__(109);
  11447. var DefaultEventPluginOrder = __webpack_require__(117);
  11448. var EnterLeaveEventPlugin = __webpack_require__(118);
  11449. var HTMLDOMPropertyConfig = __webpack_require__(119);
  11450. var ReactComponentBrowserEnvironment = __webpack_require__(120);
  11451. var ReactDOMComponent = __webpack_require__(126);
  11452. var ReactDOMComponentTree = __webpack_require__(5);
  11453. var ReactDOMEmptyComponent = __webpack_require__(155);
  11454. var ReactDOMTreeTraversal = __webpack_require__(156);
  11455. var ReactDOMTextComponent = __webpack_require__(157);
  11456. var ReactDefaultBatchingStrategy = __webpack_require__(158);
  11457. var ReactEventListener = __webpack_require__(159);
  11458. var ReactInjection = __webpack_require__(161);
  11459. var ReactReconcileTransaction = __webpack_require__(162);
  11460. var SVGDOMPropertyConfig = __webpack_require__(168);
  11461. var SelectEventPlugin = __webpack_require__(169);
  11462. var SimpleEventPlugin = __webpack_require__(170);
  11463. var alreadyInjected = false;
  11464. function inject() {
  11465. if (alreadyInjected) {
  11466. // TODO: This is currently true because these injections are shared between
  11467. // the client and the server package. They should be built independently
  11468. // and not share any injection state. Then this problem will be solved.
  11469. return;
  11470. }
  11471. alreadyInjected = true;
  11472. ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener);
  11473. /**
  11474. * Inject modules for resolving DOM hierarchy and plugin ordering.
  11475. */
  11476. ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder);
  11477. ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree);
  11478. ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal);
  11479. /**
  11480. * Some important event plugins included by default (without having to require
  11481. * them).
  11482. */
  11483. ReactInjection.EventPluginHub.injectEventPluginsByName({
  11484. SimpleEventPlugin: SimpleEventPlugin,
  11485. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  11486. ChangeEventPlugin: ChangeEventPlugin,
  11487. SelectEventPlugin: SelectEventPlugin,
  11488. BeforeInputEventPlugin: BeforeInputEventPlugin
  11489. });
  11490. ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent);
  11491. ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent);
  11492. ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig);
  11493. ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
  11494. ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig);
  11495. ReactInjection.EmptyComponent.injectEmptyComponentFactory(function (instantiate) {
  11496. return new ReactDOMEmptyComponent(instantiate);
  11497. });
  11498. ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction);
  11499. ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy);
  11500. ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment);
  11501. }
  11502. module.exports = {
  11503. inject: inject
  11504. };
  11505. /***/ }),
  11506. /* 104 */
  11507. /***/ (function(module, exports, __webpack_require__) {
  11508. "use strict";
  11509. /**
  11510. * Copyright 2013-present, Facebook, Inc.
  11511. * All rights reserved.
  11512. *
  11513. * This source code is licensed under the BSD-style license found in the
  11514. * LICENSE file in the root directory of this source tree. An additional grant
  11515. * of patent rights can be found in the PATENTS file in the same directory.
  11516. *
  11517. */
  11518. var ARIADOMPropertyConfig = {
  11519. Properties: {
  11520. // Global States and Properties
  11521. 'aria-current': 0, // state
  11522. 'aria-details': 0,
  11523. 'aria-disabled': 0, // state
  11524. 'aria-hidden': 0, // state
  11525. 'aria-invalid': 0, // state
  11526. 'aria-keyshortcuts': 0,
  11527. 'aria-label': 0,
  11528. 'aria-roledescription': 0,
  11529. // Widget Attributes
  11530. 'aria-autocomplete': 0,
  11531. 'aria-checked': 0,
  11532. 'aria-expanded': 0,
  11533. 'aria-haspopup': 0,
  11534. 'aria-level': 0,
  11535. 'aria-modal': 0,
  11536. 'aria-multiline': 0,
  11537. 'aria-multiselectable': 0,
  11538. 'aria-orientation': 0,
  11539. 'aria-placeholder': 0,
  11540. 'aria-pressed': 0,
  11541. 'aria-readonly': 0,
  11542. 'aria-required': 0,
  11543. 'aria-selected': 0,
  11544. 'aria-sort': 0,
  11545. 'aria-valuemax': 0,
  11546. 'aria-valuemin': 0,
  11547. 'aria-valuenow': 0,
  11548. 'aria-valuetext': 0,
  11549. // Live Region Attributes
  11550. 'aria-atomic': 0,
  11551. 'aria-busy': 0,
  11552. 'aria-live': 0,
  11553. 'aria-relevant': 0,
  11554. // Drag-and-Drop Attributes
  11555. 'aria-dropeffect': 0,
  11556. 'aria-grabbed': 0,
  11557. // Relationship Attributes
  11558. 'aria-activedescendant': 0,
  11559. 'aria-colcount': 0,
  11560. 'aria-colindex': 0,
  11561. 'aria-colspan': 0,
  11562. 'aria-controls': 0,
  11563. 'aria-describedby': 0,
  11564. 'aria-errormessage': 0,
  11565. 'aria-flowto': 0,
  11566. 'aria-labelledby': 0,
  11567. 'aria-owns': 0,
  11568. 'aria-posinset': 0,
  11569. 'aria-rowcount': 0,
  11570. 'aria-rowindex': 0,
  11571. 'aria-rowspan': 0,
  11572. 'aria-setsize': 0
  11573. },
  11574. DOMAttributeNames: {},
  11575. DOMPropertyNames: {}
  11576. };
  11577. module.exports = ARIADOMPropertyConfig;
  11578. /***/ }),
  11579. /* 105 */
  11580. /***/ (function(module, exports, __webpack_require__) {
  11581. "use strict";
  11582. /**
  11583. * Copyright 2013-present Facebook, Inc.
  11584. * All rights reserved.
  11585. *
  11586. * This source code is licensed under the BSD-style license found in the
  11587. * LICENSE file in the root directory of this source tree. An additional grant
  11588. * of patent rights can be found in the PATENTS file in the same directory.
  11589. *
  11590. */
  11591. var EventPropagators = __webpack_require__(21);
  11592. var ExecutionEnvironment = __webpack_require__(6);
  11593. var FallbackCompositionState = __webpack_require__(106);
  11594. var SyntheticCompositionEvent = __webpack_require__(107);
  11595. var SyntheticInputEvent = __webpack_require__(108);
  11596. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  11597. var START_KEYCODE = 229;
  11598. var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;
  11599. var documentMode = null;
  11600. if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {
  11601. documentMode = document.documentMode;
  11602. }
  11603. // Webkit offers a very useful `textInput` event that can be used to
  11604. // directly represent `beforeInput`. The IE `textinput` event is not as
  11605. // useful, so we don't use it.
  11606. var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();
  11607. // In IE9+, we have access to composition events, but the data supplied
  11608. // by the native compositionend event may be incorrect. Japanese ideographic
  11609. // spaces, for instance (\u3000) are not recorded correctly.
  11610. var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  11611. /**
  11612. * Opera <= 12 includes TextEvent in window, but does not fire
  11613. * text input events. Rely on keypress instead.
  11614. */
  11615. function isPresto() {
  11616. var opera = window.opera;
  11617. return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
  11618. }
  11619. var SPACEBAR_CODE = 32;
  11620. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  11621. // Events and their corresponding property names.
  11622. var eventTypes = {
  11623. beforeInput: {
  11624. phasedRegistrationNames: {
  11625. bubbled: 'onBeforeInput',
  11626. captured: 'onBeforeInputCapture'
  11627. },
  11628. dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']
  11629. },
  11630. compositionEnd: {
  11631. phasedRegistrationNames: {
  11632. bubbled: 'onCompositionEnd',
  11633. captured: 'onCompositionEndCapture'
  11634. },
  11635. dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11636. },
  11637. compositionStart: {
  11638. phasedRegistrationNames: {
  11639. bubbled: 'onCompositionStart',
  11640. captured: 'onCompositionStartCapture'
  11641. },
  11642. dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11643. },
  11644. compositionUpdate: {
  11645. phasedRegistrationNames: {
  11646. bubbled: 'onCompositionUpdate',
  11647. captured: 'onCompositionUpdateCapture'
  11648. },
  11649. dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11650. }
  11651. };
  11652. // Track whether we've ever handled a keypress on the space key.
  11653. var hasSpaceKeypress = false;
  11654. /**
  11655. * Return whether a native keypress event is assumed to be a command.
  11656. * This is required because Firefox fires `keypress` events for key commands
  11657. * (cut, copy, select-all, etc.) even though no character is inserted.
  11658. */
  11659. function isKeypressCommand(nativeEvent) {
  11660. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  11661. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  11662. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  11663. }
  11664. /**
  11665. * Translate native top level events into event types.
  11666. *
  11667. * @param {string} topLevelType
  11668. * @return {object}
  11669. */
  11670. function getCompositionEventType(topLevelType) {
  11671. switch (topLevelType) {
  11672. case 'topCompositionStart':
  11673. return eventTypes.compositionStart;
  11674. case 'topCompositionEnd':
  11675. return eventTypes.compositionEnd;
  11676. case 'topCompositionUpdate':
  11677. return eventTypes.compositionUpdate;
  11678. }
  11679. }
  11680. /**
  11681. * Does our fallback best-guess model think this event signifies that
  11682. * composition has begun?
  11683. *
  11684. * @param {string} topLevelType
  11685. * @param {object} nativeEvent
  11686. * @return {boolean}
  11687. */
  11688. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  11689. return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;
  11690. }
  11691. /**
  11692. * Does our fallback mode think that this event is the end of composition?
  11693. *
  11694. * @param {string} topLevelType
  11695. * @param {object} nativeEvent
  11696. * @return {boolean}
  11697. */
  11698. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  11699. switch (topLevelType) {
  11700. case 'topKeyUp':
  11701. // Command keys insert or clear IME input.
  11702. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  11703. case 'topKeyDown':
  11704. // Expect IME keyCode on each keydown. If we get any other
  11705. // code we must have exited earlier.
  11706. return nativeEvent.keyCode !== START_KEYCODE;
  11707. case 'topKeyPress':
  11708. case 'topMouseDown':
  11709. case 'topBlur':
  11710. // Events are not possible without cancelling IME.
  11711. return true;
  11712. default:
  11713. return false;
  11714. }
  11715. }
  11716. /**
  11717. * Google Input Tools provides composition data via a CustomEvent,
  11718. * with the `data` property populated in the `detail` object. If this
  11719. * is available on the event object, use it. If not, this is a plain
  11720. * composition event and we have nothing special to extract.
  11721. *
  11722. * @param {object} nativeEvent
  11723. * @return {?string}
  11724. */
  11725. function getDataFromCustomEvent(nativeEvent) {
  11726. var detail = nativeEvent.detail;
  11727. if (typeof detail === 'object' && 'data' in detail) {
  11728. return detail.data;
  11729. }
  11730. return null;
  11731. }
  11732. // Track the current IME composition fallback object, if any.
  11733. var currentComposition = null;
  11734. /**
  11735. * @return {?object} A SyntheticCompositionEvent.
  11736. */
  11737. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11738. var eventType;
  11739. var fallbackData;
  11740. if (canUseCompositionEvent) {
  11741. eventType = getCompositionEventType(topLevelType);
  11742. } else if (!currentComposition) {
  11743. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  11744. eventType = eventTypes.compositionStart;
  11745. }
  11746. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  11747. eventType = eventTypes.compositionEnd;
  11748. }
  11749. if (!eventType) {
  11750. return null;
  11751. }
  11752. if (useFallbackCompositionData) {
  11753. // The current composition is stored statically and must not be
  11754. // overwritten while composition continues.
  11755. if (!currentComposition && eventType === eventTypes.compositionStart) {
  11756. currentComposition = FallbackCompositionState.getPooled(nativeEventTarget);
  11757. } else if (eventType === eventTypes.compositionEnd) {
  11758. if (currentComposition) {
  11759. fallbackData = currentComposition.getData();
  11760. }
  11761. }
  11762. }
  11763. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  11764. if (fallbackData) {
  11765. // Inject data generated from fallback path into the synthetic event.
  11766. // This matches the property of native CompositionEventInterface.
  11767. event.data = fallbackData;
  11768. } else {
  11769. var customData = getDataFromCustomEvent(nativeEvent);
  11770. if (customData !== null) {
  11771. event.data = customData;
  11772. }
  11773. }
  11774. EventPropagators.accumulateTwoPhaseDispatches(event);
  11775. return event;
  11776. }
  11777. /**
  11778. * @param {string} topLevelType Record from `EventConstants`.
  11779. * @param {object} nativeEvent Native browser event.
  11780. * @return {?string} The string corresponding to this `beforeInput` event.
  11781. */
  11782. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  11783. switch (topLevelType) {
  11784. case 'topCompositionEnd':
  11785. return getDataFromCustomEvent(nativeEvent);
  11786. case 'topKeyPress':
  11787. /**
  11788. * If native `textInput` events are available, our goal is to make
  11789. * use of them. However, there is a special case: the spacebar key.
  11790. * In Webkit, preventing default on a spacebar `textInput` event
  11791. * cancels character insertion, but it *also* causes the browser
  11792. * to fall back to its default spacebar behavior of scrolling the
  11793. * page.
  11794. *
  11795. * Tracking at:
  11796. * https://code.google.com/p/chromium/issues/detail?id=355103
  11797. *
  11798. * To avoid this issue, use the keypress event as if no `textInput`
  11799. * event is available.
  11800. */
  11801. var which = nativeEvent.which;
  11802. if (which !== SPACEBAR_CODE) {
  11803. return null;
  11804. }
  11805. hasSpaceKeypress = true;
  11806. return SPACEBAR_CHAR;
  11807. case 'topTextInput':
  11808. // Record the characters to be added to the DOM.
  11809. var chars = nativeEvent.data;
  11810. // If it's a spacebar character, assume that we have already handled
  11811. // it at the keypress level and bail immediately. Android Chrome
  11812. // doesn't give us keycodes, so we need to blacklist it.
  11813. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  11814. return null;
  11815. }
  11816. return chars;
  11817. default:
  11818. // For other native event types, do nothing.
  11819. return null;
  11820. }
  11821. }
  11822. /**
  11823. * For browsers that do not provide the `textInput` event, extract the
  11824. * appropriate string to use for SyntheticInputEvent.
  11825. *
  11826. * @param {string} topLevelType Record from `EventConstants`.
  11827. * @param {object} nativeEvent Native browser event.
  11828. * @return {?string} The fallback string for this `beforeInput` event.
  11829. */
  11830. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  11831. // If we are currently composing (IME) and using a fallback to do so,
  11832. // try to extract the composed characters from the fallback object.
  11833. // If composition event is available, we extract a string only at
  11834. // compositionevent, otherwise extract it at fallback events.
  11835. if (currentComposition) {
  11836. if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  11837. var chars = currentComposition.getData();
  11838. FallbackCompositionState.release(currentComposition);
  11839. currentComposition = null;
  11840. return chars;
  11841. }
  11842. return null;
  11843. }
  11844. switch (topLevelType) {
  11845. case 'topPaste':
  11846. // If a paste event occurs after a keypress, throw out the input
  11847. // chars. Paste events should not lead to BeforeInput events.
  11848. return null;
  11849. case 'topKeyPress':
  11850. /**
  11851. * As of v27, Firefox may fire keypress events even when no character
  11852. * will be inserted. A few possibilities:
  11853. *
  11854. * - `which` is `0`. Arrow keys, Esc key, etc.
  11855. *
  11856. * - `which` is the pressed key code, but no char is available.
  11857. * Ex: 'AltGr + d` in Polish. There is no modified character for
  11858. * this key combination and no character is inserted into the
  11859. * document, but FF fires the keypress for char code `100` anyway.
  11860. * No `input` event will occur.
  11861. *
  11862. * - `which` is the pressed key code, but a command combination is
  11863. * being used. Ex: `Cmd+C`. No character is inserted, and no
  11864. * `input` event will occur.
  11865. */
  11866. if (nativeEvent.which && !isKeypressCommand(nativeEvent)) {
  11867. return String.fromCharCode(nativeEvent.which);
  11868. }
  11869. return null;
  11870. case 'topCompositionEnd':
  11871. return useFallbackCompositionData ? null : nativeEvent.data;
  11872. default:
  11873. return null;
  11874. }
  11875. }
  11876. /**
  11877. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  11878. * `textInput` or fallback behavior.
  11879. *
  11880. * @return {?object} A SyntheticInputEvent.
  11881. */
  11882. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11883. var chars;
  11884. if (canUseTextInputEvent) {
  11885. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  11886. } else {
  11887. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  11888. }
  11889. // If no characters are being inserted, no BeforeInput event should
  11890. // be fired.
  11891. if (!chars) {
  11892. return null;
  11893. }
  11894. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  11895. event.data = chars;
  11896. EventPropagators.accumulateTwoPhaseDispatches(event);
  11897. return event;
  11898. }
  11899. /**
  11900. * Create an `onBeforeInput` event to match
  11901. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  11902. *
  11903. * This event plugin is based on the native `textInput` event
  11904. * available in Chrome, Safari, Opera, and IE. This event fires after
  11905. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  11906. *
  11907. * `beforeInput` is spec'd but not implemented in any browsers, and
  11908. * the `input` event does not provide any useful information about what has
  11909. * actually been added, contrary to the spec. Thus, `textInput` is the best
  11910. * available event to identify the characters that have actually been inserted
  11911. * into the target node.
  11912. *
  11913. * This plugin is also responsible for emitting `composition` events, thus
  11914. * allowing us to share composition fallback code for both `beforeInput` and
  11915. * `composition` event types.
  11916. */
  11917. var BeforeInputEventPlugin = {
  11918. eventTypes: eventTypes,
  11919. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11920. return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];
  11921. }
  11922. };
  11923. module.exports = BeforeInputEventPlugin;
  11924. /***/ }),
  11925. /* 106 */
  11926. /***/ (function(module, exports, __webpack_require__) {
  11927. "use strict";
  11928. /**
  11929. * Copyright 2013-present, Facebook, Inc.
  11930. * All rights reserved.
  11931. *
  11932. * This source code is licensed under the BSD-style license found in the
  11933. * LICENSE file in the root directory of this source tree. An additional grant
  11934. * of patent rights can be found in the PATENTS file in the same directory.
  11935. *
  11936. */
  11937. var _assign = __webpack_require__(4);
  11938. var PooledClass = __webpack_require__(16);
  11939. var getTextContentAccessor = __webpack_require__(59);
  11940. /**
  11941. * This helper class stores information about text content of a target node,
  11942. * allowing comparison of content before and after a given event.
  11943. *
  11944. * Identify the node where selection currently begins, then observe
  11945. * both its text content and its current position in the DOM. Since the
  11946. * browser may natively replace the target node during composition, we can
  11947. * use its position to find its replacement.
  11948. *
  11949. * @param {DOMEventTarget} root
  11950. */
  11951. function FallbackCompositionState(root) {
  11952. this._root = root;
  11953. this._startText = this.getText();
  11954. this._fallbackText = null;
  11955. }
  11956. _assign(FallbackCompositionState.prototype, {
  11957. destructor: function () {
  11958. this._root = null;
  11959. this._startText = null;
  11960. this._fallbackText = null;
  11961. },
  11962. /**
  11963. * Get current text of input.
  11964. *
  11965. * @return {string}
  11966. */
  11967. getText: function () {
  11968. if ('value' in this._root) {
  11969. return this._root.value;
  11970. }
  11971. return this._root[getTextContentAccessor()];
  11972. },
  11973. /**
  11974. * Determine the differing substring between the initially stored
  11975. * text content and the current content.
  11976. *
  11977. * @return {string}
  11978. */
  11979. getData: function () {
  11980. if (this._fallbackText) {
  11981. return this._fallbackText;
  11982. }
  11983. var start;
  11984. var startValue = this._startText;
  11985. var startLength = startValue.length;
  11986. var end;
  11987. var endValue = this.getText();
  11988. var endLength = endValue.length;
  11989. for (start = 0; start < startLength; start++) {
  11990. if (startValue[start] !== endValue[start]) {
  11991. break;
  11992. }
  11993. }
  11994. var minEnd = startLength - start;
  11995. for (end = 1; end <= minEnd; end++) {
  11996. if (startValue[startLength - end] !== endValue[endLength - end]) {
  11997. break;
  11998. }
  11999. }
  12000. var sliceTail = end > 1 ? 1 - end : undefined;
  12001. this._fallbackText = endValue.slice(start, sliceTail);
  12002. return this._fallbackText;
  12003. }
  12004. });
  12005. PooledClass.addPoolingTo(FallbackCompositionState);
  12006. module.exports = FallbackCompositionState;
  12007. /***/ }),
  12008. /* 107 */
  12009. /***/ (function(module, exports, __webpack_require__) {
  12010. "use strict";
  12011. /**
  12012. * Copyright 2013-present, Facebook, Inc.
  12013. * All rights reserved.
  12014. *
  12015. * This source code is licensed under the BSD-style license found in the
  12016. * LICENSE file in the root directory of this source tree. An additional grant
  12017. * of patent rights can be found in the PATENTS file in the same directory.
  12018. *
  12019. */
  12020. var SyntheticEvent = __webpack_require__(12);
  12021. /**
  12022. * @interface Event
  12023. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  12024. */
  12025. var CompositionEventInterface = {
  12026. data: null
  12027. };
  12028. /**
  12029. * @param {object} dispatchConfig Configuration used to dispatch this event.
  12030. * @param {string} dispatchMarker Marker identifying the event target.
  12031. * @param {object} nativeEvent Native browser event.
  12032. * @extends {SyntheticUIEvent}
  12033. */
  12034. function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  12035. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  12036. }
  12037. SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
  12038. module.exports = SyntheticCompositionEvent;
  12039. /***/ }),
  12040. /* 108 */
  12041. /***/ (function(module, exports, __webpack_require__) {
  12042. "use strict";
  12043. /**
  12044. * Copyright 2013-present, Facebook, Inc.
  12045. * All rights reserved.
  12046. *
  12047. * This source code is licensed under the BSD-style license found in the
  12048. * LICENSE file in the root directory of this source tree. An additional grant
  12049. * of patent rights can be found in the PATENTS file in the same directory.
  12050. *
  12051. */
  12052. var SyntheticEvent = __webpack_require__(12);
  12053. /**
  12054. * @interface Event
  12055. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  12056. * /#events-inputevents
  12057. */
  12058. var InputEventInterface = {
  12059. data: null
  12060. };
  12061. /**
  12062. * @param {object} dispatchConfig Configuration used to dispatch this event.
  12063. * @param {string} dispatchMarker Marker identifying the event target.
  12064. * @param {object} nativeEvent Native browser event.
  12065. * @extends {SyntheticUIEvent}
  12066. */
  12067. function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  12068. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  12069. }
  12070. SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);
  12071. module.exports = SyntheticInputEvent;
  12072. /***/ }),
  12073. /* 109 */
  12074. /***/ (function(module, exports, __webpack_require__) {
  12075. "use strict";
  12076. /**
  12077. * Copyright 2013-present, Facebook, Inc.
  12078. * All rights reserved.
  12079. *
  12080. * This source code is licensed under the BSD-style license found in the
  12081. * LICENSE file in the root directory of this source tree. An additional grant
  12082. * of patent rights can be found in the PATENTS file in the same directory.
  12083. *
  12084. */
  12085. var EventPluginHub = __webpack_require__(22);
  12086. var EventPropagators = __webpack_require__(21);
  12087. var ExecutionEnvironment = __webpack_require__(6);
  12088. var ReactDOMComponentTree = __webpack_require__(5);
  12089. var ReactUpdates = __webpack_require__(11);
  12090. var SyntheticEvent = __webpack_require__(12);
  12091. var getEventTarget = __webpack_require__(37);
  12092. var isEventSupported = __webpack_require__(38);
  12093. var isTextInputElement = __webpack_require__(62);
  12094. var eventTypes = {
  12095. change: {
  12096. phasedRegistrationNames: {
  12097. bubbled: 'onChange',
  12098. captured: 'onChangeCapture'
  12099. },
  12100. dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']
  12101. }
  12102. };
  12103. /**
  12104. * For IE shims
  12105. */
  12106. var activeElement = null;
  12107. var activeElementInst = null;
  12108. var activeElementValue = null;
  12109. var activeElementValueProp = null;
  12110. /**
  12111. * SECTION: handle `change` event
  12112. */
  12113. function shouldUseChangeEvent(elem) {
  12114. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  12115. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  12116. }
  12117. var doesChangeEventBubble = false;
  12118. if (ExecutionEnvironment.canUseDOM) {
  12119. // See `handleChange` comment below
  12120. doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8);
  12121. }
  12122. function manualDispatchChangeEvent(nativeEvent) {
  12123. var event = SyntheticEvent.getPooled(eventTypes.change, activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  12124. EventPropagators.accumulateTwoPhaseDispatches(event);
  12125. // If change and propertychange bubbled, we'd just bind to it like all the
  12126. // other events and have it go through ReactBrowserEventEmitter. Since it
  12127. // doesn't, we manually listen for the events and so we have to enqueue and
  12128. // process the abstract event manually.
  12129. //
  12130. // Batching is necessary here in order to ensure that all event handlers run
  12131. // before the next rerender (including event handlers attached to ancestor
  12132. // elements instead of directly on the input). Without this, controlled
  12133. // components don't work properly in conjunction with event bubbling because
  12134. // the component is rerendered and the value reverted before all the event
  12135. // handlers can run. See https://github.com/facebook/react/issues/708.
  12136. ReactUpdates.batchedUpdates(runEventInBatch, event);
  12137. }
  12138. function runEventInBatch(event) {
  12139. EventPluginHub.enqueueEvents(event);
  12140. EventPluginHub.processEventQueue(false);
  12141. }
  12142. function startWatchingForChangeEventIE8(target, targetInst) {
  12143. activeElement = target;
  12144. activeElementInst = targetInst;
  12145. activeElement.attachEvent('onchange', manualDispatchChangeEvent);
  12146. }
  12147. function stopWatchingForChangeEventIE8() {
  12148. if (!activeElement) {
  12149. return;
  12150. }
  12151. activeElement.detachEvent('onchange', manualDispatchChangeEvent);
  12152. activeElement = null;
  12153. activeElementInst = null;
  12154. }
  12155. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  12156. if (topLevelType === 'topChange') {
  12157. return targetInst;
  12158. }
  12159. }
  12160. function handleEventsForChangeEventIE8(topLevelType, target, targetInst) {
  12161. if (topLevelType === 'topFocus') {
  12162. // stopWatching() should be a noop here but we call it just in case we
  12163. // missed a blur event somehow.
  12164. stopWatchingForChangeEventIE8();
  12165. startWatchingForChangeEventIE8(target, targetInst);
  12166. } else if (topLevelType === 'topBlur') {
  12167. stopWatchingForChangeEventIE8();
  12168. }
  12169. }
  12170. /**
  12171. * SECTION: handle `input` event
  12172. */
  12173. var isInputEventSupported = false;
  12174. if (ExecutionEnvironment.canUseDOM) {
  12175. // IE9 claims to support the input event but fails to trigger it when
  12176. // deleting text, so we ignore its input events.
  12177. // IE10+ fire input events to often, such when a placeholder
  12178. // changes or when an input with a placeholder is focused.
  12179. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 11);
  12180. }
  12181. /**
  12182. * (For IE <=11) Replacement getter/setter for the `value` property that gets
  12183. * set on the active element.
  12184. */
  12185. var newValueProp = {
  12186. get: function () {
  12187. return activeElementValueProp.get.call(this);
  12188. },
  12189. set: function (val) {
  12190. // Cast to a string so we can do equality checks.
  12191. activeElementValue = '' + val;
  12192. activeElementValueProp.set.call(this, val);
  12193. }
  12194. };
  12195. /**
  12196. * (For IE <=11) Starts tracking propertychange events on the passed-in element
  12197. * and override the value property so that we can distinguish user events from
  12198. * value changes in JS.
  12199. */
  12200. function startWatchingForValueChange(target, targetInst) {
  12201. activeElement = target;
  12202. activeElementInst = targetInst;
  12203. activeElementValue = target.value;
  12204. activeElementValueProp = Object.getOwnPropertyDescriptor(target.constructor.prototype, 'value');
  12205. // Not guarded in a canDefineProperty check: IE8 supports defineProperty only
  12206. // on DOM elements
  12207. Object.defineProperty(activeElement, 'value', newValueProp);
  12208. if (activeElement.attachEvent) {
  12209. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  12210. } else {
  12211. activeElement.addEventListener('propertychange', handlePropertyChange, false);
  12212. }
  12213. }
  12214. /**
  12215. * (For IE <=11) Removes the event listeners from the currently-tracked element,
  12216. * if any exists.
  12217. */
  12218. function stopWatchingForValueChange() {
  12219. if (!activeElement) {
  12220. return;
  12221. }
  12222. // delete restores the original property definition
  12223. delete activeElement.value;
  12224. if (activeElement.detachEvent) {
  12225. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  12226. } else {
  12227. activeElement.removeEventListener('propertychange', handlePropertyChange, false);
  12228. }
  12229. activeElement = null;
  12230. activeElementInst = null;
  12231. activeElementValue = null;
  12232. activeElementValueProp = null;
  12233. }
  12234. /**
  12235. * (For IE <=11) Handles a propertychange event, sending a `change` event if
  12236. * the value of the active element has changed.
  12237. */
  12238. function handlePropertyChange(nativeEvent) {
  12239. if (nativeEvent.propertyName !== 'value') {
  12240. return;
  12241. }
  12242. var value = nativeEvent.srcElement.value;
  12243. if (value === activeElementValue) {
  12244. return;
  12245. }
  12246. activeElementValue = value;
  12247. manualDispatchChangeEvent(nativeEvent);
  12248. }
  12249. /**
  12250. * If a `change` event should be fired, returns the target's ID.
  12251. */
  12252. function getTargetInstForInputEvent(topLevelType, targetInst) {
  12253. if (topLevelType === 'topInput') {
  12254. // In modern browsers (i.e., not IE8 or IE9), the input event is exactly
  12255. // what we want so fall through here and trigger an abstract event
  12256. return targetInst;
  12257. }
  12258. }
  12259. function handleEventsForInputEventIE(topLevelType, target, targetInst) {
  12260. if (topLevelType === 'topFocus') {
  12261. // In IE8, we can capture almost all .value changes by adding a
  12262. // propertychange handler and looking for events with propertyName
  12263. // equal to 'value'
  12264. // In IE9-11, propertychange fires for most input events but is buggy and
  12265. // doesn't fire when text is deleted, but conveniently, selectionchange
  12266. // appears to fire in all of the remaining cases so we catch those and
  12267. // forward the event if the value has changed
  12268. // In either case, we don't want to call the event handler if the value
  12269. // is changed from JS so we redefine a setter for `.value` that updates
  12270. // our activeElementValue variable, allowing us to ignore those changes
  12271. //
  12272. // stopWatching() should be a noop here but we call it just in case we
  12273. // missed a blur event somehow.
  12274. stopWatchingForValueChange();
  12275. startWatchingForValueChange(target, targetInst);
  12276. } else if (topLevelType === 'topBlur') {
  12277. stopWatchingForValueChange();
  12278. }
  12279. }
  12280. // For IE8 and IE9.
  12281. function getTargetInstForInputEventIE(topLevelType, targetInst) {
  12282. if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {
  12283. // On the selectionchange event, the target is just document which isn't
  12284. // helpful for us so just check activeElement instead.
  12285. //
  12286. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  12287. // propertychange on the first input event after setting `value` from a
  12288. // script and fires only keydown, keypress, keyup. Catching keyup usually
  12289. // gets it and catching keydown lets us fire an event for the first
  12290. // keystroke if user does a key repeat (it'll be a little delayed: right
  12291. // before the second keystroke). Other input methods (e.g., paste) seem to
  12292. // fire selectionchange normally.
  12293. if (activeElement && activeElement.value !== activeElementValue) {
  12294. activeElementValue = activeElement.value;
  12295. return activeElementInst;
  12296. }
  12297. }
  12298. }
  12299. /**
  12300. * SECTION: handle `click` event
  12301. */
  12302. function shouldUseClickEvent(elem) {
  12303. // Use the `click` event to detect changes to checkbox and radio inputs.
  12304. // This approach works across all browsers, whereas `change` does not fire
  12305. // until `blur` in IE8.
  12306. return elem.nodeName && elem.nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  12307. }
  12308. function getTargetInstForClickEvent(topLevelType, targetInst) {
  12309. if (topLevelType === 'topClick') {
  12310. return targetInst;
  12311. }
  12312. }
  12313. function handleControlledInputBlur(inst, node) {
  12314. // TODO: In IE, inst is occasionally null. Why?
  12315. if (inst == null) {
  12316. return;
  12317. }
  12318. // Fiber and ReactDOM keep wrapper state in separate places
  12319. var state = inst._wrapperState || node._wrapperState;
  12320. if (!state || !state.controlled || node.type !== 'number') {
  12321. return;
  12322. }
  12323. // If controlled, assign the value attribute to the current value on blur
  12324. var value = '' + node.value;
  12325. if (node.getAttribute('value') !== value) {
  12326. node.setAttribute('value', value);
  12327. }
  12328. }
  12329. /**
  12330. * This plugin creates an `onChange` event that normalizes change events
  12331. * across form elements. This event fires at a time when it's possible to
  12332. * change the element's value without seeing a flicker.
  12333. *
  12334. * Supported elements are:
  12335. * - input (see `isTextInputElement`)
  12336. * - textarea
  12337. * - select
  12338. */
  12339. var ChangeEventPlugin = {
  12340. eventTypes: eventTypes,
  12341. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  12342. var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
  12343. var getTargetInstFunc, handleEventFunc;
  12344. if (shouldUseChangeEvent(targetNode)) {
  12345. if (doesChangeEventBubble) {
  12346. getTargetInstFunc = getTargetInstForChangeEvent;
  12347. } else {
  12348. handleEventFunc = handleEventsForChangeEventIE8;
  12349. }
  12350. } else if (isTextInputElement(targetNode)) {
  12351. if (isInputEventSupported) {
  12352. getTargetInstFunc = getTargetInstForInputEvent;
  12353. } else {
  12354. getTargetInstFunc = getTargetInstForInputEventIE;
  12355. handleEventFunc = handleEventsForInputEventIE;
  12356. }
  12357. } else if (shouldUseClickEvent(targetNode)) {
  12358. getTargetInstFunc = getTargetInstForClickEvent;
  12359. }
  12360. if (getTargetInstFunc) {
  12361. var inst = getTargetInstFunc(topLevelType, targetInst);
  12362. if (inst) {
  12363. var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, nativeEventTarget);
  12364. event.type = 'change';
  12365. EventPropagators.accumulateTwoPhaseDispatches(event);
  12366. return event;
  12367. }
  12368. }
  12369. if (handleEventFunc) {
  12370. handleEventFunc(topLevelType, targetNode, targetInst);
  12371. }
  12372. // When blurring, set the value attribute for number inputs
  12373. if (topLevelType === 'topBlur') {
  12374. handleControlledInputBlur(targetInst, targetNode);
  12375. }
  12376. }
  12377. };
  12378. module.exports = ChangeEventPlugin;
  12379. /***/ }),
  12380. /* 110 */
  12381. /***/ (function(module, exports, __webpack_require__) {
  12382. "use strict";
  12383. /**
  12384. * Copyright 2013-present, Facebook, Inc.
  12385. * All rights reserved.
  12386. *
  12387. * This source code is licensed under the BSD-style license found in the
  12388. * LICENSE file in the root directory of this source tree. An additional grant
  12389. * of patent rights can be found in the PATENTS file in the same directory.
  12390. *
  12391. *
  12392. */
  12393. var ReactOwner = __webpack_require__(111);
  12394. var ReactRef = {};
  12395. function attachRef(ref, component, owner) {
  12396. if (typeof ref === 'function') {
  12397. ref(component.getPublicInstance());
  12398. } else {
  12399. // Legacy ref
  12400. ReactOwner.addComponentAsRefTo(component, ref, owner);
  12401. }
  12402. }
  12403. function detachRef(ref, component, owner) {
  12404. if (typeof ref === 'function') {
  12405. ref(null);
  12406. } else {
  12407. // Legacy ref
  12408. ReactOwner.removeComponentAsRefFrom(component, ref, owner);
  12409. }
  12410. }
  12411. ReactRef.attachRefs = function (instance, element) {
  12412. if (element === null || typeof element !== 'object') {
  12413. return;
  12414. }
  12415. var ref = element.ref;
  12416. if (ref != null) {
  12417. attachRef(ref, instance, element._owner);
  12418. }
  12419. };
  12420. ReactRef.shouldUpdateRefs = function (prevElement, nextElement) {
  12421. // If either the owner or a `ref` has changed, make sure the newest owner
  12422. // has stored a reference to `this`, and the previous owner (if different)
  12423. // has forgotten the reference to `this`. We use the element instead
  12424. // of the public this.props because the post processing cannot determine
  12425. // a ref. The ref conceptually lives on the element.
  12426. // TODO: Should this even be possible? The owner cannot change because
  12427. // it's forbidden by shouldUpdateReactComponent. The ref can change
  12428. // if you swap the keys of but not the refs. Reconsider where this check
  12429. // is made. It probably belongs where the key checking and
  12430. // instantiateReactComponent is done.
  12431. var prevRef = null;
  12432. var prevOwner = null;
  12433. if (prevElement !== null && typeof prevElement === 'object') {
  12434. prevRef = prevElement.ref;
  12435. prevOwner = prevElement._owner;
  12436. }
  12437. var nextRef = null;
  12438. var nextOwner = null;
  12439. if (nextElement !== null && typeof nextElement === 'object') {
  12440. nextRef = nextElement.ref;
  12441. nextOwner = nextElement._owner;
  12442. }
  12443. return prevRef !== nextRef ||
  12444. // If owner changes but we have an unchanged function ref, don't update refs
  12445. typeof nextRef === 'string' && nextOwner !== prevOwner;
  12446. };
  12447. ReactRef.detachRefs = function (instance, element) {
  12448. if (element === null || typeof element !== 'object') {
  12449. return;
  12450. }
  12451. var ref = element.ref;
  12452. if (ref != null) {
  12453. detachRef(ref, instance, element._owner);
  12454. }
  12455. };
  12456. module.exports = ReactRef;
  12457. /***/ }),
  12458. /* 111 */
  12459. /***/ (function(module, exports, __webpack_require__) {
  12460. "use strict";
  12461. /* WEBPACK VAR INJECTION */(function(process) {/**
  12462. * Copyright 2013-present, Facebook, Inc.
  12463. * All rights reserved.
  12464. *
  12465. * This source code is licensed under the BSD-style license found in the
  12466. * LICENSE file in the root directory of this source tree. An additional grant
  12467. * of patent rights can be found in the PATENTS file in the same directory.
  12468. *
  12469. *
  12470. */
  12471. var _prodInvariant = __webpack_require__(3);
  12472. var invariant = __webpack_require__(1);
  12473. /**
  12474. * @param {?object} object
  12475. * @return {boolean} True if `object` is a valid owner.
  12476. * @final
  12477. */
  12478. function isValidOwner(object) {
  12479. return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function');
  12480. }
  12481. /**
  12482. * ReactOwners are capable of storing references to owned components.
  12483. *
  12484. * All components are capable of //being// referenced by owner components, but
  12485. * only ReactOwner components are capable of //referencing// owned components.
  12486. * The named reference is known as a "ref".
  12487. *
  12488. * Refs are available when mounted and updated during reconciliation.
  12489. *
  12490. * var MyComponent = React.createClass({
  12491. * render: function() {
  12492. * return (
  12493. * <div onClick={this.handleClick}>
  12494. * <CustomComponent ref="custom" />
  12495. * </div>
  12496. * );
  12497. * },
  12498. * handleClick: function() {
  12499. * this.refs.custom.handleClick();
  12500. * },
  12501. * componentDidMount: function() {
  12502. * this.refs.custom.initialize();
  12503. * }
  12504. * });
  12505. *
  12506. * Refs should rarely be used. When refs are used, they should only be done to
  12507. * control data that is not handled by React's data flow.
  12508. *
  12509. * @class ReactOwner
  12510. */
  12511. var ReactOwner = {
  12512. /**
  12513. * Adds a component by ref to an owner component.
  12514. *
  12515. * @param {ReactComponent} component Component to reference.
  12516. * @param {string} ref Name by which to refer to the component.
  12517. * @param {ReactOwner} owner Component on which to record the ref.
  12518. * @final
  12519. * @internal
  12520. */
  12521. addComponentAsRefTo: function (component, ref, owner) {
  12522. !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;
  12523. owner.attachRef(ref, component);
  12524. },
  12525. /**
  12526. * Removes a component by ref from an owner component.
  12527. *
  12528. * @param {ReactComponent} component Component to dereference.
  12529. * @param {string} ref Name of the ref to remove.
  12530. * @param {ReactOwner} owner Component on which the ref is recorded.
  12531. * @final
  12532. * @internal
  12533. */
  12534. removeComponentAsRefFrom: function (component, ref, owner) {
  12535. !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;
  12536. var ownerPublicInstance = owner.getPublicInstance();
  12537. // Check that `component`'s owner is still alive and that `component` is still the current ref
  12538. // because we do not want to detach the ref if another component stole it.
  12539. if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) {
  12540. owner.detachRef(ref);
  12541. }
  12542. }
  12543. };
  12544. module.exports = ReactOwner;
  12545. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12546. /***/ }),
  12547. /* 112 */
  12548. /***/ (function(module, exports, __webpack_require__) {
  12549. "use strict";
  12550. /* WEBPACK VAR INJECTION */(function(process) {/**
  12551. * Copyright 2016-present, Facebook, Inc.
  12552. * All rights reserved.
  12553. *
  12554. * This source code is licensed under the BSD-style license found in the
  12555. * LICENSE file in the root directory of this source tree. An additional grant
  12556. * of patent rights can be found in the PATENTS file in the same directory.
  12557. *
  12558. *
  12559. */
  12560. var ReactInvalidSetStateWarningHook = __webpack_require__(113);
  12561. var ReactHostOperationHistoryHook = __webpack_require__(114);
  12562. var ReactComponentTreeHook = __webpack_require__(7);
  12563. var ExecutionEnvironment = __webpack_require__(6);
  12564. var performanceNow = __webpack_require__(115);
  12565. var warning = __webpack_require__(2);
  12566. var hooks = [];
  12567. var didHookThrowForEvent = {};
  12568. function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {
  12569. try {
  12570. fn.call(context, arg1, arg2, arg3, arg4, arg5);
  12571. } catch (e) {
  12572. process.env.NODE_ENV !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack) : void 0;
  12573. didHookThrowForEvent[event] = true;
  12574. }
  12575. }
  12576. function emitEvent(event, arg1, arg2, arg3, arg4, arg5) {
  12577. for (var i = 0; i < hooks.length; i++) {
  12578. var hook = hooks[i];
  12579. var fn = hook[event];
  12580. if (fn) {
  12581. callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
  12582. }
  12583. }
  12584. }
  12585. var isProfiling = false;
  12586. var flushHistory = [];
  12587. var lifeCycleTimerStack = [];
  12588. var currentFlushNesting = 0;
  12589. var currentFlushMeasurements = [];
  12590. var currentFlushStartTime = 0;
  12591. var currentTimerDebugID = null;
  12592. var currentTimerStartTime = 0;
  12593. var currentTimerNestedFlushDuration = 0;
  12594. var currentTimerType = null;
  12595. var lifeCycleTimerHasWarned = false;
  12596. function clearHistory() {
  12597. ReactComponentTreeHook.purgeUnmountedComponents();
  12598. ReactHostOperationHistoryHook.clearHistory();
  12599. }
  12600. function getTreeSnapshot(registeredIDs) {
  12601. return registeredIDs.reduce(function (tree, id) {
  12602. var ownerID = ReactComponentTreeHook.getOwnerID(id);
  12603. var parentID = ReactComponentTreeHook.getParentID(id);
  12604. tree[id] = {
  12605. displayName: ReactComponentTreeHook.getDisplayName(id),
  12606. text: ReactComponentTreeHook.getText(id),
  12607. updateCount: ReactComponentTreeHook.getUpdateCount(id),
  12608. childIDs: ReactComponentTreeHook.getChildIDs(id),
  12609. // Text nodes don't have owners but this is close enough.
  12610. ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
  12611. parentID: parentID
  12612. };
  12613. return tree;
  12614. }, {});
  12615. }
  12616. function resetMeasurements() {
  12617. var previousStartTime = currentFlushStartTime;
  12618. var previousMeasurements = currentFlushMeasurements;
  12619. var previousOperations = ReactHostOperationHistoryHook.getHistory();
  12620. if (currentFlushNesting === 0) {
  12621. currentFlushStartTime = 0;
  12622. currentFlushMeasurements = [];
  12623. clearHistory();
  12624. return;
  12625. }
  12626. if (previousMeasurements.length || previousOperations.length) {
  12627. var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
  12628. flushHistory.push({
  12629. duration: performanceNow() - previousStartTime,
  12630. measurements: previousMeasurements || [],
  12631. operations: previousOperations || [],
  12632. treeSnapshot: getTreeSnapshot(registeredIDs)
  12633. });
  12634. }
  12635. clearHistory();
  12636. currentFlushStartTime = performanceNow();
  12637. currentFlushMeasurements = [];
  12638. }
  12639. function checkDebugID(debugID) {
  12640. var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  12641. if (allowRoot && debugID === 0) {
  12642. return;
  12643. }
  12644. if (!debugID) {
  12645. process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;
  12646. }
  12647. }
  12648. function beginLifeCycleTimer(debugID, timerType) {
  12649. if (currentFlushNesting === 0) {
  12650. return;
  12651. }
  12652. if (currentTimerType && !lifeCycleTimerHasWarned) {
  12653. process.env.NODE_ENV !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
  12654. lifeCycleTimerHasWarned = true;
  12655. }
  12656. currentTimerStartTime = performanceNow();
  12657. currentTimerNestedFlushDuration = 0;
  12658. currentTimerDebugID = debugID;
  12659. currentTimerType = timerType;
  12660. }
  12661. function endLifeCycleTimer(debugID, timerType) {
  12662. if (currentFlushNesting === 0) {
  12663. return;
  12664. }
  12665. if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
  12666. process.env.NODE_ENV !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
  12667. lifeCycleTimerHasWarned = true;
  12668. }
  12669. if (isProfiling) {
  12670. currentFlushMeasurements.push({
  12671. timerType: timerType,
  12672. instanceID: debugID,
  12673. duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
  12674. });
  12675. }
  12676. currentTimerStartTime = 0;
  12677. currentTimerNestedFlushDuration = 0;
  12678. currentTimerDebugID = null;
  12679. currentTimerType = null;
  12680. }
  12681. function pauseCurrentLifeCycleTimer() {
  12682. var currentTimer = {
  12683. startTime: currentTimerStartTime,
  12684. nestedFlushStartTime: performanceNow(),
  12685. debugID: currentTimerDebugID,
  12686. timerType: currentTimerType
  12687. };
  12688. lifeCycleTimerStack.push(currentTimer);
  12689. currentTimerStartTime = 0;
  12690. currentTimerNestedFlushDuration = 0;
  12691. currentTimerDebugID = null;
  12692. currentTimerType = null;
  12693. }
  12694. function resumeCurrentLifeCycleTimer() {
  12695. var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),
  12696. startTime = _lifeCycleTimerStack$.startTime,
  12697. nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,
  12698. debugID = _lifeCycleTimerStack$.debugID,
  12699. timerType = _lifeCycleTimerStack$.timerType;
  12700. var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
  12701. currentTimerStartTime = startTime;
  12702. currentTimerNestedFlushDuration += nestedFlushDuration;
  12703. currentTimerDebugID = debugID;
  12704. currentTimerType = timerType;
  12705. }
  12706. var lastMarkTimeStamp = 0;
  12707. var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  12708. function shouldMark(debugID) {
  12709. if (!isProfiling || !canUsePerformanceMeasure) {
  12710. return false;
  12711. }
  12712. var element = ReactComponentTreeHook.getElement(debugID);
  12713. if (element == null || typeof element !== 'object') {
  12714. return false;
  12715. }
  12716. var isHostElement = typeof element.type === 'string';
  12717. if (isHostElement) {
  12718. return false;
  12719. }
  12720. return true;
  12721. }
  12722. function markBegin(debugID, markType) {
  12723. if (!shouldMark(debugID)) {
  12724. return;
  12725. }
  12726. var markName = debugID + '::' + markType;
  12727. lastMarkTimeStamp = performanceNow();
  12728. performance.mark(markName);
  12729. }
  12730. function markEnd(debugID, markType) {
  12731. if (!shouldMark(debugID)) {
  12732. return;
  12733. }
  12734. var markName = debugID + '::' + markType;
  12735. var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';
  12736. // Chrome has an issue of dropping markers recorded too fast:
  12737. // https://bugs.chromium.org/p/chromium/issues/detail?id=640652
  12738. // To work around this, we will not report very small measurements.
  12739. // I determined the magic number by tweaking it back and forth.
  12740. // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.
  12741. // When the bug is fixed, we can `measure()` unconditionally if we want to.
  12742. var timeStamp = performanceNow();
  12743. if (timeStamp - lastMarkTimeStamp > 0.1) {
  12744. var measurementName = displayName + ' [' + markType + ']';
  12745. performance.measure(measurementName, markName);
  12746. }
  12747. performance.clearMarks(markName);
  12748. performance.clearMeasures(measurementName);
  12749. }
  12750. var ReactDebugTool = {
  12751. addHook: function (hook) {
  12752. hooks.push(hook);
  12753. },
  12754. removeHook: function (hook) {
  12755. for (var i = 0; i < hooks.length; i++) {
  12756. if (hooks[i] === hook) {
  12757. hooks.splice(i, 1);
  12758. i--;
  12759. }
  12760. }
  12761. },
  12762. isProfiling: function () {
  12763. return isProfiling;
  12764. },
  12765. beginProfiling: function () {
  12766. if (isProfiling) {
  12767. return;
  12768. }
  12769. isProfiling = true;
  12770. flushHistory.length = 0;
  12771. resetMeasurements();
  12772. ReactDebugTool.addHook(ReactHostOperationHistoryHook);
  12773. },
  12774. endProfiling: function () {
  12775. if (!isProfiling) {
  12776. return;
  12777. }
  12778. isProfiling = false;
  12779. resetMeasurements();
  12780. ReactDebugTool.removeHook(ReactHostOperationHistoryHook);
  12781. },
  12782. getFlushHistory: function () {
  12783. return flushHistory;
  12784. },
  12785. onBeginFlush: function () {
  12786. currentFlushNesting++;
  12787. resetMeasurements();
  12788. pauseCurrentLifeCycleTimer();
  12789. emitEvent('onBeginFlush');
  12790. },
  12791. onEndFlush: function () {
  12792. resetMeasurements();
  12793. currentFlushNesting--;
  12794. resumeCurrentLifeCycleTimer();
  12795. emitEvent('onEndFlush');
  12796. },
  12797. onBeginLifeCycleTimer: function (debugID, timerType) {
  12798. checkDebugID(debugID);
  12799. emitEvent('onBeginLifeCycleTimer', debugID, timerType);
  12800. markBegin(debugID, timerType);
  12801. beginLifeCycleTimer(debugID, timerType);
  12802. },
  12803. onEndLifeCycleTimer: function (debugID, timerType) {
  12804. checkDebugID(debugID);
  12805. endLifeCycleTimer(debugID, timerType);
  12806. markEnd(debugID, timerType);
  12807. emitEvent('onEndLifeCycleTimer', debugID, timerType);
  12808. },
  12809. onBeginProcessingChildContext: function () {
  12810. emitEvent('onBeginProcessingChildContext');
  12811. },
  12812. onEndProcessingChildContext: function () {
  12813. emitEvent('onEndProcessingChildContext');
  12814. },
  12815. onHostOperation: function (operation) {
  12816. checkDebugID(operation.instanceID);
  12817. emitEvent('onHostOperation', operation);
  12818. },
  12819. onSetState: function () {
  12820. emitEvent('onSetState');
  12821. },
  12822. onSetChildren: function (debugID, childDebugIDs) {
  12823. checkDebugID(debugID);
  12824. childDebugIDs.forEach(checkDebugID);
  12825. emitEvent('onSetChildren', debugID, childDebugIDs);
  12826. },
  12827. onBeforeMountComponent: function (debugID, element, parentDebugID) {
  12828. checkDebugID(debugID);
  12829. checkDebugID(parentDebugID, true);
  12830. emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
  12831. markBegin(debugID, 'mount');
  12832. },
  12833. onMountComponent: function (debugID) {
  12834. checkDebugID(debugID);
  12835. markEnd(debugID, 'mount');
  12836. emitEvent('onMountComponent', debugID);
  12837. },
  12838. onBeforeUpdateComponent: function (debugID, element) {
  12839. checkDebugID(debugID);
  12840. emitEvent('onBeforeUpdateComponent', debugID, element);
  12841. markBegin(debugID, 'update');
  12842. },
  12843. onUpdateComponent: function (debugID) {
  12844. checkDebugID(debugID);
  12845. markEnd(debugID, 'update');
  12846. emitEvent('onUpdateComponent', debugID);
  12847. },
  12848. onBeforeUnmountComponent: function (debugID) {
  12849. checkDebugID(debugID);
  12850. emitEvent('onBeforeUnmountComponent', debugID);
  12851. markBegin(debugID, 'unmount');
  12852. },
  12853. onUnmountComponent: function (debugID) {
  12854. checkDebugID(debugID);
  12855. markEnd(debugID, 'unmount');
  12856. emitEvent('onUnmountComponent', debugID);
  12857. },
  12858. onTestEvent: function () {
  12859. emitEvent('onTestEvent');
  12860. }
  12861. };
  12862. // TODO remove these when RN/www gets updated
  12863. ReactDebugTool.addDevtool = ReactDebugTool.addHook;
  12864. ReactDebugTool.removeDevtool = ReactDebugTool.removeHook;
  12865. ReactDebugTool.addHook(ReactInvalidSetStateWarningHook);
  12866. ReactDebugTool.addHook(ReactComponentTreeHook);
  12867. var url = ExecutionEnvironment.canUseDOM && window.location.href || '';
  12868. if (/[?&]react_perf\b/.test(url)) {
  12869. ReactDebugTool.beginProfiling();
  12870. }
  12871. module.exports = ReactDebugTool;
  12872. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12873. /***/ }),
  12874. /* 113 */
  12875. /***/ (function(module, exports, __webpack_require__) {
  12876. "use strict";
  12877. /* WEBPACK VAR INJECTION */(function(process) {/**
  12878. * Copyright 2016-present, Facebook, Inc.
  12879. * All rights reserved.
  12880. *
  12881. * This source code is licensed under the BSD-style license found in the
  12882. * LICENSE file in the root directory of this source tree. An additional grant
  12883. * of patent rights can be found in the PATENTS file in the same directory.
  12884. *
  12885. *
  12886. */
  12887. var warning = __webpack_require__(2);
  12888. if (process.env.NODE_ENV !== 'production') {
  12889. var processingChildContext = false;
  12890. var warnInvalidSetState = function () {
  12891. process.env.NODE_ENV !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;
  12892. };
  12893. }
  12894. var ReactInvalidSetStateWarningHook = {
  12895. onBeginProcessingChildContext: function () {
  12896. processingChildContext = true;
  12897. },
  12898. onEndProcessingChildContext: function () {
  12899. processingChildContext = false;
  12900. },
  12901. onSetState: function () {
  12902. warnInvalidSetState();
  12903. }
  12904. };
  12905. module.exports = ReactInvalidSetStateWarningHook;
  12906. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12907. /***/ }),
  12908. /* 114 */
  12909. /***/ (function(module, exports, __webpack_require__) {
  12910. "use strict";
  12911. /**
  12912. * Copyright 2016-present, Facebook, Inc.
  12913. * All rights reserved.
  12914. *
  12915. * This source code is licensed under the BSD-style license found in the
  12916. * LICENSE file in the root directory of this source tree. An additional grant
  12917. * of patent rights can be found in the PATENTS file in the same directory.
  12918. *
  12919. *
  12920. */
  12921. var history = [];
  12922. var ReactHostOperationHistoryHook = {
  12923. onHostOperation: function (operation) {
  12924. history.push(operation);
  12925. },
  12926. clearHistory: function () {
  12927. if (ReactHostOperationHistoryHook._preventClearing) {
  12928. // Should only be used for tests.
  12929. return;
  12930. }
  12931. history = [];
  12932. },
  12933. getHistory: function () {
  12934. return history;
  12935. }
  12936. };
  12937. module.exports = ReactHostOperationHistoryHook;
  12938. /***/ }),
  12939. /* 115 */
  12940. /***/ (function(module, exports, __webpack_require__) {
  12941. "use strict";
  12942. /**
  12943. * Copyright (c) 2013-present, Facebook, Inc.
  12944. *
  12945. * This source code is licensed under the MIT license found in the
  12946. * LICENSE file in the root directory of this source tree.
  12947. *
  12948. * @typechecks
  12949. */
  12950. var performance = __webpack_require__(116);
  12951. var performanceNow;
  12952. /**
  12953. * Detect if we can use `window.performance.now()` and gracefully fallback to
  12954. * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
  12955. * because of Facebook's testing infrastructure.
  12956. */
  12957. if (performance.now) {
  12958. performanceNow = function performanceNow() {
  12959. return performance.now();
  12960. };
  12961. } else {
  12962. performanceNow = function performanceNow() {
  12963. return Date.now();
  12964. };
  12965. }
  12966. module.exports = performanceNow;
  12967. /***/ }),
  12968. /* 116 */
  12969. /***/ (function(module, exports, __webpack_require__) {
  12970. "use strict";
  12971. /**
  12972. * Copyright (c) 2013-present, Facebook, Inc.
  12973. *
  12974. * This source code is licensed under the MIT license found in the
  12975. * LICENSE file in the root directory of this source tree.
  12976. *
  12977. * @typechecks
  12978. */
  12979. var ExecutionEnvironment = __webpack_require__(6);
  12980. var performance;
  12981. if (ExecutionEnvironment.canUseDOM) {
  12982. performance = window.performance || window.msPerformance || window.webkitPerformance;
  12983. }
  12984. module.exports = performance || {};
  12985. /***/ }),
  12986. /* 117 */
  12987. /***/ (function(module, exports, __webpack_require__) {
  12988. "use strict";
  12989. /**
  12990. * Copyright 2013-present, Facebook, Inc.
  12991. * All rights reserved.
  12992. *
  12993. * This source code is licensed under the BSD-style license found in the
  12994. * LICENSE file in the root directory of this source tree. An additional grant
  12995. * of patent rights can be found in the PATENTS file in the same directory.
  12996. *
  12997. */
  12998. /**
  12999. * Module that is injectable into `EventPluginHub`, that specifies a
  13000. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  13001. * plugins, without having to package every one of them. This is better than
  13002. * having plugins be ordered in the same order that they are injected because
  13003. * that ordering would be influenced by the packaging order.
  13004. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  13005. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  13006. */
  13007. var DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  13008. module.exports = DefaultEventPluginOrder;
  13009. /***/ }),
  13010. /* 118 */
  13011. /***/ (function(module, exports, __webpack_require__) {
  13012. "use strict";
  13013. /**
  13014. * Copyright 2013-present, Facebook, Inc.
  13015. * All rights reserved.
  13016. *
  13017. * This source code is licensed under the BSD-style license found in the
  13018. * LICENSE file in the root directory of this source tree. An additional grant
  13019. * of patent rights can be found in the PATENTS file in the same directory.
  13020. *
  13021. */
  13022. var EventPropagators = __webpack_require__(21);
  13023. var ReactDOMComponentTree = __webpack_require__(5);
  13024. var SyntheticMouseEvent = __webpack_require__(29);
  13025. var eventTypes = {
  13026. mouseEnter: {
  13027. registrationName: 'onMouseEnter',
  13028. dependencies: ['topMouseOut', 'topMouseOver']
  13029. },
  13030. mouseLeave: {
  13031. registrationName: 'onMouseLeave',
  13032. dependencies: ['topMouseOut', 'topMouseOver']
  13033. }
  13034. };
  13035. var EnterLeaveEventPlugin = {
  13036. eventTypes: eventTypes,
  13037. /**
  13038. * For almost every interaction we care about, there will be both a top-level
  13039. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  13040. * we do not extract duplicate events. However, moving the mouse into the
  13041. * browser from outside will not fire a `mouseout` event. In this case, we use
  13042. * the `mouseover` top-level event.
  13043. */
  13044. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  13045. if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  13046. return null;
  13047. }
  13048. if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {
  13049. // Must not be a mouse in or mouse out - ignoring.
  13050. return null;
  13051. }
  13052. var win;
  13053. if (nativeEventTarget.window === nativeEventTarget) {
  13054. // `nativeEventTarget` is probably a window object.
  13055. win = nativeEventTarget;
  13056. } else {
  13057. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  13058. var doc = nativeEventTarget.ownerDocument;
  13059. if (doc) {
  13060. win = doc.defaultView || doc.parentWindow;
  13061. } else {
  13062. win = window;
  13063. }
  13064. }
  13065. var from;
  13066. var to;
  13067. if (topLevelType === 'topMouseOut') {
  13068. from = targetInst;
  13069. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  13070. to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;
  13071. } else {
  13072. // Moving to a node from outside the window.
  13073. from = null;
  13074. to = targetInst;
  13075. }
  13076. if (from === to) {
  13077. // Nothing pertains to our managed components.
  13078. return null;
  13079. }
  13080. var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from);
  13081. var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to);
  13082. var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);
  13083. leave.type = 'mouseleave';
  13084. leave.target = fromNode;
  13085. leave.relatedTarget = toNode;
  13086. var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);
  13087. enter.type = 'mouseenter';
  13088. enter.target = toNode;
  13089. enter.relatedTarget = fromNode;
  13090. EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to);
  13091. return [leave, enter];
  13092. }
  13093. };
  13094. module.exports = EnterLeaveEventPlugin;
  13095. /***/ }),
  13096. /* 119 */
  13097. /***/ (function(module, exports, __webpack_require__) {
  13098. "use strict";
  13099. /**
  13100. * Copyright 2013-present, Facebook, Inc.
  13101. * All rights reserved.
  13102. *
  13103. * This source code is licensed under the BSD-style license found in the
  13104. * LICENSE file in the root directory of this source tree. An additional grant
  13105. * of patent rights can be found in the PATENTS file in the same directory.
  13106. *
  13107. */
  13108. var DOMProperty = __webpack_require__(13);
  13109. var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;
  13110. var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;
  13111. var HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE;
  13112. var HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE;
  13113. var HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE;
  13114. var HTMLDOMPropertyConfig = {
  13115. isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')),
  13116. Properties: {
  13117. /**
  13118. * Standard Properties
  13119. */
  13120. accept: 0,
  13121. acceptCharset: 0,
  13122. accessKey: 0,
  13123. action: 0,
  13124. allowFullScreen: HAS_BOOLEAN_VALUE,
  13125. allowTransparency: 0,
  13126. alt: 0,
  13127. // specifies target context for links with `preload` type
  13128. as: 0,
  13129. async: HAS_BOOLEAN_VALUE,
  13130. autoComplete: 0,
  13131. // autoFocus is polyfilled/normalized by AutoFocusUtils
  13132. // autoFocus: HAS_BOOLEAN_VALUE,
  13133. autoPlay: HAS_BOOLEAN_VALUE,
  13134. capture: HAS_BOOLEAN_VALUE,
  13135. cellPadding: 0,
  13136. cellSpacing: 0,
  13137. charSet: 0,
  13138. challenge: 0,
  13139. checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13140. cite: 0,
  13141. classID: 0,
  13142. className: 0,
  13143. cols: HAS_POSITIVE_NUMERIC_VALUE,
  13144. colSpan: 0,
  13145. content: 0,
  13146. contentEditable: 0,
  13147. contextMenu: 0,
  13148. controls: HAS_BOOLEAN_VALUE,
  13149. coords: 0,
  13150. crossOrigin: 0,
  13151. data: 0, // For `<object />` acts as `src`.
  13152. dateTime: 0,
  13153. 'default': HAS_BOOLEAN_VALUE,
  13154. defer: HAS_BOOLEAN_VALUE,
  13155. dir: 0,
  13156. disabled: HAS_BOOLEAN_VALUE,
  13157. download: HAS_OVERLOADED_BOOLEAN_VALUE,
  13158. draggable: 0,
  13159. encType: 0,
  13160. form: 0,
  13161. formAction: 0,
  13162. formEncType: 0,
  13163. formMethod: 0,
  13164. formNoValidate: HAS_BOOLEAN_VALUE,
  13165. formTarget: 0,
  13166. frameBorder: 0,
  13167. headers: 0,
  13168. height: 0,
  13169. hidden: HAS_BOOLEAN_VALUE,
  13170. high: 0,
  13171. href: 0,
  13172. hrefLang: 0,
  13173. htmlFor: 0,
  13174. httpEquiv: 0,
  13175. icon: 0,
  13176. id: 0,
  13177. inputMode: 0,
  13178. integrity: 0,
  13179. is: 0,
  13180. keyParams: 0,
  13181. keyType: 0,
  13182. kind: 0,
  13183. label: 0,
  13184. lang: 0,
  13185. list: 0,
  13186. loop: HAS_BOOLEAN_VALUE,
  13187. low: 0,
  13188. manifest: 0,
  13189. marginHeight: 0,
  13190. marginWidth: 0,
  13191. max: 0,
  13192. maxLength: 0,
  13193. media: 0,
  13194. mediaGroup: 0,
  13195. method: 0,
  13196. min: 0,
  13197. minLength: 0,
  13198. // Caution; `option.selected` is not updated if `select.multiple` is
  13199. // disabled with `removeAttribute`.
  13200. multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13201. muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13202. name: 0,
  13203. nonce: 0,
  13204. noValidate: HAS_BOOLEAN_VALUE,
  13205. open: HAS_BOOLEAN_VALUE,
  13206. optimum: 0,
  13207. pattern: 0,
  13208. placeholder: 0,
  13209. playsInline: HAS_BOOLEAN_VALUE,
  13210. poster: 0,
  13211. preload: 0,
  13212. profile: 0,
  13213. radioGroup: 0,
  13214. readOnly: HAS_BOOLEAN_VALUE,
  13215. referrerPolicy: 0,
  13216. rel: 0,
  13217. required: HAS_BOOLEAN_VALUE,
  13218. reversed: HAS_BOOLEAN_VALUE,
  13219. role: 0,
  13220. rows: HAS_POSITIVE_NUMERIC_VALUE,
  13221. rowSpan: HAS_NUMERIC_VALUE,
  13222. sandbox: 0,
  13223. scope: 0,
  13224. scoped: HAS_BOOLEAN_VALUE,
  13225. scrolling: 0,
  13226. seamless: HAS_BOOLEAN_VALUE,
  13227. selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13228. shape: 0,
  13229. size: HAS_POSITIVE_NUMERIC_VALUE,
  13230. sizes: 0,
  13231. span: HAS_POSITIVE_NUMERIC_VALUE,
  13232. spellCheck: 0,
  13233. src: 0,
  13234. srcDoc: 0,
  13235. srcLang: 0,
  13236. srcSet: 0,
  13237. start: HAS_NUMERIC_VALUE,
  13238. step: 0,
  13239. style: 0,
  13240. summary: 0,
  13241. tabIndex: 0,
  13242. target: 0,
  13243. title: 0,
  13244. // Setting .type throws on non-<input> tags
  13245. type: 0,
  13246. useMap: 0,
  13247. value: 0,
  13248. width: 0,
  13249. wmode: 0,
  13250. wrap: 0,
  13251. /**
  13252. * RDFa Properties
  13253. */
  13254. about: 0,
  13255. datatype: 0,
  13256. inlist: 0,
  13257. prefix: 0,
  13258. // property is also supported for OpenGraph in meta tags.
  13259. property: 0,
  13260. resource: 0,
  13261. 'typeof': 0,
  13262. vocab: 0,
  13263. /**
  13264. * Non-standard Properties
  13265. */
  13266. // autoCapitalize and autoCorrect are supported in Mobile Safari for
  13267. // keyboard hints.
  13268. autoCapitalize: 0,
  13269. autoCorrect: 0,
  13270. // autoSave allows WebKit/Blink to persist values of input fields on page reloads
  13271. autoSave: 0,
  13272. // color is for Safari mask-icon link
  13273. color: 0,
  13274. // itemProp, itemScope, itemType are for
  13275. // Microdata support. See http://schema.org/docs/gs.html
  13276. itemProp: 0,
  13277. itemScope: HAS_BOOLEAN_VALUE,
  13278. itemType: 0,
  13279. // itemID and itemRef are for Microdata support as well but
  13280. // only specified in the WHATWG spec document. See
  13281. // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
  13282. itemID: 0,
  13283. itemRef: 0,
  13284. // results show looking glass icon and recent searches on input
  13285. // search fields in WebKit/Blink
  13286. results: 0,
  13287. // IE-only attribute that specifies security restrictions on an iframe
  13288. // as an alternative to the sandbox attribute on IE<10
  13289. security: 0,
  13290. // IE-only attribute that controls focus behavior
  13291. unselectable: 0
  13292. },
  13293. DOMAttributeNames: {
  13294. acceptCharset: 'accept-charset',
  13295. className: 'class',
  13296. htmlFor: 'for',
  13297. httpEquiv: 'http-equiv'
  13298. },
  13299. DOMPropertyNames: {},
  13300. DOMMutationMethods: {
  13301. value: function (node, value) {
  13302. if (value == null) {
  13303. return node.removeAttribute('value');
  13304. }
  13305. // Number inputs get special treatment due to some edge cases in
  13306. // Chrome. Let everything else assign the value attribute as normal.
  13307. // https://github.com/facebook/react/issues/7253#issuecomment-236074326
  13308. if (node.type !== 'number' || node.hasAttribute('value') === false) {
  13309. node.setAttribute('value', '' + value);
  13310. } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {
  13311. // Don't assign an attribute if validation reports bad
  13312. // input. Chrome will clear the value. Additionally, don't
  13313. // operate on inputs that have focus, otherwise Chrome might
  13314. // strip off trailing decimal places and cause the user's
  13315. // cursor position to jump to the beginning of the input.
  13316. //
  13317. // In ReactDOMInput, we have an onBlur event that will trigger
  13318. // this function again when focus is lost.
  13319. node.setAttribute('value', '' + value);
  13320. }
  13321. }
  13322. }
  13323. };
  13324. module.exports = HTMLDOMPropertyConfig;
  13325. /***/ }),
  13326. /* 120 */
  13327. /***/ (function(module, exports, __webpack_require__) {
  13328. "use strict";
  13329. /**
  13330. * Copyright 2013-present, Facebook, Inc.
  13331. * All rights reserved.
  13332. *
  13333. * This source code is licensed under the BSD-style license found in the
  13334. * LICENSE file in the root directory of this source tree. An additional grant
  13335. * of patent rights can be found in the PATENTS file in the same directory.
  13336. *
  13337. */
  13338. var DOMChildrenOperations = __webpack_require__(40);
  13339. var ReactDOMIDOperations = __webpack_require__(125);
  13340. /**
  13341. * Abstracts away all functionality of the reconciler that requires knowledge of
  13342. * the browser context. TODO: These callers should be refactored to avoid the
  13343. * need for this injection.
  13344. */
  13345. var ReactComponentBrowserEnvironment = {
  13346. processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,
  13347. replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup
  13348. };
  13349. module.exports = ReactComponentBrowserEnvironment;
  13350. /***/ }),
  13351. /* 121 */
  13352. /***/ (function(module, exports, __webpack_require__) {
  13353. "use strict";
  13354. /* WEBPACK VAR INJECTION */(function(process) {/**
  13355. * Copyright 2013-present, Facebook, Inc.
  13356. * All rights reserved.
  13357. *
  13358. * This source code is licensed under the BSD-style license found in the
  13359. * LICENSE file in the root directory of this source tree. An additional grant
  13360. * of patent rights can be found in the PATENTS file in the same directory.
  13361. *
  13362. */
  13363. var _prodInvariant = __webpack_require__(3);
  13364. var DOMLazyTree = __webpack_require__(19);
  13365. var ExecutionEnvironment = __webpack_require__(6);
  13366. var createNodesFromMarkup = __webpack_require__(122);
  13367. var emptyFunction = __webpack_require__(8);
  13368. var invariant = __webpack_require__(1);
  13369. var Danger = {
  13370. /**
  13371. * Replaces a node with a string of markup at its current position within its
  13372. * parent. The markup must render into a single root node.
  13373. *
  13374. * @param {DOMElement} oldChild Child node to replace.
  13375. * @param {string} markup Markup to render in place of the child node.
  13376. * @internal
  13377. */
  13378. dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {
  13379. !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;
  13380. !markup ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;
  13381. !(oldChild.nodeName !== 'HTML') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;
  13382. if (typeof markup === 'string') {
  13383. var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
  13384. oldChild.parentNode.replaceChild(newChild, oldChild);
  13385. } else {
  13386. DOMLazyTree.replaceChildWithTree(oldChild, markup);
  13387. }
  13388. }
  13389. };
  13390. module.exports = Danger;
  13391. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13392. /***/ }),
  13393. /* 122 */
  13394. /***/ (function(module, exports, __webpack_require__) {
  13395. "use strict";
  13396. /* WEBPACK VAR INJECTION */(function(process) {
  13397. /**
  13398. * Copyright (c) 2013-present, Facebook, Inc.
  13399. *
  13400. * This source code is licensed under the MIT license found in the
  13401. * LICENSE file in the root directory of this source tree.
  13402. *
  13403. * @typechecks
  13404. */
  13405. /*eslint-disable fb-www/unsafe-html*/
  13406. var ExecutionEnvironment = __webpack_require__(6);
  13407. var createArrayFromMixed = __webpack_require__(123);
  13408. var getMarkupWrap = __webpack_require__(124);
  13409. var invariant = __webpack_require__(1);
  13410. /**
  13411. * Dummy container used to render all markup.
  13412. */
  13413. var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
  13414. /**
  13415. * Pattern used by `getNodeName`.
  13416. */
  13417. var nodeNamePattern = /^\s*<(\w+)/;
  13418. /**
  13419. * Extracts the `nodeName` of the first element in a string of markup.
  13420. *
  13421. * @param {string} markup String of markup.
  13422. * @return {?string} Node name of the supplied markup.
  13423. */
  13424. function getNodeName(markup) {
  13425. var nodeNameMatch = markup.match(nodeNamePattern);
  13426. return nodeNameMatch && nodeNameMatch[1].toLowerCase();
  13427. }
  13428. /**
  13429. * Creates an array containing the nodes rendered from the supplied markup. The
  13430. * optionally supplied `handleScript` function will be invoked once for each
  13431. * <script> element that is rendered. If no `handleScript` function is supplied,
  13432. * an exception is thrown if any <script> elements are rendered.
  13433. *
  13434. * @param {string} markup A string of valid HTML markup.
  13435. * @param {?function} handleScript Invoked once for each rendered <script>.
  13436. * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes.
  13437. */
  13438. function createNodesFromMarkup(markup, handleScript) {
  13439. var node = dummyNode;
  13440. !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;
  13441. var nodeName = getNodeName(markup);
  13442. var wrap = nodeName && getMarkupWrap(nodeName);
  13443. if (wrap) {
  13444. node.innerHTML = wrap[1] + markup + wrap[2];
  13445. var wrapDepth = wrap[0];
  13446. while (wrapDepth--) {
  13447. node = node.lastChild;
  13448. }
  13449. } else {
  13450. node.innerHTML = markup;
  13451. }
  13452. var scripts = node.getElementsByTagName('script');
  13453. if (scripts.length) {
  13454. !handleScript ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : void 0;
  13455. createArrayFromMixed(scripts).forEach(handleScript);
  13456. }
  13457. var nodes = Array.from(node.childNodes);
  13458. while (node.lastChild) {
  13459. node.removeChild(node.lastChild);
  13460. }
  13461. return nodes;
  13462. }
  13463. module.exports = createNodesFromMarkup;
  13464. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13465. /***/ }),
  13466. /* 123 */
  13467. /***/ (function(module, exports, __webpack_require__) {
  13468. "use strict";
  13469. /* WEBPACK VAR INJECTION */(function(process) {
  13470. /**
  13471. * Copyright (c) 2013-present, Facebook, Inc.
  13472. *
  13473. * This source code is licensed under the MIT license found in the
  13474. * LICENSE file in the root directory of this source tree.
  13475. *
  13476. * @typechecks
  13477. */
  13478. var invariant = __webpack_require__(1);
  13479. /**
  13480. * Convert array-like objects to arrays.
  13481. *
  13482. * This API assumes the caller knows the contents of the data type. For less
  13483. * well defined inputs use createArrayFromMixed.
  13484. *
  13485. * @param {object|function|filelist} obj
  13486. * @return {array}
  13487. */
  13488. function toArray(obj) {
  13489. var length = obj.length;
  13490. // Some browsers builtin objects can report typeof 'function' (e.g. NodeList
  13491. // in old versions of Safari).
  13492. !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0;
  13493. !(typeof length === 'number') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;
  13494. !(length === 0 || length - 1 in obj) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;
  13495. !(typeof obj.callee !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object can\'t be `arguments`. Use rest params ' + '(function(...args) {}) or Array.from() instead.') : invariant(false) : void 0;
  13496. // Old IE doesn't give collections access to hasOwnProperty. Assume inputs
  13497. // without method will throw during the slice call and skip straight to the
  13498. // fallback.
  13499. if (obj.hasOwnProperty) {
  13500. try {
  13501. return Array.prototype.slice.call(obj);
  13502. } catch (e) {
  13503. // IE < 9 does not support Array#slice on collections objects
  13504. }
  13505. }
  13506. // Fall back to copying key by key. This assumes all keys have a value,
  13507. // so will not preserve sparsely populated inputs.
  13508. var ret = Array(length);
  13509. for (var ii = 0; ii < length; ii++) {
  13510. ret[ii] = obj[ii];
  13511. }
  13512. return ret;
  13513. }
  13514. /**
  13515. * Perform a heuristic test to determine if an object is "array-like".
  13516. *
  13517. * A monk asked Joshu, a Zen master, "Has a dog Buddha nature?"
  13518. * Joshu replied: "Mu."
  13519. *
  13520. * This function determines if its argument has "array nature": it returns
  13521. * true if the argument is an actual array, an `arguments' object, or an
  13522. * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()).
  13523. *
  13524. * It will return false for other array-like objects like Filelist.
  13525. *
  13526. * @param {*} obj
  13527. * @return {boolean}
  13528. */
  13529. function hasArrayNature(obj) {
  13530. return (
  13531. // not null/false
  13532. !!obj && (
  13533. // arrays are objects, NodeLists are functions in Safari
  13534. typeof obj == 'object' || typeof obj == 'function') &&
  13535. // quacks like an array
  13536. 'length' in obj &&
  13537. // not window
  13538. !('setInterval' in obj) &&
  13539. // no DOM node should be considered an array-like
  13540. // a 'select' element has 'length' and 'item' properties on IE8
  13541. typeof obj.nodeType != 'number' && (
  13542. // a real array
  13543. Array.isArray(obj) ||
  13544. // arguments
  13545. 'callee' in obj ||
  13546. // HTMLCollection/NodeList
  13547. 'item' in obj)
  13548. );
  13549. }
  13550. /**
  13551. * Ensure that the argument is an array by wrapping it in an array if it is not.
  13552. * Creates a copy of the argument if it is already an array.
  13553. *
  13554. * This is mostly useful idiomatically:
  13555. *
  13556. * var createArrayFromMixed = require('createArrayFromMixed');
  13557. *
  13558. * function takesOneOrMoreThings(things) {
  13559. * things = createArrayFromMixed(things);
  13560. * ...
  13561. * }
  13562. *
  13563. * This allows you to treat `things' as an array, but accept scalars in the API.
  13564. *
  13565. * If you need to convert an array-like object, like `arguments`, into an array
  13566. * use toArray instead.
  13567. *
  13568. * @param {*} obj
  13569. * @return {array}
  13570. */
  13571. function createArrayFromMixed(obj) {
  13572. if (!hasArrayNature(obj)) {
  13573. return [obj];
  13574. } else if (Array.isArray(obj)) {
  13575. return obj.slice();
  13576. } else {
  13577. return toArray(obj);
  13578. }
  13579. }
  13580. module.exports = createArrayFromMixed;
  13581. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13582. /***/ }),
  13583. /* 124 */
  13584. /***/ (function(module, exports, __webpack_require__) {
  13585. "use strict";
  13586. /* WEBPACK VAR INJECTION */(function(process) {
  13587. /**
  13588. * Copyright (c) 2013-present, Facebook, Inc.
  13589. *
  13590. * This source code is licensed under the MIT license found in the
  13591. * LICENSE file in the root directory of this source tree.
  13592. *
  13593. */
  13594. /*eslint-disable fb-www/unsafe-html */
  13595. var ExecutionEnvironment = __webpack_require__(6);
  13596. var invariant = __webpack_require__(1);
  13597. /**
  13598. * Dummy container used to detect which wraps are necessary.
  13599. */
  13600. var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
  13601. /**
  13602. * Some browsers cannot use `innerHTML` to render certain elements standalone,
  13603. * so we wrap them, render the wrapped nodes, then extract the desired node.
  13604. *
  13605. * In IE8, certain elements cannot render alone, so wrap all elements ('*').
  13606. */
  13607. var shouldWrap = {};
  13608. var selectWrap = [1, '<select multiple="true">', '</select>'];
  13609. var tableWrap = [1, '<table>', '</table>'];
  13610. var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
  13611. var svgWrap = [1, '<svg xmlns="http://www.w3.org/2000/svg">', '</svg>'];
  13612. var markupWrap = {
  13613. '*': [1, '?<div>', '</div>'],
  13614. 'area': [1, '<map>', '</map>'],
  13615. 'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
  13616. 'legend': [1, '<fieldset>', '</fieldset>'],
  13617. 'param': [1, '<object>', '</object>'],
  13618. 'tr': [2, '<table><tbody>', '</tbody></table>'],
  13619. 'optgroup': selectWrap,
  13620. 'option': selectWrap,
  13621. 'caption': tableWrap,
  13622. 'colgroup': tableWrap,
  13623. 'tbody': tableWrap,
  13624. 'tfoot': tableWrap,
  13625. 'thead': tableWrap,
  13626. 'td': trWrap,
  13627. 'th': trWrap
  13628. };
  13629. // Initialize the SVG elements since we know they'll always need to be wrapped
  13630. // consistently. If they are created inside a <div> they will be initialized in
  13631. // the wrong namespace (and will not display).
  13632. var svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan'];
  13633. svgElements.forEach(function (nodeName) {
  13634. markupWrap[nodeName] = svgWrap;
  13635. shouldWrap[nodeName] = true;
  13636. });
  13637. /**
  13638. * Gets the markup wrap configuration for the supplied `nodeName`.
  13639. *
  13640. * NOTE: This lazily detects which wraps are necessary for the current browser.
  13641. *
  13642. * @param {string} nodeName Lowercase `nodeName`.
  13643. * @return {?array} Markup wrap configuration, if applicable.
  13644. */
  13645. function getMarkupWrap(nodeName) {
  13646. !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : void 0;
  13647. if (!markupWrap.hasOwnProperty(nodeName)) {
  13648. nodeName = '*';
  13649. }
  13650. if (!shouldWrap.hasOwnProperty(nodeName)) {
  13651. if (nodeName === '*') {
  13652. dummyNode.innerHTML = '<link />';
  13653. } else {
  13654. dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>';
  13655. }
  13656. shouldWrap[nodeName] = !dummyNode.firstChild;
  13657. }
  13658. return shouldWrap[nodeName] ? markupWrap[nodeName] : null;
  13659. }
  13660. module.exports = getMarkupWrap;
  13661. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13662. /***/ }),
  13663. /* 125 */
  13664. /***/ (function(module, exports, __webpack_require__) {
  13665. "use strict";
  13666. /**
  13667. * Copyright 2013-present, Facebook, Inc.
  13668. * All rights reserved.
  13669. *
  13670. * This source code is licensed under the BSD-style license found in the
  13671. * LICENSE file in the root directory of this source tree. An additional grant
  13672. * of patent rights can be found in the PATENTS file in the same directory.
  13673. *
  13674. */
  13675. var DOMChildrenOperations = __webpack_require__(40);
  13676. var ReactDOMComponentTree = __webpack_require__(5);
  13677. /**
  13678. * Operations used to process updates to DOM nodes.
  13679. */
  13680. var ReactDOMIDOperations = {
  13681. /**
  13682. * Updates a component's children by processing a series of updates.
  13683. *
  13684. * @param {array<object>} updates List of update configurations.
  13685. * @internal
  13686. */
  13687. dangerouslyProcessChildrenUpdates: function (parentInst, updates) {
  13688. var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);
  13689. DOMChildrenOperations.processUpdates(node, updates);
  13690. }
  13691. };
  13692. module.exports = ReactDOMIDOperations;
  13693. /***/ }),
  13694. /* 126 */
  13695. /***/ (function(module, exports, __webpack_require__) {
  13696. "use strict";
  13697. /* WEBPACK VAR INJECTION */(function(process) {/**
  13698. * Copyright 2013-present, Facebook, Inc.
  13699. * All rights reserved.
  13700. *
  13701. * This source code is licensed under the BSD-style license found in the
  13702. * LICENSE file in the root directory of this source tree. An additional grant
  13703. * of patent rights can be found in the PATENTS file in the same directory.
  13704. *
  13705. */
  13706. /* global hasOwnProperty:true */
  13707. var _prodInvariant = __webpack_require__(3),
  13708. _assign = __webpack_require__(4);
  13709. var AutoFocusUtils = __webpack_require__(127);
  13710. var CSSPropertyOperations = __webpack_require__(128);
  13711. var DOMLazyTree = __webpack_require__(19);
  13712. var DOMNamespaces = __webpack_require__(41);
  13713. var DOMProperty = __webpack_require__(13);
  13714. var DOMPropertyOperations = __webpack_require__(67);
  13715. var EventPluginHub = __webpack_require__(22);
  13716. var EventPluginRegistry = __webpack_require__(27);
  13717. var ReactBrowserEventEmitter = __webpack_require__(32);
  13718. var ReactDOMComponentFlags = __webpack_require__(56);
  13719. var ReactDOMComponentTree = __webpack_require__(5);
  13720. var ReactDOMInput = __webpack_require__(138);
  13721. var ReactDOMOption = __webpack_require__(142);
  13722. var ReactDOMSelect = __webpack_require__(70);
  13723. var ReactDOMTextarea = __webpack_require__(143);
  13724. var ReactInstrumentation = __webpack_require__(9);
  13725. var ReactMultiChild = __webpack_require__(144);
  13726. var ReactServerRenderingTransaction = __webpack_require__(153);
  13727. var emptyFunction = __webpack_require__(8);
  13728. var escapeTextContentForBrowser = __webpack_require__(31);
  13729. var invariant = __webpack_require__(1);
  13730. var isEventSupported = __webpack_require__(38);
  13731. var shallowEqual = __webpack_require__(45);
  13732. var validateDOMNesting = __webpack_require__(49);
  13733. var warning = __webpack_require__(2);
  13734. var Flags = ReactDOMComponentFlags;
  13735. var deleteListener = EventPluginHub.deleteListener;
  13736. var getNode = ReactDOMComponentTree.getNodeFromInstance;
  13737. var listenTo = ReactBrowserEventEmitter.listenTo;
  13738. var registrationNameModules = EventPluginRegistry.registrationNameModules;
  13739. // For quickly matching children type, to test if can be treated as content.
  13740. var CONTENT_TYPES = { 'string': true, 'number': true };
  13741. var STYLE = 'style';
  13742. var HTML = '__html';
  13743. var RESERVED_PROPS = {
  13744. children: null,
  13745. dangerouslySetInnerHTML: null,
  13746. suppressContentEditableWarning: null
  13747. };
  13748. // Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE).
  13749. var DOC_FRAGMENT_TYPE = 11;
  13750. function getDeclarationErrorAddendum(internalInstance) {
  13751. if (internalInstance) {
  13752. var owner = internalInstance._currentElement._owner || null;
  13753. if (owner) {
  13754. var name = owner.getName();
  13755. if (name) {
  13756. return ' This DOM node was rendered by `' + name + '`.';
  13757. }
  13758. }
  13759. }
  13760. return '';
  13761. }
  13762. function friendlyStringify(obj) {
  13763. if (typeof obj === 'object') {
  13764. if (Array.isArray(obj)) {
  13765. return '[' + obj.map(friendlyStringify).join(', ') + ']';
  13766. } else {
  13767. var pairs = [];
  13768. for (var key in obj) {
  13769. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  13770. var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key);
  13771. pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key]));
  13772. }
  13773. }
  13774. return '{' + pairs.join(', ') + '}';
  13775. }
  13776. } else if (typeof obj === 'string') {
  13777. return JSON.stringify(obj);
  13778. } else if (typeof obj === 'function') {
  13779. return '[function object]';
  13780. }
  13781. // Differs from JSON.stringify in that undefined because undefined and that
  13782. // inf and nan don't become null
  13783. return String(obj);
  13784. }
  13785. var styleMutationWarning = {};
  13786. function checkAndWarnForMutatedStyle(style1, style2, component) {
  13787. if (style1 == null || style2 == null) {
  13788. return;
  13789. }
  13790. if (shallowEqual(style1, style2)) {
  13791. return;
  13792. }
  13793. var componentName = component._tag;
  13794. var owner = component._currentElement._owner;
  13795. var ownerName;
  13796. if (owner) {
  13797. ownerName = owner.getName();
  13798. }
  13799. var hash = ownerName + '|' + componentName;
  13800. if (styleMutationWarning.hasOwnProperty(hash)) {
  13801. return;
  13802. }
  13803. styleMutationWarning[hash] = true;
  13804. process.env.NODE_ENV !== 'production' ? warning(false, '`%s` was passed a style object that has previously been mutated. ' + 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' + 'the `render` %s. Previous style: %s. Mutated style: %s.', componentName, owner ? 'of `' + ownerName + '`' : 'using <' + componentName + '>', friendlyStringify(style1), friendlyStringify(style2)) : void 0;
  13805. }
  13806. /**
  13807. * @param {object} component
  13808. * @param {?object} props
  13809. */
  13810. function assertValidProps(component, props) {
  13811. if (!props) {
  13812. return;
  13813. }
  13814. // Note the use of `==` which checks for null or undefined.
  13815. if (voidElementTags[component._tag]) {
  13816. !(props.children == null && props.dangerouslySetInnerHTML == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : _prodInvariant('137', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : void 0;
  13817. }
  13818. if (props.dangerouslySetInnerHTML != null) {
  13819. !(props.children == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : _prodInvariant('60') : void 0;
  13820. !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : _prodInvariant('61') : void 0;
  13821. }
  13822. if (process.env.NODE_ENV !== 'production') {
  13823. process.env.NODE_ENV !== 'production' ? warning(props.innerHTML == null, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.') : void 0;
  13824. process.env.NODE_ENV !== 'production' ? warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, '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;
  13825. process.env.NODE_ENV !== 'production' ? warning(props.onFocusIn == null && props.onFocusOut == null, '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.') : void 0;
  13826. }
  13827. !(props.style == null || typeof props.style === 'object') ? process.env.NODE_ENV !== 'production' ? 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', getDeclarationErrorAddendum(component)) : _prodInvariant('62', getDeclarationErrorAddendum(component)) : void 0;
  13828. }
  13829. function enqueuePutListener(inst, registrationName, listener, transaction) {
  13830. if (transaction instanceof ReactServerRenderingTransaction) {
  13831. return;
  13832. }
  13833. if (process.env.NODE_ENV !== 'production') {
  13834. // IE8 has no API for event capturing and the `onScroll` event doesn't
  13835. // bubble.
  13836. process.env.NODE_ENV !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\'t support the `onScroll` event') : void 0;
  13837. }
  13838. var containerInfo = inst._hostContainerInfo;
  13839. var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;
  13840. var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
  13841. listenTo(registrationName, doc);
  13842. transaction.getReactMountReady().enqueue(putListener, {
  13843. inst: inst,
  13844. registrationName: registrationName,
  13845. listener: listener
  13846. });
  13847. }
  13848. function putListener() {
  13849. var listenerToPut = this;
  13850. EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener);
  13851. }
  13852. function inputPostMount() {
  13853. var inst = this;
  13854. ReactDOMInput.postMountWrapper(inst);
  13855. }
  13856. function textareaPostMount() {
  13857. var inst = this;
  13858. ReactDOMTextarea.postMountWrapper(inst);
  13859. }
  13860. function optionPostMount() {
  13861. var inst = this;
  13862. ReactDOMOption.postMountWrapper(inst);
  13863. }
  13864. var setAndValidateContentChildDev = emptyFunction;
  13865. if (process.env.NODE_ENV !== 'production') {
  13866. setAndValidateContentChildDev = function (content) {
  13867. var hasExistingContent = this._contentDebugID != null;
  13868. var debugID = this._debugID;
  13869. // This ID represents the inlined child that has no backing instance:
  13870. var contentDebugID = -debugID;
  13871. if (content == null) {
  13872. if (hasExistingContent) {
  13873. ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID);
  13874. }
  13875. this._contentDebugID = null;
  13876. return;
  13877. }
  13878. validateDOMNesting(null, String(content), this, this._ancestorInfo);
  13879. this._contentDebugID = contentDebugID;
  13880. if (hasExistingContent) {
  13881. ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content);
  13882. ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID);
  13883. } else {
  13884. ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID);
  13885. ReactInstrumentation.debugTool.onMountComponent(contentDebugID);
  13886. ReactInstrumentation.debugTool.onSetChildren(debugID, [contentDebugID]);
  13887. }
  13888. };
  13889. }
  13890. // There are so many media events, it makes sense to just
  13891. // maintain a list rather than create a `trapBubbledEvent` for each
  13892. var mediaEvents = {
  13893. topAbort: 'abort',
  13894. topCanPlay: 'canplay',
  13895. topCanPlayThrough: 'canplaythrough',
  13896. topDurationChange: 'durationchange',
  13897. topEmptied: 'emptied',
  13898. topEncrypted: 'encrypted',
  13899. topEnded: 'ended',
  13900. topError: 'error',
  13901. topLoadedData: 'loadeddata',
  13902. topLoadedMetadata: 'loadedmetadata',
  13903. topLoadStart: 'loadstart',
  13904. topPause: 'pause',
  13905. topPlay: 'play',
  13906. topPlaying: 'playing',
  13907. topProgress: 'progress',
  13908. topRateChange: 'ratechange',
  13909. topSeeked: 'seeked',
  13910. topSeeking: 'seeking',
  13911. topStalled: 'stalled',
  13912. topSuspend: 'suspend',
  13913. topTimeUpdate: 'timeupdate',
  13914. topVolumeChange: 'volumechange',
  13915. topWaiting: 'waiting'
  13916. };
  13917. function trapBubbledEventsLocal() {
  13918. var inst = this;
  13919. // If a component renders to null or if another component fatals and causes
  13920. // the state of the tree to be corrupted, `node` here can be null.
  13921. !inst._rootNodeID ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Must be mounted to trap events') : _prodInvariant('63') : void 0;
  13922. var node = getNode(inst);
  13923. !node ? process.env.NODE_ENV !== 'production' ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : _prodInvariant('64') : void 0;
  13924. switch (inst._tag) {
  13925. case 'iframe':
  13926. case 'object':
  13927. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
  13928. break;
  13929. case 'video':
  13930. case 'audio':
  13931. inst._wrapperState.listeners = [];
  13932. // Create listener for each media event
  13933. for (var event in mediaEvents) {
  13934. if (mediaEvents.hasOwnProperty(event)) {
  13935. inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node));
  13936. }
  13937. }
  13938. break;
  13939. case 'source':
  13940. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)];
  13941. break;
  13942. case 'img':
  13943. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
  13944. break;
  13945. case 'form':
  13946. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)];
  13947. break;
  13948. case 'input':
  13949. case 'select':
  13950. case 'textarea':
  13951. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)];
  13952. break;
  13953. }
  13954. }
  13955. function postUpdateSelectWrapper() {
  13956. ReactDOMSelect.postUpdateWrapper(this);
  13957. }
  13958. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  13959. // those special-case tags.
  13960. var omittedCloseTags = {
  13961. 'area': true,
  13962. 'base': true,
  13963. 'br': true,
  13964. 'col': true,
  13965. 'embed': true,
  13966. 'hr': true,
  13967. 'img': true,
  13968. 'input': true,
  13969. 'keygen': true,
  13970. 'link': true,
  13971. 'meta': true,
  13972. 'param': true,
  13973. 'source': true,
  13974. 'track': true,
  13975. 'wbr': true
  13976. };
  13977. var newlineEatingTags = {
  13978. 'listing': true,
  13979. 'pre': true,
  13980. 'textarea': true
  13981. };
  13982. // For HTML, certain tags cannot have children. This has the same purpose as
  13983. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  13984. var voidElementTags = _assign({
  13985. 'menuitem': true
  13986. }, omittedCloseTags);
  13987. // We accept any tag to be rendered but since this gets injected into arbitrary
  13988. // HTML, we want to make sure that it's a safe tag.
  13989. // http://www.w3.org/TR/REC-xml/#NT-Name
  13990. var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset
  13991. var validatedTagCache = {};
  13992. var hasOwnProperty = {}.hasOwnProperty;
  13993. function validateDangerousTag(tag) {
  13994. if (!hasOwnProperty.call(validatedTagCache, tag)) {
  13995. !VALID_TAG_REGEX.test(tag) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Invalid tag: %s', tag) : _prodInvariant('65', tag) : void 0;
  13996. validatedTagCache[tag] = true;
  13997. }
  13998. }
  13999. function isCustomComponent(tagName, props) {
  14000. return tagName.indexOf('-') >= 0 || props.is != null;
  14001. }
  14002. var globalIdCounter = 1;
  14003. /**
  14004. * Creates a new React class that is idempotent and capable of containing other
  14005. * React components. It accepts event listeners and DOM properties that are
  14006. * valid according to `DOMProperty`.
  14007. *
  14008. * - Event listeners: `onClick`, `onMouseDown`, etc.
  14009. * - DOM properties: `className`, `name`, `title`, etc.
  14010. *
  14011. * The `style` property functions differently from the DOM API. It accepts an
  14012. * object mapping of style properties to values.
  14013. *
  14014. * @constructor ReactDOMComponent
  14015. * @extends ReactMultiChild
  14016. */
  14017. function ReactDOMComponent(element) {
  14018. var tag = element.type;
  14019. validateDangerousTag(tag);
  14020. this._currentElement = element;
  14021. this._tag = tag.toLowerCase();
  14022. this._namespaceURI = null;
  14023. this._renderedChildren = null;
  14024. this._previousStyle = null;
  14025. this._previousStyleCopy = null;
  14026. this._hostNode = null;
  14027. this._hostParent = null;
  14028. this._rootNodeID = 0;
  14029. this._domID = 0;
  14030. this._hostContainerInfo = null;
  14031. this._wrapperState = null;
  14032. this._topLevelWrapper = null;
  14033. this._flags = 0;
  14034. if (process.env.NODE_ENV !== 'production') {
  14035. this._ancestorInfo = null;
  14036. setAndValidateContentChildDev.call(this, null);
  14037. }
  14038. }
  14039. ReactDOMComponent.displayName = 'ReactDOMComponent';
  14040. ReactDOMComponent.Mixin = {
  14041. /**
  14042. * Generates root tag markup then recurses. This method has side effects and
  14043. * is not idempotent.
  14044. *
  14045. * @internal
  14046. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14047. * @param {?ReactDOMComponent} the parent component instance
  14048. * @param {?object} info about the host container
  14049. * @param {object} context
  14050. * @return {string} The computed markup.
  14051. */
  14052. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  14053. this._rootNodeID = globalIdCounter++;
  14054. this._domID = hostContainerInfo._idCounter++;
  14055. this._hostParent = hostParent;
  14056. this._hostContainerInfo = hostContainerInfo;
  14057. var props = this._currentElement.props;
  14058. switch (this._tag) {
  14059. case 'audio':
  14060. case 'form':
  14061. case 'iframe':
  14062. case 'img':
  14063. case 'link':
  14064. case 'object':
  14065. case 'source':
  14066. case 'video':
  14067. this._wrapperState = {
  14068. listeners: null
  14069. };
  14070. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14071. break;
  14072. case 'input':
  14073. ReactDOMInput.mountWrapper(this, props, hostParent);
  14074. props = ReactDOMInput.getHostProps(this, props);
  14075. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14076. break;
  14077. case 'option':
  14078. ReactDOMOption.mountWrapper(this, props, hostParent);
  14079. props = ReactDOMOption.getHostProps(this, props);
  14080. break;
  14081. case 'select':
  14082. ReactDOMSelect.mountWrapper(this, props, hostParent);
  14083. props = ReactDOMSelect.getHostProps(this, props);
  14084. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14085. break;
  14086. case 'textarea':
  14087. ReactDOMTextarea.mountWrapper(this, props, hostParent);
  14088. props = ReactDOMTextarea.getHostProps(this, props);
  14089. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14090. break;
  14091. }
  14092. assertValidProps(this, props);
  14093. // We create tags in the namespace of their parent container, except HTML
  14094. // tags get no namespace.
  14095. var namespaceURI;
  14096. var parentTag;
  14097. if (hostParent != null) {
  14098. namespaceURI = hostParent._namespaceURI;
  14099. parentTag = hostParent._tag;
  14100. } else if (hostContainerInfo._tag) {
  14101. namespaceURI = hostContainerInfo._namespaceURI;
  14102. parentTag = hostContainerInfo._tag;
  14103. }
  14104. if (namespaceURI == null || namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject') {
  14105. namespaceURI = DOMNamespaces.html;
  14106. }
  14107. if (namespaceURI === DOMNamespaces.html) {
  14108. if (this._tag === 'svg') {
  14109. namespaceURI = DOMNamespaces.svg;
  14110. } else if (this._tag === 'math') {
  14111. namespaceURI = DOMNamespaces.mathml;
  14112. }
  14113. }
  14114. this._namespaceURI = namespaceURI;
  14115. if (process.env.NODE_ENV !== 'production') {
  14116. var parentInfo;
  14117. if (hostParent != null) {
  14118. parentInfo = hostParent._ancestorInfo;
  14119. } else if (hostContainerInfo._tag) {
  14120. parentInfo = hostContainerInfo._ancestorInfo;
  14121. }
  14122. if (parentInfo) {
  14123. // parentInfo should always be present except for the top-level
  14124. // component when server rendering
  14125. validateDOMNesting(this._tag, null, this, parentInfo);
  14126. }
  14127. this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(parentInfo, this._tag, this);
  14128. }
  14129. var mountImage;
  14130. if (transaction.useCreateElement) {
  14131. var ownerDocument = hostContainerInfo._ownerDocument;
  14132. var el;
  14133. if (namespaceURI === DOMNamespaces.html) {
  14134. if (this._tag === 'script') {
  14135. // Create the script via .innerHTML so its "parser-inserted" flag is
  14136. // set to true and it does not execute
  14137. var div = ownerDocument.createElement('div');
  14138. var type = this._currentElement.type;
  14139. div.innerHTML = '<' + type + '></' + type + '>';
  14140. el = div.removeChild(div.firstChild);
  14141. } else if (props.is) {
  14142. el = ownerDocument.createElement(this._currentElement.type, props.is);
  14143. } else {
  14144. // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
  14145. // See discussion in https://github.com/facebook/react/pull/6896
  14146. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  14147. el = ownerDocument.createElement(this._currentElement.type);
  14148. }
  14149. } else {
  14150. el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type);
  14151. }
  14152. ReactDOMComponentTree.precacheNode(this, el);
  14153. this._flags |= Flags.hasCachedChildNodes;
  14154. if (!this._hostParent) {
  14155. DOMPropertyOperations.setAttributeForRoot(el);
  14156. }
  14157. this._updateDOMProperties(null, props, transaction);
  14158. var lazyTree = DOMLazyTree(el);
  14159. this._createInitialChildren(transaction, props, context, lazyTree);
  14160. mountImage = lazyTree;
  14161. } else {
  14162. var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props);
  14163. var tagContent = this._createContentMarkup(transaction, props, context);
  14164. if (!tagContent && omittedCloseTags[this._tag]) {
  14165. mountImage = tagOpen + '/>';
  14166. } else {
  14167. mountImage = tagOpen + '>' + tagContent + '</' + this._currentElement.type + '>';
  14168. }
  14169. }
  14170. switch (this._tag) {
  14171. case 'input':
  14172. transaction.getReactMountReady().enqueue(inputPostMount, this);
  14173. if (props.autoFocus) {
  14174. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14175. }
  14176. break;
  14177. case 'textarea':
  14178. transaction.getReactMountReady().enqueue(textareaPostMount, this);
  14179. if (props.autoFocus) {
  14180. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14181. }
  14182. break;
  14183. case 'select':
  14184. if (props.autoFocus) {
  14185. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14186. }
  14187. break;
  14188. case 'button':
  14189. if (props.autoFocus) {
  14190. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14191. }
  14192. break;
  14193. case 'option':
  14194. transaction.getReactMountReady().enqueue(optionPostMount, this);
  14195. break;
  14196. }
  14197. return mountImage;
  14198. },
  14199. /**
  14200. * Creates markup for the open tag and all attributes.
  14201. *
  14202. * This method has side effects because events get registered.
  14203. *
  14204. * Iterating over object properties is faster than iterating over arrays.
  14205. * @see http://jsperf.com/obj-vs-arr-iteration
  14206. *
  14207. * @private
  14208. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14209. * @param {object} props
  14210. * @return {string} Markup of opening tag.
  14211. */
  14212. _createOpenTagMarkupAndPutListeners: function (transaction, props) {
  14213. var ret = '<' + this._currentElement.type;
  14214. for (var propKey in props) {
  14215. if (!props.hasOwnProperty(propKey)) {
  14216. continue;
  14217. }
  14218. var propValue = props[propKey];
  14219. if (propValue == null) {
  14220. continue;
  14221. }
  14222. if (registrationNameModules.hasOwnProperty(propKey)) {
  14223. if (propValue) {
  14224. enqueuePutListener(this, propKey, propValue, transaction);
  14225. }
  14226. } else {
  14227. if (propKey === STYLE) {
  14228. if (propValue) {
  14229. if (process.env.NODE_ENV !== 'production') {
  14230. // See `_updateDOMProperties`. style block
  14231. this._previousStyle = propValue;
  14232. }
  14233. propValue = this._previousStyleCopy = _assign({}, props.style);
  14234. }
  14235. propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this);
  14236. }
  14237. var markup = null;
  14238. if (this._tag != null && isCustomComponent(this._tag, props)) {
  14239. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14240. markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue);
  14241. }
  14242. } else {
  14243. markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue);
  14244. }
  14245. if (markup) {
  14246. ret += ' ' + markup;
  14247. }
  14248. }
  14249. }
  14250. // For static pages, no need to put React ID and checksum. Saves lots of
  14251. // bytes.
  14252. if (transaction.renderToStaticMarkup) {
  14253. return ret;
  14254. }
  14255. if (!this._hostParent) {
  14256. ret += ' ' + DOMPropertyOperations.createMarkupForRoot();
  14257. }
  14258. ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID);
  14259. return ret;
  14260. },
  14261. /**
  14262. * Creates markup for the content between the tags.
  14263. *
  14264. * @private
  14265. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14266. * @param {object} props
  14267. * @param {object} context
  14268. * @return {string} Content markup.
  14269. */
  14270. _createContentMarkup: function (transaction, props, context) {
  14271. var ret = '';
  14272. // Intentional use of != to avoid catching zero/false.
  14273. var innerHTML = props.dangerouslySetInnerHTML;
  14274. if (innerHTML != null) {
  14275. if (innerHTML.__html != null) {
  14276. ret = innerHTML.__html;
  14277. }
  14278. } else {
  14279. var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
  14280. var childrenToUse = contentToUse != null ? null : props.children;
  14281. if (contentToUse != null) {
  14282. // TODO: Validate that text is allowed as a child of this node
  14283. ret = escapeTextContentForBrowser(contentToUse);
  14284. if (process.env.NODE_ENV !== 'production') {
  14285. setAndValidateContentChildDev.call(this, contentToUse);
  14286. }
  14287. } else if (childrenToUse != null) {
  14288. var mountImages = this.mountChildren(childrenToUse, transaction, context);
  14289. ret = mountImages.join('');
  14290. }
  14291. }
  14292. if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') {
  14293. // text/html ignores the first character in these tags if it's a newline
  14294. // Prefer to break application/xml over text/html (for now) by adding
  14295. // a newline specifically to get eaten by the parser. (Alternately for
  14296. // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first
  14297. // \r is normalized out by HTMLTextAreaElement#value.)
  14298. // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>
  14299. // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>
  14300. // See: <http://www.w3.org/TR/html5/syntax.html#newlines>
  14301. // See: Parsing of "textarea" "listing" and "pre" elements
  14302. // from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>
  14303. return '\n' + ret;
  14304. } else {
  14305. return ret;
  14306. }
  14307. },
  14308. _createInitialChildren: function (transaction, props, context, lazyTree) {
  14309. // Intentional use of != to avoid catching zero/false.
  14310. var innerHTML = props.dangerouslySetInnerHTML;
  14311. if (innerHTML != null) {
  14312. if (innerHTML.__html != null) {
  14313. DOMLazyTree.queueHTML(lazyTree, innerHTML.__html);
  14314. }
  14315. } else {
  14316. var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
  14317. var childrenToUse = contentToUse != null ? null : props.children;
  14318. // TODO: Validate that text is allowed as a child of this node
  14319. if (contentToUse != null) {
  14320. // Avoid setting textContent when the text is empty. In IE11 setting
  14321. // textContent on a text area will cause the placeholder to not
  14322. // show within the textarea until it has been focused and blurred again.
  14323. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  14324. if (contentToUse !== '') {
  14325. if (process.env.NODE_ENV !== 'production') {
  14326. setAndValidateContentChildDev.call(this, contentToUse);
  14327. }
  14328. DOMLazyTree.queueText(lazyTree, contentToUse);
  14329. }
  14330. } else if (childrenToUse != null) {
  14331. var mountImages = this.mountChildren(childrenToUse, transaction, context);
  14332. for (var i = 0; i < mountImages.length; i++) {
  14333. DOMLazyTree.queueChild(lazyTree, mountImages[i]);
  14334. }
  14335. }
  14336. }
  14337. },
  14338. /**
  14339. * Receives a next element and updates the component.
  14340. *
  14341. * @internal
  14342. * @param {ReactElement} nextElement
  14343. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14344. * @param {object} context
  14345. */
  14346. receiveComponent: function (nextElement, transaction, context) {
  14347. var prevElement = this._currentElement;
  14348. this._currentElement = nextElement;
  14349. this.updateComponent(transaction, prevElement, nextElement, context);
  14350. },
  14351. /**
  14352. * Updates a DOM component after it has already been allocated and
  14353. * attached to the DOM. Reconciles the root DOM node, then recurses.
  14354. *
  14355. * @param {ReactReconcileTransaction} transaction
  14356. * @param {ReactElement} prevElement
  14357. * @param {ReactElement} nextElement
  14358. * @internal
  14359. * @overridable
  14360. */
  14361. updateComponent: function (transaction, prevElement, nextElement, context) {
  14362. var lastProps = prevElement.props;
  14363. var nextProps = this._currentElement.props;
  14364. switch (this._tag) {
  14365. case 'input':
  14366. lastProps = ReactDOMInput.getHostProps(this, lastProps);
  14367. nextProps = ReactDOMInput.getHostProps(this, nextProps);
  14368. break;
  14369. case 'option':
  14370. lastProps = ReactDOMOption.getHostProps(this, lastProps);
  14371. nextProps = ReactDOMOption.getHostProps(this, nextProps);
  14372. break;
  14373. case 'select':
  14374. lastProps = ReactDOMSelect.getHostProps(this, lastProps);
  14375. nextProps = ReactDOMSelect.getHostProps(this, nextProps);
  14376. break;
  14377. case 'textarea':
  14378. lastProps = ReactDOMTextarea.getHostProps(this, lastProps);
  14379. nextProps = ReactDOMTextarea.getHostProps(this, nextProps);
  14380. break;
  14381. }
  14382. assertValidProps(this, nextProps);
  14383. this._updateDOMProperties(lastProps, nextProps, transaction);
  14384. this._updateDOMChildren(lastProps, nextProps, transaction, context);
  14385. switch (this._tag) {
  14386. case 'input':
  14387. // Update the wrapper around inputs *after* updating props. This has to
  14388. // happen after `_updateDOMProperties`. Otherwise HTML5 input validations
  14389. // raise warnings and prevent the new value from being assigned.
  14390. ReactDOMInput.updateWrapper(this);
  14391. break;
  14392. case 'textarea':
  14393. ReactDOMTextarea.updateWrapper(this);
  14394. break;
  14395. case 'select':
  14396. // <select> value update needs to occur after <option> children
  14397. // reconciliation
  14398. transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this);
  14399. break;
  14400. }
  14401. },
  14402. /**
  14403. * Reconciles the properties by detecting differences in property values and
  14404. * updating the DOM as necessary. This function is probably the single most
  14405. * critical path for performance optimization.
  14406. *
  14407. * TODO: Benchmark whether checking for changed values in memory actually
  14408. * improves performance (especially statically positioned elements).
  14409. * TODO: Benchmark the effects of putting this at the top since 99% of props
  14410. * do not change for a given reconciliation.
  14411. * TODO: Benchmark areas that can be improved with caching.
  14412. *
  14413. * @private
  14414. * @param {object} lastProps
  14415. * @param {object} nextProps
  14416. * @param {?DOMElement} node
  14417. */
  14418. _updateDOMProperties: function (lastProps, nextProps, transaction) {
  14419. var propKey;
  14420. var styleName;
  14421. var styleUpdates;
  14422. for (propKey in lastProps) {
  14423. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  14424. continue;
  14425. }
  14426. if (propKey === STYLE) {
  14427. var lastStyle = this._previousStyleCopy;
  14428. for (styleName in lastStyle) {
  14429. if (lastStyle.hasOwnProperty(styleName)) {
  14430. styleUpdates = styleUpdates || {};
  14431. styleUpdates[styleName] = '';
  14432. }
  14433. }
  14434. this._previousStyleCopy = null;
  14435. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  14436. if (lastProps[propKey]) {
  14437. // Only call deleteListener if there was a listener previously or
  14438. // else willDeleteListener gets called when there wasn't actually a
  14439. // listener (e.g., onClick={null})
  14440. deleteListener(this, propKey);
  14441. }
  14442. } else if (isCustomComponent(this._tag, lastProps)) {
  14443. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14444. DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey);
  14445. }
  14446. } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
  14447. DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
  14448. }
  14449. }
  14450. for (propKey in nextProps) {
  14451. var nextProp = nextProps[propKey];
  14452. var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps != null ? lastProps[propKey] : undefined;
  14453. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  14454. continue;
  14455. }
  14456. if (propKey === STYLE) {
  14457. if (nextProp) {
  14458. if (process.env.NODE_ENV !== 'production') {
  14459. checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this);
  14460. this._previousStyle = nextProp;
  14461. }
  14462. nextProp = this._previousStyleCopy = _assign({}, nextProp);
  14463. } else {
  14464. this._previousStyleCopy = null;
  14465. }
  14466. if (lastProp) {
  14467. // Unset styles on `lastProp` but not on `nextProp`.
  14468. for (styleName in lastProp) {
  14469. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  14470. styleUpdates = styleUpdates || {};
  14471. styleUpdates[styleName] = '';
  14472. }
  14473. }
  14474. // Update styles that changed since `lastProp`.
  14475. for (styleName in nextProp) {
  14476. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  14477. styleUpdates = styleUpdates || {};
  14478. styleUpdates[styleName] = nextProp[styleName];
  14479. }
  14480. }
  14481. } else {
  14482. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  14483. styleUpdates = nextProp;
  14484. }
  14485. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  14486. if (nextProp) {
  14487. enqueuePutListener(this, propKey, nextProp, transaction);
  14488. } else if (lastProp) {
  14489. deleteListener(this, propKey);
  14490. }
  14491. } else if (isCustomComponent(this._tag, nextProps)) {
  14492. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14493. DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp);
  14494. }
  14495. } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
  14496. var node = getNode(this);
  14497. // If we're updating to null or undefined, we should remove the property
  14498. // from the DOM node instead of inadvertently setting to a string. This
  14499. // brings us in line with the same behavior we have on initial render.
  14500. if (nextProp != null) {
  14501. DOMPropertyOperations.setValueForProperty(node, propKey, nextProp);
  14502. } else {
  14503. DOMPropertyOperations.deleteValueForProperty(node, propKey);
  14504. }
  14505. }
  14506. }
  14507. if (styleUpdates) {
  14508. CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this);
  14509. }
  14510. },
  14511. /**
  14512. * Reconciles the children with the various properties that affect the
  14513. * children content.
  14514. *
  14515. * @param {object} lastProps
  14516. * @param {object} nextProps
  14517. * @param {ReactReconcileTransaction} transaction
  14518. * @param {object} context
  14519. */
  14520. _updateDOMChildren: function (lastProps, nextProps, transaction, context) {
  14521. var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null;
  14522. var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null;
  14523. var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html;
  14524. var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html;
  14525. // Note the use of `!=` which checks for null or undefined.
  14526. var lastChildren = lastContent != null ? null : lastProps.children;
  14527. var nextChildren = nextContent != null ? null : nextProps.children;
  14528. // If we're switching from children to content/html or vice versa, remove
  14529. // the old content
  14530. var lastHasContentOrHtml = lastContent != null || lastHtml != null;
  14531. var nextHasContentOrHtml = nextContent != null || nextHtml != null;
  14532. if (lastChildren != null && nextChildren == null) {
  14533. this.updateChildren(null, transaction, context);
  14534. } else if (lastHasContentOrHtml && !nextHasContentOrHtml) {
  14535. this.updateTextContent('');
  14536. if (process.env.NODE_ENV !== 'production') {
  14537. ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
  14538. }
  14539. }
  14540. if (nextContent != null) {
  14541. if (lastContent !== nextContent) {
  14542. this.updateTextContent('' + nextContent);
  14543. if (process.env.NODE_ENV !== 'production') {
  14544. setAndValidateContentChildDev.call(this, nextContent);
  14545. }
  14546. }
  14547. } else if (nextHtml != null) {
  14548. if (lastHtml !== nextHtml) {
  14549. this.updateMarkup('' + nextHtml);
  14550. }
  14551. if (process.env.NODE_ENV !== 'production') {
  14552. ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
  14553. }
  14554. } else if (nextChildren != null) {
  14555. if (process.env.NODE_ENV !== 'production') {
  14556. setAndValidateContentChildDev.call(this, null);
  14557. }
  14558. this.updateChildren(nextChildren, transaction, context);
  14559. }
  14560. },
  14561. getHostNode: function () {
  14562. return getNode(this);
  14563. },
  14564. /**
  14565. * Destroys all event registrations for this instance. Does not remove from
  14566. * the DOM. That must be done by the parent.
  14567. *
  14568. * @internal
  14569. */
  14570. unmountComponent: function (safely) {
  14571. switch (this._tag) {
  14572. case 'audio':
  14573. case 'form':
  14574. case 'iframe':
  14575. case 'img':
  14576. case 'link':
  14577. case 'object':
  14578. case 'source':
  14579. case 'video':
  14580. var listeners = this._wrapperState.listeners;
  14581. if (listeners) {
  14582. for (var i = 0; i < listeners.length; i++) {
  14583. listeners[i].remove();
  14584. }
  14585. }
  14586. break;
  14587. case 'html':
  14588. case 'head':
  14589. case 'body':
  14590. /**
  14591. * Components like <html> <head> and <body> can't be removed or added
  14592. * easily in a cross-browser way, however it's valuable to be able to
  14593. * take advantage of React's reconciliation for styling and <title>
  14594. * management. So we just document it and throw in dangerous cases.
  14595. */
  14596. true ? process.env.NODE_ENV !== 'production' ? invariant(false, '<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.', this._tag) : _prodInvariant('66', this._tag) : void 0;
  14597. break;
  14598. }
  14599. this.unmountChildren(safely);
  14600. ReactDOMComponentTree.uncacheNode(this);
  14601. EventPluginHub.deleteAllListeners(this);
  14602. this._rootNodeID = 0;
  14603. this._domID = 0;
  14604. this._wrapperState = null;
  14605. if (process.env.NODE_ENV !== 'production') {
  14606. setAndValidateContentChildDev.call(this, null);
  14607. }
  14608. },
  14609. getPublicInstance: function () {
  14610. return getNode(this);
  14611. }
  14612. };
  14613. _assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin);
  14614. module.exports = ReactDOMComponent;
  14615. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14616. /***/ }),
  14617. /* 127 */
  14618. /***/ (function(module, exports, __webpack_require__) {
  14619. "use strict";
  14620. /**
  14621. * Copyright 2013-present, Facebook, Inc.
  14622. * All rights reserved.
  14623. *
  14624. * This source code is licensed under the BSD-style license found in the
  14625. * LICENSE file in the root directory of this source tree. An additional grant
  14626. * of patent rights can be found in the PATENTS file in the same directory.
  14627. *
  14628. */
  14629. var ReactDOMComponentTree = __webpack_require__(5);
  14630. var focusNode = __webpack_require__(65);
  14631. var AutoFocusUtils = {
  14632. focusDOMComponent: function () {
  14633. focusNode(ReactDOMComponentTree.getNodeFromInstance(this));
  14634. }
  14635. };
  14636. module.exports = AutoFocusUtils;
  14637. /***/ }),
  14638. /* 128 */
  14639. /***/ (function(module, exports, __webpack_require__) {
  14640. "use strict";
  14641. /* WEBPACK VAR INJECTION */(function(process) {/**
  14642. * Copyright 2013-present, Facebook, Inc.
  14643. * All rights reserved.
  14644. *
  14645. * This source code is licensed under the BSD-style license found in the
  14646. * LICENSE file in the root directory of this source tree. An additional grant
  14647. * of patent rights can be found in the PATENTS file in the same directory.
  14648. *
  14649. */
  14650. var CSSProperty = __webpack_require__(66);
  14651. var ExecutionEnvironment = __webpack_require__(6);
  14652. var ReactInstrumentation = __webpack_require__(9);
  14653. var camelizeStyleName = __webpack_require__(129);
  14654. var dangerousStyleValue = __webpack_require__(131);
  14655. var hyphenateStyleName = __webpack_require__(132);
  14656. var memoizeStringOnly = __webpack_require__(134);
  14657. var warning = __webpack_require__(2);
  14658. var processStyleName = memoizeStringOnly(function (styleName) {
  14659. return hyphenateStyleName(styleName);
  14660. });
  14661. var hasShorthandPropertyBug = false;
  14662. var styleFloatAccessor = 'cssFloat';
  14663. if (ExecutionEnvironment.canUseDOM) {
  14664. var tempStyle = document.createElement('div').style;
  14665. try {
  14666. // IE8 throws "Invalid argument." if resetting shorthand style properties.
  14667. tempStyle.font = '';
  14668. } catch (e) {
  14669. hasShorthandPropertyBug = true;
  14670. }
  14671. // IE8 only supports accessing cssFloat (standard) as styleFloat
  14672. if (document.documentElement.style.cssFloat === undefined) {
  14673. styleFloatAccessor = 'styleFloat';
  14674. }
  14675. }
  14676. if (process.env.NODE_ENV !== 'production') {
  14677. // 'msTransform' is correct, but the other prefixes should be capitalized
  14678. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  14679. // style values shouldn't contain a semicolon
  14680. var badStyleValueWithSemicolonPattern = /;\s*$/;
  14681. var warnedStyleNames = {};
  14682. var warnedStyleValues = {};
  14683. var warnedForNaNValue = false;
  14684. var warnHyphenatedStyleName = function (name, owner) {
  14685. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14686. return;
  14687. }
  14688. warnedStyleNames[name] = true;
  14689. process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0;
  14690. };
  14691. var warnBadVendoredStyleName = function (name, owner) {
  14692. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14693. return;
  14694. }
  14695. warnedStyleNames[name] = true;
  14696. process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0;
  14697. };
  14698. var warnStyleValueWithSemicolon = function (name, value, owner) {
  14699. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  14700. return;
  14701. }
  14702. warnedStyleValues[value] = true;
  14703. process.env.NODE_ENV !== 'production' ? warning(false, 'Style property values shouldn\'t contain a semicolon.%s ' + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;
  14704. };
  14705. var warnStyleValueIsNaN = function (name, value, owner) {
  14706. if (warnedForNaNValue) {
  14707. return;
  14708. }
  14709. warnedForNaNValue = true;
  14710. process.env.NODE_ENV !== 'production' ? warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;
  14711. };
  14712. var checkRenderMessage = function (owner) {
  14713. if (owner) {
  14714. var name = owner.getName();
  14715. if (name) {
  14716. return ' Check the render method of `' + name + '`.';
  14717. }
  14718. }
  14719. return '';
  14720. };
  14721. /**
  14722. * @param {string} name
  14723. * @param {*} value
  14724. * @param {ReactDOMComponent} component
  14725. */
  14726. var warnValidStyle = function (name, value, component) {
  14727. var owner;
  14728. if (component) {
  14729. owner = component._currentElement._owner;
  14730. }
  14731. if (name.indexOf('-') > -1) {
  14732. warnHyphenatedStyleName(name, owner);
  14733. } else if (badVendoredStyleNamePattern.test(name)) {
  14734. warnBadVendoredStyleName(name, owner);
  14735. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  14736. warnStyleValueWithSemicolon(name, value, owner);
  14737. }
  14738. if (typeof value === 'number' && isNaN(value)) {
  14739. warnStyleValueIsNaN(name, value, owner);
  14740. }
  14741. };
  14742. }
  14743. /**
  14744. * Operations for dealing with CSS properties.
  14745. */
  14746. var CSSPropertyOperations = {
  14747. /**
  14748. * Serializes a mapping of style properties for use as inline styles:
  14749. *
  14750. * > createMarkupForStyles({width: '200px', height: 0})
  14751. * "width:200px;height:0;"
  14752. *
  14753. * Undefined values are ignored so that declarative programming is easier.
  14754. * The result should be HTML-escaped before insertion into the DOM.
  14755. *
  14756. * @param {object} styles
  14757. * @param {ReactDOMComponent} component
  14758. * @return {?string}
  14759. */
  14760. createMarkupForStyles: function (styles, component) {
  14761. var serialized = '';
  14762. for (var styleName in styles) {
  14763. if (!styles.hasOwnProperty(styleName)) {
  14764. continue;
  14765. }
  14766. var styleValue = styles[styleName];
  14767. if (process.env.NODE_ENV !== 'production') {
  14768. warnValidStyle(styleName, styleValue, component);
  14769. }
  14770. if (styleValue != null) {
  14771. serialized += processStyleName(styleName) + ':';
  14772. serialized += dangerousStyleValue(styleName, styleValue, component) + ';';
  14773. }
  14774. }
  14775. return serialized || null;
  14776. },
  14777. /**
  14778. * Sets the value for multiple styles on a node. If a value is specified as
  14779. * '' (empty string), the corresponding style property will be unset.
  14780. *
  14781. * @param {DOMElement} node
  14782. * @param {object} styles
  14783. * @param {ReactDOMComponent} component
  14784. */
  14785. setValueForStyles: function (node, styles, component) {
  14786. if (process.env.NODE_ENV !== 'production') {
  14787. ReactInstrumentation.debugTool.onHostOperation({
  14788. instanceID: component._debugID,
  14789. type: 'update styles',
  14790. payload: styles
  14791. });
  14792. }
  14793. var style = node.style;
  14794. for (var styleName in styles) {
  14795. if (!styles.hasOwnProperty(styleName)) {
  14796. continue;
  14797. }
  14798. if (process.env.NODE_ENV !== 'production') {
  14799. warnValidStyle(styleName, styles[styleName], component);
  14800. }
  14801. var styleValue = dangerousStyleValue(styleName, styles[styleName], component);
  14802. if (styleName === 'float' || styleName === 'cssFloat') {
  14803. styleName = styleFloatAccessor;
  14804. }
  14805. if (styleValue) {
  14806. style[styleName] = styleValue;
  14807. } else {
  14808. var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName];
  14809. if (expansion) {
  14810. // Shorthand property that IE8 won't like unsetting, so unset each
  14811. // component to placate it
  14812. for (var individualStyleName in expansion) {
  14813. style[individualStyleName] = '';
  14814. }
  14815. } else {
  14816. style[styleName] = '';
  14817. }
  14818. }
  14819. }
  14820. }
  14821. };
  14822. module.exports = CSSPropertyOperations;
  14823. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14824. /***/ }),
  14825. /* 129 */
  14826. /***/ (function(module, exports, __webpack_require__) {
  14827. "use strict";
  14828. /**
  14829. * Copyright (c) 2013-present, Facebook, Inc.
  14830. *
  14831. * This source code is licensed under the MIT license found in the
  14832. * LICENSE file in the root directory of this source tree.
  14833. *
  14834. * @typechecks
  14835. */
  14836. var camelize = __webpack_require__(130);
  14837. var msPattern = /^-ms-/;
  14838. /**
  14839. * Camelcases a hyphenated CSS property name, for example:
  14840. *
  14841. * > camelizeStyleName('background-color')
  14842. * < "backgroundColor"
  14843. * > camelizeStyleName('-moz-transition')
  14844. * < "MozTransition"
  14845. * > camelizeStyleName('-ms-transition')
  14846. * < "msTransition"
  14847. *
  14848. * As Andi Smith suggests
  14849. * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  14850. * is converted to lowercase `ms`.
  14851. *
  14852. * @param {string} string
  14853. * @return {string}
  14854. */
  14855. function camelizeStyleName(string) {
  14856. return camelize(string.replace(msPattern, 'ms-'));
  14857. }
  14858. module.exports = camelizeStyleName;
  14859. /***/ }),
  14860. /* 130 */
  14861. /***/ (function(module, exports, __webpack_require__) {
  14862. "use strict";
  14863. /**
  14864. * Copyright (c) 2013-present, Facebook, Inc.
  14865. *
  14866. * This source code is licensed under the MIT license found in the
  14867. * LICENSE file in the root directory of this source tree.
  14868. *
  14869. * @typechecks
  14870. */
  14871. var _hyphenPattern = /-(.)/g;
  14872. /**
  14873. * Camelcases a hyphenated string, for example:
  14874. *
  14875. * > camelize('background-color')
  14876. * < "backgroundColor"
  14877. *
  14878. * @param {string} string
  14879. * @return {string}
  14880. */
  14881. function camelize(string) {
  14882. return string.replace(_hyphenPattern, function (_, character) {
  14883. return character.toUpperCase();
  14884. });
  14885. }
  14886. module.exports = camelize;
  14887. /***/ }),
  14888. /* 131 */
  14889. /***/ (function(module, exports, __webpack_require__) {
  14890. "use strict";
  14891. /* WEBPACK VAR INJECTION */(function(process) {/**
  14892. * Copyright 2013-present, Facebook, Inc.
  14893. * All rights reserved.
  14894. *
  14895. * This source code is licensed under the BSD-style license found in the
  14896. * LICENSE file in the root directory of this source tree. An additional grant
  14897. * of patent rights can be found in the PATENTS file in the same directory.
  14898. *
  14899. */
  14900. var CSSProperty = __webpack_require__(66);
  14901. var warning = __webpack_require__(2);
  14902. var isUnitlessNumber = CSSProperty.isUnitlessNumber;
  14903. var styleWarnings = {};
  14904. /**
  14905. * Convert a value into the proper css writable value. The style name `name`
  14906. * should be logical (no hyphens), as specified
  14907. * in `CSSProperty.isUnitlessNumber`.
  14908. *
  14909. * @param {string} name CSS property name such as `topMargin`.
  14910. * @param {*} value CSS property value such as `10px`.
  14911. * @param {ReactDOMComponent} component
  14912. * @return {string} Normalized style value with dimensions applied.
  14913. */
  14914. function dangerousStyleValue(name, value, component) {
  14915. // Note that we've removed escapeTextForBrowser() calls here since the
  14916. // whole string will be escaped when the attribute is injected into
  14917. // the markup. If you provide unsafe user data here they can inject
  14918. // arbitrary CSS which may be problematic (I couldn't repro this):
  14919. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  14920. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  14921. // This is not an XSS hole but instead a potential CSS injection issue
  14922. // which has lead to a greater discussion about how we're going to
  14923. // trust URLs moving forward. See #2115901
  14924. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  14925. if (isEmpty) {
  14926. return '';
  14927. }
  14928. var isNonNumeric = isNaN(value);
  14929. if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
  14930. return '' + value; // cast to string
  14931. }
  14932. if (typeof value === 'string') {
  14933. if (process.env.NODE_ENV !== 'production') {
  14934. // Allow '0' to pass through without warning. 0 is already special and
  14935. // doesn't require units, so we don't need to warn about it.
  14936. if (component && value !== '0') {
  14937. var owner = component._currentElement._owner;
  14938. var ownerName = owner ? owner.getName() : null;
  14939. if (ownerName && !styleWarnings[ownerName]) {
  14940. styleWarnings[ownerName] = {};
  14941. }
  14942. var warned = false;
  14943. if (ownerName) {
  14944. var warnings = styleWarnings[ownerName];
  14945. warned = warnings[name];
  14946. if (!warned) {
  14947. warnings[name] = true;
  14948. }
  14949. }
  14950. if (!warned) {
  14951. process.env.NODE_ENV !== 'production' ? warning(false, 'a `%s` tag (owner: `%s`) was passed a numeric string value ' + 'for CSS property `%s` (value: `%s`) which will be treated ' + 'as a unitless number in a future version of React.', component._currentElement.type, ownerName || 'unknown', name, value) : void 0;
  14952. }
  14953. }
  14954. }
  14955. value = value.trim();
  14956. }
  14957. return value + 'px';
  14958. }
  14959. module.exports = dangerousStyleValue;
  14960. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14961. /***/ }),
  14962. /* 132 */
  14963. /***/ (function(module, exports, __webpack_require__) {
  14964. "use strict";
  14965. /**
  14966. * Copyright (c) 2013-present, Facebook, Inc.
  14967. *
  14968. * This source code is licensed under the MIT license found in the
  14969. * LICENSE file in the root directory of this source tree.
  14970. *
  14971. * @typechecks
  14972. */
  14973. var hyphenate = __webpack_require__(133);
  14974. var msPattern = /^ms-/;
  14975. /**
  14976. * Hyphenates a camelcased CSS property name, for example:
  14977. *
  14978. * > hyphenateStyleName('backgroundColor')
  14979. * < "background-color"
  14980. * > hyphenateStyleName('MozTransition')
  14981. * < "-moz-transition"
  14982. * > hyphenateStyleName('msTransition')
  14983. * < "-ms-transition"
  14984. *
  14985. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  14986. * is converted to `-ms-`.
  14987. *
  14988. * @param {string} string
  14989. * @return {string}
  14990. */
  14991. function hyphenateStyleName(string) {
  14992. return hyphenate(string).replace(msPattern, '-ms-');
  14993. }
  14994. module.exports = hyphenateStyleName;
  14995. /***/ }),
  14996. /* 133 */
  14997. /***/ (function(module, exports, __webpack_require__) {
  14998. "use strict";
  14999. /**
  15000. * Copyright (c) 2013-present, Facebook, Inc.
  15001. *
  15002. * This source code is licensed under the MIT license found in the
  15003. * LICENSE file in the root directory of this source tree.
  15004. *
  15005. * @typechecks
  15006. */
  15007. var _uppercasePattern = /([A-Z])/g;
  15008. /**
  15009. * Hyphenates a camelcased string, for example:
  15010. *
  15011. * > hyphenate('backgroundColor')
  15012. * < "background-color"
  15013. *
  15014. * For CSS style names, use `hyphenateStyleName` instead which works properly
  15015. * with all vendor prefixes, including `ms`.
  15016. *
  15017. * @param {string} string
  15018. * @return {string}
  15019. */
  15020. function hyphenate(string) {
  15021. return string.replace(_uppercasePattern, '-$1').toLowerCase();
  15022. }
  15023. module.exports = hyphenate;
  15024. /***/ }),
  15025. /* 134 */
  15026. /***/ (function(module, exports, __webpack_require__) {
  15027. "use strict";
  15028. /**
  15029. * Copyright (c) 2013-present, Facebook, Inc.
  15030. *
  15031. * This source code is licensed under the MIT license found in the
  15032. * LICENSE file in the root directory of this source tree.
  15033. *
  15034. *
  15035. * @typechecks static-only
  15036. */
  15037. /**
  15038. * Memoizes the return value of a function that accepts one string argument.
  15039. */
  15040. function memoizeStringOnly(callback) {
  15041. var cache = {};
  15042. return function (string) {
  15043. if (!cache.hasOwnProperty(string)) {
  15044. cache[string] = callback.call(this, string);
  15045. }
  15046. return cache[string];
  15047. };
  15048. }
  15049. module.exports = memoizeStringOnly;
  15050. /***/ }),
  15051. /* 135 */
  15052. /***/ (function(module, exports, __webpack_require__) {
  15053. "use strict";
  15054. /**
  15055. * Copyright 2013-present, Facebook, Inc.
  15056. * All rights reserved.
  15057. *
  15058. * This source code is licensed under the BSD-style license found in the
  15059. * LICENSE file in the root directory of this source tree. An additional grant
  15060. * of patent rights can be found in the PATENTS file in the same directory.
  15061. *
  15062. */
  15063. var escapeTextContentForBrowser = __webpack_require__(31);
  15064. /**
  15065. * Escapes attribute value to prevent scripting attacks.
  15066. *
  15067. * @param {*} value Value to escape.
  15068. * @return {string} An escaped string.
  15069. */
  15070. function quoteAttributeValueForBrowser(value) {
  15071. return '"' + escapeTextContentForBrowser(value) + '"';
  15072. }
  15073. module.exports = quoteAttributeValueForBrowser;
  15074. /***/ }),
  15075. /* 136 */
  15076. /***/ (function(module, exports, __webpack_require__) {
  15077. "use strict";
  15078. /**
  15079. * Copyright 2013-present, Facebook, Inc.
  15080. * All rights reserved.
  15081. *
  15082. * This source code is licensed under the BSD-style license found in the
  15083. * LICENSE file in the root directory of this source tree. An additional grant
  15084. * of patent rights can be found in the PATENTS file in the same directory.
  15085. *
  15086. */
  15087. var EventPluginHub = __webpack_require__(22);
  15088. function runEventQueueInBatch(events) {
  15089. EventPluginHub.enqueueEvents(events);
  15090. EventPluginHub.processEventQueue(false);
  15091. }
  15092. var ReactEventEmitterMixin = {
  15093. /**
  15094. * Streams a fired top-level event to `EventPluginHub` where plugins have the
  15095. * opportunity to create `ReactEvent`s to be dispatched.
  15096. */
  15097. handleTopLevel: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  15098. var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  15099. runEventQueueInBatch(events);
  15100. }
  15101. };
  15102. module.exports = ReactEventEmitterMixin;
  15103. /***/ }),
  15104. /* 137 */
  15105. /***/ (function(module, exports, __webpack_require__) {
  15106. "use strict";
  15107. /**
  15108. * Copyright 2013-present, Facebook, Inc.
  15109. * All rights reserved.
  15110. *
  15111. * This source code is licensed under the BSD-style license found in the
  15112. * LICENSE file in the root directory of this source tree. An additional grant
  15113. * of patent rights can be found in the PATENTS file in the same directory.
  15114. *
  15115. */
  15116. var ExecutionEnvironment = __webpack_require__(6);
  15117. /**
  15118. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  15119. *
  15120. * @param {string} styleProp
  15121. * @param {string} eventName
  15122. * @returns {object}
  15123. */
  15124. function makePrefixMap(styleProp, eventName) {
  15125. var prefixes = {};
  15126. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  15127. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  15128. prefixes['Moz' + styleProp] = 'moz' + eventName;
  15129. prefixes['ms' + styleProp] = 'MS' + eventName;
  15130. prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();
  15131. return prefixes;
  15132. }
  15133. /**
  15134. * A list of event names to a configurable list of vendor prefixes.
  15135. */
  15136. var vendorPrefixes = {
  15137. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  15138. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  15139. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  15140. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  15141. };
  15142. /**
  15143. * Event names that have already been detected and prefixed (if applicable).
  15144. */
  15145. var prefixedEventNames = {};
  15146. /**
  15147. * Element to check for prefixes on.
  15148. */
  15149. var style = {};
  15150. /**
  15151. * Bootstrap if a DOM exists.
  15152. */
  15153. if (ExecutionEnvironment.canUseDOM) {
  15154. style = document.createElement('div').style;
  15155. // On some platforms, in particular some releases of Android 4.x,
  15156. // the un-prefixed "animation" and "transition" properties are defined on the
  15157. // style object but the events that fire will still be prefixed, so we need
  15158. // to check if the un-prefixed events are usable, and if not remove them from the map.
  15159. if (!('AnimationEvent' in window)) {
  15160. delete vendorPrefixes.animationend.animation;
  15161. delete vendorPrefixes.animationiteration.animation;
  15162. delete vendorPrefixes.animationstart.animation;
  15163. }
  15164. // Same as above
  15165. if (!('TransitionEvent' in window)) {
  15166. delete vendorPrefixes.transitionend.transition;
  15167. }
  15168. }
  15169. /**
  15170. * Attempts to determine the correct vendor prefixed event name.
  15171. *
  15172. * @param {string} eventName
  15173. * @returns {string}
  15174. */
  15175. function getVendorPrefixedEventName(eventName) {
  15176. if (prefixedEventNames[eventName]) {
  15177. return prefixedEventNames[eventName];
  15178. } else if (!vendorPrefixes[eventName]) {
  15179. return eventName;
  15180. }
  15181. var prefixMap = vendorPrefixes[eventName];
  15182. for (var styleProp in prefixMap) {
  15183. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  15184. return prefixedEventNames[eventName] = prefixMap[styleProp];
  15185. }
  15186. }
  15187. return '';
  15188. }
  15189. module.exports = getVendorPrefixedEventName;
  15190. /***/ }),
  15191. /* 138 */
  15192. /***/ (function(module, exports, __webpack_require__) {
  15193. "use strict";
  15194. /* WEBPACK VAR INJECTION */(function(process) {/**
  15195. * Copyright 2013-present, Facebook, Inc.
  15196. * All rights reserved.
  15197. *
  15198. * This source code is licensed under the BSD-style license found in the
  15199. * LICENSE file in the root directory of this source tree. An additional grant
  15200. * of patent rights can be found in the PATENTS file in the same directory.
  15201. *
  15202. */
  15203. var _prodInvariant = __webpack_require__(3),
  15204. _assign = __webpack_require__(4);
  15205. var DOMPropertyOperations = __webpack_require__(67);
  15206. var LinkedValueUtils = __webpack_require__(43);
  15207. var ReactDOMComponentTree = __webpack_require__(5);
  15208. var ReactUpdates = __webpack_require__(11);
  15209. var invariant = __webpack_require__(1);
  15210. var warning = __webpack_require__(2);
  15211. var didWarnValueLink = false;
  15212. var didWarnCheckedLink = false;
  15213. var didWarnValueDefaultValue = false;
  15214. var didWarnCheckedDefaultChecked = false;
  15215. var didWarnControlledToUncontrolled = false;
  15216. var didWarnUncontrolledToControlled = false;
  15217. function forceUpdateIfMounted() {
  15218. if (this._rootNodeID) {
  15219. // DOM component is still mounted; update
  15220. ReactDOMInput.updateWrapper(this);
  15221. }
  15222. }
  15223. function isControlled(props) {
  15224. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  15225. return usesChecked ? props.checked != null : props.value != null;
  15226. }
  15227. /**
  15228. * Implements an <input> host component that allows setting these optional
  15229. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  15230. *
  15231. * If `checked` or `value` are not supplied (or null/undefined), user actions
  15232. * that affect the checked state or value will trigger updates to the element.
  15233. *
  15234. * If they are supplied (and not null/undefined), the rendered element will not
  15235. * trigger updates to the element. Instead, the props must change in order for
  15236. * the rendered element to be updated.
  15237. *
  15238. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  15239. * with an empty value (or `defaultValue`).
  15240. *
  15241. * @see http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  15242. */
  15243. var ReactDOMInput = {
  15244. getHostProps: function (inst, props) {
  15245. var value = LinkedValueUtils.getValue(props);
  15246. var checked = LinkedValueUtils.getChecked(props);
  15247. var hostProps = _assign({
  15248. // Make sure we set .type before any other properties (setting .value
  15249. // before .type means .value is lost in IE11 and below)
  15250. type: undefined,
  15251. // Make sure we set .step before .value (setting .value before .step
  15252. // means .value is rounded on mount, based upon step precision)
  15253. step: undefined,
  15254. // Make sure we set .min & .max before .value (to ensure proper order
  15255. // in corner cases such as min or max deriving from value, e.g. Issue #7170)
  15256. min: undefined,
  15257. max: undefined
  15258. }, props, {
  15259. defaultChecked: undefined,
  15260. defaultValue: undefined,
  15261. value: value != null ? value : inst._wrapperState.initialValue,
  15262. checked: checked != null ? checked : inst._wrapperState.initialChecked,
  15263. onChange: inst._wrapperState.onChange
  15264. });
  15265. return hostProps;
  15266. },
  15267. mountWrapper: function (inst, props) {
  15268. if (process.env.NODE_ENV !== 'production') {
  15269. LinkedValueUtils.checkPropTypes('input', props, inst._currentElement._owner);
  15270. var owner = inst._currentElement._owner;
  15271. if (props.valueLink !== undefined && !didWarnValueLink) {
  15272. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;
  15273. didWarnValueLink = true;
  15274. }
  15275. if (props.checkedLink !== undefined && !didWarnCheckedLink) {
  15276. process.env.NODE_ENV !== 'production' ? warning(false, '`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;
  15277. didWarnCheckedLink = true;
  15278. }
  15279. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  15280. process.env.NODE_ENV !== 'production' ? warning(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', owner && owner.getName() || 'A component', props.type) : void 0;
  15281. didWarnCheckedDefaultChecked = true;
  15282. }
  15283. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  15284. process.env.NODE_ENV !== 'production' ? warning(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', owner && owner.getName() || 'A component', props.type) : void 0;
  15285. didWarnValueDefaultValue = true;
  15286. }
  15287. }
  15288. var defaultValue = props.defaultValue;
  15289. inst._wrapperState = {
  15290. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  15291. initialValue: props.value != null ? props.value : defaultValue,
  15292. listeners: null,
  15293. onChange: _handleChange.bind(inst),
  15294. controlled: isControlled(props)
  15295. };
  15296. },
  15297. updateWrapper: function (inst) {
  15298. var props = inst._currentElement.props;
  15299. if (process.env.NODE_ENV !== 'production') {
  15300. var controlled = isControlled(props);
  15301. var owner = inst._currentElement._owner;
  15302. if (!inst._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
  15303. process.env.NODE_ENV !== 'production' ? warning(false, '%s 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', owner && owner.getName() || 'A component', props.type) : void 0;
  15304. didWarnUncontrolledToControlled = true;
  15305. }
  15306. if (inst._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
  15307. process.env.NODE_ENV !== 'production' ? warning(false, '%s 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', owner && owner.getName() || 'A component', props.type) : void 0;
  15308. didWarnControlledToUncontrolled = true;
  15309. }
  15310. }
  15311. // TODO: Shouldn't this be getChecked(props)?
  15312. var checked = props.checked;
  15313. if (checked != null) {
  15314. DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), 'checked', checked || false);
  15315. }
  15316. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  15317. var value = LinkedValueUtils.getValue(props);
  15318. if (value != null) {
  15319. if (value === 0 && node.value === '') {
  15320. node.value = '0';
  15321. // Note: IE9 reports a number inputs as 'text', so check props instead.
  15322. } else if (props.type === 'number') {
  15323. // Simulate `input.valueAsNumber`. IE9 does not support it
  15324. var valueAsNumber = parseFloat(node.value, 10) || 0;
  15325. // eslint-disable-next-line
  15326. if (value != valueAsNumber) {
  15327. // Cast `value` to a string to ensure the value is set correctly. While
  15328. // browsers typically do this as necessary, jsdom doesn't.
  15329. node.value = '' + value;
  15330. }
  15331. // eslint-disable-next-line
  15332. } else if (value != node.value) {
  15333. // Cast `value` to a string to ensure the value is set correctly. While
  15334. // browsers typically do this as necessary, jsdom doesn't.
  15335. node.value = '' + value;
  15336. }
  15337. } else {
  15338. if (props.value == null && props.defaultValue != null) {
  15339. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  15340. // For number inputs, the display value loses trailing decimal points. For email inputs,
  15341. // Chrome raises "The specified value <x> is not a valid email address".
  15342. //
  15343. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  15344. // when the user is inputting text
  15345. //
  15346. // https://github.com/facebook/react/issues/7253
  15347. if (node.defaultValue !== '' + props.defaultValue) {
  15348. node.defaultValue = '' + props.defaultValue;
  15349. }
  15350. }
  15351. if (props.checked == null && props.defaultChecked != null) {
  15352. node.defaultChecked = !!props.defaultChecked;
  15353. }
  15354. }
  15355. },
  15356. postMountWrapper: function (inst) {
  15357. var props = inst._currentElement.props;
  15358. // This is in postMount because we need access to the DOM node, which is not
  15359. // available until after the component has mounted.
  15360. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  15361. // Detach value from defaultValue. We won't do anything if we're working on
  15362. // submit or reset inputs as those values & defaultValues are linked. They
  15363. // are not resetable nodes so this operation doesn't matter and actually
  15364. // removes browser-default values (eg "Submit Query") when no value is
  15365. // provided.
  15366. switch (props.type) {
  15367. case 'submit':
  15368. case 'reset':
  15369. break;
  15370. case 'color':
  15371. case 'date':
  15372. case 'datetime':
  15373. case 'datetime-local':
  15374. case 'month':
  15375. case 'time':
  15376. case 'week':
  15377. // This fixes the no-show issue on iOS Safari and Android Chrome:
  15378. // https://github.com/facebook/react/issues/7233
  15379. node.value = '';
  15380. node.value = node.defaultValue;
  15381. break;
  15382. default:
  15383. node.value = node.value;
  15384. break;
  15385. }
  15386. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  15387. // this is needed to work around a chrome bug where setting defaultChecked
  15388. // will sometimes influence the value of checked (even after detachment).
  15389. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  15390. // We need to temporarily unset name to avoid disrupting radio button groups.
  15391. var name = node.name;
  15392. if (name !== '') {
  15393. node.name = '';
  15394. }
  15395. node.defaultChecked = !node.defaultChecked;
  15396. node.defaultChecked = !node.defaultChecked;
  15397. if (name !== '') {
  15398. node.name = name;
  15399. }
  15400. }
  15401. };
  15402. function _handleChange(event) {
  15403. var props = this._currentElement.props;
  15404. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  15405. // Here we use asap to wait until all updates have propagated, which
  15406. // is important when using controlled components within layers:
  15407. // https://github.com/facebook/react/issues/1698
  15408. ReactUpdates.asap(forceUpdateIfMounted, this);
  15409. var name = props.name;
  15410. if (props.type === 'radio' && name != null) {
  15411. var rootNode = ReactDOMComponentTree.getNodeFromInstance(this);
  15412. var queryRoot = rootNode;
  15413. while (queryRoot.parentNode) {
  15414. queryRoot = queryRoot.parentNode;
  15415. }
  15416. // If `rootNode.form` was non-null, then we could try `form.elements`,
  15417. // but that sometimes behaves strangely in IE8. We could also try using
  15418. // `form.getElementsByName`, but that will only return direct children
  15419. // and won't include inputs that use the HTML5 `form=` attribute. Since
  15420. // the input might not even be in a form, let's just use the global
  15421. // `querySelectorAll` to ensure we don't miss anything.
  15422. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  15423. for (var i = 0; i < group.length; i++) {
  15424. var otherNode = group[i];
  15425. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  15426. continue;
  15427. }
  15428. // This will throw if radio buttons rendered by different copies of React
  15429. // and the same name are rendered into the same form (same as #1939).
  15430. // That's probably okay; we don't support it just as we don't support
  15431. // mixing React radio buttons with non-React ones.
  15432. var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode);
  15433. !otherInstance ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : _prodInvariant('90') : void 0;
  15434. // If this is a controlled radio button group, forcing the input that
  15435. // was previously checked to update will cause it to be come re-checked
  15436. // as appropriate.
  15437. ReactUpdates.asap(forceUpdateIfMounted, otherInstance);
  15438. }
  15439. }
  15440. return returnValue;
  15441. }
  15442. module.exports = ReactDOMInput;
  15443. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15444. /***/ }),
  15445. /* 139 */
  15446. /***/ (function(module, exports, __webpack_require__) {
  15447. "use strict";
  15448. /**
  15449. * Copyright 2013-present, Facebook, Inc.
  15450. * All rights reserved.
  15451. *
  15452. * This source code is licensed under the BSD-style license found in the
  15453. * LICENSE file in the root directory of this source tree. An additional grant
  15454. * of patent rights can be found in the PATENTS file in the same directory.
  15455. */
  15456. // React 15.5 references this module, and assumes PropTypes are still callable in production.
  15457. // Therefore we re-export development-only version with all the PropTypes checks here.
  15458. // However if one is migrating to the `prop-types` npm library, they will go through the
  15459. // `index.js` entry point, and it will branch depending on the environment.
  15460. var factory = __webpack_require__(140);
  15461. module.exports = function(isValidElement) {
  15462. // It is still allowed in 15.5.
  15463. var throwOnDirectAccess = false;
  15464. return factory(isValidElement, throwOnDirectAccess);
  15465. };
  15466. /***/ }),
  15467. /* 140 */
  15468. /***/ (function(module, exports, __webpack_require__) {
  15469. "use strict";
  15470. /* WEBPACK VAR INJECTION */(function(process) {/**
  15471. * Copyright 2013-present, Facebook, Inc.
  15472. * All rights reserved.
  15473. *
  15474. * This source code is licensed under the BSD-style license found in the
  15475. * LICENSE file in the root directory of this source tree. An additional grant
  15476. * of patent rights can be found in the PATENTS file in the same directory.
  15477. */
  15478. var emptyFunction = __webpack_require__(8);
  15479. var invariant = __webpack_require__(1);
  15480. var warning = __webpack_require__(2);
  15481. var ReactPropTypesSecret = __webpack_require__(69);
  15482. var checkPropTypes = __webpack_require__(141);
  15483. module.exports = function(isValidElement, throwOnDirectAccess) {
  15484. /* global Symbol */
  15485. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  15486. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  15487. /**
  15488. * Returns the iterator method function contained on the iterable object.
  15489. *
  15490. * Be sure to invoke the function with the iterable as context:
  15491. *
  15492. * var iteratorFn = getIteratorFn(myIterable);
  15493. * if (iteratorFn) {
  15494. * var iterator = iteratorFn.call(myIterable);
  15495. * ...
  15496. * }
  15497. *
  15498. * @param {?object} maybeIterable
  15499. * @return {?function}
  15500. */
  15501. function getIteratorFn(maybeIterable) {
  15502. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  15503. if (typeof iteratorFn === 'function') {
  15504. return iteratorFn;
  15505. }
  15506. }
  15507. /**
  15508. * Collection of methods that allow declaration and validation of props that are
  15509. * supplied to React components. Example usage:
  15510. *
  15511. * var Props = require('ReactPropTypes');
  15512. * var MyArticle = React.createClass({
  15513. * propTypes: {
  15514. * // An optional string prop named "description".
  15515. * description: Props.string,
  15516. *
  15517. * // A required enum prop named "category".
  15518. * category: Props.oneOf(['News','Photos']).isRequired,
  15519. *
  15520. * // A prop named "dialog" that requires an instance of Dialog.
  15521. * dialog: Props.instanceOf(Dialog).isRequired
  15522. * },
  15523. * render: function() { ... }
  15524. * });
  15525. *
  15526. * A more formal specification of how these methods are used:
  15527. *
  15528. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  15529. * decl := ReactPropTypes.{type}(.isRequired)?
  15530. *
  15531. * Each and every declaration produces a function with the same signature. This
  15532. * allows the creation of custom validation functions. For example:
  15533. *
  15534. * var MyLink = React.createClass({
  15535. * propTypes: {
  15536. * // An optional string or URI prop named "href".
  15537. * href: function(props, propName, componentName) {
  15538. * var propValue = props[propName];
  15539. * if (propValue != null && typeof propValue !== 'string' &&
  15540. * !(propValue instanceof URI)) {
  15541. * return new Error(
  15542. * 'Expected a string or an URI for ' + propName + ' in ' +
  15543. * componentName
  15544. * );
  15545. * }
  15546. * }
  15547. * },
  15548. * render: function() {...}
  15549. * });
  15550. *
  15551. * @internal
  15552. */
  15553. var ANONYMOUS = '<<anonymous>>';
  15554. // Important!
  15555. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  15556. var ReactPropTypes = {
  15557. array: createPrimitiveTypeChecker('array'),
  15558. bool: createPrimitiveTypeChecker('boolean'),
  15559. func: createPrimitiveTypeChecker('function'),
  15560. number: createPrimitiveTypeChecker('number'),
  15561. object: createPrimitiveTypeChecker('object'),
  15562. string: createPrimitiveTypeChecker('string'),
  15563. symbol: createPrimitiveTypeChecker('symbol'),
  15564. any: createAnyTypeChecker(),
  15565. arrayOf: createArrayOfTypeChecker,
  15566. element: createElementTypeChecker(),
  15567. instanceOf: createInstanceTypeChecker,
  15568. node: createNodeChecker(),
  15569. objectOf: createObjectOfTypeChecker,
  15570. oneOf: createEnumTypeChecker,
  15571. oneOfType: createUnionTypeChecker,
  15572. shape: createShapeTypeChecker
  15573. };
  15574. /**
  15575. * inlined Object.is polyfill to avoid requiring consumers ship their own
  15576. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  15577. */
  15578. /*eslint-disable no-self-compare*/
  15579. function is(x, y) {
  15580. // SameValue algorithm
  15581. if (x === y) {
  15582. // Steps 1-5, 7-10
  15583. // Steps 6.b-6.e: +0 != -0
  15584. return x !== 0 || 1 / x === 1 / y;
  15585. } else {
  15586. // Step 6.a: NaN == NaN
  15587. return x !== x && y !== y;
  15588. }
  15589. }
  15590. /*eslint-enable no-self-compare*/
  15591. /**
  15592. * We use an Error-like object for backward compatibility as people may call
  15593. * PropTypes directly and inspect their output. However, we don't use real
  15594. * Errors anymore. We don't inspect their stack anyway, and creating them
  15595. * is prohibitively expensive if they are created too often, such as what
  15596. * happens in oneOfType() for any type before the one that matched.
  15597. */
  15598. function PropTypeError(message) {
  15599. this.message = message;
  15600. this.stack = '';
  15601. }
  15602. // Make `instanceof Error` still work for returned errors.
  15603. PropTypeError.prototype = Error.prototype;
  15604. function createChainableTypeChecker(validate) {
  15605. if (process.env.NODE_ENV !== 'production') {
  15606. var manualPropTypeCallCache = {};
  15607. var manualPropTypeWarningCount = 0;
  15608. }
  15609. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  15610. componentName = componentName || ANONYMOUS;
  15611. propFullName = propFullName || propName;
  15612. if (secret !== ReactPropTypesSecret) {
  15613. if (throwOnDirectAccess) {
  15614. // New behavior only for users of `prop-types` package
  15615. invariant(
  15616. false,
  15617. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  15618. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  15619. 'Read more at http://fb.me/use-check-prop-types'
  15620. );
  15621. } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
  15622. // Old behavior for people using React.PropTypes
  15623. var cacheKey = componentName + ':' + propName;
  15624. if (
  15625. !manualPropTypeCallCache[cacheKey] &&
  15626. // Avoid spamming the console because they are often not actionable except for lib authors
  15627. manualPropTypeWarningCount < 3
  15628. ) {
  15629. warning(
  15630. false,
  15631. 'You are manually calling a React.PropTypes validation ' +
  15632. 'function for the `%s` prop on `%s`. This is deprecated ' +
  15633. 'and will throw in the standalone `prop-types` package. ' +
  15634. 'You may be seeing this warning due to a third-party PropTypes ' +
  15635. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
  15636. propFullName,
  15637. componentName
  15638. );
  15639. manualPropTypeCallCache[cacheKey] = true;
  15640. manualPropTypeWarningCount++;
  15641. }
  15642. }
  15643. }
  15644. if (props[propName] == null) {
  15645. if (isRequired) {
  15646. if (props[propName] === null) {
  15647. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  15648. }
  15649. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  15650. }
  15651. return null;
  15652. } else {
  15653. return validate(props, propName, componentName, location, propFullName);
  15654. }
  15655. }
  15656. var chainedCheckType = checkType.bind(null, false);
  15657. chainedCheckType.isRequired = checkType.bind(null, true);
  15658. return chainedCheckType;
  15659. }
  15660. function createPrimitiveTypeChecker(expectedType) {
  15661. function validate(props, propName, componentName, location, propFullName, secret) {
  15662. var propValue = props[propName];
  15663. var propType = getPropType(propValue);
  15664. if (propType !== expectedType) {
  15665. // `propValue` being instance of, say, date/regexp, pass the 'object'
  15666. // check, but we can offer a more precise error message here rather than
  15667. // 'of type `object`'.
  15668. var preciseType = getPreciseType(propValue);
  15669. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  15670. }
  15671. return null;
  15672. }
  15673. return createChainableTypeChecker(validate);
  15674. }
  15675. function createAnyTypeChecker() {
  15676. return createChainableTypeChecker(emptyFunction.thatReturnsNull);
  15677. }
  15678. function createArrayOfTypeChecker(typeChecker) {
  15679. function validate(props, propName, componentName, location, propFullName) {
  15680. if (typeof typeChecker !== 'function') {
  15681. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  15682. }
  15683. var propValue = props[propName];
  15684. if (!Array.isArray(propValue)) {
  15685. var propType = getPropType(propValue);
  15686. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  15687. }
  15688. for (var i = 0; i < propValue.length; i++) {
  15689. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  15690. if (error instanceof Error) {
  15691. return error;
  15692. }
  15693. }
  15694. return null;
  15695. }
  15696. return createChainableTypeChecker(validate);
  15697. }
  15698. function createElementTypeChecker() {
  15699. function validate(props, propName, componentName, location, propFullName) {
  15700. var propValue = props[propName];
  15701. if (!isValidElement(propValue)) {
  15702. var propType = getPropType(propValue);
  15703. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  15704. }
  15705. return null;
  15706. }
  15707. return createChainableTypeChecker(validate);
  15708. }
  15709. function createInstanceTypeChecker(expectedClass) {
  15710. function validate(props, propName, componentName, location, propFullName) {
  15711. if (!(props[propName] instanceof expectedClass)) {
  15712. var expectedClassName = expectedClass.name || ANONYMOUS;
  15713. var actualClassName = getClassName(props[propName]);
  15714. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  15715. }
  15716. return null;
  15717. }
  15718. return createChainableTypeChecker(validate);
  15719. }
  15720. function createEnumTypeChecker(expectedValues) {
  15721. if (!Array.isArray(expectedValues)) {
  15722. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
  15723. return emptyFunction.thatReturnsNull;
  15724. }
  15725. function validate(props, propName, componentName, location, propFullName) {
  15726. var propValue = props[propName];
  15727. for (var i = 0; i < expectedValues.length; i++) {
  15728. if (is(propValue, expectedValues[i])) {
  15729. return null;
  15730. }
  15731. }
  15732. var valuesString = JSON.stringify(expectedValues);
  15733. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  15734. }
  15735. return createChainableTypeChecker(validate);
  15736. }
  15737. function createObjectOfTypeChecker(typeChecker) {
  15738. function validate(props, propName, componentName, location, propFullName) {
  15739. if (typeof typeChecker !== 'function') {
  15740. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  15741. }
  15742. var propValue = props[propName];
  15743. var propType = getPropType(propValue);
  15744. if (propType !== 'object') {
  15745. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  15746. }
  15747. for (var key in propValue) {
  15748. if (propValue.hasOwnProperty(key)) {
  15749. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  15750. if (error instanceof Error) {
  15751. return error;
  15752. }
  15753. }
  15754. }
  15755. return null;
  15756. }
  15757. return createChainableTypeChecker(validate);
  15758. }
  15759. function createUnionTypeChecker(arrayOfTypeCheckers) {
  15760. if (!Array.isArray(arrayOfTypeCheckers)) {
  15761. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
  15762. return emptyFunction.thatReturnsNull;
  15763. }
  15764. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  15765. var checker = arrayOfTypeCheckers[i];
  15766. if (typeof checker !== 'function') {
  15767. warning(
  15768. false,
  15769. 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
  15770. 'received %s at index %s.',
  15771. getPostfixForTypeWarning(checker),
  15772. i
  15773. );
  15774. return emptyFunction.thatReturnsNull;
  15775. }
  15776. }
  15777. function validate(props, propName, componentName, location, propFullName) {
  15778. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  15779. var checker = arrayOfTypeCheckers[i];
  15780. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  15781. return null;
  15782. }
  15783. }
  15784. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  15785. }
  15786. return createChainableTypeChecker(validate);
  15787. }
  15788. function createNodeChecker() {
  15789. function validate(props, propName, componentName, location, propFullName) {
  15790. if (!isNode(props[propName])) {
  15791. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  15792. }
  15793. return null;
  15794. }
  15795. return createChainableTypeChecker(validate);
  15796. }
  15797. function createShapeTypeChecker(shapeTypes) {
  15798. function validate(props, propName, componentName, location, propFullName) {
  15799. var propValue = props[propName];
  15800. var propType = getPropType(propValue);
  15801. if (propType !== 'object') {
  15802. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  15803. }
  15804. for (var key in shapeTypes) {
  15805. var checker = shapeTypes[key];
  15806. if (!checker) {
  15807. continue;
  15808. }
  15809. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  15810. if (error) {
  15811. return error;
  15812. }
  15813. }
  15814. return null;
  15815. }
  15816. return createChainableTypeChecker(validate);
  15817. }
  15818. function isNode(propValue) {
  15819. switch (typeof propValue) {
  15820. case 'number':
  15821. case 'string':
  15822. case 'undefined':
  15823. return true;
  15824. case 'boolean':
  15825. return !propValue;
  15826. case 'object':
  15827. if (Array.isArray(propValue)) {
  15828. return propValue.every(isNode);
  15829. }
  15830. if (propValue === null || isValidElement(propValue)) {
  15831. return true;
  15832. }
  15833. var iteratorFn = getIteratorFn(propValue);
  15834. if (iteratorFn) {
  15835. var iterator = iteratorFn.call(propValue);
  15836. var step;
  15837. if (iteratorFn !== propValue.entries) {
  15838. while (!(step = iterator.next()).done) {
  15839. if (!isNode(step.value)) {
  15840. return false;
  15841. }
  15842. }
  15843. } else {
  15844. // Iterator will provide entry [k,v] tuples rather than values.
  15845. while (!(step = iterator.next()).done) {
  15846. var entry = step.value;
  15847. if (entry) {
  15848. if (!isNode(entry[1])) {
  15849. return false;
  15850. }
  15851. }
  15852. }
  15853. }
  15854. } else {
  15855. return false;
  15856. }
  15857. return true;
  15858. default:
  15859. return false;
  15860. }
  15861. }
  15862. function isSymbol(propType, propValue) {
  15863. // Native Symbol.
  15864. if (propType === 'symbol') {
  15865. return true;
  15866. }
  15867. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  15868. if (propValue['@@toStringTag'] === 'Symbol') {
  15869. return true;
  15870. }
  15871. // Fallback for non-spec compliant Symbols which are polyfilled.
  15872. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  15873. return true;
  15874. }
  15875. return false;
  15876. }
  15877. // Equivalent of `typeof` but with special handling for array and regexp.
  15878. function getPropType(propValue) {
  15879. var propType = typeof propValue;
  15880. if (Array.isArray(propValue)) {
  15881. return 'array';
  15882. }
  15883. if (propValue instanceof RegExp) {
  15884. // Old webkits (at least until Android 4.0) return 'function' rather than
  15885. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  15886. // passes PropTypes.object.
  15887. return 'object';
  15888. }
  15889. if (isSymbol(propType, propValue)) {
  15890. return 'symbol';
  15891. }
  15892. return propType;
  15893. }
  15894. // This handles more types than `getPropType`. Only used for error messages.
  15895. // See `createPrimitiveTypeChecker`.
  15896. function getPreciseType(propValue) {
  15897. if (typeof propValue === 'undefined' || propValue === null) {
  15898. return '' + propValue;
  15899. }
  15900. var propType = getPropType(propValue);
  15901. if (propType === 'object') {
  15902. if (propValue instanceof Date) {
  15903. return 'date';
  15904. } else if (propValue instanceof RegExp) {
  15905. return 'regexp';
  15906. }
  15907. }
  15908. return propType;
  15909. }
  15910. // Returns a string that is postfixed to a warning about an invalid type.
  15911. // For example, "undefined" or "of type array"
  15912. function getPostfixForTypeWarning(value) {
  15913. var type = getPreciseType(value);
  15914. switch (type) {
  15915. case 'array':
  15916. case 'object':
  15917. return 'an ' + type;
  15918. case 'boolean':
  15919. case 'date':
  15920. case 'regexp':
  15921. return 'a ' + type;
  15922. default:
  15923. return type;
  15924. }
  15925. }
  15926. // Returns class name of the object, if any.
  15927. function getClassName(propValue) {
  15928. if (!propValue.constructor || !propValue.constructor.name) {
  15929. return ANONYMOUS;
  15930. }
  15931. return propValue.constructor.name;
  15932. }
  15933. ReactPropTypes.checkPropTypes = checkPropTypes;
  15934. ReactPropTypes.PropTypes = ReactPropTypes;
  15935. return ReactPropTypes;
  15936. };
  15937. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15938. /***/ }),
  15939. /* 141 */
  15940. /***/ (function(module, exports, __webpack_require__) {
  15941. "use strict";
  15942. /* WEBPACK VAR INJECTION */(function(process) {/**
  15943. * Copyright 2013-present, Facebook, Inc.
  15944. * All rights reserved.
  15945. *
  15946. * This source code is licensed under the BSD-style license found in the
  15947. * LICENSE file in the root directory of this source tree. An additional grant
  15948. * of patent rights can be found in the PATENTS file in the same directory.
  15949. */
  15950. if (process.env.NODE_ENV !== 'production') {
  15951. var invariant = __webpack_require__(1);
  15952. var warning = __webpack_require__(2);
  15953. var ReactPropTypesSecret = __webpack_require__(69);
  15954. var loggedTypeFailures = {};
  15955. }
  15956. /**
  15957. * Assert that the values match with the type specs.
  15958. * Error messages are memorized and will only be shown once.
  15959. *
  15960. * @param {object} typeSpecs Map of name to a ReactPropType
  15961. * @param {object} values Runtime values that need to be type-checked
  15962. * @param {string} location e.g. "prop", "context", "child context"
  15963. * @param {string} componentName Name of the component for error messages.
  15964. * @param {?Function} getStack Returns the component stack.
  15965. * @private
  15966. */
  15967. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  15968. if (process.env.NODE_ENV !== 'production') {
  15969. for (var typeSpecName in typeSpecs) {
  15970. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  15971. var error;
  15972. // Prop type validation may throw. In case they do, we don't want to
  15973. // fail the render phase where it didn't fail before. So we log it.
  15974. // After these have been cleaned up, we'll let them throw.
  15975. try {
  15976. // This is intentionally an invariant that gets caught. It's the same
  15977. // behavior as without this statement except with a better message.
  15978. invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
  15979. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  15980. } catch (ex) {
  15981. error = ex;
  15982. }
  15983. warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
  15984. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  15985. // Only monitor this failure once because there tends to be a lot of the
  15986. // same error.
  15987. loggedTypeFailures[error.message] = true;
  15988. var stack = getStack ? getStack() : '';
  15989. warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
  15990. }
  15991. }
  15992. }
  15993. }
  15994. }
  15995. module.exports = checkPropTypes;
  15996. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15997. /***/ }),
  15998. /* 142 */
  15999. /***/ (function(module, exports, __webpack_require__) {
  16000. "use strict";
  16001. /* WEBPACK VAR INJECTION */(function(process) {/**
  16002. * Copyright 2013-present, Facebook, Inc.
  16003. * All rights reserved.
  16004. *
  16005. * This source code is licensed under the BSD-style license found in the
  16006. * LICENSE file in the root directory of this source tree. An additional grant
  16007. * of patent rights can be found in the PATENTS file in the same directory.
  16008. *
  16009. */
  16010. var _assign = __webpack_require__(4);
  16011. var React = __webpack_require__(17);
  16012. var ReactDOMComponentTree = __webpack_require__(5);
  16013. var ReactDOMSelect = __webpack_require__(70);
  16014. var warning = __webpack_require__(2);
  16015. var didWarnInvalidOptionChildren = false;
  16016. function flattenChildren(children) {
  16017. var content = '';
  16018. // Flatten children and warn if they aren't strings or numbers;
  16019. // invalid types are ignored.
  16020. React.Children.forEach(children, function (child) {
  16021. if (child == null) {
  16022. return;
  16023. }
  16024. if (typeof child === 'string' || typeof child === 'number') {
  16025. content += child;
  16026. } else if (!didWarnInvalidOptionChildren) {
  16027. didWarnInvalidOptionChildren = true;
  16028. process.env.NODE_ENV !== 'production' ? warning(false, 'Only strings and numbers are supported as <option> children.') : void 0;
  16029. }
  16030. });
  16031. return content;
  16032. }
  16033. /**
  16034. * Implements an <option> host component that warns when `selected` is set.
  16035. */
  16036. var ReactDOMOption = {
  16037. mountWrapper: function (inst, props, hostParent) {
  16038. // TODO (yungsters): Remove support for `selected` in <option>.
  16039. if (process.env.NODE_ENV !== 'production') {
  16040. process.env.NODE_ENV !== 'production' ? warning(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.') : void 0;
  16041. }
  16042. // Look up whether this option is 'selected'
  16043. var selectValue = null;
  16044. if (hostParent != null) {
  16045. var selectParent = hostParent;
  16046. if (selectParent._tag === 'optgroup') {
  16047. selectParent = selectParent._hostParent;
  16048. }
  16049. if (selectParent != null && selectParent._tag === 'select') {
  16050. selectValue = ReactDOMSelect.getSelectValueContext(selectParent);
  16051. }
  16052. }
  16053. // If the value is null (e.g., no specified value or after initial mount)
  16054. // or missing (e.g., for <datalist>), we don't change props.selected
  16055. var selected = null;
  16056. if (selectValue != null) {
  16057. var value;
  16058. if (props.value != null) {
  16059. value = props.value + '';
  16060. } else {
  16061. value = flattenChildren(props.children);
  16062. }
  16063. selected = false;
  16064. if (Array.isArray(selectValue)) {
  16065. // multiple
  16066. for (var i = 0; i < selectValue.length; i++) {
  16067. if ('' + selectValue[i] === value) {
  16068. selected = true;
  16069. break;
  16070. }
  16071. }
  16072. } else {
  16073. selected = '' + selectValue === value;
  16074. }
  16075. }
  16076. inst._wrapperState = { selected: selected };
  16077. },
  16078. postMountWrapper: function (inst) {
  16079. // value="" should make a value attribute (#6219)
  16080. var props = inst._currentElement.props;
  16081. if (props.value != null) {
  16082. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16083. node.setAttribute('value', props.value);
  16084. }
  16085. },
  16086. getHostProps: function (inst, props) {
  16087. var hostProps = _assign({ selected: undefined, children: undefined }, props);
  16088. // Read state only from initial mount because <select> updates value
  16089. // manually; we need the initial state only for server rendering
  16090. if (inst._wrapperState.selected != null) {
  16091. hostProps.selected = inst._wrapperState.selected;
  16092. }
  16093. var content = flattenChildren(props.children);
  16094. if (content) {
  16095. hostProps.children = content;
  16096. }
  16097. return hostProps;
  16098. }
  16099. };
  16100. module.exports = ReactDOMOption;
  16101. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16102. /***/ }),
  16103. /* 143 */
  16104. /***/ (function(module, exports, __webpack_require__) {
  16105. "use strict";
  16106. /* WEBPACK VAR INJECTION */(function(process) {/**
  16107. * Copyright 2013-present, Facebook, Inc.
  16108. * All rights reserved.
  16109. *
  16110. * This source code is licensed under the BSD-style license found in the
  16111. * LICENSE file in the root directory of this source tree. An additional grant
  16112. * of patent rights can be found in the PATENTS file in the same directory.
  16113. *
  16114. */
  16115. var _prodInvariant = __webpack_require__(3),
  16116. _assign = __webpack_require__(4);
  16117. var LinkedValueUtils = __webpack_require__(43);
  16118. var ReactDOMComponentTree = __webpack_require__(5);
  16119. var ReactUpdates = __webpack_require__(11);
  16120. var invariant = __webpack_require__(1);
  16121. var warning = __webpack_require__(2);
  16122. var didWarnValueLink = false;
  16123. var didWarnValDefaultVal = false;
  16124. function forceUpdateIfMounted() {
  16125. if (this._rootNodeID) {
  16126. // DOM component is still mounted; update
  16127. ReactDOMTextarea.updateWrapper(this);
  16128. }
  16129. }
  16130. /**
  16131. * Implements a <textarea> host component that allows setting `value`, and
  16132. * `defaultValue`. This differs from the traditional DOM API because value is
  16133. * usually set as PCDATA children.
  16134. *
  16135. * If `value` is not supplied (or null/undefined), user actions that affect the
  16136. * value will trigger updates to the element.
  16137. *
  16138. * If `value` is supplied (and not null/undefined), the rendered element will
  16139. * not trigger updates to the element. Instead, the `value` prop must change in
  16140. * order for the rendered element to be updated.
  16141. *
  16142. * The rendered element will be initialized with an empty value, the prop
  16143. * `defaultValue` if specified, or the children content (deprecated).
  16144. */
  16145. var ReactDOMTextarea = {
  16146. getHostProps: function (inst, props) {
  16147. !(props.dangerouslySetInnerHTML == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : _prodInvariant('91') : void 0;
  16148. // Always set children to the same thing. In IE9, the selection range will
  16149. // get reset if `textContent` is mutated. We could add a check in setTextContent
  16150. // to only set the value if/when the value differs from the node value (which would
  16151. // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution.
  16152. // The value can be a boolean or object so that's why it's forced to be a string.
  16153. var hostProps = _assign({}, props, {
  16154. value: undefined,
  16155. defaultValue: undefined,
  16156. children: '' + inst._wrapperState.initialValue,
  16157. onChange: inst._wrapperState.onChange
  16158. });
  16159. return hostProps;
  16160. },
  16161. mountWrapper: function (inst, props) {
  16162. if (process.env.NODE_ENV !== 'production') {
  16163. LinkedValueUtils.checkPropTypes('textarea', props, inst._currentElement._owner);
  16164. if (props.valueLink !== undefined && !didWarnValueLink) {
  16165. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead.') : void 0;
  16166. didWarnValueLink = true;
  16167. }
  16168. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  16169. process.env.NODE_ENV !== 'production' ? warning(false, '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') : void 0;
  16170. didWarnValDefaultVal = true;
  16171. }
  16172. }
  16173. var value = LinkedValueUtils.getValue(props);
  16174. var initialValue = value;
  16175. // Only bother fetching default value if we're going to use it
  16176. if (value == null) {
  16177. var defaultValue = props.defaultValue;
  16178. // TODO (yungsters): Remove support for children content in <textarea>.
  16179. var children = props.children;
  16180. if (children != null) {
  16181. if (process.env.NODE_ENV !== 'production') {
  16182. process.env.NODE_ENV !== 'production' ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : void 0;
  16183. }
  16184. !(defaultValue == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : _prodInvariant('92') : void 0;
  16185. if (Array.isArray(children)) {
  16186. !(children.length <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, '<textarea> can only have at most one child.') : _prodInvariant('93') : void 0;
  16187. children = children[0];
  16188. }
  16189. defaultValue = '' + children;
  16190. }
  16191. if (defaultValue == null) {
  16192. defaultValue = '';
  16193. }
  16194. initialValue = defaultValue;
  16195. }
  16196. inst._wrapperState = {
  16197. initialValue: '' + initialValue,
  16198. listeners: null,
  16199. onChange: _handleChange.bind(inst)
  16200. };
  16201. },
  16202. updateWrapper: function (inst) {
  16203. var props = inst._currentElement.props;
  16204. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16205. var value = LinkedValueUtils.getValue(props);
  16206. if (value != null) {
  16207. // Cast `value` to a string to ensure the value is set correctly. While
  16208. // browsers typically do this as necessary, jsdom doesn't.
  16209. var newValue = '' + value;
  16210. // To avoid side effects (such as losing text selection), only set value if changed
  16211. if (newValue !== node.value) {
  16212. node.value = newValue;
  16213. }
  16214. if (props.defaultValue == null) {
  16215. node.defaultValue = newValue;
  16216. }
  16217. }
  16218. if (props.defaultValue != null) {
  16219. node.defaultValue = props.defaultValue;
  16220. }
  16221. },
  16222. postMountWrapper: function (inst) {
  16223. // This is in postMount because we need access to the DOM node, which is not
  16224. // available until after the component has mounted.
  16225. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16226. var textContent = node.textContent;
  16227. // Only set node.value if textContent is equal to the expected
  16228. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  16229. // will populate textContent as well.
  16230. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  16231. if (textContent === inst._wrapperState.initialValue) {
  16232. node.value = textContent;
  16233. }
  16234. }
  16235. };
  16236. function _handleChange(event) {
  16237. var props = this._currentElement.props;
  16238. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  16239. ReactUpdates.asap(forceUpdateIfMounted, this);
  16240. return returnValue;
  16241. }
  16242. module.exports = ReactDOMTextarea;
  16243. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16244. /***/ }),
  16245. /* 144 */
  16246. /***/ (function(module, exports, __webpack_require__) {
  16247. "use strict";
  16248. /* WEBPACK VAR INJECTION */(function(process) {/**
  16249. * Copyright 2013-present, Facebook, Inc.
  16250. * All rights reserved.
  16251. *
  16252. * This source code is licensed under the BSD-style license found in the
  16253. * LICENSE file in the root directory of this source tree. An additional grant
  16254. * of patent rights can be found in the PATENTS file in the same directory.
  16255. *
  16256. */
  16257. var _prodInvariant = __webpack_require__(3);
  16258. var ReactComponentEnvironment = __webpack_require__(44);
  16259. var ReactInstanceMap = __webpack_require__(24);
  16260. var ReactInstrumentation = __webpack_require__(9);
  16261. var ReactCurrentOwner = __webpack_require__(10);
  16262. var ReactReconciler = __webpack_require__(18);
  16263. var ReactChildReconciler = __webpack_require__(145);
  16264. var emptyFunction = __webpack_require__(8);
  16265. var flattenChildren = __webpack_require__(152);
  16266. var invariant = __webpack_require__(1);
  16267. /**
  16268. * Make an update for markup to be rendered and inserted at a supplied index.
  16269. *
  16270. * @param {string} markup Markup that renders into an element.
  16271. * @param {number} toIndex Destination index.
  16272. * @private
  16273. */
  16274. function makeInsertMarkup(markup, afterNode, toIndex) {
  16275. // NOTE: Null values reduce hidden classes.
  16276. return {
  16277. type: 'INSERT_MARKUP',
  16278. content: markup,
  16279. fromIndex: null,
  16280. fromNode: null,
  16281. toIndex: toIndex,
  16282. afterNode: afterNode
  16283. };
  16284. }
  16285. /**
  16286. * Make an update for moving an existing element to another index.
  16287. *
  16288. * @param {number} fromIndex Source index of the existing element.
  16289. * @param {number} toIndex Destination index of the element.
  16290. * @private
  16291. */
  16292. function makeMove(child, afterNode, toIndex) {
  16293. // NOTE: Null values reduce hidden classes.
  16294. return {
  16295. type: 'MOVE_EXISTING',
  16296. content: null,
  16297. fromIndex: child._mountIndex,
  16298. fromNode: ReactReconciler.getHostNode(child),
  16299. toIndex: toIndex,
  16300. afterNode: afterNode
  16301. };
  16302. }
  16303. /**
  16304. * Make an update for removing an element at an index.
  16305. *
  16306. * @param {number} fromIndex Index of the element to remove.
  16307. * @private
  16308. */
  16309. function makeRemove(child, node) {
  16310. // NOTE: Null values reduce hidden classes.
  16311. return {
  16312. type: 'REMOVE_NODE',
  16313. content: null,
  16314. fromIndex: child._mountIndex,
  16315. fromNode: node,
  16316. toIndex: null,
  16317. afterNode: null
  16318. };
  16319. }
  16320. /**
  16321. * Make an update for setting the markup of a node.
  16322. *
  16323. * @param {string} markup Markup that renders into an element.
  16324. * @private
  16325. */
  16326. function makeSetMarkup(markup) {
  16327. // NOTE: Null values reduce hidden classes.
  16328. return {
  16329. type: 'SET_MARKUP',
  16330. content: markup,
  16331. fromIndex: null,
  16332. fromNode: null,
  16333. toIndex: null,
  16334. afterNode: null
  16335. };
  16336. }
  16337. /**
  16338. * Make an update for setting the text content.
  16339. *
  16340. * @param {string} textContent Text content to set.
  16341. * @private
  16342. */
  16343. function makeTextContent(textContent) {
  16344. // NOTE: Null values reduce hidden classes.
  16345. return {
  16346. type: 'TEXT_CONTENT',
  16347. content: textContent,
  16348. fromIndex: null,
  16349. fromNode: null,
  16350. toIndex: null,
  16351. afterNode: null
  16352. };
  16353. }
  16354. /**
  16355. * Push an update, if any, onto the queue. Creates a new queue if none is
  16356. * passed and always returns the queue. Mutative.
  16357. */
  16358. function enqueue(queue, update) {
  16359. if (update) {
  16360. queue = queue || [];
  16361. queue.push(update);
  16362. }
  16363. return queue;
  16364. }
  16365. /**
  16366. * Processes any enqueued updates.
  16367. *
  16368. * @private
  16369. */
  16370. function processQueue(inst, updateQueue) {
  16371. ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue);
  16372. }
  16373. var setChildrenForInstrumentation = emptyFunction;
  16374. if (process.env.NODE_ENV !== 'production') {
  16375. var getDebugID = function (inst) {
  16376. if (!inst._debugID) {
  16377. // Check for ART-like instances. TODO: This is silly/gross.
  16378. var internal;
  16379. if (internal = ReactInstanceMap.get(inst)) {
  16380. inst = internal;
  16381. }
  16382. }
  16383. return inst._debugID;
  16384. };
  16385. setChildrenForInstrumentation = function (children) {
  16386. var debugID = getDebugID(this);
  16387. // TODO: React Native empty components are also multichild.
  16388. // This means they still get into this method but don't have _debugID.
  16389. if (debugID !== 0) {
  16390. ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function (key) {
  16391. return children[key]._debugID;
  16392. }) : []);
  16393. }
  16394. };
  16395. }
  16396. /**
  16397. * ReactMultiChild are capable of reconciling multiple children.
  16398. *
  16399. * @class ReactMultiChild
  16400. * @internal
  16401. */
  16402. var ReactMultiChild = {
  16403. /**
  16404. * Provides common functionality for components that must reconcile multiple
  16405. * children. This is used by `ReactDOMComponent` to mount, update, and
  16406. * unmount child components.
  16407. *
  16408. * @lends {ReactMultiChild.prototype}
  16409. */
  16410. Mixin: {
  16411. _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) {
  16412. if (process.env.NODE_ENV !== 'production') {
  16413. var selfDebugID = getDebugID(this);
  16414. if (this._currentElement) {
  16415. try {
  16416. ReactCurrentOwner.current = this._currentElement._owner;
  16417. return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID);
  16418. } finally {
  16419. ReactCurrentOwner.current = null;
  16420. }
  16421. }
  16422. }
  16423. return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context);
  16424. },
  16425. _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) {
  16426. var nextChildren;
  16427. var selfDebugID = 0;
  16428. if (process.env.NODE_ENV !== 'production') {
  16429. selfDebugID = getDebugID(this);
  16430. if (this._currentElement) {
  16431. try {
  16432. ReactCurrentOwner.current = this._currentElement._owner;
  16433. nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
  16434. } finally {
  16435. ReactCurrentOwner.current = null;
  16436. }
  16437. ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16438. return nextChildren;
  16439. }
  16440. }
  16441. nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
  16442. ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16443. return nextChildren;
  16444. },
  16445. /**
  16446. * Generates a "mount image" for each of the supplied children. In the case
  16447. * of `ReactDOMComponent`, a mount image is a string of markup.
  16448. *
  16449. * @param {?object} nestedChildren Nested child maps.
  16450. * @return {array} An array of mounted representations.
  16451. * @internal
  16452. */
  16453. mountChildren: function (nestedChildren, transaction, context) {
  16454. var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context);
  16455. this._renderedChildren = children;
  16456. var mountImages = [];
  16457. var index = 0;
  16458. for (var name in children) {
  16459. if (children.hasOwnProperty(name)) {
  16460. var child = children[name];
  16461. var selfDebugID = 0;
  16462. if (process.env.NODE_ENV !== 'production') {
  16463. selfDebugID = getDebugID(this);
  16464. }
  16465. var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16466. child._mountIndex = index++;
  16467. mountImages.push(mountImage);
  16468. }
  16469. }
  16470. if (process.env.NODE_ENV !== 'production') {
  16471. setChildrenForInstrumentation.call(this, children);
  16472. }
  16473. return mountImages;
  16474. },
  16475. /**
  16476. * Replaces any rendered children with a text content string.
  16477. *
  16478. * @param {string} nextContent String of content.
  16479. * @internal
  16480. */
  16481. updateTextContent: function (nextContent) {
  16482. var prevChildren = this._renderedChildren;
  16483. // Remove any rendered children.
  16484. ReactChildReconciler.unmountChildren(prevChildren, false);
  16485. for (var name in prevChildren) {
  16486. if (prevChildren.hasOwnProperty(name)) {
  16487. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
  16488. }
  16489. }
  16490. // Set new text content.
  16491. var updates = [makeTextContent(nextContent)];
  16492. processQueue(this, updates);
  16493. },
  16494. /**
  16495. * Replaces any rendered children with a markup string.
  16496. *
  16497. * @param {string} nextMarkup String of markup.
  16498. * @internal
  16499. */
  16500. updateMarkup: function (nextMarkup) {
  16501. var prevChildren = this._renderedChildren;
  16502. // Remove any rendered children.
  16503. ReactChildReconciler.unmountChildren(prevChildren, false);
  16504. for (var name in prevChildren) {
  16505. if (prevChildren.hasOwnProperty(name)) {
  16506. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
  16507. }
  16508. }
  16509. var updates = [makeSetMarkup(nextMarkup)];
  16510. processQueue(this, updates);
  16511. },
  16512. /**
  16513. * Updates the rendered children with new children.
  16514. *
  16515. * @param {?object} nextNestedChildrenElements Nested child element maps.
  16516. * @param {ReactReconcileTransaction} transaction
  16517. * @internal
  16518. */
  16519. updateChildren: function (nextNestedChildrenElements, transaction, context) {
  16520. // Hook used by React ART
  16521. this._updateChildren(nextNestedChildrenElements, transaction, context);
  16522. },
  16523. /**
  16524. * @param {?object} nextNestedChildrenElements Nested child element maps.
  16525. * @param {ReactReconcileTransaction} transaction
  16526. * @final
  16527. * @protected
  16528. */
  16529. _updateChildren: function (nextNestedChildrenElements, transaction, context) {
  16530. var prevChildren = this._renderedChildren;
  16531. var removedNodes = {};
  16532. var mountImages = [];
  16533. var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context);
  16534. if (!nextChildren && !prevChildren) {
  16535. return;
  16536. }
  16537. var updates = null;
  16538. var name;
  16539. // `nextIndex` will increment for each child in `nextChildren`, but
  16540. // `lastIndex` will be the last index visited in `prevChildren`.
  16541. var nextIndex = 0;
  16542. var lastIndex = 0;
  16543. // `nextMountIndex` will increment for each newly mounted child.
  16544. var nextMountIndex = 0;
  16545. var lastPlacedNode = null;
  16546. for (name in nextChildren) {
  16547. if (!nextChildren.hasOwnProperty(name)) {
  16548. continue;
  16549. }
  16550. var prevChild = prevChildren && prevChildren[name];
  16551. var nextChild = nextChildren[name];
  16552. if (prevChild === nextChild) {
  16553. updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex));
  16554. lastIndex = Math.max(prevChild._mountIndex, lastIndex);
  16555. prevChild._mountIndex = nextIndex;
  16556. } else {
  16557. if (prevChild) {
  16558. // Update `lastIndex` before `_mountIndex` gets unset by unmounting.
  16559. lastIndex = Math.max(prevChild._mountIndex, lastIndex);
  16560. // The `removedNodes` loop below will actually remove the child.
  16561. }
  16562. // The child must be instantiated before it's mounted.
  16563. updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context));
  16564. nextMountIndex++;
  16565. }
  16566. nextIndex++;
  16567. lastPlacedNode = ReactReconciler.getHostNode(nextChild);
  16568. }
  16569. // Remove children that are no longer present.
  16570. for (name in removedNodes) {
  16571. if (removedNodes.hasOwnProperty(name)) {
  16572. updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name]));
  16573. }
  16574. }
  16575. if (updates) {
  16576. processQueue(this, updates);
  16577. }
  16578. this._renderedChildren = nextChildren;
  16579. if (process.env.NODE_ENV !== 'production') {
  16580. setChildrenForInstrumentation.call(this, nextChildren);
  16581. }
  16582. },
  16583. /**
  16584. * Unmounts all rendered children. This should be used to clean up children
  16585. * when this component is unmounted. It does not actually perform any
  16586. * backend operations.
  16587. *
  16588. * @internal
  16589. */
  16590. unmountChildren: function (safely) {
  16591. var renderedChildren = this._renderedChildren;
  16592. ReactChildReconciler.unmountChildren(renderedChildren, safely);
  16593. this._renderedChildren = null;
  16594. },
  16595. /**
  16596. * Moves a child component to the supplied index.
  16597. *
  16598. * @param {ReactComponent} child Component to move.
  16599. * @param {number} toIndex Destination index of the element.
  16600. * @param {number} lastIndex Last index visited of the siblings of `child`.
  16601. * @protected
  16602. */
  16603. moveChild: function (child, afterNode, toIndex, lastIndex) {
  16604. // If the index of `child` is less than `lastIndex`, then it needs to
  16605. // be moved. Otherwise, we do not need to move it because a child will be
  16606. // inserted or moved before `child`.
  16607. if (child._mountIndex < lastIndex) {
  16608. return makeMove(child, afterNode, toIndex);
  16609. }
  16610. },
  16611. /**
  16612. * Creates a child component.
  16613. *
  16614. * @param {ReactComponent} child Component to create.
  16615. * @param {string} mountImage Markup to insert.
  16616. * @protected
  16617. */
  16618. createChild: function (child, afterNode, mountImage) {
  16619. return makeInsertMarkup(mountImage, afterNode, child._mountIndex);
  16620. },
  16621. /**
  16622. * Removes a child component.
  16623. *
  16624. * @param {ReactComponent} child Child to remove.
  16625. * @protected
  16626. */
  16627. removeChild: function (child, node) {
  16628. return makeRemove(child, node);
  16629. },
  16630. /**
  16631. * Mounts a child with the supplied name.
  16632. *
  16633. * NOTE: This is part of `updateChildren` and is here for readability.
  16634. *
  16635. * @param {ReactComponent} child Component to mount.
  16636. * @param {string} name Name of the child.
  16637. * @param {number} index Index at which to insert the child.
  16638. * @param {ReactReconcileTransaction} transaction
  16639. * @private
  16640. */
  16641. _mountChildAtIndex: function (child, mountImage, afterNode, index, transaction, context) {
  16642. child._mountIndex = index;
  16643. return this.createChild(child, afterNode, mountImage);
  16644. },
  16645. /**
  16646. * Unmounts a rendered child.
  16647. *
  16648. * NOTE: This is part of `updateChildren` and is here for readability.
  16649. *
  16650. * @param {ReactComponent} child Component to unmount.
  16651. * @private
  16652. */
  16653. _unmountChild: function (child, node) {
  16654. var update = this.removeChild(child, node);
  16655. child._mountIndex = null;
  16656. return update;
  16657. }
  16658. }
  16659. };
  16660. module.exports = ReactMultiChild;
  16661. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16662. /***/ }),
  16663. /* 145 */
  16664. /***/ (function(module, exports, __webpack_require__) {
  16665. "use strict";
  16666. /* WEBPACK VAR INJECTION */(function(process) {/**
  16667. * Copyright 2014-present, Facebook, Inc.
  16668. * All rights reserved.
  16669. *
  16670. * This source code is licensed under the BSD-style license found in the
  16671. * LICENSE file in the root directory of this source tree. An additional grant
  16672. * of patent rights can be found in the PATENTS file in the same directory.
  16673. *
  16674. */
  16675. var ReactReconciler = __webpack_require__(18);
  16676. var instantiateReactComponent = __webpack_require__(71);
  16677. var KeyEscapeUtils = __webpack_require__(47);
  16678. var shouldUpdateReactComponent = __webpack_require__(46);
  16679. var traverseAllChildren = __webpack_require__(75);
  16680. var warning = __webpack_require__(2);
  16681. var ReactComponentTreeHook;
  16682. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  16683. // Temporary hack.
  16684. // Inline requires don't work well with Jest:
  16685. // https://github.com/facebook/react/issues/7240
  16686. // Remove the inline requires when we don't need them anymore:
  16687. // https://github.com/facebook/react/pull/7178
  16688. ReactComponentTreeHook = __webpack_require__(7);
  16689. }
  16690. function instantiateChild(childInstances, child, name, selfDebugID) {
  16691. // We found a component instance.
  16692. var keyUnique = childInstances[name] === undefined;
  16693. if (process.env.NODE_ENV !== 'production') {
  16694. if (!ReactComponentTreeHook) {
  16695. ReactComponentTreeHook = __webpack_require__(7);
  16696. }
  16697. if (!keyUnique) {
  16698. process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
  16699. }
  16700. }
  16701. if (child != null && keyUnique) {
  16702. childInstances[name] = instantiateReactComponent(child, true);
  16703. }
  16704. }
  16705. /**
  16706. * ReactChildReconciler provides helpers for initializing or updating a set of
  16707. * children. Its output is suitable for passing it onto ReactMultiChild which
  16708. * does diffed reordering and insertion.
  16709. */
  16710. var ReactChildReconciler = {
  16711. /**
  16712. * Generates a "mount image" for each of the supplied children. In the case
  16713. * of `ReactDOMComponent`, a mount image is a string of markup.
  16714. *
  16715. * @param {?object} nestedChildNodes Nested child maps.
  16716. * @return {?object} A set of child instances.
  16717. * @internal
  16718. */
  16719. instantiateChildren: function (nestedChildNodes, transaction, context, selfDebugID // 0 in production and for roots
  16720. ) {
  16721. if (nestedChildNodes == null) {
  16722. return null;
  16723. }
  16724. var childInstances = {};
  16725. if (process.env.NODE_ENV !== 'production') {
  16726. traverseAllChildren(nestedChildNodes, function (childInsts, child, name) {
  16727. return instantiateChild(childInsts, child, name, selfDebugID);
  16728. }, childInstances);
  16729. } else {
  16730. traverseAllChildren(nestedChildNodes, instantiateChild, childInstances);
  16731. }
  16732. return childInstances;
  16733. },
  16734. /**
  16735. * Updates the rendered children and returns a new set of children.
  16736. *
  16737. * @param {?object} prevChildren Previously initialized set of children.
  16738. * @param {?object} nextChildren Flat child element maps.
  16739. * @param {ReactReconcileTransaction} transaction
  16740. * @param {object} context
  16741. * @return {?object} A new set of child instances.
  16742. * @internal
  16743. */
  16744. updateChildren: function (prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID // 0 in production and for roots
  16745. ) {
  16746. // We currently don't have a way to track moves here but if we use iterators
  16747. // instead of for..in we can zip the iterators and check if an item has
  16748. // moved.
  16749. // TODO: If nothing has changed, return the prevChildren object so that we
  16750. // can quickly bailout if nothing has changed.
  16751. if (!nextChildren && !prevChildren) {
  16752. return;
  16753. }
  16754. var name;
  16755. var prevChild;
  16756. for (name in nextChildren) {
  16757. if (!nextChildren.hasOwnProperty(name)) {
  16758. continue;
  16759. }
  16760. prevChild = prevChildren && prevChildren[name];
  16761. var prevElement = prevChild && prevChild._currentElement;
  16762. var nextElement = nextChildren[name];
  16763. if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) {
  16764. ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context);
  16765. nextChildren[name] = prevChild;
  16766. } else {
  16767. if (prevChild) {
  16768. removedNodes[name] = ReactReconciler.getHostNode(prevChild);
  16769. ReactReconciler.unmountComponent(prevChild, false);
  16770. }
  16771. // The child must be instantiated before it's mounted.
  16772. var nextChildInstance = instantiateReactComponent(nextElement, true);
  16773. nextChildren[name] = nextChildInstance;
  16774. // Creating mount image now ensures refs are resolved in right order
  16775. // (see https://github.com/facebook/react/pull/7101 for explanation).
  16776. var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID);
  16777. mountImages.push(nextChildMountImage);
  16778. }
  16779. }
  16780. // Unmount children that are no longer present.
  16781. for (name in prevChildren) {
  16782. if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) {
  16783. prevChild = prevChildren[name];
  16784. removedNodes[name] = ReactReconciler.getHostNode(prevChild);
  16785. ReactReconciler.unmountComponent(prevChild, false);
  16786. }
  16787. }
  16788. },
  16789. /**
  16790. * Unmounts all rendered children. This should be used to clean up children
  16791. * when this component is unmounted.
  16792. *
  16793. * @param {?object} renderedChildren Previously initialized set of children.
  16794. * @internal
  16795. */
  16796. unmountChildren: function (renderedChildren, safely) {
  16797. for (var name in renderedChildren) {
  16798. if (renderedChildren.hasOwnProperty(name)) {
  16799. var renderedChild = renderedChildren[name];
  16800. ReactReconciler.unmountComponent(renderedChild, safely);
  16801. }
  16802. }
  16803. }
  16804. };
  16805. module.exports = ReactChildReconciler;
  16806. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16807. /***/ }),
  16808. /* 146 */
  16809. /***/ (function(module, exports, __webpack_require__) {
  16810. "use strict";
  16811. /* WEBPACK VAR INJECTION */(function(process) {/**
  16812. * Copyright 2013-present, Facebook, Inc.
  16813. * All rights reserved.
  16814. *
  16815. * This source code is licensed under the BSD-style license found in the
  16816. * LICENSE file in the root directory of this source tree. An additional grant
  16817. * of patent rights can be found in the PATENTS file in the same directory.
  16818. *
  16819. */
  16820. var _prodInvariant = __webpack_require__(3),
  16821. _assign = __webpack_require__(4);
  16822. var React = __webpack_require__(17);
  16823. var ReactComponentEnvironment = __webpack_require__(44);
  16824. var ReactCurrentOwner = __webpack_require__(10);
  16825. var ReactErrorUtils = __webpack_require__(36);
  16826. var ReactInstanceMap = __webpack_require__(24);
  16827. var ReactInstrumentation = __webpack_require__(9);
  16828. var ReactNodeTypes = __webpack_require__(72);
  16829. var ReactReconciler = __webpack_require__(18);
  16830. if (process.env.NODE_ENV !== 'production') {
  16831. var checkReactTypeSpec = __webpack_require__(147);
  16832. }
  16833. var emptyObject = __webpack_require__(20);
  16834. var invariant = __webpack_require__(1);
  16835. var shallowEqual = __webpack_require__(45);
  16836. var shouldUpdateReactComponent = __webpack_require__(46);
  16837. var warning = __webpack_require__(2);
  16838. var CompositeTypes = {
  16839. ImpureClass: 0,
  16840. PureClass: 1,
  16841. StatelessFunctional: 2
  16842. };
  16843. function StatelessComponent(Component) {}
  16844. StatelessComponent.prototype.render = function () {
  16845. var Component = ReactInstanceMap.get(this)._currentElement.type;
  16846. var element = Component(this.props, this.context, this.updater);
  16847. warnIfInvalidElement(Component, element);
  16848. return element;
  16849. };
  16850. function warnIfInvalidElement(Component, element) {
  16851. if (process.env.NODE_ENV !== 'production') {
  16852. process.env.NODE_ENV !== 'production' ? warning(element === null || element === false || React.isValidElement(element), '%s(...): A valid React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0;
  16853. process.env.NODE_ENV !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0;
  16854. }
  16855. }
  16856. function shouldConstruct(Component) {
  16857. return !!(Component.prototype && Component.prototype.isReactComponent);
  16858. }
  16859. function isPureComponent(Component) {
  16860. return !!(Component.prototype && Component.prototype.isPureReactComponent);
  16861. }
  16862. // Separated into a function to contain deoptimizations caused by try/finally.
  16863. function measureLifeCyclePerf(fn, debugID, timerType) {
  16864. if (debugID === 0) {
  16865. // Top-level wrappers (see ReactMount) and empty components (see
  16866. // ReactDOMEmptyComponent) are invisible to hooks and devtools.
  16867. // Both are implementation details that should go away in the future.
  16868. return fn();
  16869. }
  16870. ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
  16871. try {
  16872. return fn();
  16873. } finally {
  16874. ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
  16875. }
  16876. }
  16877. /**
  16878. * ------------------ The Life-Cycle of a Composite Component ------------------
  16879. *
  16880. * - constructor: Initialization of state. The instance is now retained.
  16881. * - componentWillMount
  16882. * - render
  16883. * - [children's constructors]
  16884. * - [children's componentWillMount and render]
  16885. * - [children's componentDidMount]
  16886. * - componentDidMount
  16887. *
  16888. * Update Phases:
  16889. * - componentWillReceiveProps (only called if parent updated)
  16890. * - shouldComponentUpdate
  16891. * - componentWillUpdate
  16892. * - render
  16893. * - [children's constructors or receive props phases]
  16894. * - componentDidUpdate
  16895. *
  16896. * - componentWillUnmount
  16897. * - [children's componentWillUnmount]
  16898. * - [children destroyed]
  16899. * - (destroyed): The instance is now blank, released by React and ready for GC.
  16900. *
  16901. * -----------------------------------------------------------------------------
  16902. */
  16903. /**
  16904. * An incrementing ID assigned to each component when it is mounted. This is
  16905. * used to enforce the order in which `ReactUpdates` updates dirty components.
  16906. *
  16907. * @private
  16908. */
  16909. var nextMountID = 1;
  16910. /**
  16911. * @lends {ReactCompositeComponent.prototype}
  16912. */
  16913. var ReactCompositeComponent = {
  16914. /**
  16915. * Base constructor for all composite component.
  16916. *
  16917. * @param {ReactElement} element
  16918. * @final
  16919. * @internal
  16920. */
  16921. construct: function (element) {
  16922. this._currentElement = element;
  16923. this._rootNodeID = 0;
  16924. this._compositeType = null;
  16925. this._instance = null;
  16926. this._hostParent = null;
  16927. this._hostContainerInfo = null;
  16928. // See ReactUpdateQueue
  16929. this._updateBatchNumber = null;
  16930. this._pendingElement = null;
  16931. this._pendingStateQueue = null;
  16932. this._pendingReplaceState = false;
  16933. this._pendingForceUpdate = false;
  16934. this._renderedNodeType = null;
  16935. this._renderedComponent = null;
  16936. this._context = null;
  16937. this._mountOrder = 0;
  16938. this._topLevelWrapper = null;
  16939. // See ReactUpdates and ReactUpdateQueue.
  16940. this._pendingCallbacks = null;
  16941. // ComponentWillUnmount shall only be called once
  16942. this._calledComponentWillUnmount = false;
  16943. if (process.env.NODE_ENV !== 'production') {
  16944. this._warnedAboutRefsInRender = false;
  16945. }
  16946. },
  16947. /**
  16948. * Initializes the component, renders markup, and registers event listeners.
  16949. *
  16950. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  16951. * @param {?object} hostParent
  16952. * @param {?object} hostContainerInfo
  16953. * @param {?object} context
  16954. * @return {?string} Rendered markup to be inserted into the DOM.
  16955. * @final
  16956. * @internal
  16957. */
  16958. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  16959. var _this = this;
  16960. this._context = context;
  16961. this._mountOrder = nextMountID++;
  16962. this._hostParent = hostParent;
  16963. this._hostContainerInfo = hostContainerInfo;
  16964. var publicProps = this._currentElement.props;
  16965. var publicContext = this._processContext(context);
  16966. var Component = this._currentElement.type;
  16967. var updateQueue = transaction.getUpdateQueue();
  16968. // Initialize the public class
  16969. var doConstruct = shouldConstruct(Component);
  16970. var inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue);
  16971. var renderedElement;
  16972. // Support functional components
  16973. if (!doConstruct && (inst == null || inst.render == null)) {
  16974. renderedElement = inst;
  16975. warnIfInvalidElement(Component, renderedElement);
  16976. !(inst === null || inst === false || React.isValidElement(inst)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0;
  16977. inst = new StatelessComponent(Component);
  16978. this._compositeType = CompositeTypes.StatelessFunctional;
  16979. } else {
  16980. if (isPureComponent(Component)) {
  16981. this._compositeType = CompositeTypes.PureClass;
  16982. } else {
  16983. this._compositeType = CompositeTypes.ImpureClass;
  16984. }
  16985. }
  16986. if (process.env.NODE_ENV !== 'production') {
  16987. // This will throw later in _renderValidatedComponent, but add an early
  16988. // warning now to help debugging
  16989. if (inst.render == null) {
  16990. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', Component.displayName || Component.name || 'Component') : void 0;
  16991. }
  16992. var propsMutated = inst.props !== publicProps;
  16993. var componentName = Component.displayName || Component.name || 'Component';
  16994. process.env.NODE_ENV !== 'production' ? warning(inst.props === undefined || !propsMutated, '%s(...): When calling super() in `%s`, make sure to pass ' + 'up the same props that your component\'s constructor was passed.', componentName, componentName) : void 0;
  16995. }
  16996. // These should be set up in the constructor, but as a convenience for
  16997. // simpler class abstractions, we set them up after the fact.
  16998. inst.props = publicProps;
  16999. inst.context = publicContext;
  17000. inst.refs = emptyObject;
  17001. inst.updater = updateQueue;
  17002. this._instance = inst;
  17003. // Store a reference from the instance back to the internal representation
  17004. ReactInstanceMap.set(inst, this);
  17005. if (process.env.NODE_ENV !== 'production') {
  17006. // Since plain JS classes are defined without any special initialization
  17007. // logic, we can not catch common errors early. Therefore, we have to
  17008. // catch them here, at initialization time, instead.
  17009. process.env.NODE_ENV !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, '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?', this.getName() || 'a component') : void 0;
  17010. process.env.NODE_ENV !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, '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.', this.getName() || 'a component') : void 0;
  17011. process.env.NODE_ENV !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0;
  17012. process.env.NODE_ENV !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0;
  17013. process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentShouldUpdate !== 'function', '%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.', this.getName() || 'A component') : void 0;
  17014. process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentDidUnmount !== 'function', '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', this.getName() || 'A component') : void 0;
  17015. process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentWillRecieveProps !== 'function', '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', this.getName() || 'A component') : void 0;
  17016. }
  17017. var initialState = inst.state;
  17018. if (initialState === undefined) {
  17019. inst.state = initialState = null;
  17020. }
  17021. !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.state: must be set to an object or null', this.getName() || 'ReactCompositeComponent') : _prodInvariant('106', this.getName() || 'ReactCompositeComponent') : void 0;
  17022. this._pendingStateQueue = null;
  17023. this._pendingReplaceState = false;
  17024. this._pendingForceUpdate = false;
  17025. var markup;
  17026. if (inst.unstable_handleError) {
  17027. markup = this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17028. } else {
  17029. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17030. }
  17031. if (inst.componentDidMount) {
  17032. if (process.env.NODE_ENV !== 'production') {
  17033. transaction.getReactMountReady().enqueue(function () {
  17034. measureLifeCyclePerf(function () {
  17035. return inst.componentDidMount();
  17036. }, _this._debugID, 'componentDidMount');
  17037. });
  17038. } else {
  17039. transaction.getReactMountReady().enqueue(inst.componentDidMount, inst);
  17040. }
  17041. }
  17042. return markup;
  17043. },
  17044. _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {
  17045. if (process.env.NODE_ENV !== 'production') {
  17046. ReactCurrentOwner.current = this;
  17047. try {
  17048. return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
  17049. } finally {
  17050. ReactCurrentOwner.current = null;
  17051. }
  17052. } else {
  17053. return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
  17054. }
  17055. },
  17056. _constructComponentWithoutOwner: function (doConstruct, publicProps, publicContext, updateQueue) {
  17057. var Component = this._currentElement.type;
  17058. if (doConstruct) {
  17059. if (process.env.NODE_ENV !== 'production') {
  17060. return measureLifeCyclePerf(function () {
  17061. return new Component(publicProps, publicContext, updateQueue);
  17062. }, this._debugID, 'ctor');
  17063. } else {
  17064. return new Component(publicProps, publicContext, updateQueue);
  17065. }
  17066. }
  17067. // This can still be an instance in case of factory components
  17068. // but we'll count this as time spent rendering as the more common case.
  17069. if (process.env.NODE_ENV !== 'production') {
  17070. return measureLifeCyclePerf(function () {
  17071. return Component(publicProps, publicContext, updateQueue);
  17072. }, this._debugID, 'render');
  17073. } else {
  17074. return Component(publicProps, publicContext, updateQueue);
  17075. }
  17076. },
  17077. performInitialMountWithErrorHandling: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
  17078. var markup;
  17079. var checkpoint = transaction.checkpoint();
  17080. try {
  17081. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17082. } catch (e) {
  17083. // Roll back to checkpoint, handle error (which may add items to the transaction), and take a new checkpoint
  17084. transaction.rollback(checkpoint);
  17085. this._instance.unstable_handleError(e);
  17086. if (this._pendingStateQueue) {
  17087. this._instance.state = this._processPendingState(this._instance.props, this._instance.context);
  17088. }
  17089. checkpoint = transaction.checkpoint();
  17090. this._renderedComponent.unmountComponent(true);
  17091. transaction.rollback(checkpoint);
  17092. // Try again - we've informed the component about the error, so they can render an error message this time.
  17093. // If this throws again, the error will bubble up (and can be caught by a higher error boundary).
  17094. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17095. }
  17096. return markup;
  17097. },
  17098. performInitialMount: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
  17099. var inst = this._instance;
  17100. var debugID = 0;
  17101. if (process.env.NODE_ENV !== 'production') {
  17102. debugID = this._debugID;
  17103. }
  17104. if (inst.componentWillMount) {
  17105. if (process.env.NODE_ENV !== 'production') {
  17106. measureLifeCyclePerf(function () {
  17107. return inst.componentWillMount();
  17108. }, debugID, 'componentWillMount');
  17109. } else {
  17110. inst.componentWillMount();
  17111. }
  17112. // When mounting, calls to `setState` by `componentWillMount` will set
  17113. // `this._pendingStateQueue` without triggering a re-render.
  17114. if (this._pendingStateQueue) {
  17115. inst.state = this._processPendingState(inst.props, inst.context);
  17116. }
  17117. }
  17118. // If not a stateless component, we now render
  17119. if (renderedElement === undefined) {
  17120. renderedElement = this._renderValidatedComponent();
  17121. }
  17122. var nodeType = ReactNodeTypes.getType(renderedElement);
  17123. this._renderedNodeType = nodeType;
  17124. var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
  17125. );
  17126. this._renderedComponent = child;
  17127. var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID);
  17128. if (process.env.NODE_ENV !== 'production') {
  17129. if (debugID !== 0) {
  17130. var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
  17131. ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
  17132. }
  17133. }
  17134. return markup;
  17135. },
  17136. getHostNode: function () {
  17137. return ReactReconciler.getHostNode(this._renderedComponent);
  17138. },
  17139. /**
  17140. * Releases any resources allocated by `mountComponent`.
  17141. *
  17142. * @final
  17143. * @internal
  17144. */
  17145. unmountComponent: function (safely) {
  17146. if (!this._renderedComponent) {
  17147. return;
  17148. }
  17149. var inst = this._instance;
  17150. if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) {
  17151. inst._calledComponentWillUnmount = true;
  17152. if (safely) {
  17153. var name = this.getName() + '.componentWillUnmount()';
  17154. ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst));
  17155. } else {
  17156. if (process.env.NODE_ENV !== 'production') {
  17157. measureLifeCyclePerf(function () {
  17158. return inst.componentWillUnmount();
  17159. }, this._debugID, 'componentWillUnmount');
  17160. } else {
  17161. inst.componentWillUnmount();
  17162. }
  17163. }
  17164. }
  17165. if (this._renderedComponent) {
  17166. ReactReconciler.unmountComponent(this._renderedComponent, safely);
  17167. this._renderedNodeType = null;
  17168. this._renderedComponent = null;
  17169. this._instance = null;
  17170. }
  17171. // Reset pending fields
  17172. // Even if this component is scheduled for another update in ReactUpdates,
  17173. // it would still be ignored because these fields are reset.
  17174. this._pendingStateQueue = null;
  17175. this._pendingReplaceState = false;
  17176. this._pendingForceUpdate = false;
  17177. this._pendingCallbacks = null;
  17178. this._pendingElement = null;
  17179. // These fields do not really need to be reset since this object is no
  17180. // longer accessible.
  17181. this._context = null;
  17182. this._rootNodeID = 0;
  17183. this._topLevelWrapper = null;
  17184. // Delete the reference from the instance to this internal representation
  17185. // which allow the internals to be properly cleaned up even if the user
  17186. // leaks a reference to the public instance.
  17187. ReactInstanceMap.remove(inst);
  17188. // Some existing components rely on inst.props even after they've been
  17189. // destroyed (in event handlers).
  17190. // TODO: inst.props = null;
  17191. // TODO: inst.state = null;
  17192. // TODO: inst.context = null;
  17193. },
  17194. /**
  17195. * Filters the context object to only contain keys specified in
  17196. * `contextTypes`
  17197. *
  17198. * @param {object} context
  17199. * @return {?object}
  17200. * @private
  17201. */
  17202. _maskContext: function (context) {
  17203. var Component = this._currentElement.type;
  17204. var contextTypes = Component.contextTypes;
  17205. if (!contextTypes) {
  17206. return emptyObject;
  17207. }
  17208. var maskedContext = {};
  17209. for (var contextName in contextTypes) {
  17210. maskedContext[contextName] = context[contextName];
  17211. }
  17212. return maskedContext;
  17213. },
  17214. /**
  17215. * Filters the context object to only contain keys specified in
  17216. * `contextTypes`, and asserts that they are valid.
  17217. *
  17218. * @param {object} context
  17219. * @return {?object}
  17220. * @private
  17221. */
  17222. _processContext: function (context) {
  17223. var maskedContext = this._maskContext(context);
  17224. if (process.env.NODE_ENV !== 'production') {
  17225. var Component = this._currentElement.type;
  17226. if (Component.contextTypes) {
  17227. this._checkContextTypes(Component.contextTypes, maskedContext, 'context');
  17228. }
  17229. }
  17230. return maskedContext;
  17231. },
  17232. /**
  17233. * @param {object} currentContext
  17234. * @return {object}
  17235. * @private
  17236. */
  17237. _processChildContext: function (currentContext) {
  17238. var Component = this._currentElement.type;
  17239. var inst = this._instance;
  17240. var childContext;
  17241. if (inst.getChildContext) {
  17242. if (process.env.NODE_ENV !== 'production') {
  17243. ReactInstrumentation.debugTool.onBeginProcessingChildContext();
  17244. try {
  17245. childContext = inst.getChildContext();
  17246. } finally {
  17247. ReactInstrumentation.debugTool.onEndProcessingChildContext();
  17248. }
  17249. } else {
  17250. childContext = inst.getChildContext();
  17251. }
  17252. }
  17253. if (childContext) {
  17254. !(typeof Component.childContextTypes === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0;
  17255. if (process.env.NODE_ENV !== 'production') {
  17256. this._checkContextTypes(Component.childContextTypes, childContext, 'child context');
  17257. }
  17258. for (var name in childContext) {
  17259. !(name in Component.childContextTypes) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0;
  17260. }
  17261. return _assign({}, currentContext, childContext);
  17262. }
  17263. return currentContext;
  17264. },
  17265. /**
  17266. * Assert that the context types are valid
  17267. *
  17268. * @param {object} typeSpecs Map of context field to a ReactPropType
  17269. * @param {object} values Runtime values that need to be type-checked
  17270. * @param {string} location e.g. "prop", "context", "child context"
  17271. * @private
  17272. */
  17273. _checkContextTypes: function (typeSpecs, values, location) {
  17274. if (process.env.NODE_ENV !== 'production') {
  17275. checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID);
  17276. }
  17277. },
  17278. receiveComponent: function (nextElement, transaction, nextContext) {
  17279. var prevElement = this._currentElement;
  17280. var prevContext = this._context;
  17281. this._pendingElement = null;
  17282. this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext);
  17283. },
  17284. /**
  17285. * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate`
  17286. * is set, update the component.
  17287. *
  17288. * @param {ReactReconcileTransaction} transaction
  17289. * @internal
  17290. */
  17291. performUpdateIfNecessary: function (transaction) {
  17292. if (this._pendingElement != null) {
  17293. ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context);
  17294. } else if (this._pendingStateQueue !== null || this._pendingForceUpdate) {
  17295. this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context);
  17296. } else {
  17297. this._updateBatchNumber = null;
  17298. }
  17299. },
  17300. /**
  17301. * Perform an update to a mounted component. The componentWillReceiveProps and
  17302. * shouldComponentUpdate methods are called, then (assuming the update isn't
  17303. * skipped) the remaining update lifecycle methods are called and the DOM
  17304. * representation is updated.
  17305. *
  17306. * By default, this implements React's rendering and reconciliation algorithm.
  17307. * Sophisticated clients may wish to override this.
  17308. *
  17309. * @param {ReactReconcileTransaction} transaction
  17310. * @param {ReactElement} prevParentElement
  17311. * @param {ReactElement} nextParentElement
  17312. * @internal
  17313. * @overridable
  17314. */
  17315. updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) {
  17316. var inst = this._instance;
  17317. !(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Attempted to update component `%s` that has already been unmounted (or failed to mount).', this.getName() || 'ReactCompositeComponent') : _prodInvariant('136', this.getName() || 'ReactCompositeComponent') : void 0;
  17318. var willReceive = false;
  17319. var nextContext;
  17320. // Determine if the context has changed or not
  17321. if (this._context === nextUnmaskedContext) {
  17322. nextContext = inst.context;
  17323. } else {
  17324. nextContext = this._processContext(nextUnmaskedContext);
  17325. willReceive = true;
  17326. }
  17327. var prevProps = prevParentElement.props;
  17328. var nextProps = nextParentElement.props;
  17329. // Not a simple state update but a props update
  17330. if (prevParentElement !== nextParentElement) {
  17331. willReceive = true;
  17332. }
  17333. // An update here will schedule an update but immediately set
  17334. // _pendingStateQueue which will ensure that any state updates gets
  17335. // immediately reconciled instead of waiting for the next batch.
  17336. if (willReceive && inst.componentWillReceiveProps) {
  17337. if (process.env.NODE_ENV !== 'production') {
  17338. measureLifeCyclePerf(function () {
  17339. return inst.componentWillReceiveProps(nextProps, nextContext);
  17340. }, this._debugID, 'componentWillReceiveProps');
  17341. } else {
  17342. inst.componentWillReceiveProps(nextProps, nextContext);
  17343. }
  17344. }
  17345. var nextState = this._processPendingState(nextProps, nextContext);
  17346. var shouldUpdate = true;
  17347. if (!this._pendingForceUpdate) {
  17348. if (inst.shouldComponentUpdate) {
  17349. if (process.env.NODE_ENV !== 'production') {
  17350. shouldUpdate = measureLifeCyclePerf(function () {
  17351. return inst.shouldComponentUpdate(nextProps, nextState, nextContext);
  17352. }, this._debugID, 'shouldComponentUpdate');
  17353. } else {
  17354. shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext);
  17355. }
  17356. } else {
  17357. if (this._compositeType === CompositeTypes.PureClass) {
  17358. shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState);
  17359. }
  17360. }
  17361. }
  17362. if (process.env.NODE_ENV !== 'production') {
  17363. process.env.NODE_ENV !== 'production' ? warning(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', this.getName() || 'ReactCompositeComponent') : void 0;
  17364. }
  17365. this._updateBatchNumber = null;
  17366. if (shouldUpdate) {
  17367. this._pendingForceUpdate = false;
  17368. // Will set `this.props`, `this.state` and `this.context`.
  17369. this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext);
  17370. } else {
  17371. // If it's determined that a component should not update, we still want
  17372. // to set props and state but we shortcut the rest of the update.
  17373. this._currentElement = nextParentElement;
  17374. this._context = nextUnmaskedContext;
  17375. inst.props = nextProps;
  17376. inst.state = nextState;
  17377. inst.context = nextContext;
  17378. }
  17379. },
  17380. _processPendingState: function (props, context) {
  17381. var inst = this._instance;
  17382. var queue = this._pendingStateQueue;
  17383. var replace = this._pendingReplaceState;
  17384. this._pendingReplaceState = false;
  17385. this._pendingStateQueue = null;
  17386. if (!queue) {
  17387. return inst.state;
  17388. }
  17389. if (replace && queue.length === 1) {
  17390. return queue[0];
  17391. }
  17392. var nextState = _assign({}, replace ? queue[0] : inst.state);
  17393. for (var i = replace ? 1 : 0; i < queue.length; i++) {
  17394. var partial = queue[i];
  17395. _assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial);
  17396. }
  17397. return nextState;
  17398. },
  17399. /**
  17400. * Merges new props and state, notifies delegate methods of update and
  17401. * performs update.
  17402. *
  17403. * @param {ReactElement} nextElement Next element
  17404. * @param {object} nextProps Next public object to set as properties.
  17405. * @param {?object} nextState Next object to set as state.
  17406. * @param {?object} nextContext Next public object to set as context.
  17407. * @param {ReactReconcileTransaction} transaction
  17408. * @param {?object} unmaskedContext
  17409. * @private
  17410. */
  17411. _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) {
  17412. var _this2 = this;
  17413. var inst = this._instance;
  17414. var hasComponentDidUpdate = Boolean(inst.componentDidUpdate);
  17415. var prevProps;
  17416. var prevState;
  17417. var prevContext;
  17418. if (hasComponentDidUpdate) {
  17419. prevProps = inst.props;
  17420. prevState = inst.state;
  17421. prevContext = inst.context;
  17422. }
  17423. if (inst.componentWillUpdate) {
  17424. if (process.env.NODE_ENV !== 'production') {
  17425. measureLifeCyclePerf(function () {
  17426. return inst.componentWillUpdate(nextProps, nextState, nextContext);
  17427. }, this._debugID, 'componentWillUpdate');
  17428. } else {
  17429. inst.componentWillUpdate(nextProps, nextState, nextContext);
  17430. }
  17431. }
  17432. this._currentElement = nextElement;
  17433. this._context = unmaskedContext;
  17434. inst.props = nextProps;
  17435. inst.state = nextState;
  17436. inst.context = nextContext;
  17437. this._updateRenderedComponent(transaction, unmaskedContext);
  17438. if (hasComponentDidUpdate) {
  17439. if (process.env.NODE_ENV !== 'production') {
  17440. transaction.getReactMountReady().enqueue(function () {
  17441. measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, 'componentDidUpdate');
  17442. });
  17443. } else {
  17444. transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst);
  17445. }
  17446. }
  17447. },
  17448. /**
  17449. * Call the component's `render` method and update the DOM accordingly.
  17450. *
  17451. * @param {ReactReconcileTransaction} transaction
  17452. * @internal
  17453. */
  17454. _updateRenderedComponent: function (transaction, context) {
  17455. var prevComponentInstance = this._renderedComponent;
  17456. var prevRenderedElement = prevComponentInstance._currentElement;
  17457. var nextRenderedElement = this._renderValidatedComponent();
  17458. var debugID = 0;
  17459. if (process.env.NODE_ENV !== 'production') {
  17460. debugID = this._debugID;
  17461. }
  17462. if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) {
  17463. ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context));
  17464. } else {
  17465. var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance);
  17466. ReactReconciler.unmountComponent(prevComponentInstance, false);
  17467. var nodeType = ReactNodeTypes.getType(nextRenderedElement);
  17468. this._renderedNodeType = nodeType;
  17469. var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
  17470. );
  17471. this._renderedComponent = child;
  17472. var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID);
  17473. if (process.env.NODE_ENV !== 'production') {
  17474. if (debugID !== 0) {
  17475. var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
  17476. ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
  17477. }
  17478. }
  17479. this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance);
  17480. }
  17481. },
  17482. /**
  17483. * Overridden in shallow rendering.
  17484. *
  17485. * @protected
  17486. */
  17487. _replaceNodeWithMarkup: function (oldHostNode, nextMarkup, prevInstance) {
  17488. ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance);
  17489. },
  17490. /**
  17491. * @protected
  17492. */
  17493. _renderValidatedComponentWithoutOwnerOrContext: function () {
  17494. var inst = this._instance;
  17495. var renderedElement;
  17496. if (process.env.NODE_ENV !== 'production') {
  17497. renderedElement = measureLifeCyclePerf(function () {
  17498. return inst.render();
  17499. }, this._debugID, 'render');
  17500. } else {
  17501. renderedElement = inst.render();
  17502. }
  17503. if (process.env.NODE_ENV !== 'production') {
  17504. // We allow auto-mocks to proceed as if they're returning null.
  17505. if (renderedElement === undefined && inst.render._isMockFunction) {
  17506. // This is probably bad practice. Consider warning here and
  17507. // deprecating this convenience.
  17508. renderedElement = null;
  17509. }
  17510. }
  17511. return renderedElement;
  17512. },
  17513. /**
  17514. * @private
  17515. */
  17516. _renderValidatedComponent: function () {
  17517. var renderedElement;
  17518. if (process.env.NODE_ENV !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) {
  17519. ReactCurrentOwner.current = this;
  17520. try {
  17521. renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
  17522. } finally {
  17523. ReactCurrentOwner.current = null;
  17524. }
  17525. } else {
  17526. renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
  17527. }
  17528. !(
  17529. // TODO: An `isValidNode` function would probably be more appropriate
  17530. renderedElement === null || renderedElement === false || React.isValidElement(renderedElement)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0;
  17531. return renderedElement;
  17532. },
  17533. /**
  17534. * Lazily allocates the refs object and stores `component` as `ref`.
  17535. *
  17536. * @param {string} ref Reference name.
  17537. * @param {component} component Component to store as `ref`.
  17538. * @final
  17539. * @private
  17540. */
  17541. attachRef: function (ref, component) {
  17542. var inst = this.getPublicInstance();
  17543. !(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0;
  17544. var publicComponentInstance = component.getPublicInstance();
  17545. if (process.env.NODE_ENV !== 'production') {
  17546. var componentName = component && component.getName ? component.getName() : 'a component';
  17547. process.env.NODE_ENV !== 'production' ? warning(publicComponentInstance != null || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0;
  17548. }
  17549. var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
  17550. refs[ref] = publicComponentInstance;
  17551. },
  17552. /**
  17553. * Detaches a reference name.
  17554. *
  17555. * @param {string} ref Name to dereference.
  17556. * @final
  17557. * @private
  17558. */
  17559. detachRef: function (ref) {
  17560. var refs = this.getPublicInstance().refs;
  17561. delete refs[ref];
  17562. },
  17563. /**
  17564. * Get a text description of the component that can be used to identify it
  17565. * in error messages.
  17566. * @return {string} The name or null.
  17567. * @internal
  17568. */
  17569. getName: function () {
  17570. var type = this._currentElement.type;
  17571. var constructor = this._instance && this._instance.constructor;
  17572. return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null;
  17573. },
  17574. /**
  17575. * Get the publicly accessible representation of this component - i.e. what
  17576. * is exposed by refs and returned by render. Can be null for stateless
  17577. * components.
  17578. *
  17579. * @return {ReactComponent} the public component instance.
  17580. * @internal
  17581. */
  17582. getPublicInstance: function () {
  17583. var inst = this._instance;
  17584. if (this._compositeType === CompositeTypes.StatelessFunctional) {
  17585. return null;
  17586. }
  17587. return inst;
  17588. },
  17589. // Stub
  17590. _instantiateReactComponent: null
  17591. };
  17592. module.exports = ReactCompositeComponent;
  17593. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17594. /***/ }),
  17595. /* 147 */
  17596. /***/ (function(module, exports, __webpack_require__) {
  17597. "use strict";
  17598. /* WEBPACK VAR INJECTION */(function(process) {/**
  17599. * Copyright 2013-present, Facebook, Inc.
  17600. * All rights reserved.
  17601. *
  17602. * This source code is licensed under the BSD-style license found in the
  17603. * LICENSE file in the root directory of this source tree. An additional grant
  17604. * of patent rights can be found in the PATENTS file in the same directory.
  17605. *
  17606. */
  17607. var _prodInvariant = __webpack_require__(3);
  17608. var ReactPropTypeLocationNames = __webpack_require__(148);
  17609. var ReactPropTypesSecret = __webpack_require__(68);
  17610. var invariant = __webpack_require__(1);
  17611. var warning = __webpack_require__(2);
  17612. var ReactComponentTreeHook;
  17613. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  17614. // Temporary hack.
  17615. // Inline requires don't work well with Jest:
  17616. // https://github.com/facebook/react/issues/7240
  17617. // Remove the inline requires when we don't need them anymore:
  17618. // https://github.com/facebook/react/pull/7178
  17619. ReactComponentTreeHook = __webpack_require__(7);
  17620. }
  17621. var loggedTypeFailures = {};
  17622. /**
  17623. * Assert that the values match with the type specs.
  17624. * Error messages are memorized and will only be shown once.
  17625. *
  17626. * @param {object} typeSpecs Map of name to a ReactPropType
  17627. * @param {object} values Runtime values that need to be type-checked
  17628. * @param {string} location e.g. "prop", "context", "child context"
  17629. * @param {string} componentName Name of the component for error messages.
  17630. * @param {?object} element The React element that is being type-checked
  17631. * @param {?number} debugID The React component instance that is being type-checked
  17632. * @private
  17633. */
  17634. function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
  17635. for (var typeSpecName in typeSpecs) {
  17636. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  17637. var error;
  17638. // Prop type validation may throw. In case they do, we don't want to
  17639. // fail the render phase where it didn't fail before. So we log it.
  17640. // After these have been cleaned up, we'll let them throw.
  17641. try {
  17642. // This is intentionally an invariant that gets caught. It's the same
  17643. // behavior as without this statement except with a better message.
  17644. !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
  17645. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  17646. } catch (ex) {
  17647. error = ex;
  17648. }
  17649. process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
  17650. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  17651. // Only monitor this failure once because there tends to be a lot of the
  17652. // same error.
  17653. loggedTypeFailures[error.message] = true;
  17654. var componentStackInfo = '';
  17655. if (process.env.NODE_ENV !== 'production') {
  17656. if (!ReactComponentTreeHook) {
  17657. ReactComponentTreeHook = __webpack_require__(7);
  17658. }
  17659. if (debugID !== null) {
  17660. componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
  17661. } else if (element !== null) {
  17662. componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
  17663. }
  17664. }
  17665. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
  17666. }
  17667. }
  17668. }
  17669. }
  17670. module.exports = checkReactTypeSpec;
  17671. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17672. /***/ }),
  17673. /* 148 */
  17674. /***/ (function(module, exports, __webpack_require__) {
  17675. "use strict";
  17676. /* WEBPACK VAR INJECTION */(function(process) {/**
  17677. * Copyright 2013-present, Facebook, Inc.
  17678. * All rights reserved.
  17679. *
  17680. * This source code is licensed under the BSD-style license found in the
  17681. * LICENSE file in the root directory of this source tree. An additional grant
  17682. * of patent rights can be found in the PATENTS file in the same directory.
  17683. *
  17684. *
  17685. */
  17686. var ReactPropTypeLocationNames = {};
  17687. if (process.env.NODE_ENV !== 'production') {
  17688. ReactPropTypeLocationNames = {
  17689. prop: 'prop',
  17690. context: 'context',
  17691. childContext: 'child context'
  17692. };
  17693. }
  17694. module.exports = ReactPropTypeLocationNames;
  17695. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17696. /***/ }),
  17697. /* 149 */
  17698. /***/ (function(module, exports, __webpack_require__) {
  17699. "use strict";
  17700. /**
  17701. * Copyright 2013-present, Facebook, Inc.
  17702. * All rights reserved.
  17703. *
  17704. * This source code is licensed under the BSD-style license found in the
  17705. * LICENSE file in the root directory of this source tree. An additional grant
  17706. * of patent rights can be found in the PATENTS file in the same directory.
  17707. *
  17708. *
  17709. */
  17710. var nextDebugID = 1;
  17711. function getNextDebugID() {
  17712. return nextDebugID++;
  17713. }
  17714. module.exports = getNextDebugID;
  17715. /***/ }),
  17716. /* 150 */
  17717. /***/ (function(module, exports, __webpack_require__) {
  17718. "use strict";
  17719. /**
  17720. * Copyright 2014-present, Facebook, Inc.
  17721. * All rights reserved.
  17722. *
  17723. * This source code is licensed under the BSD-style license found in the
  17724. * LICENSE file in the root directory of this source tree. An additional grant
  17725. * of patent rights can be found in the PATENTS file in the same directory.
  17726. *
  17727. *
  17728. */
  17729. // The Symbol used to tag the ReactElement type. If there is no native Symbol
  17730. // nor polyfill, then a plain number is used for performance.
  17731. var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
  17732. module.exports = REACT_ELEMENT_TYPE;
  17733. /***/ }),
  17734. /* 151 */
  17735. /***/ (function(module, exports, __webpack_require__) {
  17736. "use strict";
  17737. /**
  17738. * Copyright 2013-present, Facebook, Inc.
  17739. * All rights reserved.
  17740. *
  17741. * This source code is licensed under the BSD-style license found in the
  17742. * LICENSE file in the root directory of this source tree. An additional grant
  17743. * of patent rights can be found in the PATENTS file in the same directory.
  17744. *
  17745. *
  17746. */
  17747. /* global Symbol */
  17748. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  17749. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  17750. /**
  17751. * Returns the iterator method function contained on the iterable object.
  17752. *
  17753. * Be sure to invoke the function with the iterable as context:
  17754. *
  17755. * var iteratorFn = getIteratorFn(myIterable);
  17756. * if (iteratorFn) {
  17757. * var iterator = iteratorFn.call(myIterable);
  17758. * ...
  17759. * }
  17760. *
  17761. * @param {?object} maybeIterable
  17762. * @return {?function}
  17763. */
  17764. function getIteratorFn(maybeIterable) {
  17765. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  17766. if (typeof iteratorFn === 'function') {
  17767. return iteratorFn;
  17768. }
  17769. }
  17770. module.exports = getIteratorFn;
  17771. /***/ }),
  17772. /* 152 */
  17773. /***/ (function(module, exports, __webpack_require__) {
  17774. "use strict";
  17775. /* WEBPACK VAR INJECTION */(function(process) {/**
  17776. * Copyright 2013-present, Facebook, Inc.
  17777. * All rights reserved.
  17778. *
  17779. * This source code is licensed under the BSD-style license found in the
  17780. * LICENSE file in the root directory of this source tree. An additional grant
  17781. * of patent rights can be found in the PATENTS file in the same directory.
  17782. *
  17783. *
  17784. */
  17785. var KeyEscapeUtils = __webpack_require__(47);
  17786. var traverseAllChildren = __webpack_require__(75);
  17787. var warning = __webpack_require__(2);
  17788. var ReactComponentTreeHook;
  17789. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  17790. // Temporary hack.
  17791. // Inline requires don't work well with Jest:
  17792. // https://github.com/facebook/react/issues/7240
  17793. // Remove the inline requires when we don't need them anymore:
  17794. // https://github.com/facebook/react/pull/7178
  17795. ReactComponentTreeHook = __webpack_require__(7);
  17796. }
  17797. /**
  17798. * @param {function} traverseContext Context passed through traversal.
  17799. * @param {?ReactComponent} child React child component.
  17800. * @param {!string} name String name of key path to child.
  17801. * @param {number=} selfDebugID Optional debugID of the current internal instance.
  17802. */
  17803. function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {
  17804. // We found a component instance.
  17805. if (traverseContext && typeof traverseContext === 'object') {
  17806. var result = traverseContext;
  17807. var keyUnique = result[name] === undefined;
  17808. if (process.env.NODE_ENV !== 'production') {
  17809. if (!ReactComponentTreeHook) {
  17810. ReactComponentTreeHook = __webpack_require__(7);
  17811. }
  17812. if (!keyUnique) {
  17813. process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
  17814. }
  17815. }
  17816. if (keyUnique && child != null) {
  17817. result[name] = child;
  17818. }
  17819. }
  17820. }
  17821. /**
  17822. * Flattens children that are typically specified as `props.children`. Any null
  17823. * children will not be included in the resulting object.
  17824. * @return {!object} flattened children keyed by name.
  17825. */
  17826. function flattenChildren(children, selfDebugID) {
  17827. if (children == null) {
  17828. return children;
  17829. }
  17830. var result = {};
  17831. if (process.env.NODE_ENV !== 'production') {
  17832. traverseAllChildren(children, function (traverseContext, child, name) {
  17833. return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);
  17834. }, result);
  17835. } else {
  17836. traverseAllChildren(children, flattenSingleChildIntoContext, result);
  17837. }
  17838. return result;
  17839. }
  17840. module.exports = flattenChildren;
  17841. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17842. /***/ }),
  17843. /* 153 */
  17844. /***/ (function(module, exports, __webpack_require__) {
  17845. "use strict";
  17846. /* WEBPACK VAR INJECTION */(function(process) {/**
  17847. * Copyright 2014-present, Facebook, Inc.
  17848. * All rights reserved.
  17849. *
  17850. * This source code is licensed under the BSD-style license found in the
  17851. * LICENSE file in the root directory of this source tree. An additional grant
  17852. * of patent rights can be found in the PATENTS file in the same directory.
  17853. *
  17854. */
  17855. var _assign = __webpack_require__(4);
  17856. var PooledClass = __webpack_require__(16);
  17857. var Transaction = __webpack_require__(28);
  17858. var ReactInstrumentation = __webpack_require__(9);
  17859. var ReactServerUpdateQueue = __webpack_require__(154);
  17860. /**
  17861. * Executed within the scope of the `Transaction` instance. Consider these as
  17862. * being member methods, but with an implied ordering while being isolated from
  17863. * each other.
  17864. */
  17865. var TRANSACTION_WRAPPERS = [];
  17866. if (process.env.NODE_ENV !== 'production') {
  17867. TRANSACTION_WRAPPERS.push({
  17868. initialize: ReactInstrumentation.debugTool.onBeginFlush,
  17869. close: ReactInstrumentation.debugTool.onEndFlush
  17870. });
  17871. }
  17872. var noopCallbackQueue = {
  17873. enqueue: function () {}
  17874. };
  17875. /**
  17876. * @class ReactServerRenderingTransaction
  17877. * @param {boolean} renderToStaticMarkup
  17878. */
  17879. function ReactServerRenderingTransaction(renderToStaticMarkup) {
  17880. this.reinitializeTransaction();
  17881. this.renderToStaticMarkup = renderToStaticMarkup;
  17882. this.useCreateElement = false;
  17883. this.updateQueue = new ReactServerUpdateQueue(this);
  17884. }
  17885. var Mixin = {
  17886. /**
  17887. * @see Transaction
  17888. * @abstract
  17889. * @final
  17890. * @return {array} Empty list of operation wrap procedures.
  17891. */
  17892. getTransactionWrappers: function () {
  17893. return TRANSACTION_WRAPPERS;
  17894. },
  17895. /**
  17896. * @return {object} The queue to collect `onDOMReady` callbacks with.
  17897. */
  17898. getReactMountReady: function () {
  17899. return noopCallbackQueue;
  17900. },
  17901. /**
  17902. * @return {object} The queue to collect React async events.
  17903. */
  17904. getUpdateQueue: function () {
  17905. return this.updateQueue;
  17906. },
  17907. /**
  17908. * `PooledClass` looks for this, and will invoke this before allowing this
  17909. * instance to be reused.
  17910. */
  17911. destructor: function () {},
  17912. checkpoint: function () {},
  17913. rollback: function () {}
  17914. };
  17915. _assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin);
  17916. PooledClass.addPoolingTo(ReactServerRenderingTransaction);
  17917. module.exports = ReactServerRenderingTransaction;
  17918. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17919. /***/ }),
  17920. /* 154 */
  17921. /***/ (function(module, exports, __webpack_require__) {
  17922. "use strict";
  17923. /* WEBPACK VAR INJECTION */(function(process) {/**
  17924. * Copyright 2015-present, Facebook, Inc.
  17925. * All rights reserved.
  17926. *
  17927. * This source code is licensed under the BSD-style license found in the
  17928. * LICENSE file in the root directory of this source tree. An additional grant
  17929. * of patent rights can be found in the PATENTS file in the same directory.
  17930. *
  17931. *
  17932. */
  17933. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  17934. var ReactUpdateQueue = __webpack_require__(48);
  17935. var warning = __webpack_require__(2);
  17936. function warnNoop(publicInstance, callerName) {
  17937. if (process.env.NODE_ENV !== 'production') {
  17938. var constructor = publicInstance.constructor;
  17939. process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
  17940. }
  17941. }
  17942. /**
  17943. * This is the update queue used for server rendering.
  17944. * It delegates to ReactUpdateQueue while server rendering is in progress and
  17945. * switches to ReactNoopUpdateQueue after the transaction has completed.
  17946. * @class ReactServerUpdateQueue
  17947. * @param {Transaction} transaction
  17948. */
  17949. var ReactServerUpdateQueue = function () {
  17950. function ReactServerUpdateQueue(transaction) {
  17951. _classCallCheck(this, ReactServerUpdateQueue);
  17952. this.transaction = transaction;
  17953. }
  17954. /**
  17955. * Checks whether or not this composite component is mounted.
  17956. * @param {ReactClass} publicInstance The instance we want to test.
  17957. * @return {boolean} True if mounted, false otherwise.
  17958. * @protected
  17959. * @final
  17960. */
  17961. ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) {
  17962. return false;
  17963. };
  17964. /**
  17965. * Enqueue a callback that will be executed after all the pending updates
  17966. * have processed.
  17967. *
  17968. * @param {ReactClass} publicInstance The instance to use as `this` context.
  17969. * @param {?function} callback Called after state is updated.
  17970. * @internal
  17971. */
  17972. ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback(publicInstance, callback, callerName) {
  17973. if (this.transaction.isInTransaction()) {
  17974. ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName);
  17975. }
  17976. };
  17977. /**
  17978. * Forces an update. This should only be invoked when it is known with
  17979. * certainty that we are **not** in a DOM transaction.
  17980. *
  17981. * You may want to call this when you know that some deeper aspect of the
  17982. * component's state has changed but `setState` was not called.
  17983. *
  17984. * This will not invoke `shouldComponentUpdate`, but it will invoke
  17985. * `componentWillUpdate` and `componentDidUpdate`.
  17986. *
  17987. * @param {ReactClass} publicInstance The instance that should rerender.
  17988. * @internal
  17989. */
  17990. ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate(publicInstance) {
  17991. if (this.transaction.isInTransaction()) {
  17992. ReactUpdateQueue.enqueueForceUpdate(publicInstance);
  17993. } else {
  17994. warnNoop(publicInstance, 'forceUpdate');
  17995. }
  17996. };
  17997. /**
  17998. * Replaces all of the state. Always use this or `setState` to mutate state.
  17999. * You should treat `this.state` as immutable.
  18000. *
  18001. * There is no guarantee that `this.state` will be immediately updated, so
  18002. * accessing `this.state` after calling this method may return the old value.
  18003. *
  18004. * @param {ReactClass} publicInstance The instance that should rerender.
  18005. * @param {object|function} completeState Next state.
  18006. * @internal
  18007. */
  18008. ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState(publicInstance, completeState) {
  18009. if (this.transaction.isInTransaction()) {
  18010. ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState);
  18011. } else {
  18012. warnNoop(publicInstance, 'replaceState');
  18013. }
  18014. };
  18015. /**
  18016. * Sets a subset of the state. This only exists because _pendingState is
  18017. * internal. This provides a merging strategy that is not available to deep
  18018. * properties which is confusing. TODO: Expose pendingState or don't use it
  18019. * during the merge.
  18020. *
  18021. * @param {ReactClass} publicInstance The instance that should rerender.
  18022. * @param {object|function} partialState Next partial state to be merged with state.
  18023. * @internal
  18024. */
  18025. ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState(publicInstance, partialState) {
  18026. if (this.transaction.isInTransaction()) {
  18027. ReactUpdateQueue.enqueueSetState(publicInstance, partialState);
  18028. } else {
  18029. warnNoop(publicInstance, 'setState');
  18030. }
  18031. };
  18032. return ReactServerUpdateQueue;
  18033. }();
  18034. module.exports = ReactServerUpdateQueue;
  18035. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18036. /***/ }),
  18037. /* 155 */
  18038. /***/ (function(module, exports, __webpack_require__) {
  18039. "use strict";
  18040. /**
  18041. * Copyright 2014-present, Facebook, Inc.
  18042. * All rights reserved.
  18043. *
  18044. * This source code is licensed under the BSD-style license found in the
  18045. * LICENSE file in the root directory of this source tree. An additional grant
  18046. * of patent rights can be found in the PATENTS file in the same directory.
  18047. *
  18048. */
  18049. var _assign = __webpack_require__(4);
  18050. var DOMLazyTree = __webpack_require__(19);
  18051. var ReactDOMComponentTree = __webpack_require__(5);
  18052. var ReactDOMEmptyComponent = function (instantiate) {
  18053. // ReactCompositeComponent uses this:
  18054. this._currentElement = null;
  18055. // ReactDOMComponentTree uses these:
  18056. this._hostNode = null;
  18057. this._hostParent = null;
  18058. this._hostContainerInfo = null;
  18059. this._domID = 0;
  18060. };
  18061. _assign(ReactDOMEmptyComponent.prototype, {
  18062. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  18063. var domID = hostContainerInfo._idCounter++;
  18064. this._domID = domID;
  18065. this._hostParent = hostParent;
  18066. this._hostContainerInfo = hostContainerInfo;
  18067. var nodeValue = ' react-empty: ' + this._domID + ' ';
  18068. if (transaction.useCreateElement) {
  18069. var ownerDocument = hostContainerInfo._ownerDocument;
  18070. var node = ownerDocument.createComment(nodeValue);
  18071. ReactDOMComponentTree.precacheNode(this, node);
  18072. return DOMLazyTree(node);
  18073. } else {
  18074. if (transaction.renderToStaticMarkup) {
  18075. // Normally we'd insert a comment node, but since this is a situation
  18076. // where React won't take over (static pages), we can simply return
  18077. // nothing.
  18078. return '';
  18079. }
  18080. return '<!--' + nodeValue + '-->';
  18081. }
  18082. },
  18083. receiveComponent: function () {},
  18084. getHostNode: function () {
  18085. return ReactDOMComponentTree.getNodeFromInstance(this);
  18086. },
  18087. unmountComponent: function () {
  18088. ReactDOMComponentTree.uncacheNode(this);
  18089. }
  18090. });
  18091. module.exports = ReactDOMEmptyComponent;
  18092. /***/ }),
  18093. /* 156 */
  18094. /***/ (function(module, exports, __webpack_require__) {
  18095. "use strict";
  18096. /* WEBPACK VAR INJECTION */(function(process) {/**
  18097. * Copyright 2015-present, Facebook, Inc.
  18098. * All rights reserved.
  18099. *
  18100. * This source code is licensed under the BSD-style license found in the
  18101. * LICENSE file in the root directory of this source tree. An additional grant
  18102. * of patent rights can be found in the PATENTS file in the same directory.
  18103. *
  18104. */
  18105. var _prodInvariant = __webpack_require__(3);
  18106. var invariant = __webpack_require__(1);
  18107. /**
  18108. * Return the lowest common ancestor of A and B, or null if they are in
  18109. * different trees.
  18110. */
  18111. function getLowestCommonAncestor(instA, instB) {
  18112. !('_hostNode' in instA) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  18113. !('_hostNode' in instB) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  18114. var depthA = 0;
  18115. for (var tempA = instA; tempA; tempA = tempA._hostParent) {
  18116. depthA++;
  18117. }
  18118. var depthB = 0;
  18119. for (var tempB = instB; tempB; tempB = tempB._hostParent) {
  18120. depthB++;
  18121. }
  18122. // If A is deeper, crawl up.
  18123. while (depthA - depthB > 0) {
  18124. instA = instA._hostParent;
  18125. depthA--;
  18126. }
  18127. // If B is deeper, crawl up.
  18128. while (depthB - depthA > 0) {
  18129. instB = instB._hostParent;
  18130. depthB--;
  18131. }
  18132. // Walk in lockstep until we find a match.
  18133. var depth = depthA;
  18134. while (depth--) {
  18135. if (instA === instB) {
  18136. return instA;
  18137. }
  18138. instA = instA._hostParent;
  18139. instB = instB._hostParent;
  18140. }
  18141. return null;
  18142. }
  18143. /**
  18144. * Return if A is an ancestor of B.
  18145. */
  18146. function isAncestor(instA, instB) {
  18147. !('_hostNode' in instA) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;
  18148. !('_hostNode' in instB) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;
  18149. while (instB) {
  18150. if (instB === instA) {
  18151. return true;
  18152. }
  18153. instB = instB._hostParent;
  18154. }
  18155. return false;
  18156. }
  18157. /**
  18158. * Return the parent instance of the passed-in instance.
  18159. */
  18160. function getParentInstance(inst) {
  18161. !('_hostNode' in inst) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getParentInstance: Invalid argument.') : _prodInvariant('36') : void 0;
  18162. return inst._hostParent;
  18163. }
  18164. /**
  18165. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  18166. */
  18167. function traverseTwoPhase(inst, fn, arg) {
  18168. var path = [];
  18169. while (inst) {
  18170. path.push(inst);
  18171. inst = inst._hostParent;
  18172. }
  18173. var i;
  18174. for (i = path.length; i-- > 0;) {
  18175. fn(path[i], 'captured', arg);
  18176. }
  18177. for (i = 0; i < path.length; i++) {
  18178. fn(path[i], 'bubbled', arg);
  18179. }
  18180. }
  18181. /**
  18182. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  18183. * should would receive a `mouseEnter` or `mouseLeave` event.
  18184. *
  18185. * Does not invoke the callback on the nearest common ancestor because nothing
  18186. * "entered" or "left" that element.
  18187. */
  18188. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  18189. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  18190. var pathFrom = [];
  18191. while (from && from !== common) {
  18192. pathFrom.push(from);
  18193. from = from._hostParent;
  18194. }
  18195. var pathTo = [];
  18196. while (to && to !== common) {
  18197. pathTo.push(to);
  18198. to = to._hostParent;
  18199. }
  18200. var i;
  18201. for (i = 0; i < pathFrom.length; i++) {
  18202. fn(pathFrom[i], 'bubbled', argFrom);
  18203. }
  18204. for (i = pathTo.length; i-- > 0;) {
  18205. fn(pathTo[i], 'captured', argTo);
  18206. }
  18207. }
  18208. module.exports = {
  18209. isAncestor: isAncestor,
  18210. getLowestCommonAncestor: getLowestCommonAncestor,
  18211. getParentInstance: getParentInstance,
  18212. traverseTwoPhase: traverseTwoPhase,
  18213. traverseEnterLeave: traverseEnterLeave
  18214. };
  18215. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18216. /***/ }),
  18217. /* 157 */
  18218. /***/ (function(module, exports, __webpack_require__) {
  18219. "use strict";
  18220. /* WEBPACK VAR INJECTION */(function(process) {/**
  18221. * Copyright 2013-present, Facebook, Inc.
  18222. * All rights reserved.
  18223. *
  18224. * This source code is licensed under the BSD-style license found in the
  18225. * LICENSE file in the root directory of this source tree. An additional grant
  18226. * of patent rights can be found in the PATENTS file in the same directory.
  18227. *
  18228. */
  18229. var _prodInvariant = __webpack_require__(3),
  18230. _assign = __webpack_require__(4);
  18231. var DOMChildrenOperations = __webpack_require__(40);
  18232. var DOMLazyTree = __webpack_require__(19);
  18233. var ReactDOMComponentTree = __webpack_require__(5);
  18234. var escapeTextContentForBrowser = __webpack_require__(31);
  18235. var invariant = __webpack_require__(1);
  18236. var validateDOMNesting = __webpack_require__(49);
  18237. /**
  18238. * Text nodes violate a couple assumptions that React makes about components:
  18239. *
  18240. * - When mounting text into the DOM, adjacent text nodes are merged.
  18241. * - Text nodes cannot be assigned a React root ID.
  18242. *
  18243. * This component is used to wrap strings between comment nodes so that they
  18244. * can undergo the same reconciliation that is applied to elements.
  18245. *
  18246. * TODO: Investigate representing React components in the DOM with text nodes.
  18247. *
  18248. * @class ReactDOMTextComponent
  18249. * @extends ReactComponent
  18250. * @internal
  18251. */
  18252. var ReactDOMTextComponent = function (text) {
  18253. // TODO: This is really a ReactText (ReactNode), not a ReactElement
  18254. this._currentElement = text;
  18255. this._stringText = '' + text;
  18256. // ReactDOMComponentTree uses these:
  18257. this._hostNode = null;
  18258. this._hostParent = null;
  18259. // Properties
  18260. this._domID = 0;
  18261. this._mountIndex = 0;
  18262. this._closingComment = null;
  18263. this._commentNodes = null;
  18264. };
  18265. _assign(ReactDOMTextComponent.prototype, {
  18266. /**
  18267. * Creates the markup for this text node. This node is not intended to have
  18268. * any features besides containing text content.
  18269. *
  18270. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  18271. * @return {string} Markup for this text node.
  18272. * @internal
  18273. */
  18274. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  18275. if (process.env.NODE_ENV !== 'production') {
  18276. var parentInfo;
  18277. if (hostParent != null) {
  18278. parentInfo = hostParent._ancestorInfo;
  18279. } else if (hostContainerInfo != null) {
  18280. parentInfo = hostContainerInfo._ancestorInfo;
  18281. }
  18282. if (parentInfo) {
  18283. // parentInfo should always be present except for the top-level
  18284. // component when server rendering
  18285. validateDOMNesting(null, this._stringText, this, parentInfo);
  18286. }
  18287. }
  18288. var domID = hostContainerInfo._idCounter++;
  18289. var openingValue = ' react-text: ' + domID + ' ';
  18290. var closingValue = ' /react-text ';
  18291. this._domID = domID;
  18292. this._hostParent = hostParent;
  18293. if (transaction.useCreateElement) {
  18294. var ownerDocument = hostContainerInfo._ownerDocument;
  18295. var openingComment = ownerDocument.createComment(openingValue);
  18296. var closingComment = ownerDocument.createComment(closingValue);
  18297. var lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment());
  18298. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment));
  18299. if (this._stringText) {
  18300. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText)));
  18301. }
  18302. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment));
  18303. ReactDOMComponentTree.precacheNode(this, openingComment);
  18304. this._closingComment = closingComment;
  18305. return lazyTree;
  18306. } else {
  18307. var escapedText = escapeTextContentForBrowser(this._stringText);
  18308. if (transaction.renderToStaticMarkup) {
  18309. // Normally we'd wrap this between comment nodes for the reasons stated
  18310. // above, but since this is a situation where React won't take over
  18311. // (static pages), we can simply return the text as it is.
  18312. return escapedText;
  18313. }
  18314. return '<!--' + openingValue + '-->' + escapedText + '<!--' + closingValue + '-->';
  18315. }
  18316. },
  18317. /**
  18318. * Updates this component by updating the text content.
  18319. *
  18320. * @param {ReactText} nextText The next text content
  18321. * @param {ReactReconcileTransaction} transaction
  18322. * @internal
  18323. */
  18324. receiveComponent: function (nextText, transaction) {
  18325. if (nextText !== this._currentElement) {
  18326. this._currentElement = nextText;
  18327. var nextStringText = '' + nextText;
  18328. if (nextStringText !== this._stringText) {
  18329. // TODO: Save this as pending props and use performUpdateIfNecessary
  18330. // and/or updateComponent to do the actual update for consistency with
  18331. // other component types?
  18332. this._stringText = nextStringText;
  18333. var commentNodes = this.getHostNode();
  18334. DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText);
  18335. }
  18336. }
  18337. },
  18338. getHostNode: function () {
  18339. var hostNode = this._commentNodes;
  18340. if (hostNode) {
  18341. return hostNode;
  18342. }
  18343. if (!this._closingComment) {
  18344. var openingComment = ReactDOMComponentTree.getNodeFromInstance(this);
  18345. var node = openingComment.nextSibling;
  18346. while (true) {
  18347. !(node != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Missing closing comment for text component %s', this._domID) : _prodInvariant('67', this._domID) : void 0;
  18348. if (node.nodeType === 8 && node.nodeValue === ' /react-text ') {
  18349. this._closingComment = node;
  18350. break;
  18351. }
  18352. node = node.nextSibling;
  18353. }
  18354. }
  18355. hostNode = [this._hostNode, this._closingComment];
  18356. this._commentNodes = hostNode;
  18357. return hostNode;
  18358. },
  18359. unmountComponent: function () {
  18360. this._closingComment = null;
  18361. this._commentNodes = null;
  18362. ReactDOMComponentTree.uncacheNode(this);
  18363. }
  18364. });
  18365. module.exports = ReactDOMTextComponent;
  18366. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18367. /***/ }),
  18368. /* 158 */
  18369. /***/ (function(module, exports, __webpack_require__) {
  18370. "use strict";
  18371. /**
  18372. * Copyright 2013-present, Facebook, Inc.
  18373. * All rights reserved.
  18374. *
  18375. * This source code is licensed under the BSD-style license found in the
  18376. * LICENSE file in the root directory of this source tree. An additional grant
  18377. * of patent rights can be found in the PATENTS file in the same directory.
  18378. *
  18379. */
  18380. var _assign = __webpack_require__(4);
  18381. var ReactUpdates = __webpack_require__(11);
  18382. var Transaction = __webpack_require__(28);
  18383. var emptyFunction = __webpack_require__(8);
  18384. var RESET_BATCHED_UPDATES = {
  18385. initialize: emptyFunction,
  18386. close: function () {
  18387. ReactDefaultBatchingStrategy.isBatchingUpdates = false;
  18388. }
  18389. };
  18390. var FLUSH_BATCHED_UPDATES = {
  18391. initialize: emptyFunction,
  18392. close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates)
  18393. };
  18394. var TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES];
  18395. function ReactDefaultBatchingStrategyTransaction() {
  18396. this.reinitializeTransaction();
  18397. }
  18398. _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, {
  18399. getTransactionWrappers: function () {
  18400. return TRANSACTION_WRAPPERS;
  18401. }
  18402. });
  18403. var transaction = new ReactDefaultBatchingStrategyTransaction();
  18404. var ReactDefaultBatchingStrategy = {
  18405. isBatchingUpdates: false,
  18406. /**
  18407. * Call the provided function in a context within which calls to `setState`
  18408. * and friends are batched such that components aren't updated unnecessarily.
  18409. */
  18410. batchedUpdates: function (callback, a, b, c, d, e) {
  18411. var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates;
  18412. ReactDefaultBatchingStrategy.isBatchingUpdates = true;
  18413. // The code is written this way to avoid extra allocations
  18414. if (alreadyBatchingUpdates) {
  18415. return callback(a, b, c, d, e);
  18416. } else {
  18417. return transaction.perform(callback, null, a, b, c, d, e);
  18418. }
  18419. }
  18420. };
  18421. module.exports = ReactDefaultBatchingStrategy;
  18422. /***/ }),
  18423. /* 159 */
  18424. /***/ (function(module, exports, __webpack_require__) {
  18425. "use strict";
  18426. /**
  18427. * Copyright 2013-present, Facebook, Inc.
  18428. * All rights reserved.
  18429. *
  18430. * This source code is licensed under the BSD-style license found in the
  18431. * LICENSE file in the root directory of this source tree. An additional grant
  18432. * of patent rights can be found in the PATENTS file in the same directory.
  18433. *
  18434. */
  18435. var _assign = __webpack_require__(4);
  18436. var EventListener = __webpack_require__(76);
  18437. var ExecutionEnvironment = __webpack_require__(6);
  18438. var PooledClass = __webpack_require__(16);
  18439. var ReactDOMComponentTree = __webpack_require__(5);
  18440. var ReactUpdates = __webpack_require__(11);
  18441. var getEventTarget = __webpack_require__(37);
  18442. var getUnboundedScrollPosition = __webpack_require__(160);
  18443. /**
  18444. * Find the deepest React component completely containing the root of the
  18445. * passed-in instance (for use when entire React trees are nested within each
  18446. * other). If React trees are not nested, returns null.
  18447. */
  18448. function findParent(inst) {
  18449. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  18450. // traversal, but caching is difficult to do correctly without using a
  18451. // mutation observer to listen for all DOM changes.
  18452. while (inst._hostParent) {
  18453. inst = inst._hostParent;
  18454. }
  18455. var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);
  18456. var container = rootNode.parentNode;
  18457. return ReactDOMComponentTree.getClosestInstanceFromNode(container);
  18458. }
  18459. // Used to store ancestor hierarchy in top level callback
  18460. function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) {
  18461. this.topLevelType = topLevelType;
  18462. this.nativeEvent = nativeEvent;
  18463. this.ancestors = [];
  18464. }
  18465. _assign(TopLevelCallbackBookKeeping.prototype, {
  18466. destructor: function () {
  18467. this.topLevelType = null;
  18468. this.nativeEvent = null;
  18469. this.ancestors.length = 0;
  18470. }
  18471. });
  18472. PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler);
  18473. function handleTopLevelImpl(bookKeeping) {
  18474. var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent);
  18475. var targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget);
  18476. // Loop through the hierarchy, in case there's any nested components.
  18477. // It's important that we build the array of ancestors before calling any
  18478. // event handlers, because event handlers can modify the DOM, leading to
  18479. // inconsistencies with ReactMount's node cache. See #1105.
  18480. var ancestor = targetInst;
  18481. do {
  18482. bookKeeping.ancestors.push(ancestor);
  18483. ancestor = ancestor && findParent(ancestor);
  18484. } while (ancestor);
  18485. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  18486. targetInst = bookKeeping.ancestors[i];
  18487. ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  18488. }
  18489. }
  18490. function scrollValueMonitor(cb) {
  18491. var scrollPosition = getUnboundedScrollPosition(window);
  18492. cb(scrollPosition);
  18493. }
  18494. var ReactEventListener = {
  18495. _enabled: true,
  18496. _handleTopLevel: null,
  18497. WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null,
  18498. setHandleTopLevel: function (handleTopLevel) {
  18499. ReactEventListener._handleTopLevel = handleTopLevel;
  18500. },
  18501. setEnabled: function (enabled) {
  18502. ReactEventListener._enabled = !!enabled;
  18503. },
  18504. isEnabled: function () {
  18505. return ReactEventListener._enabled;
  18506. },
  18507. /**
  18508. * Traps top-level events by using event bubbling.
  18509. *
  18510. * @param {string} topLevelType Record from `EventConstants`.
  18511. * @param {string} handlerBaseName Event name (e.g. "click").
  18512. * @param {object} element Element on which to attach listener.
  18513. * @return {?object} An object with a remove function which will forcefully
  18514. * remove the listener.
  18515. * @internal
  18516. */
  18517. trapBubbledEvent: function (topLevelType, handlerBaseName, element) {
  18518. if (!element) {
  18519. return null;
  18520. }
  18521. return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  18522. },
  18523. /**
  18524. * Traps a top-level event by using event capturing.
  18525. *
  18526. * @param {string} topLevelType Record from `EventConstants`.
  18527. * @param {string} handlerBaseName Event name (e.g. "click").
  18528. * @param {object} element Element on which to attach listener.
  18529. * @return {?object} An object with a remove function which will forcefully
  18530. * remove the listener.
  18531. * @internal
  18532. */
  18533. trapCapturedEvent: function (topLevelType, handlerBaseName, element) {
  18534. if (!element) {
  18535. return null;
  18536. }
  18537. return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  18538. },
  18539. monitorScrollValue: function (refresh) {
  18540. var callback = scrollValueMonitor.bind(null, refresh);
  18541. EventListener.listen(window, 'scroll', callback);
  18542. },
  18543. dispatchEvent: function (topLevelType, nativeEvent) {
  18544. if (!ReactEventListener._enabled) {
  18545. return;
  18546. }
  18547. var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent);
  18548. try {
  18549. // Event queue being processed in the same cycle allows
  18550. // `preventDefault`.
  18551. ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping);
  18552. } finally {
  18553. TopLevelCallbackBookKeeping.release(bookKeeping);
  18554. }
  18555. }
  18556. };
  18557. module.exports = ReactEventListener;
  18558. /***/ }),
  18559. /* 160 */
  18560. /***/ (function(module, exports, __webpack_require__) {
  18561. "use strict";
  18562. /**
  18563. * Copyright (c) 2013-present, Facebook, Inc.
  18564. *
  18565. * This source code is licensed under the MIT license found in the
  18566. * LICENSE file in the root directory of this source tree.
  18567. *
  18568. * @typechecks
  18569. */
  18570. /**
  18571. * Gets the scroll position of the supplied element or window.
  18572. *
  18573. * The return values are unbounded, unlike `getScrollPosition`. This means they
  18574. * may be negative or exceed the element boundaries (which is possible using
  18575. * inertial scrolling).
  18576. *
  18577. * @param {DOMWindow|DOMElement} scrollable
  18578. * @return {object} Map with `x` and `y` keys.
  18579. */
  18580. function getUnboundedScrollPosition(scrollable) {
  18581. if (scrollable.Window && scrollable instanceof scrollable.Window) {
  18582. return {
  18583. x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft,
  18584. y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop
  18585. };
  18586. }
  18587. return {
  18588. x: scrollable.scrollLeft,
  18589. y: scrollable.scrollTop
  18590. };
  18591. }
  18592. module.exports = getUnboundedScrollPosition;
  18593. /***/ }),
  18594. /* 161 */
  18595. /***/ (function(module, exports, __webpack_require__) {
  18596. "use strict";
  18597. /**
  18598. * Copyright 2013-present, Facebook, Inc.
  18599. * All rights reserved.
  18600. *
  18601. * This source code is licensed under the BSD-style license found in the
  18602. * LICENSE file in the root directory of this source tree. An additional grant
  18603. * of patent rights can be found in the PATENTS file in the same directory.
  18604. *
  18605. */
  18606. var DOMProperty = __webpack_require__(13);
  18607. var EventPluginHub = __webpack_require__(22);
  18608. var EventPluginUtils = __webpack_require__(35);
  18609. var ReactComponentEnvironment = __webpack_require__(44);
  18610. var ReactEmptyComponent = __webpack_require__(73);
  18611. var ReactBrowserEventEmitter = __webpack_require__(32);
  18612. var ReactHostComponent = __webpack_require__(74);
  18613. var ReactUpdates = __webpack_require__(11);
  18614. var ReactInjection = {
  18615. Component: ReactComponentEnvironment.injection,
  18616. DOMProperty: DOMProperty.injection,
  18617. EmptyComponent: ReactEmptyComponent.injection,
  18618. EventPluginHub: EventPluginHub.injection,
  18619. EventPluginUtils: EventPluginUtils.injection,
  18620. EventEmitter: ReactBrowserEventEmitter.injection,
  18621. HostComponent: ReactHostComponent.injection,
  18622. Updates: ReactUpdates.injection
  18623. };
  18624. module.exports = ReactInjection;
  18625. /***/ }),
  18626. /* 162 */
  18627. /***/ (function(module, exports, __webpack_require__) {
  18628. "use strict";
  18629. /* WEBPACK VAR INJECTION */(function(process) {/**
  18630. * Copyright 2013-present, Facebook, Inc.
  18631. * All rights reserved.
  18632. *
  18633. * This source code is licensed under the BSD-style license found in the
  18634. * LICENSE file in the root directory of this source tree. An additional grant
  18635. * of patent rights can be found in the PATENTS file in the same directory.
  18636. *
  18637. */
  18638. var _assign = __webpack_require__(4);
  18639. var CallbackQueue = __webpack_require__(60);
  18640. var PooledClass = __webpack_require__(16);
  18641. var ReactBrowserEventEmitter = __webpack_require__(32);
  18642. var ReactInputSelection = __webpack_require__(77);
  18643. var ReactInstrumentation = __webpack_require__(9);
  18644. var Transaction = __webpack_require__(28);
  18645. var ReactUpdateQueue = __webpack_require__(48);
  18646. /**
  18647. * Ensures that, when possible, the selection range (currently selected text
  18648. * input) is not disturbed by performing the transaction.
  18649. */
  18650. var SELECTION_RESTORATION = {
  18651. /**
  18652. * @return {Selection} Selection information.
  18653. */
  18654. initialize: ReactInputSelection.getSelectionInformation,
  18655. /**
  18656. * @param {Selection} sel Selection information returned from `initialize`.
  18657. */
  18658. close: ReactInputSelection.restoreSelection
  18659. };
  18660. /**
  18661. * Suppresses events (blur/focus) that could be inadvertently dispatched due to
  18662. * high level DOM manipulations (like temporarily removing a text input from the
  18663. * DOM).
  18664. */
  18665. var EVENT_SUPPRESSION = {
  18666. /**
  18667. * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before
  18668. * the reconciliation.
  18669. */
  18670. initialize: function () {
  18671. var currentlyEnabled = ReactBrowserEventEmitter.isEnabled();
  18672. ReactBrowserEventEmitter.setEnabled(false);
  18673. return currentlyEnabled;
  18674. },
  18675. /**
  18676. * @param {boolean} previouslyEnabled Enabled status of
  18677. * `ReactBrowserEventEmitter` before the reconciliation occurred. `close`
  18678. * restores the previous value.
  18679. */
  18680. close: function (previouslyEnabled) {
  18681. ReactBrowserEventEmitter.setEnabled(previouslyEnabled);
  18682. }
  18683. };
  18684. /**
  18685. * Provides a queue for collecting `componentDidMount` and
  18686. * `componentDidUpdate` callbacks during the transaction.
  18687. */
  18688. var ON_DOM_READY_QUEUEING = {
  18689. /**
  18690. * Initializes the internal `onDOMReady` queue.
  18691. */
  18692. initialize: function () {
  18693. this.reactMountReady.reset();
  18694. },
  18695. /**
  18696. * After DOM is flushed, invoke all registered `onDOMReady` callbacks.
  18697. */
  18698. close: function () {
  18699. this.reactMountReady.notifyAll();
  18700. }
  18701. };
  18702. /**
  18703. * Executed within the scope of the `Transaction` instance. Consider these as
  18704. * being member methods, but with an implied ordering while being isolated from
  18705. * each other.
  18706. */
  18707. var TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING];
  18708. if (process.env.NODE_ENV !== 'production') {
  18709. TRANSACTION_WRAPPERS.push({
  18710. initialize: ReactInstrumentation.debugTool.onBeginFlush,
  18711. close: ReactInstrumentation.debugTool.onEndFlush
  18712. });
  18713. }
  18714. /**
  18715. * Currently:
  18716. * - The order that these are listed in the transaction is critical:
  18717. * - Suppresses events.
  18718. * - Restores selection range.
  18719. *
  18720. * Future:
  18721. * - Restore document/overflow scroll positions that were unintentionally
  18722. * modified via DOM insertions above the top viewport boundary.
  18723. * - Implement/integrate with customized constraint based layout system and keep
  18724. * track of which dimensions must be remeasured.
  18725. *
  18726. * @class ReactReconcileTransaction
  18727. */
  18728. function ReactReconcileTransaction(useCreateElement) {
  18729. this.reinitializeTransaction();
  18730. // Only server-side rendering really needs this option (see
  18731. // `ReactServerRendering`), but server-side uses
  18732. // `ReactServerRenderingTransaction` instead. This option is here so that it's
  18733. // accessible and defaults to false when `ReactDOMComponent` and
  18734. // `ReactDOMTextComponent` checks it in `mountComponent`.`
  18735. this.renderToStaticMarkup = false;
  18736. this.reactMountReady = CallbackQueue.getPooled(null);
  18737. this.useCreateElement = useCreateElement;
  18738. }
  18739. var Mixin = {
  18740. /**
  18741. * @see Transaction
  18742. * @abstract
  18743. * @final
  18744. * @return {array<object>} List of operation wrap procedures.
  18745. * TODO: convert to array<TransactionWrapper>
  18746. */
  18747. getTransactionWrappers: function () {
  18748. return TRANSACTION_WRAPPERS;
  18749. },
  18750. /**
  18751. * @return {object} The queue to collect `onDOMReady` callbacks with.
  18752. */
  18753. getReactMountReady: function () {
  18754. return this.reactMountReady;
  18755. },
  18756. /**
  18757. * @return {object} The queue to collect React async events.
  18758. */
  18759. getUpdateQueue: function () {
  18760. return ReactUpdateQueue;
  18761. },
  18762. /**
  18763. * Save current transaction state -- if the return value from this method is
  18764. * passed to `rollback`, the transaction will be reset to that state.
  18765. */
  18766. checkpoint: function () {
  18767. // reactMountReady is the our only stateful wrapper
  18768. return this.reactMountReady.checkpoint();
  18769. },
  18770. rollback: function (checkpoint) {
  18771. this.reactMountReady.rollback(checkpoint);
  18772. },
  18773. /**
  18774. * `PooledClass` looks for this, and will invoke this before allowing this
  18775. * instance to be reused.
  18776. */
  18777. destructor: function () {
  18778. CallbackQueue.release(this.reactMountReady);
  18779. this.reactMountReady = null;
  18780. }
  18781. };
  18782. _assign(ReactReconcileTransaction.prototype, Transaction, Mixin);
  18783. PooledClass.addPoolingTo(ReactReconcileTransaction);
  18784. module.exports = ReactReconcileTransaction;
  18785. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18786. /***/ }),
  18787. /* 163 */
  18788. /***/ (function(module, exports, __webpack_require__) {
  18789. "use strict";
  18790. /**
  18791. * Copyright 2013-present, Facebook, Inc.
  18792. * All rights reserved.
  18793. *
  18794. * This source code is licensed under the BSD-style license found in the
  18795. * LICENSE file in the root directory of this source tree. An additional grant
  18796. * of patent rights can be found in the PATENTS file in the same directory.
  18797. *
  18798. */
  18799. var ExecutionEnvironment = __webpack_require__(6);
  18800. var getNodeForCharacterOffset = __webpack_require__(164);
  18801. var getTextContentAccessor = __webpack_require__(59);
  18802. /**
  18803. * While `isCollapsed` is available on the Selection object and `collapsed`
  18804. * is available on the Range object, IE11 sometimes gets them wrong.
  18805. * If the anchor/focus nodes and offsets are the same, the range is collapsed.
  18806. */
  18807. function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {
  18808. return anchorNode === focusNode && anchorOffset === focusOffset;
  18809. }
  18810. /**
  18811. * Get the appropriate anchor and focus node/offset pairs for IE.
  18812. *
  18813. * The catch here is that IE's selection API doesn't provide information
  18814. * about whether the selection is forward or backward, so we have to
  18815. * behave as though it's always forward.
  18816. *
  18817. * IE text differs from modern selection in that it behaves as though
  18818. * block elements end with a new line. This means character offsets will
  18819. * differ between the two APIs.
  18820. *
  18821. * @param {DOMElement} node
  18822. * @return {object}
  18823. */
  18824. function getIEOffsets(node) {
  18825. var selection = document.selection;
  18826. var selectedRange = selection.createRange();
  18827. var selectedLength = selectedRange.text.length;
  18828. // Duplicate selection so we can move range without breaking user selection.
  18829. var fromStart = selectedRange.duplicate();
  18830. fromStart.moveToElementText(node);
  18831. fromStart.setEndPoint('EndToStart', selectedRange);
  18832. var startOffset = fromStart.text.length;
  18833. var endOffset = startOffset + selectedLength;
  18834. return {
  18835. start: startOffset,
  18836. end: endOffset
  18837. };
  18838. }
  18839. /**
  18840. * @param {DOMElement} node
  18841. * @return {?object}
  18842. */
  18843. function getModernOffsets(node) {
  18844. var selection = window.getSelection && window.getSelection();
  18845. if (!selection || selection.rangeCount === 0) {
  18846. return null;
  18847. }
  18848. var anchorNode = selection.anchorNode;
  18849. var anchorOffset = selection.anchorOffset;
  18850. var focusNode = selection.focusNode;
  18851. var focusOffset = selection.focusOffset;
  18852. var currentRange = selection.getRangeAt(0);
  18853. // In Firefox, range.startContainer and range.endContainer can be "anonymous
  18854. // divs", e.g. the up/down buttons on an <input type="number">. Anonymous
  18855. // divs do not seem to expose properties, triggering a "Permission denied
  18856. // error" if any of its properties are accessed. The only seemingly possible
  18857. // way to avoid erroring is to access a property that typically works for
  18858. // non-anonymous divs and catch any error that may otherwise arise. See
  18859. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  18860. try {
  18861. /* eslint-disable no-unused-expressions */
  18862. currentRange.startContainer.nodeType;
  18863. currentRange.endContainer.nodeType;
  18864. /* eslint-enable no-unused-expressions */
  18865. } catch (e) {
  18866. return null;
  18867. }
  18868. // If the node and offset values are the same, the selection is collapsed.
  18869. // `Selection.isCollapsed` is available natively, but IE sometimes gets
  18870. // this value wrong.
  18871. var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset);
  18872. var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length;
  18873. var tempRange = currentRange.cloneRange();
  18874. tempRange.selectNodeContents(node);
  18875. tempRange.setEnd(currentRange.startContainer, currentRange.startOffset);
  18876. var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset);
  18877. var start = isTempRangeCollapsed ? 0 : tempRange.toString().length;
  18878. var end = start + rangeLength;
  18879. // Detect whether the selection is backward.
  18880. var detectionRange = document.createRange();
  18881. detectionRange.setStart(anchorNode, anchorOffset);
  18882. detectionRange.setEnd(focusNode, focusOffset);
  18883. var isBackward = detectionRange.collapsed;
  18884. return {
  18885. start: isBackward ? end : start,
  18886. end: isBackward ? start : end
  18887. };
  18888. }
  18889. /**
  18890. * @param {DOMElement|DOMTextNode} node
  18891. * @param {object} offsets
  18892. */
  18893. function setIEOffsets(node, offsets) {
  18894. var range = document.selection.createRange().duplicate();
  18895. var start, end;
  18896. if (offsets.end === undefined) {
  18897. start = offsets.start;
  18898. end = start;
  18899. } else if (offsets.start > offsets.end) {
  18900. start = offsets.end;
  18901. end = offsets.start;
  18902. } else {
  18903. start = offsets.start;
  18904. end = offsets.end;
  18905. }
  18906. range.moveToElementText(node);
  18907. range.moveStart('character', start);
  18908. range.setEndPoint('EndToStart', range);
  18909. range.moveEnd('character', end - start);
  18910. range.select();
  18911. }
  18912. /**
  18913. * In modern non-IE browsers, we can support both forward and backward
  18914. * selections.
  18915. *
  18916. * Note: IE10+ supports the Selection object, but it does not support
  18917. * the `extend` method, which means that even in modern IE, it's not possible
  18918. * to programmatically create a backward selection. Thus, for all IE
  18919. * versions, we use the old IE API to create our selections.
  18920. *
  18921. * @param {DOMElement|DOMTextNode} node
  18922. * @param {object} offsets
  18923. */
  18924. function setModernOffsets(node, offsets) {
  18925. if (!window.getSelection) {
  18926. return;
  18927. }
  18928. var selection = window.getSelection();
  18929. var length = node[getTextContentAccessor()].length;
  18930. var start = Math.min(offsets.start, length);
  18931. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  18932. // IE 11 uses modern selection, but doesn't support the extend method.
  18933. // Flip backward selections, so we can set with a single range.
  18934. if (!selection.extend && start > end) {
  18935. var temp = end;
  18936. end = start;
  18937. start = temp;
  18938. }
  18939. var startMarker = getNodeForCharacterOffset(node, start);
  18940. var endMarker = getNodeForCharacterOffset(node, end);
  18941. if (startMarker && endMarker) {
  18942. var range = document.createRange();
  18943. range.setStart(startMarker.node, startMarker.offset);
  18944. selection.removeAllRanges();
  18945. if (start > end) {
  18946. selection.addRange(range);
  18947. selection.extend(endMarker.node, endMarker.offset);
  18948. } else {
  18949. range.setEnd(endMarker.node, endMarker.offset);
  18950. selection.addRange(range);
  18951. }
  18952. }
  18953. }
  18954. var useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window);
  18955. var ReactDOMSelection = {
  18956. /**
  18957. * @param {DOMElement} node
  18958. */
  18959. getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets,
  18960. /**
  18961. * @param {DOMElement|DOMTextNode} node
  18962. * @param {object} offsets
  18963. */
  18964. setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets
  18965. };
  18966. module.exports = ReactDOMSelection;
  18967. /***/ }),
  18968. /* 164 */
  18969. /***/ (function(module, exports, __webpack_require__) {
  18970. "use strict";
  18971. /**
  18972. * Copyright 2013-present, Facebook, Inc.
  18973. * All rights reserved.
  18974. *
  18975. * This source code is licensed under the BSD-style license found in the
  18976. * LICENSE file in the root directory of this source tree. An additional grant
  18977. * of patent rights can be found in the PATENTS file in the same directory.
  18978. *
  18979. */
  18980. /**
  18981. * Given any node return the first leaf node without children.
  18982. *
  18983. * @param {DOMElement|DOMTextNode} node
  18984. * @return {DOMElement|DOMTextNode}
  18985. */
  18986. function getLeafNode(node) {
  18987. while (node && node.firstChild) {
  18988. node = node.firstChild;
  18989. }
  18990. return node;
  18991. }
  18992. /**
  18993. * Get the next sibling within a container. This will walk up the
  18994. * DOM if a node's siblings have been exhausted.
  18995. *
  18996. * @param {DOMElement|DOMTextNode} node
  18997. * @return {?DOMElement|DOMTextNode}
  18998. */
  18999. function getSiblingNode(node) {
  19000. while (node) {
  19001. if (node.nextSibling) {
  19002. return node.nextSibling;
  19003. }
  19004. node = node.parentNode;
  19005. }
  19006. }
  19007. /**
  19008. * Get object describing the nodes which contain characters at offset.
  19009. *
  19010. * @param {DOMElement|DOMTextNode} root
  19011. * @param {number} offset
  19012. * @return {?object}
  19013. */
  19014. function getNodeForCharacterOffset(root, offset) {
  19015. var node = getLeafNode(root);
  19016. var nodeStart = 0;
  19017. var nodeEnd = 0;
  19018. while (node) {
  19019. if (node.nodeType === 3) {
  19020. nodeEnd = nodeStart + node.textContent.length;
  19021. if (nodeStart <= offset && nodeEnd >= offset) {
  19022. return {
  19023. node: node,
  19024. offset: offset - nodeStart
  19025. };
  19026. }
  19027. nodeStart = nodeEnd;
  19028. }
  19029. node = getLeafNode(getSiblingNode(node));
  19030. }
  19031. }
  19032. module.exports = getNodeForCharacterOffset;
  19033. /***/ }),
  19034. /* 165 */
  19035. /***/ (function(module, exports, __webpack_require__) {
  19036. "use strict";
  19037. /**
  19038. * Copyright (c) 2013-present, Facebook, Inc.
  19039. *
  19040. * This source code is licensed under the MIT license found in the
  19041. * LICENSE file in the root directory of this source tree.
  19042. *
  19043. *
  19044. */
  19045. var isTextNode = __webpack_require__(166);
  19046. /*eslint-disable no-bitwise */
  19047. /**
  19048. * Checks if a given DOM node contains or is another DOM node.
  19049. */
  19050. function containsNode(outerNode, innerNode) {
  19051. if (!outerNode || !innerNode) {
  19052. return false;
  19053. } else if (outerNode === innerNode) {
  19054. return true;
  19055. } else if (isTextNode(outerNode)) {
  19056. return false;
  19057. } else if (isTextNode(innerNode)) {
  19058. return containsNode(outerNode, innerNode.parentNode);
  19059. } else if ('contains' in outerNode) {
  19060. return outerNode.contains(innerNode);
  19061. } else if (outerNode.compareDocumentPosition) {
  19062. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  19063. } else {
  19064. return false;
  19065. }
  19066. }
  19067. module.exports = containsNode;
  19068. /***/ }),
  19069. /* 166 */
  19070. /***/ (function(module, exports, __webpack_require__) {
  19071. "use strict";
  19072. /**
  19073. * Copyright (c) 2013-present, Facebook, Inc.
  19074. *
  19075. * This source code is licensed under the MIT license found in the
  19076. * LICENSE file in the root directory of this source tree.
  19077. *
  19078. * @typechecks
  19079. */
  19080. var isNode = __webpack_require__(167);
  19081. /**
  19082. * @param {*} object The object to check.
  19083. * @return {boolean} Whether or not the object is a DOM text node.
  19084. */
  19085. function isTextNode(object) {
  19086. return isNode(object) && object.nodeType == 3;
  19087. }
  19088. module.exports = isTextNode;
  19089. /***/ }),
  19090. /* 167 */
  19091. /***/ (function(module, exports, __webpack_require__) {
  19092. "use strict";
  19093. /**
  19094. * Copyright (c) 2013-present, Facebook, Inc.
  19095. *
  19096. * This source code is licensed under the MIT license found in the
  19097. * LICENSE file in the root directory of this source tree.
  19098. *
  19099. * @typechecks
  19100. */
  19101. /**
  19102. * @param {*} object The object to check.
  19103. * @return {boolean} Whether or not the object is a DOM node.
  19104. */
  19105. function isNode(object) {
  19106. var doc = object ? object.ownerDocument || object : document;
  19107. var defaultView = doc.defaultView || window;
  19108. return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
  19109. }
  19110. module.exports = isNode;
  19111. /***/ }),
  19112. /* 168 */
  19113. /***/ (function(module, exports, __webpack_require__) {
  19114. "use strict";
  19115. /**
  19116. * Copyright 2013-present, Facebook, Inc.
  19117. * All rights reserved.
  19118. *
  19119. * This source code is licensed under the BSD-style license found in the
  19120. * LICENSE file in the root directory of this source tree. An additional grant
  19121. * of patent rights can be found in the PATENTS file in the same directory.
  19122. *
  19123. */
  19124. var NS = {
  19125. xlink: 'http://www.w3.org/1999/xlink',
  19126. xml: 'http://www.w3.org/XML/1998/namespace'
  19127. };
  19128. // We use attributes for everything SVG so let's avoid some duplication and run
  19129. // code instead.
  19130. // The following are all specified in the HTML config already so we exclude here.
  19131. // - class (as className)
  19132. // - color
  19133. // - height
  19134. // - id
  19135. // - lang
  19136. // - max
  19137. // - media
  19138. // - method
  19139. // - min
  19140. // - name
  19141. // - style
  19142. // - target
  19143. // - type
  19144. // - width
  19145. var ATTRS = {
  19146. accentHeight: 'accent-height',
  19147. accumulate: 0,
  19148. additive: 0,
  19149. alignmentBaseline: 'alignment-baseline',
  19150. allowReorder: 'allowReorder',
  19151. alphabetic: 0,
  19152. amplitude: 0,
  19153. arabicForm: 'arabic-form',
  19154. ascent: 0,
  19155. attributeName: 'attributeName',
  19156. attributeType: 'attributeType',
  19157. autoReverse: 'autoReverse',
  19158. azimuth: 0,
  19159. baseFrequency: 'baseFrequency',
  19160. baseProfile: 'baseProfile',
  19161. baselineShift: 'baseline-shift',
  19162. bbox: 0,
  19163. begin: 0,
  19164. bias: 0,
  19165. by: 0,
  19166. calcMode: 'calcMode',
  19167. capHeight: 'cap-height',
  19168. clip: 0,
  19169. clipPath: 'clip-path',
  19170. clipRule: 'clip-rule',
  19171. clipPathUnits: 'clipPathUnits',
  19172. colorInterpolation: 'color-interpolation',
  19173. colorInterpolationFilters: 'color-interpolation-filters',
  19174. colorProfile: 'color-profile',
  19175. colorRendering: 'color-rendering',
  19176. contentScriptType: 'contentScriptType',
  19177. contentStyleType: 'contentStyleType',
  19178. cursor: 0,
  19179. cx: 0,
  19180. cy: 0,
  19181. d: 0,
  19182. decelerate: 0,
  19183. descent: 0,
  19184. diffuseConstant: 'diffuseConstant',
  19185. direction: 0,
  19186. display: 0,
  19187. divisor: 0,
  19188. dominantBaseline: 'dominant-baseline',
  19189. dur: 0,
  19190. dx: 0,
  19191. dy: 0,
  19192. edgeMode: 'edgeMode',
  19193. elevation: 0,
  19194. enableBackground: 'enable-background',
  19195. end: 0,
  19196. exponent: 0,
  19197. externalResourcesRequired: 'externalResourcesRequired',
  19198. fill: 0,
  19199. fillOpacity: 'fill-opacity',
  19200. fillRule: 'fill-rule',
  19201. filter: 0,
  19202. filterRes: 'filterRes',
  19203. filterUnits: 'filterUnits',
  19204. floodColor: 'flood-color',
  19205. floodOpacity: 'flood-opacity',
  19206. focusable: 0,
  19207. fontFamily: 'font-family',
  19208. fontSize: 'font-size',
  19209. fontSizeAdjust: 'font-size-adjust',
  19210. fontStretch: 'font-stretch',
  19211. fontStyle: 'font-style',
  19212. fontVariant: 'font-variant',
  19213. fontWeight: 'font-weight',
  19214. format: 0,
  19215. from: 0,
  19216. fx: 0,
  19217. fy: 0,
  19218. g1: 0,
  19219. g2: 0,
  19220. glyphName: 'glyph-name',
  19221. glyphOrientationHorizontal: 'glyph-orientation-horizontal',
  19222. glyphOrientationVertical: 'glyph-orientation-vertical',
  19223. glyphRef: 'glyphRef',
  19224. gradientTransform: 'gradientTransform',
  19225. gradientUnits: 'gradientUnits',
  19226. hanging: 0,
  19227. horizAdvX: 'horiz-adv-x',
  19228. horizOriginX: 'horiz-origin-x',
  19229. ideographic: 0,
  19230. imageRendering: 'image-rendering',
  19231. 'in': 0,
  19232. in2: 0,
  19233. intercept: 0,
  19234. k: 0,
  19235. k1: 0,
  19236. k2: 0,
  19237. k3: 0,
  19238. k4: 0,
  19239. kernelMatrix: 'kernelMatrix',
  19240. kernelUnitLength: 'kernelUnitLength',
  19241. kerning: 0,
  19242. keyPoints: 'keyPoints',
  19243. keySplines: 'keySplines',
  19244. keyTimes: 'keyTimes',
  19245. lengthAdjust: 'lengthAdjust',
  19246. letterSpacing: 'letter-spacing',
  19247. lightingColor: 'lighting-color',
  19248. limitingConeAngle: 'limitingConeAngle',
  19249. local: 0,
  19250. markerEnd: 'marker-end',
  19251. markerMid: 'marker-mid',
  19252. markerStart: 'marker-start',
  19253. markerHeight: 'markerHeight',
  19254. markerUnits: 'markerUnits',
  19255. markerWidth: 'markerWidth',
  19256. mask: 0,
  19257. maskContentUnits: 'maskContentUnits',
  19258. maskUnits: 'maskUnits',
  19259. mathematical: 0,
  19260. mode: 0,
  19261. numOctaves: 'numOctaves',
  19262. offset: 0,
  19263. opacity: 0,
  19264. operator: 0,
  19265. order: 0,
  19266. orient: 0,
  19267. orientation: 0,
  19268. origin: 0,
  19269. overflow: 0,
  19270. overlinePosition: 'overline-position',
  19271. overlineThickness: 'overline-thickness',
  19272. paintOrder: 'paint-order',
  19273. panose1: 'panose-1',
  19274. pathLength: 'pathLength',
  19275. patternContentUnits: 'patternContentUnits',
  19276. patternTransform: 'patternTransform',
  19277. patternUnits: 'patternUnits',
  19278. pointerEvents: 'pointer-events',
  19279. points: 0,
  19280. pointsAtX: 'pointsAtX',
  19281. pointsAtY: 'pointsAtY',
  19282. pointsAtZ: 'pointsAtZ',
  19283. preserveAlpha: 'preserveAlpha',
  19284. preserveAspectRatio: 'preserveAspectRatio',
  19285. primitiveUnits: 'primitiveUnits',
  19286. r: 0,
  19287. radius: 0,
  19288. refX: 'refX',
  19289. refY: 'refY',
  19290. renderingIntent: 'rendering-intent',
  19291. repeatCount: 'repeatCount',
  19292. repeatDur: 'repeatDur',
  19293. requiredExtensions: 'requiredExtensions',
  19294. requiredFeatures: 'requiredFeatures',
  19295. restart: 0,
  19296. result: 0,
  19297. rotate: 0,
  19298. rx: 0,
  19299. ry: 0,
  19300. scale: 0,
  19301. seed: 0,
  19302. shapeRendering: 'shape-rendering',
  19303. slope: 0,
  19304. spacing: 0,
  19305. specularConstant: 'specularConstant',
  19306. specularExponent: 'specularExponent',
  19307. speed: 0,
  19308. spreadMethod: 'spreadMethod',
  19309. startOffset: 'startOffset',
  19310. stdDeviation: 'stdDeviation',
  19311. stemh: 0,
  19312. stemv: 0,
  19313. stitchTiles: 'stitchTiles',
  19314. stopColor: 'stop-color',
  19315. stopOpacity: 'stop-opacity',
  19316. strikethroughPosition: 'strikethrough-position',
  19317. strikethroughThickness: 'strikethrough-thickness',
  19318. string: 0,
  19319. stroke: 0,
  19320. strokeDasharray: 'stroke-dasharray',
  19321. strokeDashoffset: 'stroke-dashoffset',
  19322. strokeLinecap: 'stroke-linecap',
  19323. strokeLinejoin: 'stroke-linejoin',
  19324. strokeMiterlimit: 'stroke-miterlimit',
  19325. strokeOpacity: 'stroke-opacity',
  19326. strokeWidth: 'stroke-width',
  19327. surfaceScale: 'surfaceScale',
  19328. systemLanguage: 'systemLanguage',
  19329. tableValues: 'tableValues',
  19330. targetX: 'targetX',
  19331. targetY: 'targetY',
  19332. textAnchor: 'text-anchor',
  19333. textDecoration: 'text-decoration',
  19334. textRendering: 'text-rendering',
  19335. textLength: 'textLength',
  19336. to: 0,
  19337. transform: 0,
  19338. u1: 0,
  19339. u2: 0,
  19340. underlinePosition: 'underline-position',
  19341. underlineThickness: 'underline-thickness',
  19342. unicode: 0,
  19343. unicodeBidi: 'unicode-bidi',
  19344. unicodeRange: 'unicode-range',
  19345. unitsPerEm: 'units-per-em',
  19346. vAlphabetic: 'v-alphabetic',
  19347. vHanging: 'v-hanging',
  19348. vIdeographic: 'v-ideographic',
  19349. vMathematical: 'v-mathematical',
  19350. values: 0,
  19351. vectorEffect: 'vector-effect',
  19352. version: 0,
  19353. vertAdvY: 'vert-adv-y',
  19354. vertOriginX: 'vert-origin-x',
  19355. vertOriginY: 'vert-origin-y',
  19356. viewBox: 'viewBox',
  19357. viewTarget: 'viewTarget',
  19358. visibility: 0,
  19359. widths: 0,
  19360. wordSpacing: 'word-spacing',
  19361. writingMode: 'writing-mode',
  19362. x: 0,
  19363. xHeight: 'x-height',
  19364. x1: 0,
  19365. x2: 0,
  19366. xChannelSelector: 'xChannelSelector',
  19367. xlinkActuate: 'xlink:actuate',
  19368. xlinkArcrole: 'xlink:arcrole',
  19369. xlinkHref: 'xlink:href',
  19370. xlinkRole: 'xlink:role',
  19371. xlinkShow: 'xlink:show',
  19372. xlinkTitle: 'xlink:title',
  19373. xlinkType: 'xlink:type',
  19374. xmlBase: 'xml:base',
  19375. xmlns: 0,
  19376. xmlnsXlink: 'xmlns:xlink',
  19377. xmlLang: 'xml:lang',
  19378. xmlSpace: 'xml:space',
  19379. y: 0,
  19380. y1: 0,
  19381. y2: 0,
  19382. yChannelSelector: 'yChannelSelector',
  19383. z: 0,
  19384. zoomAndPan: 'zoomAndPan'
  19385. };
  19386. var SVGDOMPropertyConfig = {
  19387. Properties: {},
  19388. DOMAttributeNamespaces: {
  19389. xlinkActuate: NS.xlink,
  19390. xlinkArcrole: NS.xlink,
  19391. xlinkHref: NS.xlink,
  19392. xlinkRole: NS.xlink,
  19393. xlinkShow: NS.xlink,
  19394. xlinkTitle: NS.xlink,
  19395. xlinkType: NS.xlink,
  19396. xmlBase: NS.xml,
  19397. xmlLang: NS.xml,
  19398. xmlSpace: NS.xml
  19399. },
  19400. DOMAttributeNames: {}
  19401. };
  19402. Object.keys(ATTRS).forEach(function (key) {
  19403. SVGDOMPropertyConfig.Properties[key] = 0;
  19404. if (ATTRS[key]) {
  19405. SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];
  19406. }
  19407. });
  19408. module.exports = SVGDOMPropertyConfig;
  19409. /***/ }),
  19410. /* 169 */
  19411. /***/ (function(module, exports, __webpack_require__) {
  19412. "use strict";
  19413. /**
  19414. * Copyright 2013-present, Facebook, Inc.
  19415. * All rights reserved.
  19416. *
  19417. * This source code is licensed under the BSD-style license found in the
  19418. * LICENSE file in the root directory of this source tree. An additional grant
  19419. * of patent rights can be found in the PATENTS file in the same directory.
  19420. *
  19421. */
  19422. var EventPropagators = __webpack_require__(21);
  19423. var ExecutionEnvironment = __webpack_require__(6);
  19424. var ReactDOMComponentTree = __webpack_require__(5);
  19425. var ReactInputSelection = __webpack_require__(77);
  19426. var SyntheticEvent = __webpack_require__(12);
  19427. var getActiveElement = __webpack_require__(78);
  19428. var isTextInputElement = __webpack_require__(62);
  19429. var shallowEqual = __webpack_require__(45);
  19430. var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  19431. var eventTypes = {
  19432. select: {
  19433. phasedRegistrationNames: {
  19434. bubbled: 'onSelect',
  19435. captured: 'onSelectCapture'
  19436. },
  19437. dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange']
  19438. }
  19439. };
  19440. var activeElement = null;
  19441. var activeElementInst = null;
  19442. var lastSelection = null;
  19443. var mouseDown = false;
  19444. // Track whether a listener exists for this plugin. If none exist, we do
  19445. // not extract events. See #3639.
  19446. var hasListener = false;
  19447. /**
  19448. * Get an object which is a unique representation of the current selection.
  19449. *
  19450. * The return value will not be consistent across nodes or browsers, but
  19451. * two identical selections on the same node will return identical objects.
  19452. *
  19453. * @param {DOMElement} node
  19454. * @return {object}
  19455. */
  19456. function getSelection(node) {
  19457. if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) {
  19458. return {
  19459. start: node.selectionStart,
  19460. end: node.selectionEnd
  19461. };
  19462. } else if (window.getSelection) {
  19463. var selection = window.getSelection();
  19464. return {
  19465. anchorNode: selection.anchorNode,
  19466. anchorOffset: selection.anchorOffset,
  19467. focusNode: selection.focusNode,
  19468. focusOffset: selection.focusOffset
  19469. };
  19470. } else if (document.selection) {
  19471. var range = document.selection.createRange();
  19472. return {
  19473. parentElement: range.parentElement(),
  19474. text: range.text,
  19475. top: range.boundingTop,
  19476. left: range.boundingLeft
  19477. };
  19478. }
  19479. }
  19480. /**
  19481. * Poll selection to see whether it's changed.
  19482. *
  19483. * @param {object} nativeEvent
  19484. * @return {?SyntheticEvent}
  19485. */
  19486. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  19487. // Ensure we have the right element, and that the user is not dragging a
  19488. // selection (this matches native `select` event behavior). In HTML5, select
  19489. // fires only on input and textarea thus if there's no focused element we
  19490. // won't dispatch.
  19491. if (mouseDown || activeElement == null || activeElement !== getActiveElement()) {
  19492. return null;
  19493. }
  19494. // Only fire when selection has actually changed.
  19495. var currentSelection = getSelection(activeElement);
  19496. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  19497. lastSelection = currentSelection;
  19498. var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget);
  19499. syntheticEvent.type = 'select';
  19500. syntheticEvent.target = activeElement;
  19501. EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent);
  19502. return syntheticEvent;
  19503. }
  19504. return null;
  19505. }
  19506. /**
  19507. * This plugin creates an `onSelect` event that normalizes select events
  19508. * across form elements.
  19509. *
  19510. * Supported elements are:
  19511. * - input (see `isTextInputElement`)
  19512. * - textarea
  19513. * - contentEditable
  19514. *
  19515. * This differs from native browser implementations in the following ways:
  19516. * - Fires on contentEditable fields as well as inputs.
  19517. * - Fires for collapsed selection.
  19518. * - Fires after user input.
  19519. */
  19520. var SelectEventPlugin = {
  19521. eventTypes: eventTypes,
  19522. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19523. if (!hasListener) {
  19524. return null;
  19525. }
  19526. var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
  19527. switch (topLevelType) {
  19528. // Track the input node that has focus.
  19529. case 'topFocus':
  19530. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  19531. activeElement = targetNode;
  19532. activeElementInst = targetInst;
  19533. lastSelection = null;
  19534. }
  19535. break;
  19536. case 'topBlur':
  19537. activeElement = null;
  19538. activeElementInst = null;
  19539. lastSelection = null;
  19540. break;
  19541. // Don't fire the event while the user is dragging. This matches the
  19542. // semantics of the native select event.
  19543. case 'topMouseDown':
  19544. mouseDown = true;
  19545. break;
  19546. case 'topContextMenu':
  19547. case 'topMouseUp':
  19548. mouseDown = false;
  19549. return constructSelectEvent(nativeEvent, nativeEventTarget);
  19550. // Chrome and IE fire non-standard event when selection is changed (and
  19551. // sometimes when it hasn't). IE's event fires out of order with respect
  19552. // to key and input events on deletion, so we discard it.
  19553. //
  19554. // Firefox doesn't support selectionchange, so check selection status
  19555. // after each key entry. The selection changes after keydown and before
  19556. // keyup, but we check on keydown as well in the case of holding down a
  19557. // key, when multiple keydown events are fired but only one keyup is.
  19558. // This is also our approach for IE handling, for the reason above.
  19559. case 'topSelectionChange':
  19560. if (skipSelectionChangeEvent) {
  19561. break;
  19562. }
  19563. // falls through
  19564. case 'topKeyDown':
  19565. case 'topKeyUp':
  19566. return constructSelectEvent(nativeEvent, nativeEventTarget);
  19567. }
  19568. return null;
  19569. },
  19570. didPutListener: function (inst, registrationName, listener) {
  19571. if (registrationName === 'onSelect') {
  19572. hasListener = true;
  19573. }
  19574. }
  19575. };
  19576. module.exports = SelectEventPlugin;
  19577. /***/ }),
  19578. /* 170 */
  19579. /***/ (function(module, exports, __webpack_require__) {
  19580. "use strict";
  19581. /* WEBPACK VAR INJECTION */(function(process) {/**
  19582. * Copyright 2013-present, Facebook, Inc.
  19583. * All rights reserved.
  19584. *
  19585. * This source code is licensed under the BSD-style license found in the
  19586. * LICENSE file in the root directory of this source tree. An additional grant
  19587. * of patent rights can be found in the PATENTS file in the same directory.
  19588. *
  19589. *
  19590. */
  19591. var _prodInvariant = __webpack_require__(3);
  19592. var EventListener = __webpack_require__(76);
  19593. var EventPropagators = __webpack_require__(21);
  19594. var ReactDOMComponentTree = __webpack_require__(5);
  19595. var SyntheticAnimationEvent = __webpack_require__(171);
  19596. var SyntheticClipboardEvent = __webpack_require__(172);
  19597. var SyntheticEvent = __webpack_require__(12);
  19598. var SyntheticFocusEvent = __webpack_require__(173);
  19599. var SyntheticKeyboardEvent = __webpack_require__(174);
  19600. var SyntheticMouseEvent = __webpack_require__(29);
  19601. var SyntheticDragEvent = __webpack_require__(176);
  19602. var SyntheticTouchEvent = __webpack_require__(177);
  19603. var SyntheticTransitionEvent = __webpack_require__(178);
  19604. var SyntheticUIEvent = __webpack_require__(23);
  19605. var SyntheticWheelEvent = __webpack_require__(179);
  19606. var emptyFunction = __webpack_require__(8);
  19607. var getEventCharCode = __webpack_require__(50);
  19608. var invariant = __webpack_require__(1);
  19609. /**
  19610. * Turns
  19611. * ['abort', ...]
  19612. * into
  19613. * eventTypes = {
  19614. * 'abort': {
  19615. * phasedRegistrationNames: {
  19616. * bubbled: 'onAbort',
  19617. * captured: 'onAbortCapture',
  19618. * },
  19619. * dependencies: ['topAbort'],
  19620. * },
  19621. * ...
  19622. * };
  19623. * topLevelEventsToDispatchConfig = {
  19624. * 'topAbort': { sameConfig }
  19625. * };
  19626. */
  19627. var eventTypes = {};
  19628. var topLevelEventsToDispatchConfig = {};
  19629. ['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'canPlay', 'canPlayThrough', 'click', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) {
  19630. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  19631. var onEvent = 'on' + capitalizedEvent;
  19632. var topEvent = 'top' + capitalizedEvent;
  19633. var type = {
  19634. phasedRegistrationNames: {
  19635. bubbled: onEvent,
  19636. captured: onEvent + 'Capture'
  19637. },
  19638. dependencies: [topEvent]
  19639. };
  19640. eventTypes[event] = type;
  19641. topLevelEventsToDispatchConfig[topEvent] = type;
  19642. });
  19643. var onClickListeners = {};
  19644. function getDictionaryKey(inst) {
  19645. // Prevents V8 performance issue:
  19646. // https://github.com/facebook/react/pull/7232
  19647. return '.' + inst._rootNodeID;
  19648. }
  19649. function isInteractive(tag) {
  19650. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  19651. }
  19652. var SimpleEventPlugin = {
  19653. eventTypes: eventTypes,
  19654. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19655. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  19656. if (!dispatchConfig) {
  19657. return null;
  19658. }
  19659. var EventConstructor;
  19660. switch (topLevelType) {
  19661. case 'topAbort':
  19662. case 'topCanPlay':
  19663. case 'topCanPlayThrough':
  19664. case 'topDurationChange':
  19665. case 'topEmptied':
  19666. case 'topEncrypted':
  19667. case 'topEnded':
  19668. case 'topError':
  19669. case 'topInput':
  19670. case 'topInvalid':
  19671. case 'topLoad':
  19672. case 'topLoadedData':
  19673. case 'topLoadedMetadata':
  19674. case 'topLoadStart':
  19675. case 'topPause':
  19676. case 'topPlay':
  19677. case 'topPlaying':
  19678. case 'topProgress':
  19679. case 'topRateChange':
  19680. case 'topReset':
  19681. case 'topSeeked':
  19682. case 'topSeeking':
  19683. case 'topStalled':
  19684. case 'topSubmit':
  19685. case 'topSuspend':
  19686. case 'topTimeUpdate':
  19687. case 'topVolumeChange':
  19688. case 'topWaiting':
  19689. // HTML Events
  19690. // @see http://www.w3.org/TR/html5/index.html#events-0
  19691. EventConstructor = SyntheticEvent;
  19692. break;
  19693. case 'topKeyPress':
  19694. // Firefox creates a keypress event for function keys too. This removes
  19695. // the unwanted keypress events. Enter is however both printable and
  19696. // non-printable. One would expect Tab to be as well (but it isn't).
  19697. if (getEventCharCode(nativeEvent) === 0) {
  19698. return null;
  19699. }
  19700. /* falls through */
  19701. case 'topKeyDown':
  19702. case 'topKeyUp':
  19703. EventConstructor = SyntheticKeyboardEvent;
  19704. break;
  19705. case 'topBlur':
  19706. case 'topFocus':
  19707. EventConstructor = SyntheticFocusEvent;
  19708. break;
  19709. case 'topClick':
  19710. // Firefox creates a click event on right mouse clicks. This removes the
  19711. // unwanted click events.
  19712. if (nativeEvent.button === 2) {
  19713. return null;
  19714. }
  19715. /* falls through */
  19716. case 'topDoubleClick':
  19717. case 'topMouseDown':
  19718. case 'topMouseMove':
  19719. case 'topMouseUp':
  19720. // TODO: Disabled elements should not respond to mouse events
  19721. /* falls through */
  19722. case 'topMouseOut':
  19723. case 'topMouseOver':
  19724. case 'topContextMenu':
  19725. EventConstructor = SyntheticMouseEvent;
  19726. break;
  19727. case 'topDrag':
  19728. case 'topDragEnd':
  19729. case 'topDragEnter':
  19730. case 'topDragExit':
  19731. case 'topDragLeave':
  19732. case 'topDragOver':
  19733. case 'topDragStart':
  19734. case 'topDrop':
  19735. EventConstructor = SyntheticDragEvent;
  19736. break;
  19737. case 'topTouchCancel':
  19738. case 'topTouchEnd':
  19739. case 'topTouchMove':
  19740. case 'topTouchStart':
  19741. EventConstructor = SyntheticTouchEvent;
  19742. break;
  19743. case 'topAnimationEnd':
  19744. case 'topAnimationIteration':
  19745. case 'topAnimationStart':
  19746. EventConstructor = SyntheticAnimationEvent;
  19747. break;
  19748. case 'topTransitionEnd':
  19749. EventConstructor = SyntheticTransitionEvent;
  19750. break;
  19751. case 'topScroll':
  19752. EventConstructor = SyntheticUIEvent;
  19753. break;
  19754. case 'topWheel':
  19755. EventConstructor = SyntheticWheelEvent;
  19756. break;
  19757. case 'topCopy':
  19758. case 'topCut':
  19759. case 'topPaste':
  19760. EventConstructor = SyntheticClipboardEvent;
  19761. break;
  19762. }
  19763. !EventConstructor ? process.env.NODE_ENV !== 'production' ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : _prodInvariant('86', topLevelType) : void 0;
  19764. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  19765. EventPropagators.accumulateTwoPhaseDispatches(event);
  19766. return event;
  19767. },
  19768. didPutListener: function (inst, registrationName, listener) {
  19769. // Mobile Safari does not fire properly bubble click events on
  19770. // non-interactive elements, which means delegated click listeners do not
  19771. // fire. The workaround for this bug involves attaching an empty click
  19772. // listener on the target node.
  19773. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  19774. if (registrationName === 'onClick' && !isInteractive(inst._tag)) {
  19775. var key = getDictionaryKey(inst);
  19776. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  19777. if (!onClickListeners[key]) {
  19778. onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction);
  19779. }
  19780. }
  19781. },
  19782. willDeleteListener: function (inst, registrationName) {
  19783. if (registrationName === 'onClick' && !isInteractive(inst._tag)) {
  19784. var key = getDictionaryKey(inst);
  19785. onClickListeners[key].remove();
  19786. delete onClickListeners[key];
  19787. }
  19788. }
  19789. };
  19790. module.exports = SimpleEventPlugin;
  19791. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  19792. /***/ }),
  19793. /* 171 */
  19794. /***/ (function(module, exports, __webpack_require__) {
  19795. "use strict";
  19796. /**
  19797. * Copyright 2013-present, Facebook, Inc.
  19798. * All rights reserved.
  19799. *
  19800. * This source code is licensed under the BSD-style license found in the
  19801. * LICENSE file in the root directory of this source tree. An additional grant
  19802. * of patent rights can be found in the PATENTS file in the same directory.
  19803. *
  19804. */
  19805. var SyntheticEvent = __webpack_require__(12);
  19806. /**
  19807. * @interface Event
  19808. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  19809. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  19810. */
  19811. var AnimationEventInterface = {
  19812. animationName: null,
  19813. elapsedTime: null,
  19814. pseudoElement: null
  19815. };
  19816. /**
  19817. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19818. * @param {string} dispatchMarker Marker identifying the event target.
  19819. * @param {object} nativeEvent Native browser event.
  19820. * @extends {SyntheticEvent}
  19821. */
  19822. function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19823. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19824. }
  19825. SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);
  19826. module.exports = SyntheticAnimationEvent;
  19827. /***/ }),
  19828. /* 172 */
  19829. /***/ (function(module, exports, __webpack_require__) {
  19830. "use strict";
  19831. /**
  19832. * Copyright 2013-present, Facebook, Inc.
  19833. * All rights reserved.
  19834. *
  19835. * This source code is licensed under the BSD-style license found in the
  19836. * LICENSE file in the root directory of this source tree. An additional grant
  19837. * of patent rights can be found in the PATENTS file in the same directory.
  19838. *
  19839. */
  19840. var SyntheticEvent = __webpack_require__(12);
  19841. /**
  19842. * @interface Event
  19843. * @see http://www.w3.org/TR/clipboard-apis/
  19844. */
  19845. var ClipboardEventInterface = {
  19846. clipboardData: function (event) {
  19847. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  19848. }
  19849. };
  19850. /**
  19851. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19852. * @param {string} dispatchMarker Marker identifying the event target.
  19853. * @param {object} nativeEvent Native browser event.
  19854. * @extends {SyntheticUIEvent}
  19855. */
  19856. function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19857. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19858. }
  19859. SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
  19860. module.exports = SyntheticClipboardEvent;
  19861. /***/ }),
  19862. /* 173 */
  19863. /***/ (function(module, exports, __webpack_require__) {
  19864. "use strict";
  19865. /**
  19866. * Copyright 2013-present, Facebook, Inc.
  19867. * All rights reserved.
  19868. *
  19869. * This source code is licensed under the BSD-style license found in the
  19870. * LICENSE file in the root directory of this source tree. An additional grant
  19871. * of patent rights can be found in the PATENTS file in the same directory.
  19872. *
  19873. */
  19874. var SyntheticUIEvent = __webpack_require__(23);
  19875. /**
  19876. * @interface FocusEvent
  19877. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  19878. */
  19879. var FocusEventInterface = {
  19880. relatedTarget: null
  19881. };
  19882. /**
  19883. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19884. * @param {string} dispatchMarker Marker identifying the event target.
  19885. * @param {object} nativeEvent Native browser event.
  19886. * @extends {SyntheticUIEvent}
  19887. */
  19888. function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19889. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19890. }
  19891. SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
  19892. module.exports = SyntheticFocusEvent;
  19893. /***/ }),
  19894. /* 174 */
  19895. /***/ (function(module, exports, __webpack_require__) {
  19896. "use strict";
  19897. /**
  19898. * Copyright 2013-present, Facebook, Inc.
  19899. * All rights reserved.
  19900. *
  19901. * This source code is licensed under the BSD-style license found in the
  19902. * LICENSE file in the root directory of this source tree. An additional grant
  19903. * of patent rights can be found in the PATENTS file in the same directory.
  19904. *
  19905. */
  19906. var SyntheticUIEvent = __webpack_require__(23);
  19907. var getEventCharCode = __webpack_require__(50);
  19908. var getEventKey = __webpack_require__(175);
  19909. var getEventModifierState = __webpack_require__(39);
  19910. /**
  19911. * @interface KeyboardEvent
  19912. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  19913. */
  19914. var KeyboardEventInterface = {
  19915. key: getEventKey,
  19916. location: null,
  19917. ctrlKey: null,
  19918. shiftKey: null,
  19919. altKey: null,
  19920. metaKey: null,
  19921. repeat: null,
  19922. locale: null,
  19923. getModifierState: getEventModifierState,
  19924. // Legacy Interface
  19925. charCode: function (event) {
  19926. // `charCode` is the result of a KeyPress event and represents the value of
  19927. // the actual printable character.
  19928. // KeyPress is deprecated, but its replacement is not yet final and not
  19929. // implemented in any major browser. Only KeyPress has charCode.
  19930. if (event.type === 'keypress') {
  19931. return getEventCharCode(event);
  19932. }
  19933. return 0;
  19934. },
  19935. keyCode: function (event) {
  19936. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  19937. // physical keyboard key.
  19938. // The actual meaning of the value depends on the users' keyboard layout
  19939. // which cannot be detected. Assuming that it is a US keyboard layout
  19940. // provides a surprisingly accurate mapping for US and European users.
  19941. // Due to this, it is left to the user to implement at this time.
  19942. if (event.type === 'keydown' || event.type === 'keyup') {
  19943. return event.keyCode;
  19944. }
  19945. return 0;
  19946. },
  19947. which: function (event) {
  19948. // `which` is an alias for either `keyCode` or `charCode` depending on the
  19949. // type of the event.
  19950. if (event.type === 'keypress') {
  19951. return getEventCharCode(event);
  19952. }
  19953. if (event.type === 'keydown' || event.type === 'keyup') {
  19954. return event.keyCode;
  19955. }
  19956. return 0;
  19957. }
  19958. };
  19959. /**
  19960. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19961. * @param {string} dispatchMarker Marker identifying the event target.
  19962. * @param {object} nativeEvent Native browser event.
  19963. * @extends {SyntheticUIEvent}
  19964. */
  19965. function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19966. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19967. }
  19968. SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
  19969. module.exports = SyntheticKeyboardEvent;
  19970. /***/ }),
  19971. /* 175 */
  19972. /***/ (function(module, exports, __webpack_require__) {
  19973. "use strict";
  19974. /**
  19975. * Copyright 2013-present, Facebook, Inc.
  19976. * All rights reserved.
  19977. *
  19978. * This source code is licensed under the BSD-style license found in the
  19979. * LICENSE file in the root directory of this source tree. An additional grant
  19980. * of patent rights can be found in the PATENTS file in the same directory.
  19981. *
  19982. */
  19983. var getEventCharCode = __webpack_require__(50);
  19984. /**
  19985. * Normalization of deprecated HTML5 `key` values
  19986. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  19987. */
  19988. var normalizeKey = {
  19989. 'Esc': 'Escape',
  19990. 'Spacebar': ' ',
  19991. 'Left': 'ArrowLeft',
  19992. 'Up': 'ArrowUp',
  19993. 'Right': 'ArrowRight',
  19994. 'Down': 'ArrowDown',
  19995. 'Del': 'Delete',
  19996. 'Win': 'OS',
  19997. 'Menu': 'ContextMenu',
  19998. 'Apps': 'ContextMenu',
  19999. 'Scroll': 'ScrollLock',
  20000. 'MozPrintableKey': 'Unidentified'
  20001. };
  20002. /**
  20003. * Translation from legacy `keyCode` to HTML5 `key`
  20004. * Only special keys supported, all others depend on keyboard layout or browser
  20005. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  20006. */
  20007. var translateToKey = {
  20008. 8: 'Backspace',
  20009. 9: 'Tab',
  20010. 12: 'Clear',
  20011. 13: 'Enter',
  20012. 16: 'Shift',
  20013. 17: 'Control',
  20014. 18: 'Alt',
  20015. 19: 'Pause',
  20016. 20: 'CapsLock',
  20017. 27: 'Escape',
  20018. 32: ' ',
  20019. 33: 'PageUp',
  20020. 34: 'PageDown',
  20021. 35: 'End',
  20022. 36: 'Home',
  20023. 37: 'ArrowLeft',
  20024. 38: 'ArrowUp',
  20025. 39: 'ArrowRight',
  20026. 40: 'ArrowDown',
  20027. 45: 'Insert',
  20028. 46: 'Delete',
  20029. 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6',
  20030. 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12',
  20031. 144: 'NumLock',
  20032. 145: 'ScrollLock',
  20033. 224: 'Meta'
  20034. };
  20035. /**
  20036. * @param {object} nativeEvent Native browser event.
  20037. * @return {string} Normalized `key` property.
  20038. */
  20039. function getEventKey(nativeEvent) {
  20040. if (nativeEvent.key) {
  20041. // Normalize inconsistent values reported by browsers due to
  20042. // implementations of a working draft specification.
  20043. // FireFox implements `key` but returns `MozPrintableKey` for all
  20044. // printable characters (normalized to `Unidentified`), ignore it.
  20045. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  20046. if (key !== 'Unidentified') {
  20047. return key;
  20048. }
  20049. }
  20050. // Browser does not implement `key`, polyfill as much of it as we can.
  20051. if (nativeEvent.type === 'keypress') {
  20052. var charCode = getEventCharCode(nativeEvent);
  20053. // The enter-key is technically both printable and non-printable and can
  20054. // thus be captured by `keypress`, no other non-printable key should.
  20055. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  20056. }
  20057. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  20058. // While user keyboard layout determines the actual meaning of each
  20059. // `keyCode` value, almost all function keys have a universal value.
  20060. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  20061. }
  20062. return '';
  20063. }
  20064. module.exports = getEventKey;
  20065. /***/ }),
  20066. /* 176 */
  20067. /***/ (function(module, exports, __webpack_require__) {
  20068. "use strict";
  20069. /**
  20070. * Copyright 2013-present, Facebook, Inc.
  20071. * All rights reserved.
  20072. *
  20073. * This source code is licensed under the BSD-style license found in the
  20074. * LICENSE file in the root directory of this source tree. An additional grant
  20075. * of patent rights can be found in the PATENTS file in the same directory.
  20076. *
  20077. */
  20078. var SyntheticMouseEvent = __webpack_require__(29);
  20079. /**
  20080. * @interface DragEvent
  20081. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20082. */
  20083. var DragEventInterface = {
  20084. dataTransfer: null
  20085. };
  20086. /**
  20087. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20088. * @param {string} dispatchMarker Marker identifying the event target.
  20089. * @param {object} nativeEvent Native browser event.
  20090. * @extends {SyntheticUIEvent}
  20091. */
  20092. function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20093. return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20094. }
  20095. SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
  20096. module.exports = SyntheticDragEvent;
  20097. /***/ }),
  20098. /* 177 */
  20099. /***/ (function(module, exports, __webpack_require__) {
  20100. "use strict";
  20101. /**
  20102. * Copyright 2013-present, Facebook, Inc.
  20103. * All rights reserved.
  20104. *
  20105. * This source code is licensed under the BSD-style license found in the
  20106. * LICENSE file in the root directory of this source tree. An additional grant
  20107. * of patent rights can be found in the PATENTS file in the same directory.
  20108. *
  20109. */
  20110. var SyntheticUIEvent = __webpack_require__(23);
  20111. var getEventModifierState = __webpack_require__(39);
  20112. /**
  20113. * @interface TouchEvent
  20114. * @see http://www.w3.org/TR/touch-events/
  20115. */
  20116. var TouchEventInterface = {
  20117. touches: null,
  20118. targetTouches: null,
  20119. changedTouches: null,
  20120. altKey: null,
  20121. metaKey: null,
  20122. ctrlKey: null,
  20123. shiftKey: null,
  20124. getModifierState: getEventModifierState
  20125. };
  20126. /**
  20127. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20128. * @param {string} dispatchMarker Marker identifying the event target.
  20129. * @param {object} nativeEvent Native browser event.
  20130. * @extends {SyntheticUIEvent}
  20131. */
  20132. function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20133. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20134. }
  20135. SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
  20136. module.exports = SyntheticTouchEvent;
  20137. /***/ }),
  20138. /* 178 */
  20139. /***/ (function(module, exports, __webpack_require__) {
  20140. "use strict";
  20141. /**
  20142. * Copyright 2013-present, Facebook, Inc.
  20143. * All rights reserved.
  20144. *
  20145. * This source code is licensed under the BSD-style license found in the
  20146. * LICENSE file in the root directory of this source tree. An additional grant
  20147. * of patent rights can be found in the PATENTS file in the same directory.
  20148. *
  20149. */
  20150. var SyntheticEvent = __webpack_require__(12);
  20151. /**
  20152. * @interface Event
  20153. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  20154. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  20155. */
  20156. var TransitionEventInterface = {
  20157. propertyName: null,
  20158. elapsedTime: null,
  20159. pseudoElement: null
  20160. };
  20161. /**
  20162. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20163. * @param {string} dispatchMarker Marker identifying the event target.
  20164. * @param {object} nativeEvent Native browser event.
  20165. * @extends {SyntheticEvent}
  20166. */
  20167. function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20168. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20169. }
  20170. SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);
  20171. module.exports = SyntheticTransitionEvent;
  20172. /***/ }),
  20173. /* 179 */
  20174. /***/ (function(module, exports, __webpack_require__) {
  20175. "use strict";
  20176. /**
  20177. * Copyright 2013-present, Facebook, Inc.
  20178. * All rights reserved.
  20179. *
  20180. * This source code is licensed under the BSD-style license found in the
  20181. * LICENSE file in the root directory of this source tree. An additional grant
  20182. * of patent rights can be found in the PATENTS file in the same directory.
  20183. *
  20184. */
  20185. var SyntheticMouseEvent = __webpack_require__(29);
  20186. /**
  20187. * @interface WheelEvent
  20188. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20189. */
  20190. var WheelEventInterface = {
  20191. deltaX: function (event) {
  20192. return 'deltaX' in event ? event.deltaX :
  20193. // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  20194. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  20195. },
  20196. deltaY: function (event) {
  20197. return 'deltaY' in event ? event.deltaY :
  20198. // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  20199. 'wheelDeltaY' in event ? -event.wheelDeltaY :
  20200. // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  20201. 'wheelDelta' in event ? -event.wheelDelta : 0;
  20202. },
  20203. deltaZ: null,
  20204. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  20205. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  20206. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  20207. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  20208. deltaMode: null
  20209. };
  20210. /**
  20211. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20212. * @param {string} dispatchMarker Marker identifying the event target.
  20213. * @param {object} nativeEvent Native browser event.
  20214. * @extends {SyntheticMouseEvent}
  20215. */
  20216. function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20217. return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20218. }
  20219. SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
  20220. module.exports = SyntheticWheelEvent;
  20221. /***/ }),
  20222. /* 180 */
  20223. /***/ (function(module, exports, __webpack_require__) {
  20224. "use strict";
  20225. /* WEBPACK VAR INJECTION */(function(process) {/**
  20226. * Copyright 2013-present, Facebook, Inc.
  20227. * All rights reserved.
  20228. *
  20229. * This source code is licensed under the BSD-style license found in the
  20230. * LICENSE file in the root directory of this source tree. An additional grant
  20231. * of patent rights can be found in the PATENTS file in the same directory.
  20232. *
  20233. */
  20234. var validateDOMNesting = __webpack_require__(49);
  20235. var DOC_NODE_TYPE = 9;
  20236. function ReactDOMContainerInfo(topLevelWrapper, node) {
  20237. var info = {
  20238. _topLevelWrapper: topLevelWrapper,
  20239. _idCounter: 1,
  20240. _ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null,
  20241. _node: node,
  20242. _tag: node ? node.nodeName.toLowerCase() : null,
  20243. _namespaceURI: node ? node.namespaceURI : null
  20244. };
  20245. if (process.env.NODE_ENV !== 'production') {
  20246. info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null;
  20247. }
  20248. return info;
  20249. }
  20250. module.exports = ReactDOMContainerInfo;
  20251. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20252. /***/ }),
  20253. /* 181 */
  20254. /***/ (function(module, exports, __webpack_require__) {
  20255. "use strict";
  20256. /**
  20257. * Copyright 2013-present, Facebook, Inc.
  20258. * All rights reserved.
  20259. *
  20260. * This source code is licensed under the BSD-style license found in the
  20261. * LICENSE file in the root directory of this source tree. An additional grant
  20262. * of patent rights can be found in the PATENTS file in the same directory.
  20263. *
  20264. */
  20265. var ReactDOMFeatureFlags = {
  20266. useCreateElement: true,
  20267. useFiber: false
  20268. };
  20269. module.exports = ReactDOMFeatureFlags;
  20270. /***/ }),
  20271. /* 182 */
  20272. /***/ (function(module, exports, __webpack_require__) {
  20273. "use strict";
  20274. /**
  20275. * Copyright 2013-present, Facebook, Inc.
  20276. * All rights reserved.
  20277. *
  20278. * This source code is licensed under the BSD-style license found in the
  20279. * LICENSE file in the root directory of this source tree. An additional grant
  20280. * of patent rights can be found in the PATENTS file in the same directory.
  20281. *
  20282. */
  20283. var adler32 = __webpack_require__(183);
  20284. var TAG_END = /\/?>/;
  20285. var COMMENT_START = /^<\!\-\-/;
  20286. var ReactMarkupChecksum = {
  20287. CHECKSUM_ATTR_NAME: 'data-react-checksum',
  20288. /**
  20289. * @param {string} markup Markup string
  20290. * @return {string} Markup string with checksum attribute attached
  20291. */
  20292. addChecksumToMarkup: function (markup) {
  20293. var checksum = adler32(markup);
  20294. // Add checksum (handle both parent tags, comments and self-closing tags)
  20295. if (COMMENT_START.test(markup)) {
  20296. return markup;
  20297. } else {
  20298. return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&');
  20299. }
  20300. },
  20301. /**
  20302. * @param {string} markup to use
  20303. * @param {DOMElement} element root React element
  20304. * @returns {boolean} whether or not the markup is the same
  20305. */
  20306. canReuseMarkup: function (markup, element) {
  20307. var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  20308. existingChecksum = existingChecksum && parseInt(existingChecksum, 10);
  20309. var markupChecksum = adler32(markup);
  20310. return markupChecksum === existingChecksum;
  20311. }
  20312. };
  20313. module.exports = ReactMarkupChecksum;
  20314. /***/ }),
  20315. /* 183 */
  20316. /***/ (function(module, exports, __webpack_require__) {
  20317. "use strict";
  20318. /**
  20319. * Copyright 2013-present, Facebook, Inc.
  20320. * All rights reserved.
  20321. *
  20322. * This source code is licensed under the BSD-style license found in the
  20323. * LICENSE file in the root directory of this source tree. An additional grant
  20324. * of patent rights can be found in the PATENTS file in the same directory.
  20325. *
  20326. *
  20327. */
  20328. var MOD = 65521;
  20329. // adler32 is not cryptographically strong, and is only used to sanity check that
  20330. // markup generated on the server matches the markup generated on the client.
  20331. // This implementation (a modified version of the SheetJS version) has been optimized
  20332. // for our use case, at the expense of conforming to the adler32 specification
  20333. // for non-ascii inputs.
  20334. function adler32(data) {
  20335. var a = 1;
  20336. var b = 0;
  20337. var i = 0;
  20338. var l = data.length;
  20339. var m = l & ~0x3;
  20340. while (i < m) {
  20341. var n = Math.min(i + 4096, m);
  20342. for (; i < n; i += 4) {
  20343. b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3));
  20344. }
  20345. a %= MOD;
  20346. b %= MOD;
  20347. }
  20348. for (; i < l; i++) {
  20349. b += a += data.charCodeAt(i);
  20350. }
  20351. a %= MOD;
  20352. b %= MOD;
  20353. return a | b << 16;
  20354. }
  20355. module.exports = adler32;
  20356. /***/ }),
  20357. /* 184 */
  20358. /***/ (function(module, exports, __webpack_require__) {
  20359. "use strict";
  20360. /**
  20361. * Copyright 2013-present, Facebook, Inc.
  20362. * All rights reserved.
  20363. *
  20364. * This source code is licensed under the BSD-style license found in the
  20365. * LICENSE file in the root directory of this source tree. An additional grant
  20366. * of patent rights can be found in the PATENTS file in the same directory.
  20367. *
  20368. */
  20369. module.exports = '15.5.4';
  20370. /***/ }),
  20371. /* 185 */
  20372. /***/ (function(module, exports, __webpack_require__) {
  20373. "use strict";
  20374. /* WEBPACK VAR INJECTION */(function(process) {/**
  20375. * Copyright 2013-present, Facebook, Inc.
  20376. * All rights reserved.
  20377. *
  20378. * This source code is licensed under the BSD-style license found in the
  20379. * LICENSE file in the root directory of this source tree. An additional grant
  20380. * of patent rights can be found in the PATENTS file in the same directory.
  20381. *
  20382. */
  20383. var _prodInvariant = __webpack_require__(3);
  20384. var ReactCurrentOwner = __webpack_require__(10);
  20385. var ReactDOMComponentTree = __webpack_require__(5);
  20386. var ReactInstanceMap = __webpack_require__(24);
  20387. var getHostComponentFromComposite = __webpack_require__(80);
  20388. var invariant = __webpack_require__(1);
  20389. var warning = __webpack_require__(2);
  20390. /**
  20391. * Returns the DOM node rendered by this element.
  20392. *
  20393. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode
  20394. *
  20395. * @param {ReactComponent|DOMElement} componentOrElement
  20396. * @return {?DOMElement} The root node of this element.
  20397. */
  20398. function findDOMNode(componentOrElement) {
  20399. if (process.env.NODE_ENV !== 'production') {
  20400. var owner = ReactCurrentOwner.current;
  20401. if (owner !== null) {
  20402. process.env.NODE_ENV !== 'production' ? warning(owner._warnedAboutRefsInRender, '%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.', owner.getName() || 'A component') : void 0;
  20403. owner._warnedAboutRefsInRender = true;
  20404. }
  20405. }
  20406. if (componentOrElement == null) {
  20407. return null;
  20408. }
  20409. if (componentOrElement.nodeType === 1) {
  20410. return componentOrElement;
  20411. }
  20412. var inst = ReactInstanceMap.get(componentOrElement);
  20413. if (inst) {
  20414. inst = getHostComponentFromComposite(inst);
  20415. return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
  20416. }
  20417. if (typeof componentOrElement.render === 'function') {
  20418. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findDOMNode was called on an unmounted component.') : _prodInvariant('44') : void 0;
  20419. } else {
  20420. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)', Object.keys(componentOrElement)) : _prodInvariant('45', Object.keys(componentOrElement)) : void 0;
  20421. }
  20422. }
  20423. module.exports = findDOMNode;
  20424. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20425. /***/ }),
  20426. /* 186 */
  20427. /***/ (function(module, exports, __webpack_require__) {
  20428. "use strict";
  20429. /**
  20430. * Copyright 2013-present, Facebook, Inc.
  20431. * All rights reserved.
  20432. *
  20433. * This source code is licensed under the BSD-style license found in the
  20434. * LICENSE file in the root directory of this source tree. An additional grant
  20435. * of patent rights can be found in the PATENTS file in the same directory.
  20436. *
  20437. */
  20438. var ReactMount = __webpack_require__(79);
  20439. module.exports = ReactMount.renderSubtreeIntoContainer;
  20440. /***/ }),
  20441. /* 187 */
  20442. /***/ (function(module, exports, __webpack_require__) {
  20443. "use strict";
  20444. /* WEBPACK VAR INJECTION */(function(process) {/**
  20445. * Copyright 2013-present, Facebook, Inc.
  20446. * All rights reserved.
  20447. *
  20448. * This source code is licensed under the BSD-style license found in the
  20449. * LICENSE file in the root directory of this source tree. An additional grant
  20450. * of patent rights can be found in the PATENTS file in the same directory.
  20451. *
  20452. */
  20453. var DOMProperty = __webpack_require__(13);
  20454. var EventPluginRegistry = __webpack_require__(27);
  20455. var ReactComponentTreeHook = __webpack_require__(7);
  20456. var warning = __webpack_require__(2);
  20457. if (process.env.NODE_ENV !== 'production') {
  20458. var reactProps = {
  20459. children: true,
  20460. dangerouslySetInnerHTML: true,
  20461. key: true,
  20462. ref: true,
  20463. autoFocus: true,
  20464. defaultValue: true,
  20465. valueLink: true,
  20466. defaultChecked: true,
  20467. checkedLink: true,
  20468. innerHTML: true,
  20469. suppressContentEditableWarning: true,
  20470. onFocusIn: true,
  20471. onFocusOut: true
  20472. };
  20473. var warnedProperties = {};
  20474. var validateProperty = function (tagName, name, debugID) {
  20475. if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) {
  20476. return true;
  20477. }
  20478. if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
  20479. return true;
  20480. }
  20481. if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) {
  20482. return true;
  20483. }
  20484. warnedProperties[name] = true;
  20485. var lowerCasedName = name.toLowerCase();
  20486. // data-* attributes should be lowercase; suggest the lowercase version
  20487. var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
  20488. var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;
  20489. if (standardName != null) {
  20490. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20491. return true;
  20492. } else if (registrationName != null) {
  20493. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20494. return true;
  20495. } else {
  20496. // We were unable to guess which prop the user intended.
  20497. // It is likely that the user was just blindly spreading/forwarding props
  20498. // Components should be careful to only render valid props/attributes.
  20499. // Warning will be invoked in warnUnknownProperties to allow grouping.
  20500. return false;
  20501. }
  20502. };
  20503. }
  20504. var warnUnknownProperties = function (debugID, element) {
  20505. var unknownProps = [];
  20506. for (var key in element.props) {
  20507. var isValid = validateProperty(element.type, key, debugID);
  20508. if (!isValid) {
  20509. unknownProps.push(key);
  20510. }
  20511. }
  20512. var unknownPropString = unknownProps.map(function (prop) {
  20513. return '`' + prop + '`';
  20514. }).join(', ');
  20515. if (unknownProps.length === 1) {
  20516. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown prop %s on <%s> tag. Remove this prop from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20517. } else if (unknownProps.length > 1) {
  20518. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown props %s on <%s> tag. Remove these props from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20519. }
  20520. };
  20521. function handleElement(debugID, element) {
  20522. if (element == null || typeof element.type !== 'string') {
  20523. return;
  20524. }
  20525. if (element.type.indexOf('-') >= 0 || element.props.is) {
  20526. return;
  20527. }
  20528. warnUnknownProperties(debugID, element);
  20529. }
  20530. var ReactDOMUnknownPropertyHook = {
  20531. onBeforeMountComponent: function (debugID, element) {
  20532. handleElement(debugID, element);
  20533. },
  20534. onBeforeUpdateComponent: function (debugID, element) {
  20535. handleElement(debugID, element);
  20536. }
  20537. };
  20538. module.exports = ReactDOMUnknownPropertyHook;
  20539. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20540. /***/ }),
  20541. /* 188 */
  20542. /***/ (function(module, exports, __webpack_require__) {
  20543. "use strict";
  20544. /* WEBPACK VAR INJECTION */(function(process) {/**
  20545. * Copyright 2013-present, Facebook, Inc.
  20546. * All rights reserved.
  20547. *
  20548. * This source code is licensed under the BSD-style license found in the
  20549. * LICENSE file in the root directory of this source tree. An additional grant
  20550. * of patent rights can be found in the PATENTS file in the same directory.
  20551. *
  20552. */
  20553. var ReactComponentTreeHook = __webpack_require__(7);
  20554. var warning = __webpack_require__(2);
  20555. var didWarnValueNull = false;
  20556. function handleElement(debugID, element) {
  20557. if (element == null) {
  20558. return;
  20559. }
  20560. if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') {
  20561. return;
  20562. }
  20563. if (element.props != null && element.props.value === null && !didWarnValueNull) {
  20564. process.env.NODE_ENV !== 'production' ? warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20565. didWarnValueNull = true;
  20566. }
  20567. }
  20568. var ReactDOMNullInputValuePropHook = {
  20569. onBeforeMountComponent: function (debugID, element) {
  20570. handleElement(debugID, element);
  20571. },
  20572. onBeforeUpdateComponent: function (debugID, element) {
  20573. handleElement(debugID, element);
  20574. }
  20575. };
  20576. module.exports = ReactDOMNullInputValuePropHook;
  20577. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20578. /***/ }),
  20579. /* 189 */
  20580. /***/ (function(module, exports, __webpack_require__) {
  20581. "use strict";
  20582. /* WEBPACK VAR INJECTION */(function(process) {/**
  20583. * Copyright 2013-present, Facebook, Inc.
  20584. * All rights reserved.
  20585. *
  20586. * This source code is licensed under the BSD-style license found in the
  20587. * LICENSE file in the root directory of this source tree. An additional grant
  20588. * of patent rights can be found in the PATENTS file in the same directory.
  20589. *
  20590. */
  20591. var DOMProperty = __webpack_require__(13);
  20592. var ReactComponentTreeHook = __webpack_require__(7);
  20593. var warning = __webpack_require__(2);
  20594. var warnedProperties = {};
  20595. var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
  20596. function validateProperty(tagName, name, debugID) {
  20597. if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
  20598. return true;
  20599. }
  20600. if (rARIA.test(name)) {
  20601. var lowerCasedName = name.toLowerCase();
  20602. var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
  20603. // If this is an aria-* attribute, but is not listed in the known DOM
  20604. // DOM properties, then it is an invalid aria-* attribute.
  20605. if (standardName == null) {
  20606. warnedProperties[name] = true;
  20607. return false;
  20608. }
  20609. // aria-* attributes should be lowercase; suggest the lowercase version.
  20610. if (name !== standardName) {
  20611. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20612. warnedProperties[name] = true;
  20613. return true;
  20614. }
  20615. }
  20616. return true;
  20617. }
  20618. function warnInvalidARIAProps(debugID, element) {
  20619. var invalidProps = [];
  20620. for (var key in element.props) {
  20621. var isValid = validateProperty(element.type, key, debugID);
  20622. if (!isValid) {
  20623. invalidProps.push(key);
  20624. }
  20625. }
  20626. var unknownPropString = invalidProps.map(function (prop) {
  20627. return '`' + prop + '`';
  20628. }).join(', ');
  20629. if (invalidProps.length === 1) {
  20630. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20631. } else if (invalidProps.length > 1) {
  20632. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20633. }
  20634. }
  20635. function handleElement(debugID, element) {
  20636. if (element == null || typeof element.type !== 'string') {
  20637. return;
  20638. }
  20639. if (element.type.indexOf('-') >= 0 || element.props.is) {
  20640. return;
  20641. }
  20642. warnInvalidARIAProps(debugID, element);
  20643. }
  20644. var ReactDOMInvalidARIAHook = {
  20645. onBeforeMountComponent: function (debugID, element) {
  20646. if (process.env.NODE_ENV !== 'production') {
  20647. handleElement(debugID, element);
  20648. }
  20649. },
  20650. onBeforeUpdateComponent: function (debugID, element) {
  20651. if (process.env.NODE_ENV !== 'production') {
  20652. handleElement(debugID, element);
  20653. }
  20654. }
  20655. };
  20656. module.exports = ReactDOMInvalidARIAHook;
  20657. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20658. /***/ }),
  20659. /* 190 */
  20660. /***/ (function(module, exports, __webpack_require__) {
  20661. "use strict";
  20662. Object.defineProperty(exports, "__esModule", {
  20663. value: true
  20664. });
  20665. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  20666. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  20667. var _react = __webpack_require__(25);
  20668. var _react2 = _interopRequireDefault(_react);
  20669. var _browserSymbol = __webpack_require__(81);
  20670. var _browserSymbol2 = _interopRequireDefault(_browserSymbol);
  20671. var _browserSpriteBuild = __webpack_require__(83);
  20672. var _browserSpriteBuild2 = _interopRequireDefault(_browserSpriteBuild);
  20673. var _icon = __webpack_require__(84);
  20674. var _icon2 = _interopRequireDefault(_icon);
  20675. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20676. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20677. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  20678. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  20679. var symbol = new _browserSymbol2.default({
  20680. "id": "twitter",
  20681. "use": "twitter-usage",
  20682. "viewBox": "0 0 273.4 222.2",
  20683. "content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 273.4 222.2\" id=\"twitter\">\n<path d=\"M273.4,26.3c-10.1,4.5-20.9,7.5-32.2,8.8c11.6-6.9,20.5-17.9,24.7-31C255,10.5,243,15.2,230.2,17.7\n\tC220,6.8,205.4,0,189.3,0c-31,0-56.1,25.1-56.1,56.1c0,4.4,0.5,8.7,1.5,12.8C88,66.5,46.7,44.2,19,10.3c-4.8,8.3-7.6,17.9-7.6,28.2\n\tc0,19.5,9.9,36.6,25,46.7c-9.2-0.3-17.8-2.8-25.4-7c0,0.2,0,0.5,0,0.7c0,27.2,19.3,49.8,45,55c-4.7,1.3-9.7,2-14.8,2\n\tc-3.6,0-7.1-0.4-10.6-1c7.1,22.3,27.9,38.5,52.4,39c-19.2,15-43.4,24-69.7,24c-4.5,0-9-0.3-13.4-0.8c24.8,15.9,54.3,25.2,86,25.2\n\tc103.2,0,159.6-85.5,159.6-159.6c0-2.4-0.1-4.9-0.2-7.3C256.4,47.4,265.9,37.5,273.4,26.3z\" />\n</symbol>"
  20684. });
  20685. _browserSpriteBuild2.default.add(symbol);
  20686. var TwitterSpriteSymbolComponent = function (_React$Component) {
  20687. _inherits(TwitterSpriteSymbolComponent, _React$Component);
  20688. function TwitterSpriteSymbolComponent() {
  20689. _classCallCheck(this, TwitterSpriteSymbolComponent);
  20690. return _possibleConstructorReturn(this, (TwitterSpriteSymbolComponent.__proto__ || Object.getPrototypeOf(TwitterSpriteSymbolComponent)).apply(this, arguments));
  20691. }
  20692. _createClass(TwitterSpriteSymbolComponent, [{
  20693. key: "render",
  20694. value: function render() {
  20695. return _react2.default.createElement(_icon2.default, _extends({ glyph: "twitter" }, this.props));
  20696. }
  20697. }]);
  20698. return TwitterSpriteSymbolComponent;
  20699. }(_react2.default.Component);
  20700. exports.default = TwitterSpriteSymbolComponent;
  20701. /***/ }),
  20702. /* 191 */
  20703. /***/ (function(module, exports, __webpack_require__) {
  20704. "use strict";
  20705. Object.defineProperty(exports, "__esModule", {
  20706. value: true
  20707. });
  20708. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  20709. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  20710. var _react = __webpack_require__(25);
  20711. var _react2 = _interopRequireDefault(_react);
  20712. var _browserSymbol = __webpack_require__(81);
  20713. var _browserSymbol2 = _interopRequireDefault(_browserSymbol);
  20714. var _browserSpriteBuild = __webpack_require__(83);
  20715. var _browserSpriteBuild2 = _interopRequireDefault(_browserSpriteBuild);
  20716. var _icon = __webpack_require__(84);
  20717. var _icon2 = _interopRequireDefault(_icon);
  20718. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20719. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20720. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  20721. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  20722. var symbol = new _browserSymbol2.default({
  20723. "id": "wikipedia",
  20724. "use": "wikipedia-usage",
  20725. "viewBox": "-254 350 103 94",
  20726. "content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-254 350 103 94\" id=\"wikipedia\"><title>Wikipedia logo version 2</title><radialGradient id=\"wikipedia_a\" cx=\"-9.429\" cy=\"1569.139\" r=\"68.687\" gradientTransform=\"translate(-213.764 -1178.502)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".483\" stop-color=\"#EAEAEB\" /><stop offset=\".945\" stop-color=\"#A9ABAE\" /><stop offset=\"1\" stop-color=\"#999B9E\" /></radialGradient><path d=\"M-204.1 367c0-.6-.4-1.3-.4-1.3v-.1s-.5-.9-1.3-1.2c-.8-.3-1.5.3-1.5.3s-.1.1-.4.5c-.3.4-.5.7-1.2.9-.7.3-1.4.2-1.7 0-.4-.2-.5-.5-.5-.5s-.2-.7-.3-1c-.1-.3-.3-1.7-.3-1.7s-.5-2.7-.5-3.3c0 0 1.5-.1 3.7-.8 2.3-.7 3-1.2 3-1.2s-.4-.2-.5-.7c-.1-.5-.1-1.2-.1-1.2s-.1-.5.5-1.1c.6-.6 1.4-.9 1.8-1 .4-.1 1.3-.2 2.1-.1.8 0 1.3.1 1.6.3.3.2.4.6.4.6v1.1s0 .4.3.5c0 0 .5.3 2.2.1 0 0 .7-.1 1.8-.5 1.1-.3 4.1-1.2 4.6-1.3.4-.1 1-.3 1.6-.5.7-.2 2-.6 2.3-.7.3-.1 1.8-.6 2.9-.8 1.1-.2 2.2-.2 2.8.1 0 0 .4.3.5.7.2.4.5.9.9 1.1.5.2.8.4 1.9.3 0 0 0-.1-.4-.4-.4-.3-1-.7-1-.7s-.3-.2-.4-.4c-.1-.2 0-.3 0-.3l.9-1.4s0-.2.5-.2c.5-.1 1.1-.1 1.7-.3.7-.2.8-.3.8-.3l.6.2s3.5 2.9 4.7 3.6l.2-.2s.4 0 .8.2 1 .6 1 .6 1.6 1.3 2.1 2.2l.2.7-.1.2s.9 1.3 2.1 2.6c0 0 1.2 1.7 1.7 2.1l-.2-.8.3-.2.2-.1.6.3c3.6 4.8 6.4 10.4 8.1 16.3l-.1.5.4.5c1.1 4.2 1.7 8.6 1.7 13.2 0 1.1 0 2.2-.1 3.3l-.3.5.2.6c-2.2 26.1-24.1 46.6-50.8 46.6-18.5 0-34.7-9.9-43.6-24.6l-.1-.4-.2-.2c-3.4-5.7-5.7-12.2-6.6-19.1l.2-.5-.3-.5c-.2-1.9-.3-3.8-.3-5.8 0-3 .3-5.9.7-8.8l.3-.6-.1-.3c1.2-6.1 3.4-11.7 6.5-16.8l.7-.4h.1s.2-.2.4-.2h.1s1.2-2 1.6-2.6c0 0 .5-.3.7-.4 0 0 .1 0 .2.1 0 0 .5-.4 1.7-2.1 0 0-.1-.1-.1-.2s.1-.6.2-.7c.1-.1.1-.2.1-.2s1.7-2 3.2-3.2c0 0 .3-.2.7-.3 0 0 1.5-.6 3.3-2.2 0 0 .1-.3.5-.9.4-.6 1.5-1.2 2.2-1.3.8-.2.9 0 .9 0l.1.1.5.8s.6-.3 1.4-.6c.8-.3 1-.3 1-.3l.8 1.3-1 2s-.6 1.4-1.7 2.2c0 0-.5.3-1.1.1-.6-.2-1.1.3-1.1.3l-.2.1s.1 0 .3-.1c0 0 .2.1.3.2.1.2.9 1.2.9 1.2s0 .8-.4 1.9c-.4 1.1-1.5 2.9-1.5 2.9s-.7 1.4-1.1 2.3-.5 1.8-.5 2.3c0 0 .2.1.7-.2.7-.3 1.1 0 1.1 0s.7.5 1 .9c.3.3.8 1.8.2 3.2 0 0-.4 1-1.4 1.7 0 0-.2.3-1.5.2-.4 0-.6-.3-1.4-.2-.8.1-1.2.8-1.2.8-.7 1-1.2 2.5-1.2 2.5l-.1.2s-.2.5-.3 1.8c-.1 1.3.3 3.1.3 3.1s7.9-1.4 9.9-.1l.6.5v.4c-.1.2-.4.7-1 1.1-.6.4-1.2 1.6-.3 2.3 1 .8 1.7.8 3.4.5 1.7-.3 2.9-1.3 2.9-1.3s1-.7.8-1.6c-.2-.9-1-1.2-1-1.2s-.7-.4-.1-1.2c0 0 .1-.7 2.6-1.3 2.4-.6 6.8-1.5 10.6-2 0 0-2.5-8.2-.7-9.3 0 0 .4-.3 1.2-.4h1.5c.5 0 1 .1 1.7-.4.3-.7.4-1 .4-.9\" fill=\"url(#wikipedia_a)\" /><radialGradient id=\"wikipedia_b\" cx=\"-56.358\" cy=\"1513.861\" r=\"0\" gradientTransform=\"translate(-213.764 -1178.502)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".483\" stop-color=\"#EAEAEB\" /><stop offset=\".945\" stop-color=\"#A9ABAE\" /><stop offset=\"1\" stop-color=\"#999B9E\" /></radialGradient><linearGradient id=\"wikipedia_c\" gradientUnits=\"userSpaceOnUse\" x1=\"202.276\" y1=\"-64.159\" x2=\"248.778\" y2=\"-136.911\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#8A8A8A\" /><stop offset=\".569\" stop-color=\"#606060\" /><stop offset=\".591\" stop-color=\"#FFF\" /><stop offset=\".612\" stop-color=\"#585858\" /><stop offset=\"1\" stop-color=\"#303030\" /></linearGradient><path d=\"M-171.6 429.3l.5.2c0 .1-.1.1-.1.2-.9 1.6-.9 1.9-1.4 2.3-.4.3-.6.5-1.4.7-.9.2-1.8 1.2-1.8 1.2s-.9.8-.5.9c.4 0 1.2-.6 1.2-.6s.5-.4.6-.3c.1.1-.5.8-.5.8s-1.2 1.2-2.5 2l-.4.2s1.9-1.4 2.8-2.4c0 0 .2-.3-.2.1-.4.3-1.3.8-1.7.8-.4 0 0-.6 0-.6s.6-.8 1.8-1.8c1.2-1 2.2-.9 2.2-.9s.2 0 .3-.3c0-.3.3-.9.3-.9s.5-1 1.7-2.7c1.2-1.7 1.8-2.2 1.8-2.2s1.6-1.6 2.4-3.3c0 0 .6-1-.4-.3-1 .8-2.2 1.7-3.4 2-1.2.3-1.3-.8-1.3-.8s-.3-1.9 1-3.3c1.2-1.3 2.5-1.3 3.7-1.4 1.2-.1 2.2-1.6 2.2-1.6s.8-.9 1.3-3.8c.2-1.3.1-2.2-.1-2.8v-.6h-.4c-.1-.1-.1-.2-.1-.2s-.3-.3-.6-.5-.7-.6-1.1-1.5c0 0-1-2.1-.8-5.2.2-3 2.8-2.8 2.8-2.8s1.5.1 1.8-.3c.3-.4.6-1 .6-2.2.1-1.2-.4-2.4-.4-2.4s-.2-.6-1-.7c-.9-.1-1.1.2-1.1.2s-.3.1-.7 1.1c-.5 1-.8 1.5-1.6 1.7-.8.2-2 .1-2.5-1s-1.8-3.7-2.4-5.8l.1-.7-.3-.5c-.1-.4-.1-.8-.1-1.2 0-1-.3-2.1-.6-3.2s-1.5-3-1.7-3.4c-.3-.7-.6-.9-1-.9-.4.1-.3.1-.5.1s-.3.2-.3.4-.4 1.3-1.1 1.8c-.8.5-1.1.7-2.4.9 0 0-1.5.1-2.7-2.1-1.2-2.2-.9-3.6-.8-4.1.1-.5.5-1.2 1.2-1.4.7-.1 1.1-.2 1.1-.2s1.1 0 1.6-.1c.6-.1.3-1 .3-1s-.4-2.4-2.3-4.3l-.1-.5-.8-.4c-1.9-2-4.4-5.4-4.4-5.4s-1.1-1-.2-2.5c0 0 .4-1 1.7-.8.4.1.5.1.8.2.5.1 1 .2 1.5-.4 0 0 .4-.8-.3-1.8s-.9-1.7-1.8-1.7c0 0-.4-.1-.8.4-.4.4-1.4.7-2 .8-.7.1-2.3-.5-3.2-2.1-.5-.9-.8-1.4-.9-1.6l.2-.3.7.1c.2.4.5 1.1 1 1.8.6 1 1 1.1 1.4 1.3.3.1 1-.1 1.4-.3.4-.2.8-.7 1.4-.7.7 0 1.6.1 2.3.8.7.7 1.5 2.2 1.5 2.9-.1.7-.1 1.4-1 1.7-.9.3-1.3 0-1.9-.1-.6-.1-.9-.1-1.1.2-.2.3-.5.9-.4 1.2.1.3.2.5.8 1.3.6.8 3.5 4.3 4 4.8l-.2.7 1 .2c.6.7 1.4 1.7 1.7 2.3.5.9.8 2.3.8 3 0 .7-.3 1-.3 1s-.3.5-2 .5c-1.5 0-1.6.3-1.6.3s-.5.5-.4 1.6c.1 1.1.6 2.3 1.6 3.4.8.9 2.3 0 2.7-.3.5-.3.8-1.3.8-1.3s.1-1.2 1.4-1.2c1.4 0 2 1.3 2 1.3s1 1.3 1.9 4.1c.5 1.4.6 2.3.6 2.3l.1 1.7-.5.9.7.3c.1.5.3 1.2.7 2 0 0 1 2.4 1.4 3.3.4.9.9.8 1.3.8 0 0 .9.1 1.2-.3.3-.4.6-1.1.6-1.1s.7-1.8 2.1-1.7c1.5.2 1.8 1.1 2.1 2.2.3 1.1.3 3.2-.5 4.5-.8 1.3-1.7 1.1-1.7 1.1s-1.8-.2-2.2.2c-.4.4-.6.7-.7 1.6-.1.9 0 2.3.8 4.1.6 1.5 1.1 1.4 1.4 1.7.3.4 1.2 1.2 1.1 3.3-.1 2.1-.8 4.1-1.6 5.4-.8 1.3-2 2.1-2 2.1s-.3.2-1.1.3c-.7.1-1.8.1-2.5.5-.8.4-1 1.5-1.1 2-.1.5-.1 1.5.9 1.4 1-.1 2.6-1.4 2.6-1.4s1.5-1.1 1.7-.8c.2.4-.6 1.8-.6 1.8s-1 1.6-1.9 2.5c-.7.8-1.6 1.9-2.4 3.1l-.8.4z\" opacity=\".69\" fill=\"url(#wikipedia_c)\" /><linearGradient id=\"wikipedia_d\" gradientUnits=\"userSpaceOnUse\" x1=\"171.286\" y1=\"-56.951\" x2=\"191.786\" y2=\"-152.661\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#A8A9AB\" /><stop offset=\"1\" stop-color=\"#636668\" /></linearGradient><path d=\"M-230.6 372.7s0 .1 0 0c0 .1 0 0 0 0z\" fill=\"url(#wikipedia_d)\" /><linearGradient id=\"wikipedia_e\" gradientUnits=\"userSpaceOnUse\" x1=\"167.068\" y1=\"-58.37\" x2=\"187.068\" y2=\"-151.743\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#A8A9AB\" /><stop offset=\"1\" stop-color=\"#636668\" /></linearGradient><path d=\"M-215.8 439.7h.2c-.2-.1-.4-.3-.6-.4-.7-.4-3.7-2.4-4.7-3-.9-.6-2.6-1.7-3.3-1.5-.6.2-.5.4-.8.6-.3.2-.7.1-1.5-.4-.8-.4-1.4-.7-3-2.2-1.2-1.2 1.6-.1 1.6-.1s.6.3.3-.4c-.3-.6-1.7-2.3-3-3.7-1.1-1.1-1.7-1.9-2.4-3l-.6-.7v-.2s0-.1-.1-.1c0 0-1.9-3.4-1.7-4.6 0 0 .1-.8 1.2-1.2.8-.3.7.5 3.1 1 0 0 2.1.6 2.6-.9s-.6-3.4-.6-3.4-1.4-2.7-3.2-2.8c-.9-.1-.7.6-2.1.9 0 0-1.9.2-2.5-1-.7-1.4-1-3-1-4s.1-1.1.1-1.4c0-.2.2-.6.3-1.1l-.1-.7.2-.5v-.8c-.1-1.7-.2-4.2-.4-5.7s-.6-3.8-2-3.9c0 0-.7-.1-1.6.9-.9.9-1.7-.7-1.7-1.7-.1-1.1.1-2.3.4-2.8.3-.5 1-.6 1.2-.6.1 0 .6.2 1 .5.5.3 1.2.3 1.6-.1.4-.4.9-.9 1.2-2.6.2-1.7.2-3.5 0-5.7l-.2-.5 1.3-.3v-.2-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1c.1-1.2.3-1.8.3-1.8l.1-.2s.5-1.5 1.2-2.5c0 0 .4-.7 1.2-.8.8-.1 1 .2 1.4.2H-231.5c.3-.2.6-.5.8-.8 0-.1.1-.1.1-.2v-.1c.1-.1.1-.2.1-.2.6-1.5.1-2.9-.2-3.2-.3-.4-1-.9-1-.9s-.4-.4-1.1 0c-.5.3-.7.2-.7.2 0-.5.1-1.4.5-2.3.3-.8 1.1-2.3 1.1-2.3s1-1.8 1.5-2.9c.4-1.1.4-1.9.4-1.9s-.8-1-.9-1.2c-.1-.2-.3-.2-.3-.2-.2.1-.3.1-.3.1l.2-.1s.4-.5 1.1-.3c.6.2 1.1-.1 1.1-.1 1-.8 1.7-2.2 1.7-2.2l1-2-.8-1.3s-.1 0-1 .3c0 0-.8 1.9-1.7 3.1 0 0-.4.6-.7.4-.3-.1-.6-.1-.9-.1-.3.1-1.2.3-1.9 1.4-.8 1.1-.9 1.9-.5 2.1s1-.1 1.4-.4c.4-.3.6-.5.8-.5.1 0 .1.3.1.4 0 .1-.2 1.4-1.6 3.9-.4.6-.8 1.6-1.1 2l.6.4-1 .5c-.3.8-.6 1.9-.5 2.6.2 1 1.2 1 1.2 1s.6 0 1.3-.3c.7-.4.9 1.2.9 1.5 0 .3 0 1.7-1 2.4 0 0-.4.3-1 .3s-1-.2-1-.2-1-.3-1.6.1c-.6.4-1.3 1.1-1.9 2.2-.6 1.1-1 3-1 4.4 0 1.1.2 2.2.3 2.9l.7.4-.5.6c.1 1.1.2 3.4.2 4.1 0 .9-.2 2.8-1.1 3.3 0 0-.3.2-.9-.2-.5-.4-1.1-.4-1.4-.4-.2 0-1.3.2-1.7 1.3-.4 1.1-.4 2.7-.3 3.6.1.9.9 2.5 1.9 2.5 0 0 .5 0 1.1-.6.6-.6.9-.6 1.2-.6.3 0 .7.3 1.1 2.9.3 2.4.4 4.4.4 6.7l.6.4-.8.8c0 .2-.1.4-.1.6-.2.7-.2 1.4 0 2.6.2 1.2.8 3.7 1.8 4.4 1.3.9 2.1.9 2.9.8.8-.1 1.4-.7 1.4-.7s.3-.3.7-.2c.4.1 1.3.7 2.1 2.1.7 1.4.9 3-.3 3.3-1.2.3-3.2-.8-3.2-.8s-1.2-.6-2.1.1c-1 .7-1 1.8-.5 3.1.3.7.8 1.9 1.5 3.2l.7.3-.2.6c.5.7 1.1 1.5 1.7 2.1 0 0 2.5 2.7 3.8 4.5 0 0 .1.2-.2 0-.2-.1-1.3-.6-1.8-.6-.6.1-.4.4-.4.4s.2 1.3 4 3.4c0 0 1.4.8 2.2.8 0 0 .3 0 .6-.3.3-.4.4-.3.7-.3.2.1.6.2 1.7 1.1 1.2.9 3.5 2.2 4.3 2.7.8.6.8.7.6 1.1-.2.4.6.6.6.6s1.9.9 2.9.8c1 0 1.5-.1 2.1 0 .6.1 1.3.3 1.3.3.1.1-.3 0-.3 0s-2.4-.3-2.5-.2c-.1.1 0 .2 1 .4 1.2.2 2.5.4 3.8.5-.5-.1-2.5-.3-3.8-.7 0 0-.1-.1.2 0 .3.1 2 .2 2.5.2.4-.1-.1-.3-.1-.3s-.9-.4-2.9-.6c0 0-.8-.1-1.5 0s-1.4-.3-1.4-.3-1-.3-.8-.6c.1-.2.1-.3.1-.5l-.4-1z\" opacity=\".45\" fill=\"url(#wikipedia_e)\" /><linearGradient id=\"wikipedia_f\" gradientUnits=\"userSpaceOnUse\" x1=\"190.76\" y1=\"-104.815\" x2=\"219.842\" y2=\"-104.815\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#231F20\" /><stop offset=\"1\" stop-color=\"#474747\" /></linearGradient><path d=\"M-191.7 436.2l-.4.6c.1.7-.1.9-.3 1.1-.2.3-.6.6-.4 1.2.2.6 1.7.4 2.5.1.9-.3 1.6-.5 2.1-.7.6-.2.7.1.7.1s.2.2-.6.6c-.8.4-2.3.6-3.1.7-.7.1-.5 0-1.6.3-1.1.4-.1.7-.1.7 2.4.6 4.2.1 4.2.1l.3-.1c.3-.1.5-.2.8-.2-2 .5-3.3.1-3.7.1-.4-.1-.8-.1-.9-.4-.1-.2.5-.2.5-.2s1.7-.2 3.2-.7c1.6-.5 1.9-1 1.9-1.3-.1-.4-.8-.3-1.8 0-.9.3-2.3.8-2.7.8-.3.1-.7.1-.8-.1-.1-.2-.2-.5.1-.9.4-.4.4-.7.4-.7.1-.3.1-.5 0-.8l-.3-.3.5-.1c-.3-1.1-1.1-2.2-1.3-2.6-.3-.5-.8-.8-2.4-.5-1.6.3-3.4 1-3.4 1s-1.9 1-3.3.8c-1.4-.2-1.7-1.6-1.7-2.1 0-.4.3-.8 1-1.1.7-.3 2.5-.7 5-.8 2.5-.1 3.5-1.8 3.5-1.8.3-.5.9-1.5-.5-2.3-1.4-.8-1.4-.6-2.1-1.1-.7-.5-1.4-1.2-1.7-2 0-.1-.1-.2-.1-.3l-.8-.6.4-.4c-.3-.7-.7-1.3-.7-1.3s-1.3-1.9-.2-3.7c1-1.8 2.7-2.3 2.7-2.3s1.5-.3 3 0c1.4.3 2.1-.2 2.1-.2s.9-.4 1.1-2.1c.3-1.7 0-4.9-2.3-5.6-2.3-.6-3.5.6-3.5.6s-1.2 1.4-1.6 1.6c-.4.2-1 .6-1 .6s-.9.5-1.5.6c-.4.1-1.8-1.8-1.9-3.2-.1-1.3-.4-2.4-.3-5.1l-.5-.6.5-.5c.1-3-.4-5.1-1.2-6.5-.8-1.4-2.1-2.2-2.8-2.5-.6-.3-2.1-.5-3.2-.1-1 .4-1.2.7-1.6 1.3-.4.6-.8.6-.8.6s-1.4 0-1.9-2.1c-.6-3 .4-4 .4-4s.3-.5 1.4-.6c1.1-.1 1.7.1 2.5.3.8.2 1.4.1 2.4-.4s1.4-1.3 1.2-2.7c-.2-1.4-.3-1.7-1.5-6l-.9-.5.6-.6c-1.2-4.3-1.3-7-1.3-7-.1-1 0-1.3.6-1.5.6-.3 1.1-.2 1.9-.1.8.1 1.4-.1 1.8-.3s1.6-.9 1.5-2.2c-.1-1.3-1.1-2.8-2-3.4-.8-.5-2-.3-2.6.1-.6.4-.8 1-1.2 1.2-.4.2-.9.6-1.5.5-.6-.1-.6-1.4-.8-2.8-.2-.9-.3-1.6-.3-2l-.7-.3c0 .6.5 3.3.5 3.3s.2 1.4.3 1.7c.1.3.3 1 .3 1s.1.4.5.5c.4.2 1.1.2 1.7 0 .7-.3.9-.6 1.2-.9.3-.4.4-.5.4-.5s.7-.6 1.5-.3 1.3 1.2 1.3 1.2v.1s.4.7.4 1.3v-.1s0 .3-.7.8-1.2.5-1.7.4c-.5 0-.7-.1-.8 0h-.7c-.8.1-1.2.4-1.2.4-1.8 1.1.7 9.3.7 9.3l-.3.6s.5 2.1.9 3.4c.4 1.3.6 2.6.6 2.9.1.3 0 .8-.3 1.1-.4.3-1.2.5-1.4.6-.2 0-.5 0-1-.2s-.9-.2-.9-.2-1.1-.2-2.3.2c-1.2.4-2.1 1.6-2.1 3.1-.1 1.5-.1 2.3.5 3.6.6 1.3 1.7 2.1 2.5 2.1s1.5-.4 1.9-1.1c.5-.6.6-.8.6-.8.5-.3 1.9-.4 2.7-.2.7.3 2 1.1 2.7 2.7.6 1.3.8 2.8.7 5.4l.6.4-.6.7v.8c-.1 3.9.7 5.9.7 5.9.5 1.1 1 1.8 1.7 2.3.7.5 1.7.2 2 0 .3-.2 1.2-.6 1.9-1 .7-.5.7-.7 1.6-1.5.9-.8 2.1-.6 2.1-.6s1.1 0 1.7 1.3c.6 1.3.5 3.1.3 3.8-.2.7-.4 1.1-1.1 1-.6-.1-1.6-.2-2-.2-.4 0-1.4 0-2.4.2-.9.2-2.2.9-3.4 2.9-.9 1.5-.5 3-.3 3.6.2.5.6 1.1 1 1.9l.8.3-.3.7c.4 1 .7 1.5 1.3 2.2.6.7 1.7 1.3 2.9 1.7 1.2.5.7 1.3.7 1.3-.7 1.5-2.8 1.6-3.4 1.6-.6.1-1.9.2-3.1.4-1.2.3-2.3.4-3 1.2-.7.8-.4 1.6 0 2.4.4.8 1.4 1.3 2.9 1.2 1.4-.1 2.3-.5 3.2-.9.9-.4 2.4-.8 2.8-.9.4-.1 1.1-.4 1.5.3.5.7 1 1.7 1.2 2.4l1.2-.1z\" opacity=\".35\" fill=\"url(#wikipedia_f)\" /><path d=\"M-152.4 401.2s.3-3.2.5-4.4v-.5l-.1-.2c-.5 5.8-.9 7.7-.9 7.7v-.1c.2-.9.3-1.7.5-2.5zM-162.7 362.6l.3.4.3.5c1 1.6 2.8 4.3 2.8 4.3s.7 1 .9 1c.2 0-.1-.7-.1-.7s-.3-1 .5.3c.7 1.2 1.2 2.4 1.3 2.7.1.4 0 .4 0 .4s-.1.1-.1.3c0 .5.5 1.7.5 1.7s1.5 3.9 2.1 5.6c.5 1.6 1.1 4.4 1.1 4.4s.2.8.2 1.2c0 .4-.1.4-.2.2-.2-.2-.3-.1-.3-.1s-.2.1-.2.8c0 .7.1 2.3.2 3.6.2 1.5.6 2.1.6 2.1s.4.6.5-.6c.1-1 .2-.2.2-.2.2 1.6.1 4.5 0 5v.6l.1-.2c.2-3 .1-5.4.1-5.4s-.1-1.3-.3-1.3c-.2 0-.2.7-.2.7s-.1.5-.2.5-.4 0-.6-1.4c-.2-1.4-.2-2.9-.2-2.9v-.2c.1 0 .2.1.2.1s.1.2.3 0c.2-.2.2-.6-.3-3.1-.3-1.5-.7-2.9-1-3.8l-.3-.3-.1-.7s-.3-.9-1-2.7c-.7-1.8-.8-2.5-.8-2.5s0-.2.1-.2.1-.2.1-.2 0-.2-.3-1c-.3-.7-.4-1.3-1.4-2.9-.9-1.5-1.1-1.6-1.1-1.6s-.4-.2-.1.6c.3.8-.1.2-.1.2-.9-1.2-2.8-4.3-2.8-4.3l-.5-.4-.5-1.3M-252.5 382.7l-.2.4c-.5 2.5-.6 5.1-.6 5.3 0 .2 0 .2-.1.2v-.2c-.1 0-.1.2-.1.2 0 .3 0 .6-.1.9.1-.1.1 0 .1 0s0 .1.1.1c.1-.1.2-1.4.2-1.4s0-2.8.8-6.1 1.3-4.3 1.3-4.3.2-.4.1-.1c0 .3.2.4.2.4.4-.1.8-1.1 1.3-2.5.4-1.4.7-2.6.7-2.7 0-.1-.1-.2-.2-.1s-.1 0-.1 0c0-.2.4-1.1.4-1.1 1.3-3.2 3.1-5.7 3.1-5.7l.1-.5c-.2.3-.3.4-.4.7-.1.1 0 .3 0 .3-.2.2-.4.3-.5.5-2.7 4.5-3.1 6.6-3.1 6.6 0 .2 0 .3.1.3s.3-.3.1.4c-.1.5-.5 1.7-.7 2.2-.2.5-.4.9-.5.8-.1 0-.1-.2-.1-.2s0-.5-.4.2c-.4.8-.7 1.9-1.4 4.7 0 .1-.1.3-.1.4v.3zM-249.2 412.6c-.2-.4-.3-.7-.2-.6.1.1.2.4.5.7.3.3.4-.2-.6-3.1-1.1-2.9-1.4-3-1.4-3.1 0-.1-.2-.2-.2.2s0 .7-.5-1.1-1-4.8-1-5.1c0-.2-.2-1.8-.4-3.6s-.2-3.7-.2-4.3c0-.5-.1-.8-.1-.8-.1 0-.1 0-.1.3 0 .2 0 .4-.1.4s-.1-.5-.1-.5v1.1c0 .6.1.4.1.2v-.3s.1-.9.1 0 .2 4.6.2 4.6c0 .2 0 .5.1.7l.1.1v.1c.3 2.4.8 5.1.8 5.1.5 2.4 1.1 3.8 1.3 4.3.2.4.2.1.2-.3-.1-.4.5.7.9 1.7.3 1 .6 1.8.6 1.8s.3.8.1.8c-.1 0-.3-.3-.3-.3s-.5-.8-.3-.2c.4 1.2 1.6 3.8 1.6 3.8l1.4 2.5c-1-1.9-2.3-4.7-2.5-5.1zM-246.7 417.6c.1.1.1.2.2.4l-.2-.4zM-233.3 352.9c-.2.3-.2.5-.2.5l.2-.2v-.3zM-236.8 355.6c-.4 0-.7.3-.7.3s.4-.1.7-.3zM-170 354.9h.3c.1 0 .1-.2.1-.2s-.3-.4-.3-.6c-.3-.1-.6-.1-.6-.1v.3c-.1.1.4.5.5.6zM-166.5 357.9l.1-.2-.2-.7c0 .1 0 .1-.2.1 0 0-.1 0 0 .2 0 .2.2.4.3.6z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-152.4 401.2s.3-3.2.5-4.4v-.5l-.1-.2c-.5 5.8-.9 7.7-.9 7.7v-.1c.2-.9.3-1.7.5-2.5z\" opacity=\".1\" fill=\"#232323\" /><linearGradient id=\"wikipedia_g\" gradientUnits=\"userSpaceOnUse\" x1=\"12.492\" y1=\"1537.278\" x2=\"41.964\" y2=\"1627.035\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".009\" stop-color=\"#FCFCFC\" /><stop offset=\".066\" stop-color=\"#EEE\" /><stop offset=\".134\" stop-color=\"#E5E5E5\" /><stop offset=\".252\" stop-color=\"#E3E3E3\" /><stop offset=\".336\" stop-color=\"#8A8A8A\" /><stop offset=\".442\" stop-color=\"#B8B8B8\" /><stop offset=\"1\" stop-color=\"#3B3B3B\" /></linearGradient><path d=\"M-175 434.5s.7-.7.5-.8c-.1-.1-.6.3-.6.3s-.1.1-.2.1l.4-.3s0 .2-.4.6c0 0-.1.1-.3.2-1 .9-2.4 2-2.4 2l.4-.2c1.4-.7 2.6-1.9 2.6-1.9z\" opacity=\".5\" fill=\"url(#wikipedia_g)\" /><linearGradient id=\"wikipedia_h\" gradientUnits=\"userSpaceOnUse\" x1=\"206.463\" y1=\"-66.556\" x2=\"255.589\" y2=\"-127.306\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EFF0F0\" /><stop offset=\".591\" stop-color=\"#F0F1F2\" /><stop offset=\".599\" stop-color=\"#787878\" /><stop offset=\".646\" stop-color=\"#EEEFF0\" /><stop offset=\"1\" stop-color=\"#D8D9DB\" /></linearGradient><path d=\"M-171 389.7l.5-.9-.1-1.7s-.1-.9-.6-2.3c-1-2.8-1.9-4.1-1.9-4.1s-.6-1.3-2-1.3c-1.3 0-1.4 1.2-1.4 1.2s-.3 1-.8 1.3c-.5.3-2 1.1-2.7.3-.9-1-1.5-2.2-1.6-3.4-.1-1.1.4-1.6.4-1.6s.1-.3 1.6-.3c1.7 0 2-.5 2-.5s.3-.3.3-1-.3-2.1-.8-3c-.3-.6-1.1-1.5-1.7-2.3l-1-.2.1-.7c-.6-.5-3.5-4-4-4.8-.6-.8-.7-1-.8-1.3-.1-.3.2-.9.4-1.2.2-.3.5-.3 1.1-.2.6.1 1 .4 1.9.1.9-.3 1-1 1-1.7.1-.7-.8-2.2-1.5-2.9-.7-.7-1.6-.8-2.3-.8-.7 0-1 .5-1.4.7-.4.2-1.1.4-1.4.3-.3-.1-.8-.3-1.4-1.3-.4-.8-.8-1.5-1-1.8l-.7-.1s.6 1.7 1.6 2.8c1 1.2 2.3.9 2.3.9s.8-.1 1.5-.8c.7-.7 1.8-.1 2 0 .3.2.9.9 1.5 2.1.6 1.2-.4 2.1-.4 2.1s-.6.5-1.7.1-1.8.3-2 .6c-.2.4-.5 1 .1 1.7s3.2 4.3 4.9 5.9c1.7 1.7 2.3 3 2.7 4.3.4 1.3.1 1.9-.5 2-.6.1-1.1 0-2.1.2-.9.2-1.3.4-1.5 1.7-.2 1.3.6 3.4 1.7 4.4 1.1 1 2.3.4 2.8.2.4-.2 1.4-.7 1.7-2 .2-.8.9-.7.9-.7s.6-.1.9.1c.3.2.6.5 1.4 1.9.8 1.3 1.5 3.1 1.7 4.7.2 2 0 2.2.3 3.3.3 1.1 1.1 3.2 1.5 4.1.4.8.8 1.7 1 2.1.2.4.5.8 1.4.8.9 0 1.3-.2 1.5-.7.3-.4.6-1.1.7-1.3.1-.2.5-.9 1.1-1 .7-.1 1.8 0 2.1 1.2.3 1.1.8 2.6-.2 4.5-.6 1.3-1.1.9-2.5.9 0 0-1.2 0-1.8.9-.6.9-.4 2.6-.3 3.9.1 1.3 1 3.1 1.6 3.6.6.4.9.8 1.1 1.3.2.4.5 1.2.2 3.3-.3 2.1-1 3.7-1.9 4.5 0 0-.1 0-.1.1l-.2.2c-.5.5-.4.5-.9.8-.6.3-1 .2-2 .4s-1.6.3-2.1.8-1.2 1.4-1 3.2c.1 1 1.3.6 2.2.1-.3.1-.6.2-.8.2-1 .1-1-.9-.9-1.4.1-.5.3-1.5 1.1-2s1.8-.4 2.5-.5c.7-.1 1.1-.3 1.1-.3s1.2-.8 2-2.1 1.5-3.4 1.6-5.4c.1-2.1-.8-2.9-1.1-3.3-.3-.4-.8-.2-1.4-1.7-.7-1.7-.8-3.2-.8-4.1.1-.9.3-1.2.7-1.6.4-.4 2.2-.2 2.2-.2s.9.2 1.7-1.1c.8-1.3.7-3.5.5-4.5-.3-1.1-.6-2-2.1-2.2-1.5-.2-2.1 1.7-2.1 1.7s-.3.7-.6 1.1c-.3.4-1.2.3-1.2.3-.4 0-.8.1-1.3-.8-.4-.9-1.4-3.3-1.4-3.3-.3-.8-.6-1.5-.7-2.1l-.4-.4z\" opacity=\".73\" fill=\"url(#wikipedia_h)\" /><linearGradient id=\"wikipedia_i\" gradientUnits=\"userSpaceOnUse\" x1=\"18.871\" y1=\"1534.826\" x2=\"48.469\" y2=\"1624.965\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-171.5 429.3l.8-.5c.8-1.2 1.7-2.3 2.4-3.1.9-1 1.9-2.5 1.9-2.5s.8-1.4.6-1.8c-.1-.2-.7 0-1.7.8-3.7 2.7-4 1.2-4 1.2.4 2.4 4.7-1.6 5.1-1.4-.1.6-.5 1.2-1.3 2.3 0 0-.4.6-.8 1l-.6.6-.1.1c-.5.5-1 1.2-1.6 2l-.1.1c-.1.5-.3.8-.6 1.2-.3.4-.4.7-.5 1v.1s-.3.7-.5 1.1c-.1.4-.1.5-.6.6-.5.1-.3-.1-1 .2 0 0-.4.2-.9.6 0 0-.1 0-.1.1-.7.6-1.2 1.1-1.5 1.4-.1.1-.1.1-.1.2 0 0-.2.2.1.2.2 0 .6 0 1-.2l.1-.1c-.2.1-.4.2-.5.2-.4 0 .5-.9.5-.9s.9-1 1.8-1.2c.9-.2 1-.4 1.4-.7.4-.3.5-.7 1.4-2.3 0-.1.1-.1.1-.2l-.7-.1z\" opacity=\".53\" fill=\"url(#wikipedia_i)\" /><linearGradient id=\"wikipedia_j\" gradientUnits=\"userSpaceOnUse\" x1=\"190.694\" y1=\"-64.955\" x2=\"215.725\" y2=\"-146.069\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".747\" stop-color=\"#F9F9F9\" /><stop offset=\"1\" stop-color=\"#D5D7D8\" /></linearGradient><path d=\"M-198.9 422.7l.4-.4c-.3-.7-.7-1.3-.7-1.3s-1.3-1.9-.2-3.7c1-1.8 2.7-2.3 2.7-2.3s1.5-.3 3 0c1.4.3 2.1-.2 2.1-.2s.9-.4 1.1-2.1c.3-1.7 0-4.9-2.3-5.6-2.3-.6-3.5.6-3.5.6s-1.2 1.4-1.6 1.6c-.4.2-1 .6-1 .6s-.9.5-1.5.6c-.4.1-1.8-1.8-1.9-3.2-.1-1.3-.4-2.4-.3-5.1l-.5-.6.5-.5c.1-3-.4-5.1-1.2-6.5-.8-1.4-2.1-2.2-2.8-2.5-.6-.3-2.1-.5-3.2-.1-1 .4-1.2.7-1.6 1.3-.4.7-.8.6-.8.6s-1.4 0-1.9-2.1c-.6-3 .4-4 .4-4s.3-.5 1.4-.6c1.1-.1 1.7.1 2.5.3.8.2 1.4.1 2.4-.4s1.4-1.3 1.2-2.7c-.2-1.4-.2-1.7-1.5-6l-.9-.5.6-.6c-1.2-4.3-1.3-7-1.3-7-.1-1 0-1.3.6-1.5.6-.3 1.1-.2 1.9-.1.8.1 1.4-.1 1.8-.3.4-.2 1.6-.9 1.5-2.2-.1-1.3-1.1-2.8-2-3.3-.8-.5-2-.3-2.6.1-.6.4-.8 1-1.2 1.2-.4.2-.9.6-1.5.5-.6-.1-.6-1.4-.8-2.8-.2-.9-.3-1.6-.3-2l-.7-.3c0 .6.5 3.3.5 3.3l.3 1.6c0 .1 0 .2.1.3.1.2.4.5.9.5 1.1.1 1.8-.5 2-.7.3-.2.9-.9.9-.9s.3-.6 1.3-.5c.9.1 1.2.8 1.4 1 .2.2 1.6 2 .7 2.9 0 0-.1.1-.2.1l-.4.4c-.7.5-1.2.5-1.7.4-.5 0-.7-.1-.8 0h-.7c-.8.1-1.2.4-1.2.4-1.8 1.1.7 9.3.7 9.3s.7 2 1 3c.3.9.5 1.6.8 3.3.3 1.6-.2 2.1-.5 2.3-.3.2-1 .6-1.8.6s-1-.4-2.4-.4c-1.3-.1-2.2.3-2.7.9-.4.6-.9 1.9-.7 3.4.2 1.5.5 2.1 1.1 2.7.6.7 1.2 1 2 .7.8-.3.8-.8 1.2-1.2.5-.5.9-.8 2.1-.8 1.2 0 2 .3 2.6.8.6.5 1.9 1.6 2.3 3.4.4 1.7.4 2.3.4 3.7s-.1 3-.1 4.4c0 1.4.2 2.8.6 3.8.4 1 .9 1.8 1.4 2.2.5.4.9.4 1.4.3.5-.2 1.5-.8 2.4-1.3.9-.6.8-1 1.6-1.5.9-.6 1.8-.6 2.5-.5.7.1 1.7.6 2.1 1.9.4 1.3.4 2.7.4 2.7s0 1.2-.4 1.9c-.5.7-1.3.6-1.6.5-.4-.1-1.1-.1-1.1-.1s-1.5-.2-2.6.1c-1.1.3-2.1 1.1-2.7 1.9-.7.8-.9 1.6-1 2.2 0 .6 0 1.6.6 2.6s.7 1.4 1.4 2.8 2.1 2.2 2.2 2.2c0 0 1.4.5 1.9.9s.6.8.4 1.2c-.1.4-.4 1.1-1.6 1.6-1.2.5-2.6.5-3.5.6-.9.1-2.7.3-3.7.8s-1 1.5-1 1.5 0 1.6 1.3 2c1.4.4 2.6 0 3.2-.2.6-.2 1.5-.6 1.5-.6s1.8-.6 2.8-.8c1-.2 1.5-.3 2.2.8.7 1.2 1 1.9 1.1 2.6.1.7-.2 1.1-.5 1.4-.3.3-.2.5-.2.5-.1.9 1.2.8 1.2.8h.1c-.3 0-.5 0-.6-.2-.1-.2-.2-.5.1-.9.4-.4.4-.7.4-.7.3-1.4-1-3.4-1.4-3.9-.3-.5-.8-.8-2.4-.5-1.6.3-3.4 1-3.4 1s-1.9 1-3.3.8c-1.4-.2-1.7-1.6-1.7-2.1 0-.4.3-.8 1-1.1.7-.3 2.5-.7 5-.8 2.5-.1 3.5-1.8 3.5-1.8.3-.5.9-1.5-.5-2.3-1.4-.8-1.4-.6-2.1-1.1-.7-.5-1.4-1.2-1.7-2 0-.1-.1-.2-.1-.3l-.6-.7z\" opacity=\".96\" fill=\"url(#wikipedia_j)\" /><linearGradient id=\"wikipedia_k\" gradientUnits=\"userSpaceOnUse\" x1=\"136.042\" y1=\"-39.679\" x2=\"136.042\" y2=\"-39.679\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".747\" stop-color=\"#F9F9F9\" /><stop offset=\"1\" stop-color=\"#D5D7D8\" /></linearGradient><linearGradient id=\"wikipedia_l\" gradientUnits=\"userSpaceOnUse\" x1=\"136.042\" y1=\"-39.679\" x2=\"136.042\" y2=\"-39.679\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".747\" stop-color=\"#F9F9F9\" /><stop offset=\"1\" stop-color=\"#D5D7D8\" /></linearGradient><path d=\"M-162 363.4c1 1.6 2.8 4.3 2.8 4.3s.3.3.5.6c0-.4-.1-.6-.1-.6l-.1-.3c0-.4.4.1.6.3-.5-.8-.7-.8-.7-.8s-.4-.2-.1.6c.3.8-.1.2-.1.2-.9-1.2-2.8-4.3-2.8-4.3l-.6-.4.6.4zM-152.5 401.4v-.2-.1c.1.1.1.2 0 .3zM-153.2 385.7c.1 0 .2.1.2.1s.1.2.3 0c.1-.1.2-.4 0-1.3 0 .2-.1.4-.1.6-.1.3-.3 0-.4-.1-.1-.1-.2.1-.2.1v.2c0 .7.1 2.3.2 3.6.1.6.2 1.1.3 1.4v.1c.1.1.2.3.3.3.1-.1.3-.6.3-.6l.1-.6c.2.1.3.5.3 1v-.1s-.1-1.3-.3-1.3c-.2 0-.2.7-.2.7s-.1.5-.2.5-.4 0-.6-1.4c-.2-1.4-.2-2.9-.2-2.9s.1-.3.2-.3zM-154.3 378.6l.3.3c.5 1.5 1 3.8 1.1 4.3 0-.1-.1-.3-.1-.4-.3-1.5-.7-2.9-1-3.8l-.3-.4-.1-.7s-.3-.9-1-2.7c-.7-1.8-.8-2.5-.8-2.5s0-.2.1-.2.1-.2.1-.2 0-.2-.3-1c-.2-.5-.3-.9-.7-1.6.3.6.5 1.1.5 1.3v.1s.1.1.1.6c0 .4-.1.5-.1.5v.1c.1.5.4 1.2.4 1.2s1.1 2.7 1.7 4.5l.1.6z\" opacity=\".1\" fill=\"#232323\" /><linearGradient id=\"wikipedia_m\" gradientUnits=\"userSpaceOnUse\" x1=\"20.534\" y1=\"1538.158\" x2=\"1.209\" y2=\"1632.194\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-211 441.5c.9.2 1.7.4 1.9.4-.4-.1-1-.2-1.9-.4z\" fill=\"url(#wikipedia_m)\" /><linearGradient id=\"wikipedia_n\" gradientUnits=\"userSpaceOnUse\" x1=\"168.559\" y1=\"-72.757\" x2=\"173.288\" y2=\"-132.177\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\".22\" stop-color=\"#989A9C\" /><stop offset=\".253\" stop-color=\"#FFF\" /></linearGradient><path d=\"M-233.6 424.9v-.2l-.1-.1s-1.9-3.4-1.7-4.6c0 0 .1-.8 1.2-1.2.8-.3.7.5 3.1 1 0 0 2.1.6 2.6-.9s-.6-3.4-.6-3.4-1.4-2.7-3.2-2.8c-.9-.1-.7.6-2.1.9 0 0-1.9.2-2.5-1-.7-1.4-1-3-1-4 0-1.1 0-1 .1-1.4 0-.2.2-.5.2-1.1l-.1-.7.2-.5v-.8c-.1-1.7-.2-4.2-.4-5.7s-.6-3.8-2-3.9c0 0-.7-.1-1.6.9-.9.9-1.7-.7-1.7-1.7-.1-1.1.1-2.3.4-2.8.3-.5 1-.6 1.2-.6.1 0 .6.2 1 .5.5.3 1.2.3 1.6-.1.4-.4.9-.9 1.2-2.6.2-1.7.2-3.5 0-5.7l-.2-.5 1.3-.3v-.2-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1c.1-1.2.3-1.8.3-1.8l.1-.2s.5-1.5 1.2-2.5c0 0 .4-.7 1.2-.8.8-.1 1 .2 1.4.2H-231.6c.3-.2.6-.5.8-.8v-.1-.1c0-.1.1-.1.1-.2v-.1c.1-.1.1-.2.1-.2.6-1.5.1-2.9-.2-3.2-.3-.4-1-.9-1-.9s-.3-.2-.8-.1c.3 0 .8.1 1 .6.3.7.4 1.3.2 2.3 0 0-.3 1.4-1.4 2.2-1.1.8-1.9.1-2.9.1s-1.5.7-1.8 1.2c-.3.5-1.4 2.2-1.3 5.1.1 2.9.3 4.3.3 5.6 0 1.2.2 4-.6 5.3-.8 1.3-1.6.6-2.2.3-.6-.3-1.2-.2-1.7.1-.5.4-.8 1.1-.8 3.3 0 2.4 1.5 2.6 1.5 2.6s.3.1.9-.5c0 0 .7-.7 1.3-.6.6.1 1 .7 1.3 1.8.3 1.1.8 5.6.7 8.7 0 1.3-.6 1.3-.4 3.6 0 0 .4 3.1 1.4 4.1 1 1 2.4.8 2.7.8.3 0 .7-.3.7-.3s.3-.2.5-.4.5-.4 1-.3c.5.1 1.6.9 2.6 2.6.9 1.7.5 3.3-.3 3.5-.7.2-.8.2-2-.1-1.1-.3-1.5-.6-2-.8-.5-.2-1-.3-1.5.1s-1.3 1.1-.3 3.3c1 2.2 1.7 3.8 3.5 5.6-.5-.6-1-1.2-1.4-1.9v-.7z\" fill=\"url(#wikipedia_n)\" /><linearGradient id=\"wikipedia_o\" gradientUnits=\"userSpaceOnUse\" x1=\"-16.628\" y1=\"1530.36\" x2=\"-35.153\" y2=\"1620.502\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-231.5 357.4c-.1 0 0 0 0 0z\" fill=\"url(#wikipedia_o)\" /><linearGradient id=\"wikipedia_p\" gradientUnits=\"userSpaceOnUse\" x1=\"5.906\" y1=\"1621.338\" x2=\"5.898\" y2=\"1621.375\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-208 442.9h.4c-.1 0-.3 0-.6-.1.1 0 .2 0 .2.1z\" fill=\"url(#wikipedia_p)\" /><path d=\"M-229.9 355.5c-.6.4-.7 0-1.1 0-.4 0-1 .2-1.6 1-.6.8-.6 1.9.3 1.4 0 0 .4-.4.8-.6.1 0 .2-.1.4-.2l.1-.1s.4-.5 1.1-.3c.6.2 1.1-.1 1.1-.1 1-.8 1.7-2.2 1.7-2.2l1-2-.8-1.3s-.7 1.5-1.4 2.5c-.7 1.1-.7 1.4-1.6 1.9z\" fill=\"#9FA2A3\" /><path d=\"M-234.1 366.3s-.4 1.9 1.2 1.6h-.1c0-.5.1-1.4.5-2.3.3-.8 1.1-2.3 1.1-2.3s1-1.8 1.5-2.9c.4-1.1.4-1.9.4-1.9s-.8-1-.9-1.2c-.1-.2-.3-.2-.3-.2-.1 0-.1 0-.1.1.1 0 .2 0 .3.1.2.3-.4 2-.4 2s-.5 1.2-1.5 3c-1.2 1.9-1.7 4-1.7 4z\" fill=\"#9FA2A3\" /><linearGradient id=\"wikipedia_q\" gradientUnits=\"userSpaceOnUse\" x1=\"14.903\" y1=\"1536.638\" x2=\"-4.504\" y2=\"1631.072\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-215.8 439.7h.2c-.1-.1-.3-.2-.5-.3.2.1.5.4.3.7-.2.4 0 .5.5.9h.1c-.2-.1-.3-.2-.2-.4.1-.2.1-.3.1-.5l-.5-.4z\" fill=\"url(#wikipedia_q)\" /><linearGradient id=\"wikipedia_r\" gradientUnits=\"userSpaceOnUse\" x1=\".457\" y1=\"1533.599\" x2=\"-18.966\" y2=\"1628.111\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-229.6 432.7c-1.2-1.2 1.6-.1 1.6-.1s.6.3.3-.4c-.2-.6-1.4-2-2.5-3.2l.1.2s2.3 2.7 2.2 3c-.2.2-1.1-.3-1.1-.3s-1.4-.5-1.2.1c.1.5 1.1 1.3 1.5 1.6l-.9-.9z\" fill=\"url(#wikipedia_r)\" /><linearGradient id=\"wikipedia_s\" gradientUnits=\"userSpaceOnUse\" x1=\"8.651\" y1=\"1534.969\" x2=\"-10.844\" y2=\"1629.835\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-227 434.7c.4.3.9.5 1.4.7 0 0 .8.3 1.3-.1s.5-.6 1.2-.2c0 0 1.4.7 2.4 1.4s3.6 2.3 4.4 2.8c-.8-.4-3.7-2.4-4.6-3-.9-.6-2.6-1.7-3.3-1.5-.6.2-.5.4-.8.6-.3.2-.7.1-1.5-.4-.2-.1-.4-.2-.5-.3z\" fill=\"url(#wikipedia_s)\" /><linearGradient id=\"wikipedia_t\" gradientUnits=\"userSpaceOnUse\" x1=\"17.547\" y1=\"1532.957\" x2=\"-2.811\" y2=\"1632.017\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-214.1 441.4c.4.1.7.1.8 0-.7 0-1.4-.3-1.4-.3s-.1 0-.2-.1c.3.3.6.4.8.4z\" fill=\"url(#wikipedia_t)\" /><linearGradient id=\"wikipedia_u\" gradientUnits=\"userSpaceOnUse\" x1=\"20.658\" y1=\"1537.844\" x2=\"1.256\" y2=\"1632.257\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#E4E5E6\" /></linearGradient><path d=\"M-209.7 442.2s-1.3-.2-1.9-.2c0 0 0 .1.2.2h.2c.3.1 2 .2 2.5.2.4-.1-.1-.3-.1-.3s-.1 0-.3-.1c-.3.2-.6.2-.6.2z\" fill=\"url(#wikipedia_u)\" /><path d=\"M-249.3 412c.1.1.2.4.5.7.1.2.3.1.2-.5-.3-.2-.4-.3-.5-.4-.1 0-.3-.3-.3-.3s-.5-.8-.3-.2c.4 1.2 1.6 3.8 1.6 3.8l1.4 2.5c-1-1.8-2.3-4.6-2.4-5-.2-.4-.3-.7-.2-.6zM-252.5 382.7v-.6c0-.1.1-.2.1-.4.7-2.8 1.1-3.9 1.4-4.6.4-.8.4-.2.4-.2s0 .2.1.2.3-.3.5-.8.6-1.7.7-2.2c.1-.7-.1-.4-.1-.4-.1 0-.1-.1-.1-.3 0 0 .4-2.1 3.1-6.6.2-.2.3-.3.5-.4-.1-.1 0-.3 0-.3.1-.2.3-.4.4-.7l-.1.5s-1.9 2.5-3.1 5.7c0 0-.3.8-.4 1.1 0 .2-.1.7.2.6h.1c-.1.5-.3 1.4-.6 2.3-.3.9-.6 1.6-.8 2.1-.1.1-.1 0-.1-.2s-.1-.2-.1-.2c-.2 0-.3.2-.4.4 0 .1-.1.2-.1.2s-.5.9-1.3 4.3c-.8 3.3-.8 6.1-.8 6.1s-.1 1.3-.2 1.4c-.1.1-.1-.1-.1-.1s0-.1-.1 0v-.9s0-.2.1-.2 0 .1 0 .2c0 0 .1 0 .1-.2s.1-2.8.6-5.3l.1-.5zM-253.6 392v.4c.1.4.2.4.2.4 0-.1.1-.3.2-.5v.4c0 .5 0 2.5.2 4.3.2 1.8.4 3.3.4 3.6 0 .2.5 3.3 1 5.1.3 1 .4 1.3.5 1.4 0 0 .1.2.3.3 0 0 .1-.1.1-.4 0 0 0 .1.1.1-.1.3-.1.4-.1.4s-.1 0 0 0c.1.4 0 .7-.2.3-.2-.4-.8-1.8-1.3-4.3 0 0-.5-2.7-.8-5.1v-.1l-.1-.1c0-.2 0-.5-.1-.7 0 0-.3-3.7-.2-4.6 0-.9-.1 0-.1 0v.3c0 .1-.1.4-.1-.2.1.3 0-.7 0-1zM-229.3 352l-.5-.8-.1-.1s-.1-.1-.9 0h-.1s.4-.1.2.2c-.2.3-.6.5-1.2 1.1-.6.7-.4.8 0 .7.4 0 1.1-.4 2.6-1.1zM-230.9 351.2z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-230.4 351.8c.3-.3.4-.5.5-.6 0 0-.1-.1-.9 0h-.1c.1 0 .3 0 .1.2-.2.3-.6.5-1.2 1.2s-.4.8 0 .7c.1 0 .2-.1.4-.2.2-.3.6-.8 1.2-1.3zM-170.5 354.1l-.2.2s.1.1.2.1l-.1-.1s0-.1.1-.2h.1-.1z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-191.4 440.3s1.7-.2 3.2-.7c1.6-.5 1.9-1 1.9-1.3 0-.2-.4-.3-.9-.2.3 0 .5 0 .4.3-.3.6-.9.8-.9.8s-.3.2-.9.4c-.8.2-1.8.4-2.3.4-.7.1-.5 0-1.5.3h-.1c-.3.2 1.1.5 1.1.5s1.3.4 3.3.2h.1c.3-.1.5-.2.8-.2-2 .5-3.3.1-3.7.1-.4-.1-.8-.1-.9-.4-.2-.2.4-.2.4-.2z\" opacity=\".53\" fill=\"#FFF\" /><path d=\"M-190.7 354.4l.7.1c1.4-.4 2.7-.8 2.7-.8s1.3-.4 1.9-.6c.6-.2 1.1-.3 1.7-.4.6-.1 1.3-.1 1.7-.1.4 0 .5.1.5.1s.2.1.2.3c.1.1.7 1.9 3 2 2.2.1 2.3-1.1 2.1-1.5-.2-.4-.9-.9-.9-.9s-.9-.6-1.1-.8c-.2-.3 0-.4.1-.4s2.4-.5 2.7-.6l-.6-.2s-.1.1-.8.3c-.7.2-1.2.2-1.7.3-.5.1-.5.2-.5.2l-.9 1.4v.3c.1.2.4.4.4.4s.6.4 1 .7c.4.3.4.4.4.4-1.1.1-1.4 0-1.9-.3-.4-.2-.8-.7-.9-1.1-.2-.4-.5-.7-.5-.7-.6-.3-1.7-.3-2.8-.1-1.1.2-2.7.7-2.9.8-.3.1-1.6.6-2.3.7-.7.2-1.2.4-1.6.5-.4.1-3.4 1-4.6 1.3-1.1.3-1.8.5-1.8.5-1.7.2-2.2-.1-2.2-.1-.3-.1-.3-.5-.3-.5v-1.1s0-.4-.4-.6c-.3-.2-.8-.3-1.6-.3s-1.7 0-2.1.1c-.4.1-1.2.3-1.8 1-.6.6-.5 1.1-.5 1.1s0 .7.1 1.2.5.7.5.7-.7.5-3 1.2c-2.2.6-3.7.8-3.7.8l.7.3s5.5-1 7.1-2.6c0 0 .6-.3 0-.9-.6-.6-.9-.8-.9-.8s-.4-.2 0-.8c.4-.5.9-.8 1.4-.9s1.8-.3 2.9-.1c0 0 .5 0 .5.4s-.1.9-.1 1c0 .2 0 .5.4.8.4.3 1.1.5 1.1.5s1.3.2 2.8-.2c1.6-.4 3.6-1.1 5.4-1.6l.4-.4z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-205.5 356.6c.3.2.5.2.5.4.1.3-.6.6-.6.6s-.4-.2-.5-.7c-.1-.5-.1-1.2-.1-1.2v.3c.2.3.3.4.7.6z\" fill=\"#616161\" /><path d=\"M-171.6 429.3l.5.2c1.1-.6 1.5-.8 1.8-1 1.2-.7 2.6-1.6 3-1.9 0 0 .8-.5.1.2-.6.7-1 1-1 1s-.6.6-.5.8c0 0 .2.2 1.2-.7 1-.9 2.2-2.3 2.3-2.4.1-.2.1-.3.1-.3s.1-.2.3-.4c.1-.1 1.4-1.5 2-2.1.3-.4.5-.7.8-1.1-.4.4-1.7 1.8-2.5 2.7 0 0-.7.8-.9 1.1-.2.3-.2.5-.2.5s-.1.2-.4.5l-1.2 1.2s-.6.5-.8.5c-.2 0 .4-.5.4-.5s.6-.6 1-1.1c.4-.5.1-.5.1-.5s-.2 0-1 .5-1.4.9-1.4.9-1.7 1-2.8 1.6c-1.1.6-3.6 1.9-5 2.5-1.4.6-2.2.7-2 .5.1-.2.5-.5.5-.5s.4-.4.4-.8c0 0 .1-.6-1.6-.2-1.7.4-3.3 1.2-3.3 1.2s-2.6 1.2-2 1.9c0 0 .1.2.6.4s-.9.6-.9.6c-1.4.4-2.4.7-3.7.9-2 .4-3.6.8-4.2.9-.2 0-.3.1-.3.1s-1.2.3-3.2 1.1-6 1.4-6 1.4-2.5.3-2.8.6c-.2.3.2.5.2.5s.4.2 1.7.3h.5s0 .1-.2.2c-.3.1-.9.3-2.8.6-1.9.2-1.9-.1-1.9-.1s0-.1.1-.2 0-.4-.3-.5c0 0-.4-.3-1.8-.3s-4.2 0-6.8-.1c-2.4-.1-5.6-.6-6.1-.7 0 0-.1 0-.2-.1s-.6-.4-1.2-.7c-.5-.3-2.1-.9-2.1-.9s-2-.8-1.9-.5c0 .1.1.2.3.2.4.2.7.4 1.1.6 0 0-.7-.4-.5-.4.2 0 .4.1.4.1s1.2.3 2 .7c.8.4 1.4.8 1.4.8s.9.5 2.3.7c1.3.2 3.2.4 3.8.4l.6-.3.4.4c1.1.1 2.6.1 2.6.1s3 .1 4.6 0c.7-.1.5.3.5.3s-.2.4.2.5c0 0 .8.4 3.3.2 2.6-.3 3.1-.9 3.1-.9s.3-.3-.4-.4c-.5-.1-.5-.1-1.2-.1-.7-.1-1-.2-.6-.3.4-.1 1.2-.2 1.2-.2s2.2-.3 4.1-.8c0 0 1.9-.5 3.9-1.1.8-.3 1.4-.5 1.9-.6l.4-.6.6.4h.1s2.3-.5 3.3-.7c1-.2 3.2-.6 4.1-1.1.9-.4 1.4-.8 1.5-1.1.1-.3-.4-.4-.4-.4s-.6-.1-.5-.3c.1-.2.3-.4 1.2-.8.9-.4 2.1-.9 3.2-1.1 1.2-.3.7.2.7.2s-.7.7-.8 1c-.1.3 0 .3.1.3.1.1.6 0 1-.1s3.5-1.3 5.3-2.3l.1-.1.5-1z\" opacity=\".17\" fill=\"#FFF\" /><linearGradient id=\"wikipedia_v\" gradientUnits=\"userSpaceOnUse\" x1=\"-32.817\" y1=\"1596.566\" x2=\"-32.627\" y2=\"1596.566\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"gray\" /><stop offset=\".087\" stop-color=\"#7A7A7A\" /><stop offset=\".36\" stop-color=\"#6B6B6B\" /><stop offset=\".519\" stop-color=\"#686868\" /><stop offset=\".638\" stop-color=\"#5F5F5F\" /><stop offset=\".743\" stop-color=\"#4E4E4E\" /><stop offset=\".841\" stop-color=\"#383838\" /><stop offset=\".932\" stop-color=\"#1B1B1B\" /><stop offset=\"1\" /></linearGradient><path d=\"M-246.6 418l.2.1c-.1-.1-.2-.1-.2-.1z\" opacity=\".68\" fill=\"url(#wikipedia_v)\" /><linearGradient id=\"wikipedia_w\" gradientUnits=\"userSpaceOnUse\" x1=\"-32.594\" y1=\"1591.799\" x2=\"62.024\" y2=\"1591.799\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"gray\" /><stop offset=\".087\" stop-color=\"#7A7A7A\" /><stop offset=\".382\" stop-color=\"#828282\" /><stop offset=\".518\" stop-color=\"gray\" /><stop offset=\".568\" stop-color=\"#797979\" /><stop offset=\".603\" stop-color=\"#6E6E6E\" /><stop offset=\".608\" stop-color=\"#6B6B6B\" /><stop offset=\"1\" stop-color=\"#4E4E4E\" /></linearGradient><path d=\"M-163.6 410h-.4c-1.8 1.5-2.3 1.9-3.8 3 0 0-1.6 1.2-3.4 2.2-1.8 1-3.9.9-3.9.9s-.6-.1-.3-.5.6-1.4.8-1.9c.1-.5.4-1.8-.6-2.2-1-.4-3 .2-3 .2s-4.5 1.2-6.4 3.2c-1.8 2-.3 2.8-.3 2.8s.7.5 1.4.7c.6.2.5.4.4.6 0 0-2 1.3-4.4 2 0 0-3.3 1-6.4 1.2-3.2.2-4.5.3-4.5.3l-.4.4-.8-.3c-1.3.2-3.5.5-5.6 1-2.6.6-5.1 1.1-6.9 2.3 0 0-1.3.9-.6 1.7.8.9 1.6 1.2 1.6 1.2s.5.2.5.3c0 .2 0 .3-.4.5 0 0-1.4.8-4.1.9-2.7 0-3.9 0-4.7-.7-.7-.6.2-1.8.2-1.8s.3-.6 0-1.5c-.3-.8-2.2-.9-2.2-.9l-2.6-.1c-3.1-.1-7.2-.4-9-.7v.2l-.7-.3c-1.1-.2-3.2-.7-4.1-1.1-.8-.4-1.2-.3-1.1-1.1.1-.8-.8-1.8-.8-1.8s-1.2-1.3-2.3-2.1c-1.1-.8-1.5-.6-1.5-.6s-.5.3 0 1.3c.4 1 .9 1.4.9 1.4s.2.2.1.3c-.1.1-.5-.2-.8-.5-.3-.2-1.9-1.7-2.5-2.3l.1.4s0 .1.1.1c.2.3.9 1.3 2.2 2.3 1.5 1.2 1.6.7 1.6.7s.1-.4-.3-.8-.9-1.4-.8-1.7c.1-.3.3-.3.3-.3s.1-.1.6.3 1.5 1.1 2 1.7c.5.6.5 1.2.5 1.2s-.1.6.5 1.2 1.7 1.7 5.9 2.4h.1l.2-.6.6.7c3.6.5 5.6.6 5.6.6s4.7.2 6 .2c1.3 0 1 .7 1 .7s-.1.4-.2.6c-.2.3-.5 1.4-.1 1.9 0 0 .6 1.4 4.4 1.5 0 0 3.3.3 5.6-.7s.2-2.3.2-2.3-.8-.5-1.1-.7c-.3-.2-.2-.5-.1-.6.1-.2.3-.4.6-.5.3-.1 1.2-.7 5.4-1.7 4.1-1.1 6.6-1.2 6.6-1.2h.1l.3-.7.9.6c.7-.1 1.7-.1 2.5-.2 1.7-.1 4.3-.5 5.9-.8 1.5-.3 3.9-1.1 5.6-2 1.7-.9 1.8-1.5 1.8-1.5s.3-.5-.4-1-1-.4-1.7-1c-.6-.6.6-1.6.6-1.6s.6-.9 4-2.2c3.4-1.3 4-.9 4.2-.7.2.1.2.6.1.9l-.7 2.1c-.2.6-.3 1.4.6 1.6.9.2 2.2 0 3.4-.4 2.9-1 3.8-2.3 8.5-5.8l-.6-.9.7.1c2-1.6 3.9-3.6 3.9-3.6s1.3-1.3 1.9-2.4c.6-1 0 .9 0 .9s-.3 1.5.2 2.1c.4.4 1.6-.8 1.6-.8s.7-.8 1-2.1c.4-1.9.2-2.2.2-2.2s-.2-.4-.1-.9c.2-.5 1.2-3 2-4l.5-.6-.2-.6.3-.5s-.3.3-1.4 2.2c-1.3 2.1-1.5 3.8-1.5 3.8s-.1.7-.1 1c.1.4.2.5.2.6 0 .1-.1 1-.5 1.8s-.8 1-.8 1-.8.5-.9.2c-.1-.4-.1-.7 0-1 0-.2.3-1.6.3-2.1s-.5-.1-.5-.1-.1.1-.3.4-1.3 1.6-1.7 2.1c-1 1.2-1.9 2-4.3 3.9l-.5.8z\" opacity=\".43\" fill=\"url(#wikipedia_w)\" /><linearGradient id=\"wikipedia_x\" gradientUnits=\"userSpaceOnUse\" x1=\"-39.407\" y1=\"1573.355\" x2=\"60.406\" y2=\"1573.355\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#555\" /><stop offset=\"1\" stop-color=\"#231F20\" /></linearGradient><path d=\"M-252.8 398.5l.1 1c.2.3.6.7 1.1 1.2 1.1 1.1 1.4.4 1.4.4s.3-.7-.1-2c-.3-1.3-.3-2 .3-2s2.3.4 2.8 1.8c0 0 .2.6 0 1.5-.2.8-.2 1.6 0 2.3.1.7.8 1.4 1.5 2 .7.6 2.7 1.5 4.7 1.7 2 .1 2.6 0 2.6 0l.7-.8.1.7c.8-.1 2.1-.2 3.6-.4 2.5-.3 4.2-.5 5.8-.3 1.6.2 2.1 1.5 2.1 1.5s.1.3-.3.5c-.3.2-.7.5-.9.9-.2.3-.4 1.1.2 2 .6 1 2.1 1.6 3.5 1.4 1.3-.2 3.3-.7 4.5-1 1.3-.3 2.4-1 2.6-2 .1-1-1.5-2.3-1.5-2.3s-.8-.6-.9-.8c-.1-.1.1-.2.1-.2s.9-.2 1.4-.4c.4-.2 1.5-.6 3.4-1.2 1.8-.6 5.6-1.2 5.6-1.2s2.1-.3 4.7-.5l.6-.7.5.6c.4 0 .8 0 1.2-.1 3.6-.1 5.3-.6 7.2-1 1.9-.4 4.6-2 5-2.3.4-.3 1.2-.7 1.4-2 .2-1.3-1.4-2.2-1.4-2.2s-1.2-.6-1.5-.9c-.3-.3 0-.6 0-.6s.7-1.5 2.9-2.4c2.2-.9 3.7-1.1 4.6-1.2.9-.1 1.2.2 1.4.4.1.2.1.5 0 .8-.1.3-.4 1-.6 1.4-.2.4-.5 1.2-.3 1.6.2.4.8.6 1.7.4.8-.1 3-.8 4.9-1.6s5.1-2.3 5.1-2.3l.1-.7.7.3c1-.6 2.8-1.6 4-2.6 1.9-1.6 3.7-3.2 4.2-3.6.5-.4.9-.8 1.3-.7.4 0 .7.3 1 1.4.3 1.1.3 2 .4 2.6.1.5.3 1.2.9 1.3.6.1 1.5-.4 1.8-.7.3-.3.9-1.2.9-2.4 0 0 .1-1.6-.8-3.1 0 0-.4-.6-.5-.8-.1-.1-.2-.2 0-.5.1-.3.5-.8 1.1-1.2.4-.3.9-.3 1.1-.4 0 0 .3-.1.6-.3l-.1-.4.3.3c.4-.2.7 0 .7 0l-.4-.5.1-.5s-.3-.2-.7-.1c-.4.1-.4.4-1 .5-.6.1-1.3.3-1.9 1.3-.7 1 0 2.3 0 2.3s.4.6.5.9c.2.3 1.1 2.2 0 3.6 0 0-.6.6-1.5.9-.9.2-.6-.8-.7-1.4 0 0-.1-2.3-1.2-3.6-1-1.1-2.7.9-3.6 1.6-.8.6-3.2 3.1-6.7 4.9l-.5.9-.3-.5c-1.7.8-5.4 2.7-7.9 3.5 0 0-1.9.8-2.6.8 0 0-.2 0 0-.2.1-.2.3-.3.5-.7.2-.4.6-1.4.6-2.3 0-1-1.1-1.9-2.7-1.7-1.6.2-3.1.6-4.8 1.3-1.8.7-3.3 2.2-3.6 3.4-.2 1.2 1.1 1.9 1.1 1.9s1.5.8 1.7 1.2c.2.4 0 .8 0 .8s-.1.4-.8.8c-.6.4-2.4 1.3-2.4 1.3s-2.2 1.2-5.6 1.5c0 0-3.1.3-4.8.3h-.1l-.5.5-.6-.4c-1.6.1-3.5.4-3.5.4s-4.3.6-8.2 1.8c-3.3 1-4 1.6-4 1.6s-.7.6-.1 1.5c0 0 .3.5 1 1.1.7.5 1.2 1.1 1.2 1.3-.1.3-.3.4-.3.4s-1 .9-4.9 1.5c0 0-2.5.5-3.3-.3-.8-.8-.4-1.3-.4-1.3s.1-.2.6-.5c0 0 1-.6.6-1.7-.3-1.1-2.1-2.5-4.1-2.5 0 0-2.3 0-8.2.8l-.2.5-.6-.4c-.3 0-.7.1-1.1.1-1 .1-2.5-.1-4.3-.6-1.8-.5-3-1.5-3.1-2.1-.1-.4 0-1 0-1s.3-1.3.1-2.4c-.2-1.1-.6-1.9-1.6-2.6-1-.6-1.6-.5-1.6-.5s-.9-.1-.9 1.4c0 1.6.2 2.3.2 2.3s.2.6-.1.6c-.3.1-.7-.4-.7-.4s-1-.9-1.6-1.7v.1l-.2.5s.1.1.3.4l-.1-.8z\" opacity=\".31\" fill=\"url(#wikipedia_x)\" /><linearGradient id=\"wikipedia_y\" gradientUnits=\"userSpaceOnUse\" x1=\"-39.103\" y1=\"1552.882\" x2=\"52.501\" y2=\"1552.882\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#A0A0A0\" /><stop offset=\".077\" stop-color=\"#656767\" /><stop offset=\"1\" stop-color=\"#717375\" /></linearGradient><path d=\"M-162.9 361.7l.2.8s-.6.3-1.7.6-2.2.8-2.2.8-.9.3-.6 1c.3.7.8 1.1.8 1.1s.7.7.7 1.2-.2.8-.8 1.1c-.6.3-1.1.4-1.1.4s-1.3.2-2-.4c-.7-.6-.8-1.7-.8-1.7s-.1-.9-1.1-1.3c-1.1-.4-2.5.4-2.5.4s-1.1.6-2.2 1.3c-1.1.7-3.3 1.6-4.6 2.1l-.2.7-.8-.4c-1.4.5-3.3 1.1-3.3 1.1s-2.5.9-4.2 1.2c-1.6.2-2 0-2.2-.2-.2-.2 0-1 0-1s.7-1.4.3-2.1c-.3-.7-2.5-.9-2.5-.9s-2.3-.3-4.5.9c-1.9 1.1-2.1 1.6-2.1 1.6s-.6.9.1 1.9c.8 1.1 1.9 1.1 1.9 1.1s1 .1 1.3.4c.2.3.1.6.1.6s-.3.9-2.2 1.3c0 0-3.2.9-9.1 1.8l-.6.6c-3.7.5-8.1 1.4-10.6 2-2.4.6-2.6 1.3-2.6 1.3-.5.8.1 1.2.1 1.2s.8.3 1 1.2c.2.9-.8 1.6-.8 1.6s-1.2 1-2.9 1.3-2.4.4-3.4-.5c-.9-.7-.3-1.9.3-2.3.6-.4.9-.9 1-1.1.1-.2 0-.4 0-.4l-.6-.5c-2-1.3-9.9.1-9.9.1l-1.3.3-.7-.4s-2.3.6-4.9.6c-2.7 0-1.3-2.1-1.3-2.1s.6-1.1.8-1.8c0 0 .2-1.7-1.4-1.6-1.6.1-2 1.5-2 1.5s-.1.8-.1 1.4c0 .6 0 1.8-.7 2.6-.7.7-1.5.5-1.5.5s-1.3-.6-1.6-.7c-.3-.1-.5-.2-.8-.1h-.1l-.2.8v-.6c-.2.2-.3.4-.3.4l.1.3-.2.6.2-.4.2-.4-.1.2c.1 0 .1-.1.2-.1.3 0 .6.2.6.2s1.1.6 1.6.7c.5.1.9-.1 1.2-.3.5-.4 1.1-1.1 1.4-1.8.2-.6.3-2.4.3-2.4v-.5c0-.1-.1-.6.2-.8.3-.2.5-.3 1.1-.4.7 0 .9.4.9.4s.2.3.2.5-.1.3-.1.3-.4.6-.5.9c-.1.3-.6 1.3-.5 2.2.1.9 1.5 1.3 1.5 1.3s1.1.3 2.6 0l3.1-.5.5-.6.2.5c.8-.1 2.1-.4 3.6-.5 2.3-.2 4.8-.3 5.8-.1 0 0 .5.1.4.2l-.4.4-.7.7s-.7 1.2-.7 1.7.5 2 2.4 2.4c1.9.4 4.1-.3 4.1-.3s1.4-.3 2.8-1.7 0-3.1 0-3.1-.2-.3-.6-.4c0 0-.2 0-.1-.2.1-.1.4-.6 1.4-.9 1-.3 4-1.2 11.1-2.1l.3-.6.9.5c2.7-.4 4.6-.7 7.8-1.5 0 0 3-.5 3.7-1.7.4-.6 1-1.5 0-2.4 0 0-.1-.2-.8-.3-.7-.2-1.2-.3-1.7-.7-.6-.4-.6-.9-.6-.9s0-.4.9-1c0 0 .9-.6 2.5-1.2 1.7-.5 3.6-.3 3.6-.3s.8.1.7.6c-.1.6-.6 1.5-.6 2s0 1 .9 1.4c.9.4 2.3.3 2.3.3s1.4-.1 3.6-.8c2.3-.7 4.6-1.6 4.6-1.6l-.1-.5 1 .2c.6-.2 1.4-.5 2.3-.9 1.8-.8 2.7-1.5 3.5-2 0 0 1.8-1.1 2.9-1.1 0 0 .3 0 .3.3s.1.8.2 1.1c.1.3.7 1.8 2.7 2 2 .2 2.8-1.1 2.8-1.1s.7-1-.5-2.3c0 0-1-1-1-1.1 0 0-.1-.2.2-.2.3-.1 3.2-.9 4.3-1.4l-.3-.5.5.4c.2-.1.4-.2.5-.4.2-.3-.1-.8-.1-.8-.1-.2-.3-.4-.4-.5l-.6-.3h-.1l.4.6\" opacity=\".34\" fill=\"url(#wikipedia_y)\" /><path d=\"M-245.9 366.3l-.3.4c.1 0 .2-.1.2-.1s.4-.1 1.1.1c.9.2 2.1-.5 2.1-.5s.9-.5 1.3-1.4l.4-1s.3-1 1.1-1.3c0 0 .3-.2.8-.2s.4.4.4.4-.1.2-.6.9-.7 1.2-.7 1.2-.3.7.2 1c0 0 .2.1.9-.1s3-.8 4.4-1.1l1-.5-.6-.4c-2.4.4-4.2 1-4.8 1.2-.6.2-.6.1-.6.1-.2-.2.4-1 .4-1s.7-.9.9-1.7c.3-.8-.9-.7-.9-.7-.8.1-1.3.5-1.9 1.2-.5.6-.8 1.4-.9 1.8-.1.3-.2.5-.2.5s-.1.2-.4.3c-.4.2-1.2.4-1.2.4s-.5 0-.9-.1c-.2-.1-.9 0-.9 0l.1-.5h-.1l-.7.4-.3.6c-.1.1-.2.5 0 .5h.2l.5-.4zM-240.7 359.2s.3-.3.3 0c0 .2-.3.7-.3.7s-.1.1-.2.1c0 0 0-.5.2-.8zM-243.4 362.5s-.4.5 0 .5l.8-.8s-.1-.1-.2-.1c.1 0-.4.2-.6.4z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-176.2 435.7s-1.8.8-3.4 1.6c-1.6.8-2.3 1.1-2.3 1.1s-.1 0 0 .1c.1 0 0 .1 0 .1-.8.4-2.7 1.1-2.7 1.1s-.2.1-.2 0l.2-.1s.4-.1.3-.2c-.1-.1-1.2.3-1.2.3s-1.9.6-2.9.9c-.9.3-2.8.7-2.8.7-1.2.3-3.8.8-4.3.9-.6.1-.4.1-.4.1s.5-.2-.4-.2c-1.1-.1-2.4.1-3.6.3-1.3.2-1.2.3-1.2.3s0 .2.7.1h.5c-1.4.2-4.2.2-4.2.2h3.2c.2 0 1.5-.1 1.9-.2.5-.1-.1-.1-.1-.1h-.7s-.8 0-.1-.2c.7-.1 1.8-.2 2.4-.3.8-.1.5.1.5.1s0 .1.5.1 4.7-.8 7.1-1.5c2.3-.7 4.1-1.3 4.1-1.3s.2-.1.1 0-.5.2-.5.2-.6.3.8-.1c.1 0 .1 0 .2-.1l3.6-1.5s.1-.1 0-.1c-.2.1 0-.1.2-.1.2-.1 2.3-1.2 3.4-1.6.5-.1.9-.3 1.3-.6z\" opacity=\".3\" fill=\"#FFF\" /><linearGradient id=\"wikipedia_z\" gradientUnits=\"userSpaceOnUse\" x1=\"-36.343\" y1=\"1578.751\" x2=\"-36.343\" y2=\"1578.751\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".078\" stop-color=\"#F4F4F4\" /><stop offset=\".381\" stop-color=\"#CECECE\" /><stop offset=\".54\" stop-color=\"#BFBFBF\" /><stop offset=\".836\" stop-color=\"#7C7C7C\" /><stop offset=\".9\" stop-color=\"#A8A8A8\" /><stop offset=\".909\" stop-color=\"#9A9A9A\" /><stop offset=\".933\" stop-color=\"#7D7D7D\" /><stop offset=\".956\" stop-color=\"#686868\" /><stop offset=\".979\" stop-color=\"#5B5B5B\" /><stop offset=\"1\" stop-color=\"#575757\" /></linearGradient><path d=\"M-250.1 400.2z\" fill=\"url(#wikipedia_z)\" /><linearGradient id=\"wikipedia_A\" gradientUnits=\"userSpaceOnUse\" x1=\"-39.674\" y1=\"1578.511\" x2=\"68.872\" y2=\"1566.485\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".078\" stop-color=\"#F4F4F4\" /><stop offset=\".381\" stop-color=\"#CECECE\" /><stop offset=\".54\" stop-color=\"#BFBFBF\" /><stop offset=\".836\" stop-color=\"#7C7C7C\" /><stop offset=\".9\" stop-color=\"#A8A8A8\" /><stop offset=\".909\" stop-color=\"#9A9A9A\" /><stop offset=\".933\" stop-color=\"#7D7D7D\" /><stop offset=\".956\" stop-color=\"#686868\" /><stop offset=\".979\" stop-color=\"#5B5B5B\" /><stop offset=\"1\" stop-color=\"#575757\" /></linearGradient><path d=\"M-252.8 398.5l.1 1c.2.3.6.7 1.1 1.2 1.1 1.1 1.4.4 1.4.4s.1-.2.1-.6c0 .2-.2.4-.8-.1-.3-.2-.7-.6-1.1-1-.3-.3-.7-.7-1-1.1v.1l-.2.5s.1.1.3.4l.1-.8z\" fill=\"url(#wikipedia_A)\" /><linearGradient id=\"wikipedia_B\" gradientUnits=\"userSpaceOnUse\" x1=\"-40.111\" y1=\"1578.477\" x2=\"82.882\" y2=\"1564.851\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".078\" stop-color=\"#F4F4F4\" /><stop offset=\".381\" stop-color=\"#CECECE\" /><stop offset=\".54\" stop-color=\"#BFBFBF\" /><stop offset=\".836\" stop-color=\"#7C7C7C\" /><stop offset=\".9\" stop-color=\"#A8A8A8\" /><stop offset=\".909\" stop-color=\"#9A9A9A\" /><stop offset=\".933\" stop-color=\"#7D7D7D\" /><stop offset=\".956\" stop-color=\"#686868\" /><stop offset=\".979\" stop-color=\"#5B5B5B\" /><stop offset=\"1\" stop-color=\"#575757\" /></linearGradient><path d=\"M-250.3 399.1v.2s.1.4.1.8c.1-.3 0-.6-.1-1z\" fill=\"url(#wikipedia_B)\" /><linearGradient id=\"wikipedia_C\" gradientUnits=\"userSpaceOnUse\" x1=\"157.253\" y1=\"-110.999\" x2=\"253.236\" y2=\"-91.625\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\"1\" stop-color=\"#BFC0C2\" /></linearGradient><path d=\"M-154.3 378.6l.3.3c.4-.2.7 0 .7 0l-.4-.5c-.4.1-1.1.3-2.2.6 0 0-1.4.6-1.6 1.5 0 .3 0 .6.1.9.8 1.4.9 1.7.9 1.7.5 1.1.4 2 .3 2.8-.2.9-1.2 1.7-1.8 1.8-.6.2-1 0-1.1-.5-.2-.5-.2-.8-.4-2.3-.3-1.5-.7-2.2-1.2-2.4-.6-.2-1.3.5-1.7.8-.4.3-2.4 2.2-2.4 2.2s-2.3 2.1-5.7 4c-3.4 1.9-7.7 3.4-7.7 3.4s-2.8 1.1-3.5 1c-.7-.1-.5-.7-.3-1.1.2-.4.5-.9.8-1.5.3-.8.2-1.7-.4-2-.6-.3-1.2-.5-3.5.1s-3.2 1.1-3.8 1.5c-.6.4-1.6 1.2-1.8 1.7-.3.5-.6 1 .1 1.6.7.6.8.5 1.6 1 .8.6.9.6 1 1.5 0 .8-.8 1.3-.8 1.3s-3.1 2.1-6.6 2.8c-2.3.5-6.8.6-6.8.6s-1.3 0-5.4.5c-4.1.6-6.8 1.5-7.7 1.9-1 .3-2.3.8-3.1 1.2-.8.4-.4.9-.2 1 .2.1 1.2 1.1 1.5 1.4.3.3 1.5 1.3.1 2.1s-3.6 1.3-3.6 1.3-3.1.7-4.1.2c-1-.4-1.2-.8-1.5-1.4-.3-.7 0-1.3.8-1.8s.5-1.2.5-1.2c-1-1.9-3.1-2.1-4.8-1.9-2.7.2-5.4.5-7.4.7-3.1.4-4.5-.1-6-.5-1.5-.5-3-1.5-3.2-2.5v-.3c-.1-.8.1-1.1.2-1.8.1-.6 0-1.5-.1-1.8v-.1c-.5-1.3-1.7-1.9-2.7-2.1-1-.2-1 .9-1 .9.1-.2.2-.3.4-.3.6 0 2.3.4 2.8 1.8 0 0 .2.6 0 1.5-.2.8-.2 1.6 0 2.3.1.7.8 1.4 1.5 2 .7.6 2.7 1.5 4.7 1.7 1.8.1 2.5 0 2.6 0l.8-.8.1.7c.8-.1 2.1-.2 3.6-.4 2.5-.3 4.2-.5 5.8-.3 1.6.2 2.1 1.5 2.1 1.5s.1.3-.3.5c-.3.2-.8.5-.9.9-.2.3-.4 1.1.2 2 .6 1 2.1 1.6 3.5 1.4 1.3-.2 3.3-.7 4.5-1 1.3-.3 2.4-1 2.6-2 .1-1-1.5-2.3-1.5-2.3s-.8-.6-.9-.8c-.1-.1.1-.2.1-.2s1-.2 1.4-.4c.4-.2 1.5-.6 3.4-1.2 1.8-.6 5.6-1.2 5.6-1.2s2.1-.3 4.7-.5l.6-.7.5.6c.4 0 .8 0 1.2-.1 3.6-.1 5.3-.6 7.2-1 1.9-.4 4.6-2 5-2.3.4-.3 1.2-.7 1.4-2 .2-1.3-1.4-2.2-1.4-2.2s-1.2-.6-1.5-.9c-.3-.3 0-.6 0-.6s.7-1.5 2.9-2.4c2.2-.9 3.7-1.1 4.6-1.2.9-.1 1.2.2 1.4.4.1.2.1.5 0 .8-.1.3-.4 1-.6 1.4-.2.4-.5 1.2-.3 1.6.2.4.8.6 1.7.4.8-.1 3-.8 4.9-1.6 1.9-.8 5.1-2.3 5.1-2.3l.1-.7.7.3c1-.6 2.8-1.6 4-2.6 1.9-1.6 3.7-3.2 4.2-3.6.5-.4.9-.8 1.3-.7.4 0 .7.3 1 1.4.3 1.1.3 2 .4 2.6.1.5.3 1.2.9 1.3.6.1 1.5-.4 1.8-.7.3-.3.9-1.2.9-2.4 0 0 .1-1.6-.8-3.1 0 0-.3-.6-.5-.8-.1-.1-.2-.2 0-.5.1-.3.5-.8 1.1-1.2.4-.3.9-.3 1.1-.4 0 0 .3-.1.6-.3h-.7z\" fill=\"url(#wikipedia_C)\" /><path d=\"M-252.5 382.7l-.1.2c.1 0 .1-.1.2-.1.3 0 .6.2.6.2s1.1.6 1.6.7c.5.1.9-.1 1.2-.3.3-.2.5-.4.8-.7-.3.3-.7.5-1.4.6 0 0-.6 0-1.4-.6-.8-.5-1.3-.2-1.7.1l-.2.6.2-.4.2-.3z\" fill=\"#FFF\" /><path d=\"M-247.6 382c.1-.1.1-.2.2-.4 0-.1.1-.3.1-.5-.1.4-.2.7-.2.7s-.1.1-.1.2zM-247.2 378.7v1.5c0-.5.1-.9.1-.9-.1-.1-.1-.5-.1-.6z\" opacity=\".73\" fill=\"#FFF\" /><linearGradient id=\"wikipedia_D\" gradientUnits=\"userSpaceOnUse\" x1=\"159.514\" y1=\"-70.412\" x2=\"163.999\" y2=\"-70.412\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#E2E3E4\" /><stop offset=\".505\" stop-color=\"#FFF\" /></linearGradient><path d=\"M-245.9 366.3l-.3.4c.1 0 .1 0 .2-.1 0 0 .4-.1 1.1.1.9.2 2.1-.5 2.1-.5s.3-.2.6-.5c-.4.2-1.4.8-2.1.6-1-.2-1 0-1.3 0-.3 0-.3-.1-.3-.3v-.1c.1-.3.3-.7.3-.7l-.7.4-.3.6c-.1.1-.2.5 0 .5h.2l.5-.4z\" fill=\"url(#wikipedia_D)\" /><path d=\"M-237 365c-1 .3-2 .7-2.5.6-.4-.1-.1-.8 0-1 .1-.1.2-.3.2-.4.3-.5.8-1.4.8-1.4v-.1c.1-.2.1-.5-.5-.6-.8-.1-1.6.6-1.6.6s-.5.3-.8 1.4l.1-.3s.3-1 1.1-1.3c0 0 .3-.2.8-.2s.4.4.4.4-.1.2-.6.9-.7 1.2-.7 1.2-.3.7.2 1c0 0 .2.1.9-.1s3-.8 4.4-1.1l1-.5c-.4.2-2.2.7-3.2.9z\" fill=\"#FFF\" /><path d=\"M-163.4 424.2zM-163.2 424c0-.1 0-.1 0 0 0-.1 0-.1 0 0zM-163.3 424z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-166.1 426.7l-.2.2c-.6.7-1 1-1 1l-.2.3s.2 0 .6-.2c-.1 0-.1.1-.2.1-.2 0 .4-.5.4-.5s.6-.6 1-1.1c.4-.5.1-.5.1-.5s-.1 0-.4.1c.1-.1.3.1-.1.6z\" opacity=\".25\" fill=\"#231F20\" /><path d=\"M-163.3 424.1z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-181.1 431.2s2.2-.9 3.4-.8c0 0 .6.1-.1.7-.7.7-.9 1.2.4.8 0 0 .1 0 .2-.1-.5.1-.7.1-.7 0 .1-.2.5-.5.5-.5s.4-.4.4-.8c0 0 .1-.6-1.6-.2-.9.3-1.8.6-2.5.9z\" opacity=\".22\" fill=\"#231F20\" /><path d=\"M-181.8 431.6zM-165.9 426c-.1 0-.1 0 0 0-.1 0-.1 0 0 0z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-175.7 431.3c1.4-.5 3.9-1.9 5-2.5-1.1.6-3.6 1.9-5 2.5z\" opacity=\".28\" fill=\"#231F20\" /><path d=\"M-166.5 426.3s.1 0 0 0c.1 0 0 0 0 0zM-162.4 423.1zM-162.6 423.3s.1 0 0 0c.1 0 0 0 0 0zM-162.5 423.2zM-163.1 423.9zM-182.8 432.1zM-162.7 423.4c.1 0 .1 0 0 0 .1 0 .1 0 0 0zM-162.9 423.7zM-162.7 423.5zM-163 423.8zM-162.8 423.6zM-182.2 431.8zM-182 431.6s0 .1 0 0c0 .1 0 0 0 0zM-182.7 432.1zM-182 431.7zM-181.9 431.6zM-182 431.7zM-181.8 431.6zM-181.9 431.6zM-182.1 431.7zM-181.8 431.6zM-181.8 431.6zM-181.9 431.6zM-182.1 431.7s-.1 0 0 0c-.1 0 0 0 0 0zM-182.4 431.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-181.8 431.6zM-182.6 432zM-182.6 432s-.1 0 0 0c-.1 0 0 0 0 0zM-182.5 431.9c0 .1 0 .1 0 0 0 .1 0 .1 0 0zM-182.2 431.8s-.1 0 0 0zM-162.3 423zM-182.3 431.8zM-182.3 431.8c0 .1-.1.1 0 0-.1.1 0 .1 0 0zM-182.4 431.9zM-161.6 422.2zM-161.6 422.3c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-161.5 422.1s0 .1 0 0c0 .1 0 0 0 0zM-162.2 422.9zM-161.7 422.4s-.1 0 0 0c-.1 0 0 0 0 0zM-161.4 422.1zM-161.2 421.9zM-161.3 421.9zM-166.1 426.1zM-161.4 422zM-166.3 426.2c-.1 0-.1.1 0 0-.1.1-.1 0 0 0zM-205.8 441zM-205.9 441zM-205.9 441zM-206 441zM-206.1 441zM-166.1 426.1s-.1 0 0 0c-.1 0 0 0 0 0zM-166.2 426.1c0 .1 0 .1 0 0 0 .1 0 .1 0 0zM-166.3 426.2zM-166 426.1s0-.1 0 0c0-.1 0 0 0 0zM-166.3 427.5s-.1.1-.2.1c.1 0 .2 0 .2-.1zM-161.8 422.5zM-225.9 437c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-182.9 432.2c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-208.1 439.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-226.3 436.9zM-226.4 436.8h.1c-.1.1-.1.1-.1 0zM-226.1 436.9h-.1.1zM-162.1 422.8zM-225.9 437h.1-.1zM-162 422.7zM-161.9 422.6zM-226 437s-.1 0 0 0c-.1 0 0 0 0 0zM-182.9 432.2c.1-.1.1-.1 0 0 .1-.1.1-.1 0 0zM-207.6 439.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-182.9 432.2zM-207.6 439.9zM-207.5 440c0-.1 0-.1 0 0 0-.1 0-.1 0 0zM-207.9 439.9h-.1.1zM-207.7 439.9s-.1 0 0 0c-.1 0 0 0 0 0zM-207.8 439.9s-.1 0 0 0c-.1 0 0 0 0 0zM-208 439.9c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-226.1 437zM-206.6 441zM-206.6 441zM-206.6 441zM-206.5 441zM-206.6 441zM-206.7 441zM-207.4 440zM-207.2 440s-.1 0 0 0c-.1 0 0 0 0 0zM-205 441zM-207.3 440c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-206.2 441zM-206.2 441zM-208.8 439.9h0zM-206.3 441z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-207.2 440s.2 0 .1.3.1.5.5.6c-.1 0-.1-.1-.1-.1s0-.1.1-.2 0-.4-.3-.5c-.1 0-.1 0-.3-.1z\" opacity=\".36\" fill=\"#231F20\" /><path d=\"M-206.1 441zM-206.5 441zM-206.3 441zM-206.5 441zM-206.4 441zM-206.4 441zM-207.3 440zM-225.3 437.3s0-.1 0 0zM-225.2 437.3zM-225.3 437.2zM-208.3 439.9zM-225.2 437.3zM-226.6 436.8h0zM-226.5 436.8zM-225.2 437.3zM-225.4 437.2z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-226.3 437.2c-.3-.2-.4-.5-.4-.5h.1c-.3-.1-.5-.1-.5 0s.1.2.3.2c.1.2.3.3.5.3z\" opacity=\".38\" fill=\"#231F20\" /><path d=\"M-225.3 437.2zM-225.4 437.2zM-225.2 437.3zM-225.8 437.1zM-208.5 439.9c.1 0 .1 0 0 0 .1 0 .1 0 0 0zM-208.6 439.9s.1 0 0 0c.1 0 0 0 0 0zM-225.7 437.1h-.1.1zM-225.5 437.2zM-225.6 437.1zM-225.4 437.2c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-225.5 437.1c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-184 434.4zM-183.2 434.1zM-183.2 434.1zM-183.3 434.1zM-183.3 434.1zM-183.6 434.2zM-183.6 434.3zM-183.3 434.1zM-183.7 434.3zM-183.7 434.3zM-183.6 434.3zM-205.1 441zM-183.7 434.3zM-183.2 432.4zM-183 432.3zM-183.1 432.3z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-183.1 433.8c.2.1.1.2-.1.3h.1s.8-.4.5-.6c-.3-.2-1.1-.3-.6-1-.4.3-.8.7-.5 1 0-.1.1.1.6.3z\" opacity=\".19\" fill=\"#231F20\" /><path d=\"M-183.4 434.2zM-183.4 434.2zM-183.4 434.2zM-183.5 434.2zM-183.5 434.2zM-183.2 432.4c.1 0 .1-.1 0 0 .1-.1.1 0 0 0zM-205.7 441zM-205.6 441zM-205.6 441z\" opacity=\".1\" fill=\"#231F20\" /><path d=\"M-204 439.9s.4.2 1.7.3h.5s0 .1-.1.1c.1 0 .8-.3.5-.4h-.1-.1-.1c-.1 0-.3 0-.4-.1h-.2s-.5 0-.7-.3c-.1-.2.5-.3.5-.3s1-.2 1.9-.3c0 0-2.5.3-2.8.6-1 .2-.6.4-.6.4z\" opacity=\".25\" fill=\"#231F20\" /><path d=\"M-184 434.4zM-184 434.4zM-205.2 441zM-205.3 441zM-205.4 441zM-205.4 441c-.1 0-.1 0 0 0-.1 0-.1 0 0 0zM-183.9 434.4s0-.1 0 0c0-.1 0 0 0 0zM-183.9 434.4zM-183.8 434.3zM-183.9 434.4zM-183.8 434.3zM-184 434.4zM-184 434.4zM-181.8 431.6zM-183.9 434.4zM-184 434.4z\" opacity=\".1\" fill=\"#231F20\" /><linearGradient id=\"wikipedia_E\" gradientUnits=\"userSpaceOnUse\" x1=\"160.245\" y1=\"-122.267\" x2=\"255.006\" y2=\"-99.729\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-246.4 418.1l-.1-.1.1.1z\" fill=\"url(#wikipedia_E)\" /><linearGradient id=\"wikipedia_F\" gradientUnits=\"userSpaceOnUse\" x1=\"162.699\" y1=\"-132.563\" x2=\"257.822\" y2=\"-109.938\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-163.6 410l.7.1c2-1.6 3.9-3.6 3.9-3.6s1.3-1.3 1.9-2.4c.2-.4.3-.4.3-.2 0-.1.1-.5 0-.7-.1-.2-.4.3-.8.9-.1 0-2.2 2.9-6 5.9-3.7 2.9-4.7 3.7-8 5.6 0 0-2.3 1-3.9.7-1.2-.3 0-1.5.3-2.7.3-1.1.1-1.6-.2-1.8-.3-.2-.9-.4-2.1-.1 0 0-4.7 1.3-6.8 3.3-1.9 1.9.5 2.6 1 2.9 0 0 .8.3.7.7-.1.3-.5.6-.7.8-.2.2-3.3 2-8.3 2.8-4 .6-3.3.3-7.1.7-3.9.4-5 .7-8.1 1.5-3.1.7-4.9 1.5-5.4 2.3-.3.7.5 1.1 1 1.4.5.3 1.4.8 1.1 1.3-.3.5-1.6 1.3-4.9 1.4-3.2.1-4.6-.3-5.2-1-.5-.6-.1-1.3.1-1.9 0 0 .4-.8.2-1.2-.2-.4-.7-.5-1.3-.6-.5-.1-3.2-.2-5.3-.3-2.4-.1-5.2-.2-8.6-.9 0 0-2.2-.4-3.7-1.3-.1-.1-.2-.1-.3-.2-.1-.1-.2-.1-.3-.2-.4-.4 0-.7-.2-1.2-.1-.4-.4-.9-.9-1.5l-.7-.7c-.1-.1-.2-.1-.3-.2-1.3-1-1.4-1.1-2-1.2-.5 0-.2.9-.1 1.2 0 .1.1.3.2.5-.2-.4-.3-.7-.3-.9.1-.3.3-.3.3-.3s.1-.1.6.3 1.5 1.1 2 1.7c.5.6.5 1.2.5 1.2s-.1.6.5 1.2 1.7 1.7 5.9 2.3h.1l.2-.5.6.7c3.6.5 5.5.6 5.5.6s4.7.2 6 .2c1.3 0 1 .7 1 .7s-.1.4-.2.6c-.2.3-.5 1.4-.1 1.9 0 0 .6 1.4 4.4 1.5 0 0 3.3.3 5.6-.7s.2-2.3.2-2.3-.8-.5-1.1-.7c-.3-.2-.2-.5-.1-.6.1-.2.3-.4.6-.5.3-.1 1.2-.7 5.4-1.7 4.1-1.1 6.6-1.2 6.6-1.2h.1l.3-.7.8.6c.7-.1 1.7-.1 2.5-.2 1.7-.1 4.3-.5 5.9-.8 1.5-.3 3.9-1.1 5.6-2 1.7-.9 1.8-1.5 1.8-1.5s.3-.5-.4-1-1-.4-1.7-1c-.6-.6.6-1.6.6-1.6s.6-.9 4-2.2c3.4-1.3 4-.9 4.2-.7.2.1.2.6.1.9l-.7 2.1c-.2.6-.3 1.4.6 1.6.9.2 2.2 0 3.4-.4 2.9-1 3.8-2.3 8.5-5.8v-.9z\" opacity=\".83\" fill=\"url(#wikipedia_F)\" /><linearGradient id=\"wikipedia_G\" gradientUnits=\"userSpaceOnUse\" x1=\"161.474\" y1=\"-127.42\" x2=\"256.587\" y2=\"-104.797\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-153.1 397.6c-.6 1.2-1.2 2.6-1.4 3.5 0 .2-.1.3-.1.3s-.1.7-.1 1c0 .2.1.3.1.4 0 .1 0 .1.1.1v.1c0 .1 0 .6-.3 1.2-.1.2-.1.4-.2.5 0 .1-.1.1-.1.1-.5.8-1.1 1.5-1.6 1.5-.3 0-.5-.1-.6-.4 0 .4.1.7.3 1 .4.4 1.6-.8 1.6-.8s.7-.8 1-2.1c.4-1.9.2-2.2.2-2.2s-.2-.4-.1-.9c.2-.5 1.2-3 2-4l.5-.6-.2-.5c-.1.1-.3.3-.4.5-.2.5-.4.8-.7 1.3z\" fill=\"url(#wikipedia_G)\" /><linearGradient id=\"wikipedia_H\" gradientUnits=\"userSpaceOnUse\" x1=\"160.775\" y1=\"-124.479\" x2=\"255.87\" y2=\"-101.862\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-243.4 420.8c-.1-.1-.3-.2-.5-.4-.1-.1-.6-.6-1.2-1.1-.2-.2-.4-.4-.6-.5-.3-.3-.5-.5-.7-.6l.1.4s0 .1.1.1c.2.3.9 1.3 2.2 2.3 1.5 1.2 1.6.7 1.6.7s.1-.4-.3-.8c-.1-.1-.1-.2-.2-.3-.1-.1.9 1.4-.5.2z\" fill=\"url(#wikipedia_H)\" /><linearGradient id=\"wikipedia_I\" gradientUnits=\"userSpaceOnUse\" x1=\"160.915\" y1=\"-125.065\" x2=\"256.04\" y2=\"-102.44\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-243.3 420c.1.2.2.4.3.5 0 0-.2-.2-.3-.5z\" fill=\"url(#wikipedia_I)\" /><linearGradient id=\"wikipedia_J\" gradientUnits=\"userSpaceOnUse\" x1=\"162.103\" y1=\"-130.065\" x2=\"257.229\" y2=\"-107.44\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#EDEDEE\" /><stop offset=\".418\" stop-color=\"#FFF\" /><stop offset=\".626\" stop-color=\"#F8F9F9\" /><stop offset=\".951\" stop-color=\"#B2B4B6\" /></linearGradient><path d=\"M-157.1 405s.2-.8.2-1.1-.5 1.4-.3 2.2c0-.5.1-1.1.1-1.1z\" fill=\"url(#wikipedia_J)\" /><path d=\"M-190.7 354.4l.7.1c1.4-.4 2.6-.8 2.6-.8s1.3-.4 1.9-.6c.6-.2 1.1-.3 1.7-.4.6-.1 1.3-.1 1.7-.1.4 0 .5.1.5.1s.2.1.2.3c.1.1.7 1.9 3 2 2.2.1 2.3-1.1 2.1-1.5-.2-.4-.9-.9-.9-.9s-.9-.6-1.1-.8c-.2-.3 0-.4.1-.4s2.4-.5 2.7-.6l-.6-.2s-.1.1-.8.3c-.7.2-1.2.2-1.7.3-.5.1-.5.2-.5.2l-.1.1c0 .1-.1.3.4.6.5.4 1.2.8 1.4 1 .3.3.6.8 0 1.1-.3.2-.5.2-.8.3h-.6-.2c-.5 0-.7-.1-1.1-.3-.4-.2-.8-.7-.9-1.1-.2-.4-.5-.7-.5-.7-.6-.3-1.7-.3-2.8-.1-1.1.2-2.7.7-2.9.8-.3.1-1.6.6-2.3.7-.7.2-1.2.4-1.6.5-.4.1-3.4 1-4.6 1.3-1.1.3-1.8.5-1.8.5-1.7.2-2.2-.1-2.2-.1-.3-.1-.3-.5-.3-.5v-1.1s0-.4-.4-.6c-.3-.2-.8-.3-1.6-.3s-1.7 0-2.1.1c-.4.1-1.2.3-1.8 1-.6.6-.5 1.1-.5 1.1v.2c.2.2.4.5.9.7 1 .5-1.1 1.3-1.1 1.3-.5.2-1.2.5-2.2.8-2.2.6-3.7.8-3.7.8l.7.3s5.5-1 7.1-2.6c0 0 .6-.3 0-.9-.6-.6-.9-.8-.9-.8s-.4-.2 0-.8c.4-.5.9-.8 1.4-.9.4-.1 1.8-.2 2.9-.1 0 0 .5 0 .5.4s-.1.9-.1 1c0 .2 0 .5.4.8.4.3 1.1.5 1.1.5s1.3.2 2.8-.2c1.6-.4 3.6-1.1 5.4-1.6l.5-.2z\" opacity=\".1\" fill=\"#232323\" /><linearGradient id=\"wikipedia_K\" gradientUnits=\"userSpaceOnUse\" x1=\"158.615\" y1=\"-89.399\" x2=\"247.586\" y2=\"-68.884\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".654\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#CBCCCE\" /></linearGradient><path d=\"M-162.4 363l.3.5c-1.1.5-4 1.3-4.3 1.4-.3.1-.2.2-.2.2 0 .1 1 1.1 1 1.1 1.2 1.2.5 2.3.5 2.3s-.9 1.3-2.8 1.1c-2-.2-2.6-1.8-2.7-2-.1-.3-.2-.8-.2-1.1 0-.3-.3-.3-.3-.3-1.1 0-2.9 1.1-2.9 1.1-.8.5-1.7 1.1-3.5 2-.9.4-1.7.7-2.3.9l-1-.2.1.5h-.1s-2.3.8-4.5 1.6c-2.3.7-3.7.8-3.7.8s-1.3.1-2.3-.3c-.9-.4-1-.9-.9-1.4 0-.5.5-1.4.6-2 .1-.6-.7-.6-.7-.6s-2-.2-3.7.3c-1.7.5-2.5 1.2-2.5 1.2-.9.5-.9 1-.9 1s0 .5.6.9 1.1.5 1.7.7c.7.1.8.3.8.3 1.1.9.4 1.8 0 2.4-.6 1.1-3.7 1.7-3.7 1.7-3.3.8-5.1 1.1-7.8 1.5l-.9-.5-.3.6c-7.1.9-10.1 1.9-11.1 2.1-1 .3-1.3.8-1.4.9-.1.1.1.2.1.2.4.1.6.4.6.4s1.4 1.7 0 3.1c-1.4 1.4-2.8 1.7-2.8 1.7s-2.2.7-4.1.3c-1.9-.4-2.4-1.9-2.4-2.4s.2-1.1.7-1.7c.5-.6.7-.7.7-.7s.4-.3.4-.4c.1-.2-.4-.2-.4-.2-1-.1-3.5-.1-5.8.1-1.4.1-2.8.4-3.6.5l-.2-.5-.5.6-3.1.5c-1.5.2-2.6 0-2.6 0s-1.3-.4-1.5-1.3c-.1-.9.4-1.9.5-2.2.1-.3.5-.9.5-.9s.1-.1.1-.3c0-.2-.2-.5-.2-.5s-.2-.4-.9-.4-.9.1-1.1.4l-.1.1c0-.1 0-.1.1-.2.2-.3.7-.7 1.4-.7s1 .2 1 .2c.7.8.1 1.8-.4 2.8-.1.1-.2.3-.2.5 0 .1-.1.2-.1.2-.4 1.1.3 1.6.7 1.7.4.1 1.1.6 4.3 0 3.1-.6 3.6-.7 3.6-.7s6.1-1.1 9-.4c0 0 1.3.4.3 1.3-1 1-1.7 1.6-1.5 2.4.2.8 1.3 1.9 3.6 1.6 0 0 .8-.1 1.1-.2 1.7-.3 2.9-1.3 2.9-1.3s1-.7.8-1.6c-.2-.9-1-1.2-1-1.2s-.7-.4-.1-1.2c0 0 .1-.7 2.6-1.3 2.4-.6 6.8-1.5 10.6-2 3.5-.4 9.7-1.6 10.9-2.1 1.2-.5 1.5-1.4 1.5-1.7 0-.3.1-.8-1.1-1.1-1.2-.3-1.8-.7-1.9-.8-.2-.1-.5-.5-.5-1.3s1.6-1.7 3.4-2.4c1.8-.6 3.9-.3 3.9-.3 1.9.2.9 2 .9 2-.1.3-.9 1.8.5 2.2 1.5.4 4.2-.3 5.2-.7.8-.3 3.1-1.1 4.7-1.6.4-.1.7-.2.9-.3 1.7-.6 3-1.2 3.8-1.7.8-.5 2.1-1.3 2.1-1.3s1.4-.7 1.8-.8c.5-.1 1.6-.3 1.8.8.2 1.1.6 1.9 1.4 2.3.8.4 2.1.5 3.2-.2 1.2-.8.4-1.9.4-1.9s0-.1-.1-.1c-.2-.3-.4-.5-.5-.6-.4-.5-.7-.8-.7-.8-.3-.4.1-.7.4-.8.4-.1 2.4-.8 2.4-.8 1.2-.4 1.6-.6 2.1-1 .4-.4-.2-1.3-.2-1.4l.6.3c.1.2.3.4.4.5 0 0 .2.5.1.8-.1.1-.3.3-.5.4l-.8-.6z\" fill=\"url(#wikipedia_K)\" /><linearGradient id=\"wikipedia_L\" gradientUnits=\"userSpaceOnUse\" x1=\"136.042\" y1=\"-39.679\" x2=\"136.042\" y2=\"-39.679\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#FFF\" /><stop offset=\".654\" stop-color=\"#FFF\" /><stop offset=\"1\" stop-color=\"#CBCCCE\" /></linearGradient><path d=\"M-196.5 442.3c-.1-.1-.1-.1 0 0 0-.1.1-.1.1-.2 0 0-1.2-.1-2.1.1-1 .1-1.9.3-1.9.3l.3.1s.1-.1 1-.2 1.3-.1 1.3-.1.8-.1 1-.1c.2 0 .1.1.1.1s-.1.1.4.1c0 0 .7 0 1.3-.2-.2.1-1.3.3-1.5.1zM-199.5 442.7s.1.3-2.9.4c0 0 1.8.1 3.3-.2 1.1-.2-.4-.2-.4-.2zM-240.9 359.9v.1l.1.1s.3-.5.2-.4c0 0-.1.2-.2.2l-.1.1v-.1zM-243.4 362.5s-.4.5 0 .5l.5-.5s.1-.2.1-.4c.1 0-.4.2-.6.4z\" opacity=\".1\" fill=\"#232323\" /><path d=\"M-232.9 373.7c1.2.1 1.5-.1 1.5-.2.3 0 1.5 0 2.9-.2 1.7-.2 3.6-.9 3.6-.9s1.6-.6 2.1-1.2c0 0-.7-.6-1.1-1.1 0 0-.3-.6 0-1 .3-.5.8-1 2.3-1.6 1.5-.6 2.4-.5 2.4-.5s.6 0 1 .4c.4.5.6 1 .6 1s0 .4-.1.6c-.1.3-.2.3-.2.3h.4c.3 0 1.2-.1 2.7-.5 1.5-.4 3.4-1 3.4-1s4.9-1.6 5.4-1.7c.5-.1 1.4-.4 1.4-.4v.1s.4.7.4 1.3v-.1s0 .3-.7.8-1.2.5-1.7.4c-.5 0-.7-.1-.8 0h-.7c-.8.1-1.2.4-1.2.4-1.8 1.1.7 9.3.7 9.3-3.7.5-8.1 1.4-10.6 2-2.4.6-2.6 1.3-2.6 1.3-.5.8.1 1.2.1 1.2s.8.3 1 1.2c.2.9-.8 1.6-.8 1.6s-1.2 1-2.9 1.3c-1.7.3-2.4.4-3.4-.5-.9-.7-.3-1.9.3-2.3.6-.4.9-.9 1-1.1s0-.4 0-.4l-.6-.5c-2-1.3-9.9.1-9.9.1-.2-1.2-.4-1.2-.3-3.1.1-1.2.3-1.8.3-1.8l.1-.2s.4-1.4 1.1-2.4c0 0 .6-.2 1.4-.3l1.5-.3z\" fill=\"#6B6B6B\" /><linearGradient id=\"wikipedia_M\" gradientUnits=\"userSpaceOnUse\" x1=\"-22.768\" y1=\"1549.871\" x2=\"9.619\" y2=\"1549.871\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#696969\" /><stop offset=\".37\" stop-color=\"#2E2E2E\" /><stop offset=\".455\" stop-color=\"#424242\" /><stop offset=\".601\" stop-color=\"#303030\" /><stop offset=\".695\" stop-color=\"#4A4A4A\" /><stop offset=\"1\" stop-color=\"#666\" /></linearGradient><path d=\"M-204.1 366.9s-4.1 1.3-3.9 1.3c0 0-.4.1-.7.2-.3.1-.5.2-.5.2s-3.3 1.2-6.4 1.8c-3.1.6-3-.4-2.7-.8.2-.4.8-1.1-.2-1.3-1-.1-1.8.3-2.2.4-.4.2-3.2 1.4-1.3 2.3 0 0 1.4.6-.4 1.8 0 0-1.8 1.2-5.4 1.8 0 0-.6.1-1.9.1-1.3 0-2.6.2-4.1.7-1.4.4-2 .6-2.7 1.1l.2-.5.2-.5c1.1-.5 3.7-1.3 5.7-1.4 2-.1 2.9-.2 4.7-.6 2.1-.5 2.7-1 2.9-1.2.2-.1.8-.5.5-.6-.4-.2-.9-.7-.9-.7-.2-.3-.4-.4-.2-1 .4-1 2.2-1.6 2.2-1.6s1-.5 2.3-.5c1.3 0 1.3.8 1.3.8s.1.3-.3.8c0 0-.5.6 0 .7.5.1 1.6.2 5.5-1s8.1-2.6 8.1-2.6.2.1.2.3z\" opacity=\".45\" fill=\"url(#wikipedia_M)\" /><linearGradient id=\"wikipedia_N\" gradientUnits=\"userSpaceOnUse\" x1=\"-22.377\" y1=\"1549.063\" x2=\"9.494\" y2=\"1549.063\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#525252\" /><stop offset=\".186\" stop-color=\"#333\" /><stop offset=\".354\" stop-color=\"#AEAEAE\" /><stop offset=\".42\" stop-color=\"#ADADAD\" /><stop offset=\".428\" stop-color=\"#9D9D9D\" /><stop offset=\".443\" stop-color=\"#818181\" /><stop offset=\".461\" stop-color=\"#6A6A6A\" /><stop offset=\".481\" stop-color=\"#585858\" /><stop offset=\".506\" stop-color=\"#4C4C4C\" /><stop offset=\".539\" stop-color=\"#444\" /><stop offset=\".617\" stop-color=\"#424242\" /><stop offset=\".668\" stop-color=\"#454545\" /><stop offset=\"1\" stop-color=\"#BDBDBD\" /></linearGradient><path d=\"M-222.9 371.3c-.5.6-2.1 1.2-2.1 1.2s-1.9.7-3.6.9c-1.6.2-2.8.2-2.8.2h-.1c-.2.1-.5.2-.7.2h-.8s-2.2.4-2.6.6c0 0-.3.4-.3.5-.1.1-.3.6-.3.6 1.1-.5 3.7-1.3 5.7-1.4 2-.1 2.9-.2 4.7-.6 2.1-.5 2.7-1 2.9-1.2.2-.1.8-.5.5-.6-.4-.2-.9-.7-.9-.7-.2-.3-.4-.4-.2-1 .4-1 2.2-1.6 2.2-1.6s1-.5 2.3-.5c1.3 0 1.3.8 1.3.8s.1.3-.3.8c0 0-.5.6 0 .7.5.1 1.6.2 5.5-1s8.1-2.6 8.1-2.6c-.1-.3-.3-.7-.3-.7s-.8.3-1.4.4c-.5.1-5.4 1.7-5.4 1.7s-1.9.6-3.4 1-2.3.5-2.7.5h-.4l.2-.3c.1-.2.1-.6.1-.6s-.2-.5-.6-1c-.4-.5-1-.5-1-.5s-.8-.1-2.4.5c-1.5.6-2 1.2-2.3 1.6-.3.5 0 1 0 1 .5.5 1.2 1.1 1.1 1.1\" fill=\"url(#wikipedia_N)\" /><linearGradient id=\"wikipedia_O\" gradientUnits=\"userSpaceOnUse\" x1=\"-17.084\" y1=\"1559.333\" x2=\"-18.113\" y2=\"1552.527\" gradientTransform=\"translate(-213.764 -1178.502)\"><stop offset=\"0\" stop-color=\"#969696\" /><stop offset=\"1\" /></linearGradient><path d=\"M-232.4 381.2s-.1-.3.2-.9c.2-.6.9-.6 1.4-.5.5.1.8.3 1.5-.1.6-.4.5-1.6 0-2.9-.4-1.3-.3-2.1-.3-2.1l-.6-.6-.2.7c0 1.3.7 3.2.8 3.8.2.5.3.8-.7.5-1-.3-1.5.1-1.5.1-1.3.9-1.1 2.2-1.1 2.2l.5-.2z\" opacity=\".2\" fill=\"url(#wikipedia_O)\" /><path d=\"M-226.5 386.6c-.3-1.8-.9-2.7-.9-2.7-.3.2-.5.7-.5.7s.2.2.5 1.6c0 0 .1.1.4.3.3.1.5.1.5.1zM-220.8 382.9s-.8.9-.4 2.3c0 0 .5-.4.6-.7 0 0-.1-.5.1-1 0 0-.1-.4-.3-.6z\" opacity=\".5\" fill=\"#141414\" /><linearGradient id=\"wikipedia_P\" gradientUnits=\"userSpaceOnUse\" x1=\"174.78\" y1=\"-86.053\" x2=\"175.53\" y2=\"-78.469\" gradientTransform=\"matrix(1 0 0 -1 -406.164 295.68)\"><stop offset=\"0\" stop-color=\"#333\" /><stop offset=\".431\" /><stop offset=\"1\" stop-color=\"#2E2E2E\" /></linearGradient><path d=\"M-232.8 381.3c0-1.3.5-1.5.9-1.8.4-.3 1.3 0 1.3 0s.7.2 1-.1c.4-.3 0-1.5-.2-2.1-.2-.7-.4-1.6-.4-2.3 0-.5-.1-.7-.1-.8l-.2.6c0 1.3.7 3.2.8 3.8.2.5.3.8-.7.5-1-.3-1.5.1-1.5.1-1.3.9-1.1 2.2-1.1 2.2l.2-.1z\" opacity=\".18\" fill=\"url(#wikipedia_P)\" /><path d=\"M-227.8 384.3c0 .1.4.6.7 2.1.3.2.5.2.5.2-.3-1.8-.9-2.7-.9-2.7 0 .1-.2.2-.3.4zM-220.8 382.9s-.8.9-.4 2.3c0 0 .1-.1.3-.2v-.1c-.3-1 .3-1.8.3-1.8-.1 0-.2-.1-.2-.2z\" opacity=\".3\" fill=\"#505050\" /><path d=\"M-236.8 358.2h.1c-.2.5-.8 1.1-1.1 1.6-.2.2-.3.6-.5.8.1.1.8-.1.9-.2h.1c0 .1-.5 1-.6 1.1.2 0 .5-.1.6-.2.4-.3.5-.9.8-1.3v-.2c-.2 0-.7 0-.9.2.1-.5.9-1.3 1.1-1.7.5-.6.9-1.3 1.3-1.9.2-.3.6-.6.8-.9.3-.4.6-.9.9-1.1v-.1h-.2c-.2.1-.7.2-.9.4 0 .1 0 .1.1.2-.1.4-.6.7-.8 1-.4.5-.8 1-1.1 1.5-.1.2-.2.4-.4.6-.2.2-.9.2-1.2.4h-.1c.1-.3.9-1.4 1.1-1.6-.4.1-.7.3-1 .5 0 .1 0 .1.1.1-.1.2-.4.4-.5.6-.2.3-.3.6-.5.9v.1c.6-.4 1.7-.7 1.9-.8zm34.7 5.3c.2.1.4.1.6.2h.4c0-.7-.4-.9-.6-1.3-.1-.2-.2-.5-.4-.7.1-.2.7-.3 1-.4.6-.2 1.4-.4 2-.6.3-.1.7-.1.9-.2.1 0 .2 0 .3.1.1.2.3 1.7.2 2.1-.4 1.7-.9 3-1.9 4 .4-.1.6-.4.8-.6 1.1-.8 1.8-2 2.1-3.4.2-.9-.1-1.7.2-2.5-.1-.2-1.1-.6-1.4-.6-.2.2-.4.4-.6.5-.4.2-.8.1-1.1.3-.3 0-.5-.6-.3-.8v-.2c-.2-.2-.8-.2-1.3-.2-.1.1-.3.1-.3.4v.1h.2c.4 0 .4.6.7.8v.1c-.2.1-1.3.5-1.5.5-.2 0-.4-.1-.6-.1-.3 0-.6.2-.8.3.1.2.4.1.6.3.3.6.5 1.3.8 1.9zm7.9-.5c.2.1.2.3.3.5l.6 1.2v.3c.1.3.4.3.6.4.2 0 .2-.1.3-.1-.1-.8-.5-1.4-.8-2-.1-.2-.2-.5-.2-.6 0-.1.1-.2 0-.3l-.2-.2c-.1 0 0 0 0-.1.1-.1.2-.3.3-.4.1-.3.1-.6.4-.8 0-.4-.6-.5-1.1-.4-.1 0-.2.1-.2.1l.2.2c.1 1.2-.7 2.2-1.2 2.9-.2.3-.6.5-.8.8.4 0 1.5-1.1 1.8-1.5zm-47.4 9.8h-.1c-.3.1-.8 1.4-1.3 1.1-.3 0-.3-.1-.5-.2 0-.4.7-1.1.9-1.2 0-.6.2-1.3.1-1.8h-.1c-.1 0-.3.2-.4.3l-.9.9c-.3 0-1.4 0-1.6.1h-.1c.1-.3.9-1.1.6-1.5v-.1c-.7 0-1.6 1.3-1.8 1.8-.1.3-.1.6-.3.8.5-.1 1.1-.1 1.6-.2.2 0 .5.1.6 0h.6c.1-.1.2-.2.3-.4.3-.3.8-.7 1-1.1h.1v.6c-.3.3-.8.7-.9 1.1v.3c-.2.9.2 1.3 1 1.3.5-.4 1.3-.8 1.2-1.8 0 0 0 .1 0 0zm-4.6-.7h-.2c.1-.4.5-.9 1.1-1v.2c-.2.2-.4.5-.6.7-.1.1-.2.1-.3.1zm85.2.2c-.2-.4-.3-.7-.5-1.1-.3-.6-.6-1.4-1.5-1.4-.2.2-.4.3-.6.6-.8 1.8.8 3.7 1.5 4.7.3.3.6.7.9.9-.1 1.4-1.3 1.8-2.5 1.3-.9-.4-1.6-1.2-2.2-2l-.7-.7c-.2-.2-.3-.5-.5-.7h-.1c.1.4.4.8.5 1.2.7 1.5 1.5 2.6 2.8 3.5.6.4 1.6 1.1 2.5.5 1.8-1.2 1.1-5.2.4-6.8zm-.1 1.9c-.1.1-.5-.4-.6-.5-.4-.4-1.3-1.2-.8-2h.2c.4.4.7.8 1 1.3.1.4.1.9.2 1.2 0 0 .1 0 0 0zm-26.2 7.9v-.4c.2-.8.1-1.8.3-2.6.2-1.1-.1-2.1 1-2.4 0-.1.1-.1 0-.2v-.1h-.1c-.3.2-1.1.4-1.5.5-.3.1-.6 0-.9.2h-.1v.2c.5.1.9 0 1.1.4.1.3.1 1.2 0 1.5-.3 1.2-.1 2.5-.4 3.6-.1.4 0 1.2-.2 1.5v.1c-.2-.1-.4-.4-.6-.6-.4-.5-.9-.8-1.2-1.3-.2-.3-.4-.6-.7-.8 0-.8.3-1.6.4-2.3.1-.5.1-1 .4-1.4.1-.2.5-.4.8-.5v-.2-.1c-.5.1-1 .3-1.5.5-.5.1-.9.1-1.3.3V378.3c1.4-.1 1.2.7.9 1.7-.1.3 0 .8-.2 1v.1c-.3-.4-.7-.9-1.1-1.2l-.4-.4c-.1-.1-.2-.3-.3-.4 0-.4.4-.5.7-.7 0-.2-.1-.2-.1-.3-1 .2-1.9.7-3.1.8V379.2c.2 0 .6-.1.8 0 .4.1.8.6 1.1 1 .4.5 1 .9 1.4 1.5.2.3.4.6.7.8 0 .7-.2 1.4-.4 2.1-.1.3 0 .7-.2 1v.1c-.4-.7-1.1-1.3-1.6-1.9-.9-1.2-1.9-2.3-2.9-3.5 0-.2 0-.3.1-.4.1-.2.4-.4.6-.5v-.2-.1c-.8.1-1.5.5-2.3.7-.4.1-.9.1-1.2.3h-.1c0 .2.1.2.1.3.3 0 .6-.1.9 0 .8.2 1.4 1.1 1.8 1.7.2.3.5.5.7.8.8 1.1 1.8 2.1 2.6 3.3.3.4.8.8 1.1 1.3.2 0 .2 0 .3-.1.2-.9.3-1.9.6-2.8.1-.4.3-.9.3-1.4.3.1.6.6.8.9.6.8 1.5 1.5 2.1 2.4.2 0 .2 0 .3-.1.2-1.6.3-2.9.5-4.3zm-62.4 6.8c0 2.5-.1 6.3 1.8 6.8.7.2 1.1-.3 1.3-.6.8-1.2.6-3.4-.2-4.4-.3 0-.8.8-1 1.1h-.1c-.1 0-.1-.1-.2-.1-.1-.9.1-1.8.2-2.7 1 .1 1.9.7 3 .8 0-.2 0-.4.1-.6v-.2c-.1-.1-.9-.3-1.2-.3.1-1.2-.2-2.1-1-2.4-.4-.1-.9-.2-1.3-.2-.2-.1-.3-.3-.5-.4-.1-.4-.1-.8.2-1 0-.1 0-.2-.1-.2-.1.2-.2.5-.3.8-.2 1 .3 1.8.9 2 .4.1.8.1 1.2.2.3.1.5.4.7.6 0 .5-.5.6-.9.4-.6-.2-1.3-.4-2-.6-.2-.1-.3-.2-.6-.2 0 .3-.1.5-.1.8.6.2 1.1.3 1.7.5 0 1.4-.6 3.1.1 4.2.1 0 .1 0 .2.1.8-.1.9-.7 1.3-1.1.3.8.1 2.3-.7 2.5-.3.2-.8-.1-1-.2-.6-.6-.8-1.5-1-2.5-.1-.3 0-1-.1-1.3-.2-.8-.1-1.6-.4-1.8zm95 6.6c-.1-.7.1-1.5-.1-2.1v-.6c-.1-.5-.1-1.1-.2-1.5-.2-.9 0-1.9-.4-2.7-.2 0-.4-.1-.7-.1-.1.1-.2.2-.2.3.1.4.5.4.7.8v.5c.1.6.1 1.3.2 1.9v.5c.1.3.2 1 .1 1.3-.1.4-.6.8-.9 1.1-.8.8-1.6 1.7-3 1.9v.1c0 .5.5.4.8.6h.2c.1-.1.2-.2.3-.4.2-.3.6-.4.8-.7v3.7h.1c.3-1.2.3-2.6.2-4 .5-.5.9-1.2 1.4-1.7v-.1 3.8c0 .4-.1 1.4 0 1.5v.2h.1c.1-.4.1-1 .2-1.5v-.7c.6-.5.5-1.5.4-2.1zm-71 2.6c-.3-.1-.8-.5-1-.8-.6-.9-1.3-2.9-.9-4.5.4-1.3 1.2-2.1 2.5-2.5.7-.2 1.4.1 1.8.3 1.2.6 1.7 1.5 2.1 3 .5 1.9-.1 3.6-1.4 4.2.1.8.2 1.5.2 2.3.4 0 .9-.1 1.2-.2.6-.2 1.3-.2 1.9-.3.4-.1 1.1 0 1.4-.2.1-.2-.2-1.4-.3-1.6-.1-.2 0-.5-.1-.6v-.2h-.3c0 1.2-.8 1-1.8 1.3-.5.1-1 .3-1.6.3v-.5c0-.1.7-.4.9-.5.5-.3.9-.8 1.2-1.3.2-.3.4-.8.5-1.1.1-.5.2-1.2 0-1.7-.1-.3 0-.6-.2-.9-.4-1.2-1.3-2.1-2.5-2.5-.5-.2-1.1-.2-1.7-.4-.5-.1-1.5.1-1.9.2-1.9.6-3.2 1.5-3.8 3.3-.2.7-.2 1.7 0 2.4.5 1.6 1.8 3 3.7 3 .1.1.1.3.1.4v.1c-.2.1-.4.1-.6.1-.5.1-2 .5-2.3.2-.2-.1-.4-.4-.4-.6H-229.3c.1.8.3 1.5.4 2.3 1.4-.2 2.8-.5 4.2-.7-.2-.7-.4-1.5-.6-2.2.2-.1-.2 0-.4-.1zm67.7-4.4c.1.2.3.6.4.7.1.1.1 0 .2.1 1.3.1 1.8-2.1 1.3-3.4-.1-.2-.5-.9-.9-.6h-.1v-.1c0-.2 0-.3-.1-.4h-.2-.1c0 .2.1.2.1.5-.5.6-1.1 2-.6 3.2zm.4-2.1c.1-.2.3-.4.4-.5h.1c.3 0 .4.1.6.2.3.7.3 2-.2 2.5-.1.1-.2.1-.3.2-.8-.2-.9-1.7-.6-2.4zm-18.3 15.6c-.4-.3-.5-1.7-.7-2.3-.3-1.2-.5-2.5-.8-3.7-.2-.8-.5-1.6-.4-2.6.1-.1.2-.3.4-.4.2-.2.6-.2.8-.4v-.2c-.5.1-.9.4-1.3.5-.8.3-1.6.5-2.4.9-.3.1-.5.3-.8.3v.2h.1s1-.4 1.3-.1c.4.1.3.6.5.9-.1.6-.7 1.6-.9 2.1-.6 1.3-1.2 2.6-1.8 3.8-.2.5-.5 1.3-.9 1.7-.2-.3-.2-1.1-.3-1.5-.4-1.2-.6-2.6-1-3.8-.1-.2-.3-1.3-.2-1.5.1-.5.8-.8 1.3-1v-.3c-.7.1-1.4.5-2.1.7-.6.2-1.1.3-1.7.5-.3.1-.6.3-1 .3 0 .1 0 .2.1.2.2.1 1-.4 1.4-.1.6.2.6 1.1.8 1.7.5 1.6.7 3.3 1.2 4.9.1.4.4 1.7.1 2-.1.4-.9.6-1.3.8v.2c.6-.1 1.2-.4 1.7-.6 1.1-.4 2.1-.6 3.1-1v-.3c-.4.1-.8.2-1.4.2-.1-.1-.2-.1-.2-.2-.1-.2-.1-.4-.2-.6 0-.5.7-1.4.9-1.9.7-1.3 1.3-2.6 1.9-4 .2-.5.8-1.3.8-1.9.2.1.1.4.2.7.1.5.2 1 .4 1.5.3 1 .4 2.1.7 3.1.1.4.3 1 .1 1.5-.2.4-.8.7-1.3.8 0 .1 0 .2.1.2 0 0 .9-.3 1.1-.4 1.1-.5 2.2-1 3.4-1.4v-.3c-.7.6-1.3 1-1.7.8zm18.7 3.3c-.1.1-.4.2-.5.3-.5.4-1 1-1.4 1.5-.3.4-.5.8-.8 1.3-.1.2-.1.4-.3.6v.1c.3-.1.5-.3.8-.4.7-.4 1.2-.8 1.9-1.2.3-.2.5-.6.8-.8 0-.5.1-.8-.1-1.2-.1-.2-.2-.2-.4-.2zm-.5 1.4c-.2.2-.5.4-.7.6-.2.1-.5.2-.6.4.1-.4.8-1.1 1.1-1.3l.6-.3h.2l.1.1c-.2.3-.5.4-.7.5zm-85.5 1.6c-.2-.5-.3-1-.4-1.5-.1-.2-.1-.5-.2-.7v-.1c.3.1.7.1.9.2h.2c0-.2-.1-.6-.2-.7-.1-.2-.9-.2-1.1-.4-.3-.2-.6-.9-.8-1.3-.6-.9-1.3-1.8-2.1-2.5-.4-.3-.8-.7-1.5-.7-.1.1-.2.1-.3.2-.2.8.1 2.2.6 2.6v.1c-.2-.1-.4-.2-.5-.3 0 .2.1.5.2.7 0 .2.4.4.6.4.2 1 .6 2.1.9 3 .3.8.4 1.5.8 2.2.2.4.5.6.6 1h.1c-.1-.3-.3-.6-.4-.9-.4-.9-.7-1.8-1-2.7-.2-.6-.3-1.1-.5-1.7-.1-.2 0-.4-.2-.6.3 0 .4.2.6.3.5.2.9.3 1.4.5.4.1.8.3 1.2.4 0 .4.3 1.3.4 1.5v.1c-.6-.4-.6-1-1.7-.9l-.2.2c-.1.2-.1.6 0 .9.3.6 1.1 2 1.7 2.2.3.2.6 0 .8-.2.2.1.3.7.4 1 .2.6.5 1.3 1 1.5h.1c-.1-.4-.3-.9-.5-1.2-.3-.9-.6-1.8-.9-2.6zm-1.1-3.2c-.4 0-.8-.2-1.1-.3-.9-.3-1.7-.6-2.5-1-.1-.4-.8-1.6-.4-2.1l.1-.1h.1c1.2.1 2.4 1.6 3 2.5.3.2.5.7.8 1zm.6 3.4c-.1.1-.2.3-.4.4-.1.1-.2.1-.3.2-.7 0-.7-.7-1-1.1 0-.4.2-.4.3-.6h.2c.6 0 .8.3 1.1.5.1.2.1.3.1.6zm23.3 6.1c-.2-.3-.5-.3-.7-.6h-.1c.5-.3 1.1-.6 1.6-.8.1.2.8.8 1 .7h.1v-.7c-.5-.5-1.2-.9-2.1-1.1.1.3.4.5.6.7v.1c-.5.1-.9.3-1.3.4-.3.1-.6.1-.9.2h-.1c.2-.5.7-.9 1-1.3.6-.8 1-1.7 1.9-2.2 0-.4-1.1-1.1-1.5-.9l-.1.1c-.1.1.1.3.1.6-.1.3-.8 1.7-1 1.9-.4-.1-.7-.5-1.1-.7.1-.4.4-.6.6-.9.5-.7.8-1.3 1.5-1.8 0-.5-.9-1.1-1.4-1.1 0 .2.1.4.1.6-.1.6-.4 1.3-.7 1.9-.2.4-.2.8-.5 1.1-.1 0-.5 0-.6-.1h-.4v.1c.7.6 1.4.9 2.3 1.3-.1.7-.8 1.1-1.1 1.6-.2 0-.3 0-.4-.1h-.2c0 .6.5 1.1 1 1.2.3-.4.7-.5 1.2-.8.4.5.6 1.1.8 1.9.1.3 0 .7 0 1 .2.5.4.7.7 1h.3c.2-.9-.3-1.8-.5-2.6 0-.1-.1-.4-.1-.7zm62.5-6.7c-.2.2-.6.3-.8.5-.4.3-.8.7-1.1.9-.2.1-.4.3-.6.4-.2.3-.2.8-.4 1.1v.2c.3-.1.5-.5.7-.7.3-.2.6-.5.9-.8.2-.1.4-.2.6-.4.1 0 .1 0 .2.1 0 1-.5 1.7-.9 2.5-.1.2-.1.6-.3.7-.1.1-.2.1-.3.2-.3.3-.5.6-.8.9-.3.3-.4.8-.6 1.1v.3s.1.1.2.1c.5-.5 1-.9 1.4-1.5.7-.9 1-2 1.5-3.1.3-.7.7-1.4.7-2.3 0 0-.1-.1-.1-.2h-.3zm-2.8 6.3c0-.4.4-.6.6-.9h.1c-.1.3-.4.7-.7.9zm-59.1.6c-.1.3.8 1.1 1 1.3.1.1.3.3.5.2h.2c0-.1.1-.2 0-.4 0-.5-1.3-1-1.7-1.1zm3.8 3h.2c.1-.1.1-.3.2-.5.2-.2.6-.1.9-.2.8-.2 1.8-.2 2.6-.4.4-.1 1.1.2 1.5 0h.1c0-.5-1-.7-1.5-.6-.2.1-.5.2-.8.3h-.6c-.1-.6-.4-1.1-.4-1.8.6 0 1.3-.1 1.7-.3 0-.2 0-.2-.1-.3-.5-.1-1.2-.1-1.6.1h-.2c-.2-.3-.1-.9-.3-1.1v-.2c.4-.1 1.1-.2 1.3-.5v-.1l-.1-.1c-.6-.2-.9 0-1.4.2-.2-.5 0-1-.5-1.1.1-.2.5-.2.8-.3.4-.1.8-.3 1.1-.5v-.1c0-.2-.1-.2-.2-.3-.6 0-1 0-1.3.3h-.1c0-.3.2-.7.4-.9.1-.2.3-.1.4-.4-.1-.1-.2-.2-.2-.3-.2-.1-.5-.1-.6-.3-.3 0-.5 0-.7.1 0 .2.1.2.1.4.1.4-.3 1.7-.4 1.9-.1.2-1.6.7-1.9.6-.1 0-.4-.2-.4-.2v-.1c.6-.5 1-1.7 1.7-1.9v-.2c-.2-.2-1.1-1.2-1.6-.9h-.1c0 .3.2.6.1.9-.2.7-.6 1.6-.9 2.1-.2.4-.7.7-.7 1.2.6-.1.8-.7 1.3-.9l.4.4c.2.3.2.8.3 1.2.2.9.4 1.7.6 2.6 0 .4.1.8.1 1.3 0 .2.4.8.8.9zm1.2-3c0 .4.3 1.4.4 1.7v.1c-.5.1-1 .2-1.5.2-.1-.6-.4-1.1-.4-1.7.7 0 1-.2 1.5-.3zm-2.3-3.2c.1-.1 1.1-.3 1.2-.2.4.2.3.8.5 1.2-.1.2-1 .5-1.3.5 0-.5-.1-1.3-.4-1.5zm1.9 1.5c.1.4.2 1 .4 1.3-.1.3-1 .3-1.3.5-.1-.1-.3-1.1-.3-1.3.2-.1.9-.4 1.2-.5zm-6.9 2.2c-.1.1-.1.4-.1.5-.3.8-.5 1 .1 1.8.2 0 .3 0 .4-.1.1-.6.2-1.9-.4-2.2zm45.1.2c-1.2-.3-2.1.3-3.3.2-.1-.1-.2-.2-.3-.4-.8 0-1.8 1.9-.9 2.5.5.3 1.7.1 2.3 0 .3-.1.8-.1 1 0 .3.2.3 1.2.2 1.7-.1 1-.3 2-.4 2.9-.1.6-.2 1.2-.4 1.8.6 0 1.2-.6 1.3-1.1.1-.3 0-.5.1-.8.2-.8.2-1.8.4-2.7.1-.6 0-1.1.2-1.6.1-.4.1-1.7 0-2.1.1 0-.1-.2-.2-.4zm-54.1 12c-.1-.1-.2-.3-.4-.4l-1.5-1.2c-.4-.3-1-.5-1.4-.8 0-.1.1-.3 0-.5-.3-.9-1.6-1.9-2.4-2.4-.4-.2-1-.3-1.3-.6-.2 0-.4 0-.4.2-.1.2.2.5.3.7.3.4.6.8.9 1.1.3.2.6.4.8.6h.1c-.2-.4-.6-.7-.9-.9-.3-.2-.4-.6-.7-.9 0-.1 0-.1.1-.2 1.1 0 1.8 1 2.3 1.7.2.3.6.5.6 1h-.4c.2.5.8.5 1.3.8.9.5 1.6 1.4 2.4 2.1.3.2.7.5.8.9-.5 0-.9-.3-1.3-.6-.6-.4-1.6-1.1-2-1.7-.1-.1-.1-.3-.2-.4-.1-.1-.3-.1-.4-.3h-.2c0 .4.4.7.7.9.8.8 1.7 1.4 2.7 2 .4.2 1.1.5 1.5.3 0-.7-.7-1.1-1-1.4zm24.3 2.6c-2-1.4-5-2.8-8.4-2.7-.2.1-.5 0-.7.1-.3.1-.5.2-.7.4 0 1 1.4 1.5 2.3 1.7.5.1.9-.1 1.2-.2.2-.8-.8-.9-1.2-1.3h-.1c3-.1 5.3.7 7 2 .4.3.9.8 1.1 1.3.1.2.1.5 0 .7-.2.4-.7.4-1.2.5-1.2.3-2.8-.4-3.3-.9-.1.2 0 .5-.1.7-.2.5-.8.4-1.3.5-.9.2-2.4-.3-2.9-.6l-.4-.4v-.2c.1-.1.2-.2.2-.3 1.1-.1 1.7 0 2.4.6v.1c-.1.2-.2.2-.5.2v.1c.4 0 .6-.1.8-.2v-.2c-.1-.1-.2-.3-.4-.4-.6-.4-2-.6-2.7-.2-.1.6.2.9.6 1.1.6.5 1.2.8 2.1 1 .3.1.5 0 .9.1.3.1.8.1 1.1 0 .5-.1 1.2-.7.6-1.3.3.1.5.4.8.6.8.4 2 .7 3.2.5.6-.1 1.1-.1 1.3-.6.2-.3-.1-.7-.2-.8-.4-1-.9-1.5-1.5-1.9zm-7.3-1.8c.1.1.2.3.4.4v.2c-.3.7-1.7.2-2.1-.1-.1-.1-.2-.2-.2-.4v-.1c.1-.3.4-.2.7-.4.4.1.9.2 1.2.4zm36.7.4h-.4c-.3.2-.7.2-1 .4-.3.1-.6.3-.8.5-.2.1-.3.4-.5.6 0 .2 0 .2.2.3h.1l.1-.1v-.2c.4-.4.7-.6 1.2-.8.1-.1.4-.2.6-.1h.1c0 .4-.9 1.6-1.2 1.8v.1c.7-.2 1.2-1.6 1.7-2.2-.1-.2 0-.2-.1-.3zm-3.1 2.9c-.2.2-.8.2-1.1.4.1-.1.3-.2.4-.4.1-.1.1-.2.2-.3v-.2c-1.2-.2-3.1.8-3.7 1.3-.2.1-.2.3-.4.5v.2c.7 0 2-.4 2.2-.9v-.1c-.5 0-1.1.1-1.4.4.3-.4 1.2-.7 1.7-.9.2-.1.6-.1.7 0h.1c-.1.4-.7.8-1 .9v.1c.6-.1 1.2-.4 1.7-.6.4-.1.8-.2 1.1-.4.2-.1 1-1.2 1.1-1.5-1 .1-1.1 1-1.6 1.5zm-3.2.8v.1c-.1 0-.1.2-.2.2-.2.1-.5.1-.7.2h-.2c.2-.3.8-.5 1.1-.5zm-16.5 3.7v-.1c-1 0-2-.1-2.9-.1-.1.1-.3 0-.5.1s-.4.1-.6.2v.1c.2.2 1.6.2 1.9 0h.1v-.1c-.4-.1-1.2.2-1.5 0 1.1-.1 2.2 0 3.3 0-.1.1-.3.1-.4.1h-.1v.1c.2 0 .5.1.7.1-.3.2-1.3.1-1.6 0v-.1c-.2-.1-1 .1-1.1.1h-.4c-.2 0-.2 0-.3.1 0 .1 0 .1.1.2.3.1.7.1 1 .2-.1-.1-.6 0-.7-.1h-.1c.1-.1 1.4-.3 1.7-.1h.1c-.2 0-.4.1-.6.1v.1h.3c0 .1-.1.1-.1.2v.1c.6 0 1-.1 1.5-.2.3-.1.6.1.8-.1h.3v-.1c-.5 0-1.9-.1-2.2.2h-.1c.2-.2.5-.1.8-.2.4-.1 1.2-.3 1.5 0 .1.1 0 0 0 .1h.5v-.2c-.4-.1-.9-.3-1.2-.4.1-.1.1-.3-.2-.3zm-40.2-72.9c-.1.3-.3.6-.4.9-.3.6-.5 1.2-.8 1.8-.2.5-.3 1.3-.6 1.7v.1c.4-.1.7-.5.9-.8.6-.6 1.9-2.2 1.9-3.4-.1-.1-.1-.2-.2-.2-.1-.1-.4-.1-.8-.1zm.2 1.6c-.2.3-.3.6-.5.9-.2.3-.5.5-.6.7.1-.3.2-.5.3-.8.2-.6.4-1.1.7-1.6.2 0 .3 0 .4.1l.1.1c-.1.1-.3.5-.4.6zm70.2-12.1c-.4-.4-.7-.9-1.1-1.3-.2.1-.9.7-1 .9-.3-.1-.4-.4-.6-.5-.7-.5-1.3-1.2-2.5-1.1-.1.1-.4.1-.6.2-.5.2-1.1.7-1.3 1.2-.2.6 0 1.5.2 1.9.4.9 1 1.7 1.6 2.4.5.6 1 1.3 1.8 1.5 1 .2 1.4-.9 1.8-1.3.4-.4 1.2-.5 1.5-1.1.1-.2 0-.6 0-.8-.2-.4-1.1-1.6-1.4-1.9 0-.2.1-.2.2-.4.2.1.3.5.5.7.2.3.5.4.8.6.4 0 .6-.1.8-.3-.1-.4-.5-.5-.7-.7zm-2.2 4.2c-.7.2-1-.3-1.4-.7-.9-.9-1.6-2.1-2.3-3.2-.2-.4-.9-1.1-.6-1.7h.2c.2.3.5.5.8.8.6.8 1.3 1.5 1.9 2.3.4.5.8.9 1.1 1.4.2.2.3.6.6.8-.2.1-.3.2-.3.3zm.6-2.8c.3.4.8.7.8 1.5-.1.1-.2.2-.4.3h-.1c-.6-.9-1.4-1.7-2-2.6-.2-.3-.5-.5-.8-.8-.4-.5-.8-.9-1.2-1.3-.1-.1-.2-.3-.3-.4 0-.1 0-.1.1-.1.7 0 1 .5 1.4.8.9.8 1.7 1.7 2.5 2.6z\" opacity=\".88\" fill=\"#231F20\" /><radialGradient id=\"wikipedia_Q\" cx=\"-2.191\" cy=\"1550.361\" r=\"72.751\" gradientTransform=\"translate(-213.764 -1178.502)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-opacity=\"0\" /><stop offset=\".802\" stop-opacity=\".08\" /><stop offset=\"1\" stop-opacity=\".388\" /></radialGradient><path d=\"M-204.1 367c0-.6-.4-1.3-.4-1.3v-.1s-.5-.9-1.3-1.2c-.8-.3-1.5.3-1.5.3s-.1.1-.4.5c-.3.4-.5.7-1.2.9-.7.3-1.4.2-1.7 0-.4-.2-.5-.5-.5-.5s-.2-.7-.3-1c-.1-.3-.3-1.7-.3-1.7s-.5-2.7-.5-3.3c0 0 1.5-.1 3.7-.8 2.3-.7 3-1.2 3-1.2s-.4-.2-.5-.7c-.1-.5-.1-1.2-.1-1.2s-.1-.5.5-1.1c.6-.6 1.4-.9 1.8-1 .4-.1 1.3-.2 2.1-.1.8 0 1.3.1 1.6.3.3.2.4.6.4.6v1.1s0 .4.3.5c0 0 .5.3 2.2.1 0 0 .7-.1 1.8-.5 1.1-.3 4.1-1.2 4.6-1.3.4-.1 1-.3 1.6-.5.7-.2 2-.6 2.3-.7.3-.1 1.8-.6 2.9-.8 1.1-.2 2.2-.2 2.8.1 0 0 .4.3.5.7.2.4.5.9.9 1.1.5.2.8.4 1.9.3 0 0 0-.1-.4-.4-.4-.3-1-.7-1-.7s-.3-.2-.4-.4c-.1-.2 0-.3 0-.3l.9-1.4s0-.2.5-.2c.5-.1 1.1-.1 1.7-.3.7-.2.8-.3.8-.3l.6.2s3.5 2.9 4.7 3.6l.2-.2s.4 0 .8.2 1 .6 1 .6 1.6 1.3 2.1 2.2l.2.7-.1.2s.9 1.3 2.1 2.6c0 0 1.2 1.7 1.7 2.1l-.2-.8.3-.2.2-.1.6.3c3.6 4.8 6.4 10.4 8.1 16.3l-.1.5.4.5c1.1 4.2 1.7 8.6 1.7 13.2 0 1.1 0 2.2-.1 3.3l-.3.5.2.6c-2.2 26.1-24.1 46.6-50.8 46.6-18.5 0-34.7-9.9-43.6-24.6l-.1-.4-.2-.2c-3.4-5.7-5.7-12.2-6.6-19.1l.2-.5-.3-.5c-.2-1.9-.3-3.8-.3-5.8 0-3 .3-5.9.7-8.8l.3-.6-.1-.3c1.2-6 3.4-11.7 6.5-16.8l.7-.4h.1s.2-.2.4-.2h.1s1.2-2 1.6-2.6c0 0 .5-.3.7-.4 0 0 .1 0 .2.1 0 0 .5-.4 1.7-2.1 0 0-.1-.1-.1-.2s.1-.6.2-.7c.1-.1.1-.2.1-.2s1.7-2 3.2-3.2c0 0 .3-.2.7-.3 0 0 1.5-.6 3.3-2.2 0 0 .1-.3.5-.9.4-.6 1.5-1.2 2.2-1.3.8-.2.9 0 .9 0l.1.1.5.8s.6-.3 1.4-.6c.8-.3 1-.3 1-.3l.8 1.3-1 2s-.6 1.4-1.7 2.2c0 0-.5.3-1.1.1s-1.1.3-1.1.3l-.2.1s.1 0 .3-.1c0 0 .2.1.3.2.1.2.9 1.2.9 1.2s0 .8-.4 1.9c-.4 1.1-1.5 2.9-1.5 2.9s-.7 1.4-1.1 2.3c-.3.8-.5 1.8-.5 2.3 0 0 .2.1.7-.2.7-.3 1.1 0 1.1 0s.7.5 1 .9c.3.3.8 1.8.2 3.2 0 0-.4 1-1.4 1.7 0 0-.2.3-1.5.2-.4 0-.6-.3-1.4-.2-.8.1-1.2.8-1.2.8-.7 1-1.2 2.5-1.2 2.5l-.1.2s-.2.5-.3 1.8c-.1 1.3.3 3.1.3 3.1s7.9-1.4 9.9-.1l.6.5v.4c-.1.2-.4.7-1 1.1-.6.4-1.2 1.6-.3 2.3 1 .8 1.7.8 3.4.5 1.7-.3 2.9-1.3 2.9-1.3s1-.7.8-1.6c-.2-.9-1-1.2-1-1.2s-.7-.4-.1-1.2c0 0 .1-.7 2.6-1.3 2.4-.6 6.8-1.5 10.6-2 0 0-2.5-8.2-.7-9.3 0 0 .4-.3 1.2-.4h1.5c.5 0 1 .1 1.7-.4.4-.6.4-.9.4-.9\" opacity=\".38\" fill=\"url(#wikipedia_Q)\" /></symbol>"
  20727. });
  20728. _browserSpriteBuild2.default.add(symbol);
  20729. var WikipediaSpriteSymbolComponent = function (_React$Component) {
  20730. _inherits(WikipediaSpriteSymbolComponent, _React$Component);
  20731. function WikipediaSpriteSymbolComponent() {
  20732. _classCallCheck(this, WikipediaSpriteSymbolComponent);
  20733. return _possibleConstructorReturn(this, (WikipediaSpriteSymbolComponent.__proto__ || Object.getPrototypeOf(WikipediaSpriteSymbolComponent)).apply(this, arguments));
  20734. }
  20735. _createClass(WikipediaSpriteSymbolComponent, [{
  20736. key: "render",
  20737. value: function render() {
  20738. return _react2.default.createElement(_icon2.default, _extends({ glyph: "wikipedia" }, this.props));
  20739. }
  20740. }]);
  20741. return WikipediaSpriteSymbolComponent;
  20742. }(_react2.default.Component);
  20743. exports.default = WikipediaSpriteSymbolComponent;
  20744. /***/ })
  20745. /******/ ]);