main.js 860 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164
  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 index = 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 = index(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 ua = navigator.userAgent;
  8768. var browser = {
  8769. isChrome: /chrome/i.test(ua),
  8770. isFirefox: /firefox/i.test(ua),
  8771. // https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
  8772. isIE: /msie/i.test(ua) || /trident/i.test(ua),
  8773. isEdge: /edge/i.test(ua)
  8774. };
  8775. /**
  8776. * @param {string} name
  8777. * @param {*} data
  8778. */
  8779. var dispatchEvent = function (name, data) {
  8780. var event = document.createEvent('CustomEvent');
  8781. event.initCustomEvent(name, false, false, data);
  8782. window.dispatchEvent(event);
  8783. };
  8784. /**
  8785. * IE doesn't evaluate <style> tags in SVGs that are dynamically added to the page.
  8786. * This trick will trigger IE to read and use any existing SVG <style> tags.
  8787. * @see https://github.com/iconic/SVGInjector/issues/23
  8788. * @see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/
  8789. *
  8790. * @param {Element} node DOM Element to search <style> tags in
  8791. * @return {Array<HTMLStyleElement>}
  8792. */
  8793. var evalStylesIEWorkaround = function (node) {
  8794. var updatedNodes = [];
  8795. arrayFrom(node.querySelectorAll('style'))
  8796. .forEach(function (style) {
  8797. style.textContent += '';
  8798. updatedNodes.push(style);
  8799. });
  8800. return updatedNodes;
  8801. };
  8802. /**
  8803. * @param {string} [url] If not provided - current URL will be used
  8804. * @return {string}
  8805. */
  8806. var getUrlWithoutFragment = function (url) {
  8807. return (url || window.location.href).split('#')[0];
  8808. };
  8809. /* global angular */
  8810. /**
  8811. * @param {string} eventName
  8812. */
  8813. var locationChangeAngularEmitter = function (eventName) {
  8814. angular.module('ng').run(['$rootScope', function ($rootScope) {
  8815. $rootScope.$on('$locationChangeSuccess', function (e, newUrl, oldUrl) {
  8816. dispatchEvent(eventName, { oldUrl: oldUrl, newUrl: newUrl });
  8817. });
  8818. }]);
  8819. };
  8820. var defaultSelector = 'linearGradient, radialGradient, pattern';
  8821. /**
  8822. * @param {Element} svg
  8823. * @param {string} [selector]
  8824. * @return {Element}
  8825. */
  8826. var moveGradientsOutsideSymbol = function (svg, selector) {
  8827. if ( selector === void 0 ) selector = defaultSelector;
  8828. arrayFrom(svg.querySelectorAll('symbol')).forEach(function (symbol) {
  8829. arrayFrom(symbol.querySelectorAll(selector)).forEach(function (node) {
  8830. symbol.parentNode.insertBefore(node, symbol);
  8831. });
  8832. });
  8833. return svg;
  8834. };
  8835. /**
  8836. * @param {NodeList} nodes
  8837. * @param {Function} [matcher]
  8838. * @return {Attr[]}
  8839. */
  8840. function selectAttributes(nodes, matcher) {
  8841. var attrs = arrayFrom(nodes).reduce(function (acc, node) {
  8842. if (!node.attributes) {
  8843. return acc;
  8844. }
  8845. var arrayfied = arrayFrom(node.attributes);
  8846. var matched = matcher ? arrayfied.filter(matcher) : arrayfied;
  8847. return acc.concat(matched);
  8848. }, []);
  8849. return attrs;
  8850. }
  8851. /**
  8852. * @param {NodeList|Node} nodes
  8853. * @param {boolean} [clone=true]
  8854. * @return {string}
  8855. */
  8856. var xLinkNS = namespaces_1.xlink.uri;
  8857. var xLinkAttrName = 'xlink:href';
  8858. // eslint-disable-next-line no-useless-escape
  8859. var specialUrlCharsPattern = /[{}|\\\^\[\]`"<>]/g;
  8860. function encoder(url) {
  8861. return url.replace(specialUrlCharsPattern, function (match) {
  8862. return ("%" + (match[0].charCodeAt(0).toString(16).toUpperCase()));
  8863. });
  8864. }
  8865. /**
  8866. * @param {NodeList} nodes
  8867. * @param {string} startsWith
  8868. * @param {string} replaceWith
  8869. * @return {NodeList}
  8870. */
  8871. function updateReferences(nodes, startsWith, replaceWith) {
  8872. arrayFrom(nodes).forEach(function (node) {
  8873. var href = node.getAttribute(xLinkAttrName);
  8874. if (href && href.indexOf(startsWith) === 0) {
  8875. var newUrl = href.replace(startsWith, replaceWith);
  8876. node.setAttributeNS(xLinkNS, xLinkAttrName, newUrl);
  8877. }
  8878. });
  8879. return nodes;
  8880. }
  8881. /**
  8882. * List of SVG attributes to update url() target in them
  8883. */
  8884. var attList = [
  8885. 'clipPath',
  8886. 'colorProfile',
  8887. 'src',
  8888. 'cursor',
  8889. 'fill',
  8890. 'filter',
  8891. 'marker',
  8892. 'markerStart',
  8893. 'markerMid',
  8894. 'markerEnd',
  8895. 'mask',
  8896. 'stroke',
  8897. 'style'
  8898. ];
  8899. var attSelector = attList.map(function (attr) { return ("[" + attr + "]"); }).join(',');
  8900. /**
  8901. * Update URLs in svg image (like `fill="url(...)"`) and update referencing elements
  8902. * @param {Element} svg
  8903. * @param {NodeList} references
  8904. * @param {string|RegExp} startsWith
  8905. * @param {string} replaceWith
  8906. * @return {void}
  8907. *
  8908. * @example
  8909. * const sprite = document.querySelector('svg.sprite');
  8910. * const usages = document.querySelectorAll('use');
  8911. * updateUrls(sprite, usages, '#', 'prefix#');
  8912. */
  8913. var updateUrls = function (svg, references, startsWith, replaceWith) {
  8914. var startsWithEncoded = encoder(startsWith);
  8915. var replaceWithEncoded = encoder(replaceWith);
  8916. var nodes = svg.querySelectorAll(attSelector);
  8917. var attrs = selectAttributes(nodes, function (ref) {
  8918. var localName = ref.localName;
  8919. var value = ref.value;
  8920. return attList.indexOf(localName) !== -1 && value.indexOf(("url(" + startsWithEncoded)) !== -1;
  8921. });
  8922. attrs.forEach(function (attr) { return attr.value = attr.value.replace(startsWithEncoded, replaceWithEncoded); });
  8923. updateReferences(references, startsWithEncoded, replaceWithEncoded);
  8924. };
  8925. /**
  8926. * Internal emitter events
  8927. * @enum
  8928. * @private
  8929. */
  8930. var Events = {
  8931. MOUNT: 'mount',
  8932. SYMBOL_MOUNT: 'symbol_mount'
  8933. };
  8934. var BrowserSprite = (function (Sprite$$1) {
  8935. function BrowserSprite(cfg) {
  8936. var this$1 = this;
  8937. if ( cfg === void 0 ) cfg = {};
  8938. Sprite$$1.call(this, deepmerge(defaultConfig$1, cfg));
  8939. var emitter = mitt();
  8940. this._emitter = emitter;
  8941. this.node = null;
  8942. var ref = this;
  8943. var config = ref.config;
  8944. if (config.autoConfigure) {
  8945. this._autoConfigure(cfg);
  8946. }
  8947. if (config.syncUrlsWithBaseTag) {
  8948. var baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');
  8949. emitter.on(Events.MOUNT, function () { return this$1.updateUrls('#', baseUrl); });
  8950. }
  8951. var handleLocationChange = this._handleLocationChange.bind(this);
  8952. this._handleLocationChange = handleLocationChange;
  8953. // Provide way to update sprite urls externally via dispatching custom window event
  8954. if (config.listenLocationChangeEvent) {
  8955. window.addEventListener(config.locationChangeEvent, handleLocationChange);
  8956. }
  8957. // Emit location change event in Angular automatically
  8958. if (config.locationChangeAngularEmitter) {
  8959. locationChangeAngularEmitter(config.locationChangeEvent);
  8960. }
  8961. // After sprite mounted
  8962. emitter.on(Events.MOUNT, function (spriteNode) {
  8963. if (config.moveGradientsOutsideSymbol) {
  8964. moveGradientsOutsideSymbol(spriteNode);
  8965. }
  8966. });
  8967. // After symbol mounted into sprite
  8968. emitter.on(Events.SYMBOL_MOUNT, function (symbolNode) {
  8969. if (config.moveGradientsOutsideSymbol) {
  8970. moveGradientsOutsideSymbol(symbolNode.parentNode);
  8971. }
  8972. if (browser.isIE || browser.isEdge) {
  8973. evalStylesIEWorkaround(symbolNode);
  8974. }
  8975. });
  8976. }
  8977. if ( Sprite$$1 ) BrowserSprite.__proto__ = Sprite$$1;
  8978. BrowserSprite.prototype = Object.create( Sprite$$1 && Sprite$$1.prototype );
  8979. BrowserSprite.prototype.constructor = BrowserSprite;
  8980. var prototypeAccessors = { isMounted: {} };
  8981. /**
  8982. * @return {boolean}
  8983. */
  8984. prototypeAccessors.isMounted.get = function () {
  8985. return !!this.node;
  8986. };
  8987. /**
  8988. * Automatically configure following options
  8989. * - `syncUrlsWithBaseTag`
  8990. * - `locationChangeAngularEmitter`
  8991. * - `moveGradientsOutsideSymbol`
  8992. * @param {Object} cfg
  8993. * @private
  8994. */
  8995. BrowserSprite.prototype._autoConfigure = function _autoConfigure (cfg) {
  8996. var ref = this;
  8997. var config = ref.config;
  8998. if (typeof cfg.syncUrlsWithBaseTag === 'undefined') {
  8999. config.syncUrlsWithBaseTag = typeof document.getElementsByTagName('base')[0] !== 'undefined';
  9000. }
  9001. if (typeof cfg.locationChangeAngularEmitter === 'undefined') {
  9002. config.locationChangeAngularEmitter = 'angular' in window;
  9003. }
  9004. if (typeof cfg.moveGradientsOutsideSymbol === 'undefined') {
  9005. config.moveGradientsOutsideSymbol = browser.isFirefox;
  9006. }
  9007. };
  9008. /**
  9009. * @param {Event} event
  9010. * @param {Object} event.detail
  9011. * @param {string} event.detail.oldUrl
  9012. * @param {string} event.detail.newUrl
  9013. * @private
  9014. */
  9015. BrowserSprite.prototype._handleLocationChange = function _handleLocationChange (event) {
  9016. var ref = event.detail;
  9017. var oldUrl = ref.oldUrl;
  9018. var newUrl = ref.newUrl;
  9019. this.updateUrls(oldUrl, newUrl);
  9020. };
  9021. /**
  9022. * Add new symbol. If symbol with the same id exists it will be replaced.
  9023. * If sprite already mounted - `symbol.mount(sprite.node)` will be called.
  9024. * @fires Events#SYMBOL_MOUNT
  9025. * @param {BrowserSpriteSymbol} symbol
  9026. * @return {boolean} `true` - symbol was added, `false` - replaced
  9027. */
  9028. BrowserSprite.prototype.add = function add (symbol) {
  9029. var sprite = this;
  9030. var isNewSymbol = Sprite$$1.prototype.add.call(this, symbol);
  9031. if (this.isMounted && isNewSymbol) {
  9032. symbol.mount(sprite.node);
  9033. this._emitter.emit(Events.SYMBOL_MOUNT, symbol.node);
  9034. }
  9035. return isNewSymbol;
  9036. };
  9037. /**
  9038. * Attach to existing DOM node
  9039. * @param {string|Element} target
  9040. * @return {Element|null} attached DOM Element. null if node to attach not found.
  9041. */
  9042. BrowserSprite.prototype.attach = function attach (target) {
  9043. var this$1 = this;
  9044. var sprite = this;
  9045. if (sprite.isMounted) {
  9046. return sprite.node;
  9047. }
  9048. /** @type Element */
  9049. var node = typeof target === 'string' ? document.querySelector(target) : target;
  9050. sprite.node = node;
  9051. // Already added symbols needs to be mounted
  9052. this.symbols.forEach(function (symbol) {
  9053. symbol.mount(sprite.node);
  9054. this$1._emitter.emit(Events.SYMBOL_MOUNT, symbol.node);
  9055. });
  9056. // Create symbols from existing DOM nodes, add and mount them
  9057. arrayFrom(node.querySelectorAll('symbol'))
  9058. .forEach(function (symbolNode) {
  9059. var symbol = BrowserSpriteSymbol.createFromExistingNode(symbolNode);
  9060. symbol.node = symbolNode; // hack to prevent symbol mounting to sprite when adding
  9061. sprite.add(symbol);
  9062. });
  9063. this._emitter.emit(Events.MOUNT, node);
  9064. return node;
  9065. };
  9066. BrowserSprite.prototype.destroy = function destroy () {
  9067. var ref = this;
  9068. var config = ref.config;
  9069. var symbols = ref.symbols;
  9070. var _emitter = ref._emitter;
  9071. symbols.forEach(function (s) { return s.destroy(); });
  9072. _emitter.off('*');
  9073. window.removeEventListener(config.locationChangeEvent, this._handleLocationChange);
  9074. if (this.isMounted) {
  9075. this.unmount();
  9076. }
  9077. };
  9078. /**
  9079. * @fires Events#MOUNT
  9080. * @param {string|Element} [target]
  9081. * @param {boolean} [prepend=false]
  9082. * @return {Element|null} rendered sprite node. null if mount node not found.
  9083. */
  9084. BrowserSprite.prototype.mount = function mount (target, prepend) {
  9085. if ( target === void 0 ) target = this.config.mountTo;
  9086. if ( prepend === void 0 ) prepend = false;
  9087. var sprite = this;
  9088. if (sprite.isMounted) {
  9089. return sprite.node;
  9090. }
  9091. var mountNode = typeof target === 'string' ? document.querySelector(target) : target;
  9092. var node = sprite.render();
  9093. this.node = node;
  9094. if (prepend && mountNode.childNodes[0]) {
  9095. mountNode.insertBefore(node, mountNode.childNodes[0]);
  9096. } else {
  9097. mountNode.appendChild(node);
  9098. }
  9099. this._emitter.emit(Events.MOUNT, node);
  9100. return node;
  9101. };
  9102. /**
  9103. * @return {Element}
  9104. */
  9105. BrowserSprite.prototype.render = function render () {
  9106. return parse(this.stringify());
  9107. };
  9108. /**
  9109. * Detach sprite from the DOM
  9110. */
  9111. BrowserSprite.prototype.unmount = function unmount () {
  9112. this.node.parentNode.removeChild(this.node);
  9113. };
  9114. /**
  9115. * Update URLs in sprite and usage elements
  9116. * @param {string} oldUrl
  9117. * @param {string} newUrl
  9118. * @return {boolean} `true` - URLs was updated, `false` - sprite is not mounted
  9119. */
  9120. BrowserSprite.prototype.updateUrls = function updateUrls$1 (oldUrl, newUrl) {
  9121. if (!this.isMounted) {
  9122. return false;
  9123. }
  9124. var usages = document.querySelectorAll(this.config.usagesToUpdate);
  9125. updateUrls(
  9126. this.node,
  9127. usages,
  9128. ((getUrlWithoutFragment(oldUrl)) + "#"),
  9129. ((getUrlWithoutFragment(newUrl)) + "#")
  9130. );
  9131. return true;
  9132. };
  9133. Object.defineProperties( BrowserSprite.prototype, prototypeAccessors );
  9134. return BrowserSprite;
  9135. }(Sprite));
  9136. var ready$1 = createCommonjsModule(function (module) {
  9137. /*!
  9138. * domready (c) Dustin Diaz 2014 - License MIT
  9139. */
  9140. !function (name, definition) {
  9141. { module.exports = definition(); }
  9142. }('domready', function () {
  9143. var fns = [], listener
  9144. , doc = document
  9145. , hack = doc.documentElement.doScroll
  9146. , domContentLoaded = 'DOMContentLoaded'
  9147. , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);
  9148. if (!loaded)
  9149. { doc.addEventListener(domContentLoaded, listener = function () {
  9150. doc.removeEventListener(domContentLoaded, listener);
  9151. loaded = 1;
  9152. while (listener = fns.shift()) { listener(); }
  9153. }); }
  9154. return function (fn) {
  9155. loaded ? setTimeout(fn, 0) : fns.push(fn);
  9156. }
  9157. });
  9158. });
  9159. var spriteNodeId = '__SVG_SPRITE_NODE__';
  9160. var spriteGlobalVarName = '__SVG_SPRITE__';
  9161. var isSpriteExists = !!window[spriteGlobalVarName];
  9162. // eslint-disable-next-line import/no-mutable-exports
  9163. var sprite;
  9164. if (isSpriteExists) {
  9165. sprite = window[spriteGlobalVarName];
  9166. } else {
  9167. sprite = new BrowserSprite({ attrs: { id: spriteNodeId } });
  9168. window[spriteGlobalVarName] = sprite;
  9169. }
  9170. var loadSprite = function () {
  9171. /**
  9172. * Check for page already contains sprite node
  9173. * If found - attach to and reuse it's content
  9174. * If not - render and mount the new sprite
  9175. */
  9176. var existing = document.getElementById(spriteNodeId);
  9177. if (existing) {
  9178. sprite.attach(existing);
  9179. } else {
  9180. sprite.mount(document.body, true);
  9181. }
  9182. };
  9183. if (document.body) {
  9184. loadSprite();
  9185. } else {
  9186. ready$1(loadSprite);
  9187. }
  9188. var sprite$1 = sprite;
  9189. return sprite$1;
  9190. })));
  9191. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(82)))
  9192. /***/ }),
  9193. /* 84 */
  9194. /***/ (function(module, exports, __webpack_require__) {
  9195. "use strict";
  9196. Object.defineProperty(exports, "__esModule", {
  9197. value: true
  9198. });
  9199. 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; };
  9200. 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; }; }();
  9201. var _react = __webpack_require__(25);
  9202. var _react2 = _interopRequireDefault(_react);
  9203. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9204. 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; }
  9205. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  9206. 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; }
  9207. 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; }
  9208. var Icon = function (_PureComponent) {
  9209. _inherits(Icon, _PureComponent);
  9210. function Icon() {
  9211. _classCallCheck(this, Icon);
  9212. return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments));
  9213. }
  9214. _createClass(Icon, [{
  9215. key: 'render',
  9216. value: function render() {
  9217. var _props = this.props,
  9218. className = _props.className,
  9219. glyph = _props.glyph,
  9220. restProps = _objectWithoutProperties(_props, ['className', 'glyph']);
  9221. return _react2.default.createElement(
  9222. 'svg',
  9223. _extends({ className: className }, restProps),
  9224. _react2.default.createElement('use', { xlinkHref: '#' + glyph })
  9225. );
  9226. }
  9227. }]);
  9228. return Icon;
  9229. }(_react.PureComponent);
  9230. exports.default = Icon;
  9231. Icon.defaultProps = {
  9232. glyph: '',
  9233. className: 'icon'
  9234. };
  9235. /***/ }),
  9236. /* 85 */
  9237. /***/ (function(module, exports, __webpack_require__) {
  9238. "use strict";
  9239. var _react = __webpack_require__(25);
  9240. var _react2 = _interopRequireDefault(_react);
  9241. var _reactDom = __webpack_require__(101);
  9242. var _twitter = __webpack_require__(190);
  9243. var _twitter2 = _interopRequireDefault(_twitter);
  9244. var _wikipedia = __webpack_require__(191);
  9245. var _wikipedia2 = _interopRequireDefault(_wikipedia);
  9246. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9247. document.addEventListener('DOMContentLoaded', function () {
  9248. (0, _reactDom.render)(_react2.default.createElement(
  9249. 'div',
  9250. null,
  9251. _react2.default.createElement(_twitter2.default, { width: '100' }),
  9252. _react2.default.createElement(_wikipedia2.default, { width: '200' })
  9253. ), document.querySelector('.app'));
  9254. });
  9255. /***/ }),
  9256. /* 86 */
  9257. /***/ (function(module, exports, __webpack_require__) {
  9258. "use strict";
  9259. /**
  9260. * Copyright 2013-present, Facebook, Inc.
  9261. * All rights reserved.
  9262. *
  9263. * This source code is licensed under the BSD-style license found in the
  9264. * LICENSE file in the root directory of this source tree. An additional grant
  9265. * of patent rights can be found in the PATENTS file in the same directory.
  9266. *
  9267. */
  9268. var PooledClass = __webpack_require__(87);
  9269. var ReactElement = __webpack_require__(15);
  9270. var emptyFunction = __webpack_require__(8);
  9271. var traverseAllChildren = __webpack_require__(88);
  9272. var twoArgumentPooler = PooledClass.twoArgumentPooler;
  9273. var fourArgumentPooler = PooledClass.fourArgumentPooler;
  9274. var userProvidedKeyEscapeRegex = /\/+/g;
  9275. function escapeUserProvidedKey(text) {
  9276. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  9277. }
  9278. /**
  9279. * PooledClass representing the bookkeeping associated with performing a child
  9280. * traversal. Allows avoiding binding callbacks.
  9281. *
  9282. * @constructor ForEachBookKeeping
  9283. * @param {!function} forEachFunction Function to perform traversal with.
  9284. * @param {?*} forEachContext Context to perform context with.
  9285. */
  9286. function ForEachBookKeeping(forEachFunction, forEachContext) {
  9287. this.func = forEachFunction;
  9288. this.context = forEachContext;
  9289. this.count = 0;
  9290. }
  9291. ForEachBookKeeping.prototype.destructor = function () {
  9292. this.func = null;
  9293. this.context = null;
  9294. this.count = 0;
  9295. };
  9296. PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);
  9297. function forEachSingleChild(bookKeeping, child, name) {
  9298. var func = bookKeeping.func,
  9299. context = bookKeeping.context;
  9300. func.call(context, child, bookKeeping.count++);
  9301. }
  9302. /**
  9303. * Iterates through children that are typically specified as `props.children`.
  9304. *
  9305. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach
  9306. *
  9307. * The provided forEachFunc(child, index) will be called for each
  9308. * leaf child.
  9309. *
  9310. * @param {?*} children Children tree container.
  9311. * @param {function(*, int)} forEachFunc
  9312. * @param {*} forEachContext Context for forEachContext.
  9313. */
  9314. function forEachChildren(children, forEachFunc, forEachContext) {
  9315. if (children == null) {
  9316. return children;
  9317. }
  9318. var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);
  9319. traverseAllChildren(children, forEachSingleChild, traverseContext);
  9320. ForEachBookKeeping.release(traverseContext);
  9321. }
  9322. /**
  9323. * PooledClass representing the bookkeeping associated with performing a child
  9324. * mapping. Allows avoiding binding callbacks.
  9325. *
  9326. * @constructor MapBookKeeping
  9327. * @param {!*} mapResult Object containing the ordered map of results.
  9328. * @param {!function} mapFunction Function to perform mapping with.
  9329. * @param {?*} mapContext Context to perform mapping with.
  9330. */
  9331. function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {
  9332. this.result = mapResult;
  9333. this.keyPrefix = keyPrefix;
  9334. this.func = mapFunction;
  9335. this.context = mapContext;
  9336. this.count = 0;
  9337. }
  9338. MapBookKeeping.prototype.destructor = function () {
  9339. this.result = null;
  9340. this.keyPrefix = null;
  9341. this.func = null;
  9342. this.context = null;
  9343. this.count = 0;
  9344. };
  9345. PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);
  9346. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  9347. var result = bookKeeping.result,
  9348. keyPrefix = bookKeeping.keyPrefix,
  9349. func = bookKeeping.func,
  9350. context = bookKeeping.context;
  9351. var mappedChild = func.call(context, child, bookKeeping.count++);
  9352. if (Array.isArray(mappedChild)) {
  9353. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
  9354. } else if (mappedChild != null) {
  9355. if (ReactElement.isValidElement(mappedChild)) {
  9356. mappedChild = ReactElement.cloneAndReplaceKey(mappedChild,
  9357. // Keep both the (mapped) and old keys if they differ, just as
  9358. // traverseAllChildren used to do for objects as children
  9359. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  9360. }
  9361. result.push(mappedChild);
  9362. }
  9363. }
  9364. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  9365. var escapedPrefix = '';
  9366. if (prefix != null) {
  9367. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  9368. }
  9369. var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
  9370. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  9371. MapBookKeeping.release(traverseContext);
  9372. }
  9373. /**
  9374. * Maps children that are typically specified as `props.children`.
  9375. *
  9376. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map
  9377. *
  9378. * The provided mapFunction(child, key, index) will be called for each
  9379. * leaf child.
  9380. *
  9381. * @param {?*} children Children tree container.
  9382. * @param {function(*, int)} func The map function.
  9383. * @param {*} context Context for mapFunction.
  9384. * @return {object} Object containing the ordered map of results.
  9385. */
  9386. function mapChildren(children, func, context) {
  9387. if (children == null) {
  9388. return children;
  9389. }
  9390. var result = [];
  9391. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  9392. return result;
  9393. }
  9394. function forEachSingleChildDummy(traverseContext, child, name) {
  9395. return null;
  9396. }
  9397. /**
  9398. * Count the number of children that are typically specified as
  9399. * `props.children`.
  9400. *
  9401. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count
  9402. *
  9403. * @param {?*} children Children tree container.
  9404. * @return {number} The number of children.
  9405. */
  9406. function countChildren(children, context) {
  9407. return traverseAllChildren(children, forEachSingleChildDummy, null);
  9408. }
  9409. /**
  9410. * Flatten a children object (typically specified as `props.children`) and
  9411. * return an array with appropriately re-keyed children.
  9412. *
  9413. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray
  9414. */
  9415. function toArray(children) {
  9416. var result = [];
  9417. mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
  9418. return result;
  9419. }
  9420. var ReactChildren = {
  9421. forEach: forEachChildren,
  9422. map: mapChildren,
  9423. mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,
  9424. count: countChildren,
  9425. toArray: toArray
  9426. };
  9427. module.exports = ReactChildren;
  9428. /***/ }),
  9429. /* 87 */
  9430. /***/ (function(module, exports, __webpack_require__) {
  9431. "use strict";
  9432. /* WEBPACK VAR INJECTION */(function(process) {/**
  9433. * Copyright 2013-present, Facebook, Inc.
  9434. * All rights reserved.
  9435. *
  9436. * This source code is licensed under the BSD-style license found in the
  9437. * LICENSE file in the root directory of this source tree. An additional grant
  9438. * of patent rights can be found in the PATENTS file in the same directory.
  9439. *
  9440. *
  9441. */
  9442. var _prodInvariant = __webpack_require__(14);
  9443. var invariant = __webpack_require__(1);
  9444. /**
  9445. * Static poolers. Several custom versions for each potential number of
  9446. * arguments. A completely generic pooler is easy to implement, but would
  9447. * require accessing the `arguments` object. In each of these, `this` refers to
  9448. * the Class itself, not an instance. If any others are needed, simply add them
  9449. * here, or in their own files.
  9450. */
  9451. var oneArgumentPooler = function (copyFieldsFrom) {
  9452. var Klass = this;
  9453. if (Klass.instancePool.length) {
  9454. var instance = Klass.instancePool.pop();
  9455. Klass.call(instance, copyFieldsFrom);
  9456. return instance;
  9457. } else {
  9458. return new Klass(copyFieldsFrom);
  9459. }
  9460. };
  9461. var twoArgumentPooler = function (a1, a2) {
  9462. var Klass = this;
  9463. if (Klass.instancePool.length) {
  9464. var instance = Klass.instancePool.pop();
  9465. Klass.call(instance, a1, a2);
  9466. return instance;
  9467. } else {
  9468. return new Klass(a1, a2);
  9469. }
  9470. };
  9471. var threeArgumentPooler = function (a1, a2, a3) {
  9472. var Klass = this;
  9473. if (Klass.instancePool.length) {
  9474. var instance = Klass.instancePool.pop();
  9475. Klass.call(instance, a1, a2, a3);
  9476. return instance;
  9477. } else {
  9478. return new Klass(a1, a2, a3);
  9479. }
  9480. };
  9481. var fourArgumentPooler = function (a1, a2, a3, a4) {
  9482. var Klass = this;
  9483. if (Klass.instancePool.length) {
  9484. var instance = Klass.instancePool.pop();
  9485. Klass.call(instance, a1, a2, a3, a4);
  9486. return instance;
  9487. } else {
  9488. return new Klass(a1, a2, a3, a4);
  9489. }
  9490. };
  9491. var standardReleaser = function (instance) {
  9492. var Klass = this;
  9493. !(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;
  9494. instance.destructor();
  9495. if (Klass.instancePool.length < Klass.poolSize) {
  9496. Klass.instancePool.push(instance);
  9497. }
  9498. };
  9499. var DEFAULT_POOL_SIZE = 10;
  9500. var DEFAULT_POOLER = oneArgumentPooler;
  9501. /**
  9502. * Augments `CopyConstructor` to be a poolable class, augmenting only the class
  9503. * itself (statically) not adding any prototypical fields. Any CopyConstructor
  9504. * you give this may have a `poolSize` property, and will look for a
  9505. * prototypical `destructor` on instances.
  9506. *
  9507. * @param {Function} CopyConstructor Constructor that can be used to reset.
  9508. * @param {Function} pooler Customizable pooler.
  9509. */
  9510. var addPoolingTo = function (CopyConstructor, pooler) {
  9511. // Casting as any so that flow ignores the actual implementation and trusts
  9512. // it to match the type we declared
  9513. var NewKlass = CopyConstructor;
  9514. NewKlass.instancePool = [];
  9515. NewKlass.getPooled = pooler || DEFAULT_POOLER;
  9516. if (!NewKlass.poolSize) {
  9517. NewKlass.poolSize = DEFAULT_POOL_SIZE;
  9518. }
  9519. NewKlass.release = standardReleaser;
  9520. return NewKlass;
  9521. };
  9522. var PooledClass = {
  9523. addPoolingTo: addPoolingTo,
  9524. oneArgumentPooler: oneArgumentPooler,
  9525. twoArgumentPooler: twoArgumentPooler,
  9526. threeArgumentPooler: threeArgumentPooler,
  9527. fourArgumentPooler: fourArgumentPooler
  9528. };
  9529. module.exports = PooledClass;
  9530. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  9531. /***/ }),
  9532. /* 88 */
  9533. /***/ (function(module, exports, __webpack_require__) {
  9534. "use strict";
  9535. /* WEBPACK VAR INJECTION */(function(process) {/**
  9536. * Copyright 2013-present, Facebook, Inc.
  9537. * All rights reserved.
  9538. *
  9539. * This source code is licensed under the BSD-style license found in the
  9540. * LICENSE file in the root directory of this source tree. An additional grant
  9541. * of patent rights can be found in the PATENTS file in the same directory.
  9542. *
  9543. */
  9544. var _prodInvariant = __webpack_require__(14);
  9545. var ReactCurrentOwner = __webpack_require__(10);
  9546. var REACT_ELEMENT_TYPE = __webpack_require__(51);
  9547. var getIteratorFn = __webpack_require__(52);
  9548. var invariant = __webpack_require__(1);
  9549. var KeyEscapeUtils = __webpack_require__(89);
  9550. var warning = __webpack_require__(2);
  9551. var SEPARATOR = '.';
  9552. var SUBSEPARATOR = ':';
  9553. /**
  9554. * This is inlined from ReactElement since this file is shared between
  9555. * isomorphic and renderers. We could extract this to a
  9556. *
  9557. */
  9558. /**
  9559. * TODO: Test that a single child and an array with one item have the same key
  9560. * pattern.
  9561. */
  9562. var didWarnAboutMaps = false;
  9563. /**
  9564. * Generate a key string that identifies a component within a set.
  9565. *
  9566. * @param {*} component A component that could contain a manual key.
  9567. * @param {number} index Index that is used if a manual key is not provided.
  9568. * @return {string}
  9569. */
  9570. function getComponentKey(component, index) {
  9571. // Do some typechecking here since we call this blindly. We want to ensure
  9572. // that we don't block potential future ES APIs.
  9573. if (component && typeof component === 'object' && component.key != null) {
  9574. // Explicit key
  9575. return KeyEscapeUtils.escape(component.key);
  9576. }
  9577. // Implicit key determined by the index in the set
  9578. return index.toString(36);
  9579. }
  9580. /**
  9581. * @param {?*} children Children tree container.
  9582. * @param {!string} nameSoFar Name of the key path so far.
  9583. * @param {!function} callback Callback to invoke with each child found.
  9584. * @param {?*} traverseContext Used to pass information throughout the traversal
  9585. * process.
  9586. * @return {!number} The number of children in this subtree.
  9587. */
  9588. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  9589. var type = typeof children;
  9590. if (type === 'undefined' || type === 'boolean') {
  9591. // All of the above are perceived as null.
  9592. children = null;
  9593. }
  9594. if (children === null || type === 'string' || type === 'number' ||
  9595. // The following is inlined from ReactElement. This means we can optimize
  9596. // some checks. React Fiber also inlines this logic for similar purposes.
  9597. type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
  9598. callback(traverseContext, children,
  9599. // If it's the only child, treat the name as if it was wrapped in an array
  9600. // so that it's consistent if the number of children grows.
  9601. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  9602. return 1;
  9603. }
  9604. var child;
  9605. var nextName;
  9606. var subtreeCount = 0; // Count of children found in the current subtree.
  9607. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  9608. if (Array.isArray(children)) {
  9609. for (var i = 0; i < children.length; i++) {
  9610. child = children[i];
  9611. nextName = nextNamePrefix + getComponentKey(child, i);
  9612. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9613. }
  9614. } else {
  9615. var iteratorFn = getIteratorFn(children);
  9616. if (iteratorFn) {
  9617. var iterator = iteratorFn.call(children);
  9618. var step;
  9619. if (iteratorFn !== children.entries) {
  9620. var ii = 0;
  9621. while (!(step = iterator.next()).done) {
  9622. child = step.value;
  9623. nextName = nextNamePrefix + getComponentKey(child, ii++);
  9624. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9625. }
  9626. } else {
  9627. if (process.env.NODE_ENV !== 'production') {
  9628. var mapsAsChildrenAddendum = '';
  9629. if (ReactCurrentOwner.current) {
  9630. var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
  9631. if (mapsAsChildrenOwnerName) {
  9632. mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
  9633. }
  9634. }
  9635. 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;
  9636. didWarnAboutMaps = true;
  9637. }
  9638. // Iterator will provide entry [k,v] tuples rather than values.
  9639. while (!(step = iterator.next()).done) {
  9640. var entry = step.value;
  9641. if (entry) {
  9642. child = entry[1];
  9643. nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
  9644. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  9645. }
  9646. }
  9647. }
  9648. } else if (type === 'object') {
  9649. var addendum = '';
  9650. if (process.env.NODE_ENV !== 'production') {
  9651. 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.';
  9652. if (children._isReactElement) {
  9653. 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.';
  9654. }
  9655. if (ReactCurrentOwner.current) {
  9656. var name = ReactCurrentOwner.current.getName();
  9657. if (name) {
  9658. addendum += ' Check the render method of `' + name + '`.';
  9659. }
  9660. }
  9661. }
  9662. var childrenString = String(children);
  9663. 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;
  9664. }
  9665. }
  9666. return subtreeCount;
  9667. }
  9668. /**
  9669. * Traverses children that are typically specified as `props.children`, but
  9670. * might also be specified through attributes:
  9671. *
  9672. * - `traverseAllChildren(this.props.children, ...)`
  9673. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  9674. *
  9675. * The `traverseContext` is an optional argument that is passed through the
  9676. * entire traversal. It can be used to store accumulations or anything else that
  9677. * the callback might find relevant.
  9678. *
  9679. * @param {?*} children Children tree object.
  9680. * @param {!function} callback To invoke upon traversing each child.
  9681. * @param {?*} traverseContext Context for traversal.
  9682. * @return {!number} The number of children in this subtree.
  9683. */
  9684. function traverseAllChildren(children, callback, traverseContext) {
  9685. if (children == null) {
  9686. return 0;
  9687. }
  9688. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  9689. }
  9690. module.exports = traverseAllChildren;
  9691. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  9692. /***/ }),
  9693. /* 89 */
  9694. /***/ (function(module, exports, __webpack_require__) {
  9695. "use strict";
  9696. /**
  9697. * Copyright 2013-present, Facebook, Inc.
  9698. * All rights reserved.
  9699. *
  9700. * This source code is licensed under the BSD-style license found in the
  9701. * LICENSE file in the root directory of this source tree. An additional grant
  9702. * of patent rights can be found in the PATENTS file in the same directory.
  9703. *
  9704. *
  9705. */
  9706. /**
  9707. * Escape and wrap key so it is safe to use as a reactid
  9708. *
  9709. * @param {string} key to be escaped.
  9710. * @return {string} the escaped key.
  9711. */
  9712. function escape(key) {
  9713. var escapeRegex = /[=:]/g;
  9714. var escaperLookup = {
  9715. '=': '=0',
  9716. ':': '=2'
  9717. };
  9718. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  9719. return escaperLookup[match];
  9720. });
  9721. return '$' + escapedString;
  9722. }
  9723. /**
  9724. * Unescape and unwrap key for human-readable display
  9725. *
  9726. * @param {string} key to unescape.
  9727. * @return {string} the unescaped key.
  9728. */
  9729. function unescape(key) {
  9730. var unescapeRegex = /(=0|=2)/g;
  9731. var unescaperLookup = {
  9732. '=0': '=',
  9733. '=2': ':'
  9734. };
  9735. var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
  9736. return ('' + keySubstring).replace(unescapeRegex, function (match) {
  9737. return unescaperLookup[match];
  9738. });
  9739. }
  9740. var KeyEscapeUtils = {
  9741. escape: escape,
  9742. unescape: unescape
  9743. };
  9744. module.exports = KeyEscapeUtils;
  9745. /***/ }),
  9746. /* 90 */
  9747. /***/ (function(module, exports, __webpack_require__) {
  9748. "use strict";
  9749. /**
  9750. * Copyright 2013-present, Facebook, Inc.
  9751. * All rights reserved.
  9752. *
  9753. * This source code is licensed under the BSD-style license found in the
  9754. * LICENSE file in the root directory of this source tree. An additional grant
  9755. * of patent rights can be found in the PATENTS file in the same directory.
  9756. *
  9757. */
  9758. var _assign = __webpack_require__(4);
  9759. var ReactComponent = __webpack_require__(33);
  9760. var ReactNoopUpdateQueue = __webpack_require__(34);
  9761. var emptyObject = __webpack_require__(20);
  9762. /**
  9763. * Base class helpers for the updating state of a component.
  9764. */
  9765. function ReactPureComponent(props, context, updater) {
  9766. // Duplicated from ReactComponent.
  9767. this.props = props;
  9768. this.context = context;
  9769. this.refs = emptyObject;
  9770. // We initialize the default updater but the real one gets injected by the
  9771. // renderer.
  9772. this.updater = updater || ReactNoopUpdateQueue;
  9773. }
  9774. function ComponentDummy() {}
  9775. ComponentDummy.prototype = ReactComponent.prototype;
  9776. ReactPureComponent.prototype = new ComponentDummy();
  9777. ReactPureComponent.prototype.constructor = ReactPureComponent;
  9778. // Avoid an extra prototype jump for these methods.
  9779. _assign(ReactPureComponent.prototype, ReactComponent.prototype);
  9780. ReactPureComponent.prototype.isPureReactComponent = true;
  9781. module.exports = ReactPureComponent;
  9782. /***/ }),
  9783. /* 91 */
  9784. /***/ (function(module, exports, __webpack_require__) {
  9785. "use strict";
  9786. /* WEBPACK VAR INJECTION */(function(process) {/**
  9787. * Copyright 2013-present, Facebook, Inc.
  9788. * All rights reserved.
  9789. *
  9790. * This source code is licensed under the BSD-style license found in the
  9791. * LICENSE file in the root directory of this source tree. An additional grant
  9792. * of patent rights can be found in the PATENTS file in the same directory.
  9793. *
  9794. */
  9795. var _prodInvariant = __webpack_require__(14),
  9796. _assign = __webpack_require__(4);
  9797. var ReactComponent = __webpack_require__(33);
  9798. var ReactElement = __webpack_require__(15);
  9799. var ReactPropTypeLocationNames = __webpack_require__(53);
  9800. var ReactNoopUpdateQueue = __webpack_require__(34);
  9801. var emptyObject = __webpack_require__(20);
  9802. var invariant = __webpack_require__(1);
  9803. var warning = __webpack_require__(2);
  9804. var MIXINS_KEY = 'mixins';
  9805. // Helper function to allow the creation of anonymous functions which do not
  9806. // have .name set to the name of the variable being assigned to.
  9807. function identity(fn) {
  9808. return fn;
  9809. }
  9810. /**
  9811. * Policies that describe methods in `ReactClassInterface`.
  9812. */
  9813. var injectedMixins = [];
  9814. /**
  9815. * Composite components are higher-level components that compose other composite
  9816. * or host components.
  9817. *
  9818. * To create a new type of `ReactClass`, pass a specification of
  9819. * your new class to `React.createClass`. The only requirement of your class
  9820. * specification is that you implement a `render` method.
  9821. *
  9822. * var MyComponent = React.createClass({
  9823. * render: function() {
  9824. * return <div>Hello World</div>;
  9825. * }
  9826. * });
  9827. *
  9828. * The class specification supports a specific protocol of methods that have
  9829. * special meaning (e.g. `render`). See `ReactClassInterface` for
  9830. * more the comprehensive protocol. Any other properties and methods in the
  9831. * class specification will be available on the prototype.
  9832. *
  9833. * @interface ReactClassInterface
  9834. * @internal
  9835. */
  9836. var ReactClassInterface = {
  9837. /**
  9838. * An array of Mixin objects to include when defining your component.
  9839. *
  9840. * @type {array}
  9841. * @optional
  9842. */
  9843. mixins: 'DEFINE_MANY',
  9844. /**
  9845. * An object containing properties and methods that should be defined on
  9846. * the component's constructor instead of its prototype (static methods).
  9847. *
  9848. * @type {object}
  9849. * @optional
  9850. */
  9851. statics: 'DEFINE_MANY',
  9852. /**
  9853. * Definition of prop types for this component.
  9854. *
  9855. * @type {object}
  9856. * @optional
  9857. */
  9858. propTypes: 'DEFINE_MANY',
  9859. /**
  9860. * Definition of context types for this component.
  9861. *
  9862. * @type {object}
  9863. * @optional
  9864. */
  9865. contextTypes: 'DEFINE_MANY',
  9866. /**
  9867. * Definition of context types this component sets for its children.
  9868. *
  9869. * @type {object}
  9870. * @optional
  9871. */
  9872. childContextTypes: 'DEFINE_MANY',
  9873. // ==== Definition methods ====
  9874. /**
  9875. * Invoked when the component is mounted. Values in the mapping will be set on
  9876. * `this.props` if that prop is not specified (i.e. using an `in` check).
  9877. *
  9878. * This method is invoked before `getInitialState` and therefore cannot rely
  9879. * on `this.state` or use `this.setState`.
  9880. *
  9881. * @return {object}
  9882. * @optional
  9883. */
  9884. getDefaultProps: 'DEFINE_MANY_MERGED',
  9885. /**
  9886. * Invoked once before the component is mounted. The return value will be used
  9887. * as the initial value of `this.state`.
  9888. *
  9889. * getInitialState: function() {
  9890. * return {
  9891. * isOn: false,
  9892. * fooBaz: new BazFoo()
  9893. * }
  9894. * }
  9895. *
  9896. * @return {object}
  9897. * @optional
  9898. */
  9899. getInitialState: 'DEFINE_MANY_MERGED',
  9900. /**
  9901. * @return {object}
  9902. * @optional
  9903. */
  9904. getChildContext: 'DEFINE_MANY_MERGED',
  9905. /**
  9906. * Uses props from `this.props` and state from `this.state` to render the
  9907. * structure of the component.
  9908. *
  9909. * No guarantees are made about when or how often this method is invoked, so
  9910. * it must not have side effects.
  9911. *
  9912. * render: function() {
  9913. * var name = this.props.name;
  9914. * return <div>Hello, {name}!</div>;
  9915. * }
  9916. *
  9917. * @return {ReactComponent}
  9918. * @required
  9919. */
  9920. render: 'DEFINE_ONCE',
  9921. // ==== Delegate methods ====
  9922. /**
  9923. * Invoked when the component is initially created and about to be mounted.
  9924. * This may have side effects, but any external subscriptions or data created
  9925. * by this method must be cleaned up in `componentWillUnmount`.
  9926. *
  9927. * @optional
  9928. */
  9929. componentWillMount: 'DEFINE_MANY',
  9930. /**
  9931. * Invoked when the component has been mounted and has a DOM representation.
  9932. * However, there is no guarantee that the DOM node is in the document.
  9933. *
  9934. * Use this as an opportunity to operate on the DOM when the component has
  9935. * been mounted (initialized and rendered) for the first time.
  9936. *
  9937. * @param {DOMElement} rootNode DOM element representing the component.
  9938. * @optional
  9939. */
  9940. componentDidMount: 'DEFINE_MANY',
  9941. /**
  9942. * Invoked before the component receives new props.
  9943. *
  9944. * Use this as an opportunity to react to a prop transition by updating the
  9945. * state using `this.setState`. Current props are accessed via `this.props`.
  9946. *
  9947. * componentWillReceiveProps: function(nextProps, nextContext) {
  9948. * this.setState({
  9949. * likesIncreasing: nextProps.likeCount > this.props.likeCount
  9950. * });
  9951. * }
  9952. *
  9953. * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
  9954. * transition may cause a state change, but the opposite is not true. If you
  9955. * need it, you are probably looking for `componentWillUpdate`.
  9956. *
  9957. * @param {object} nextProps
  9958. * @optional
  9959. */
  9960. componentWillReceiveProps: 'DEFINE_MANY',
  9961. /**
  9962. * Invoked while deciding if the component should be updated as a result of
  9963. * receiving new props, state and/or context.
  9964. *
  9965. * Use this as an opportunity to `return false` when you're certain that the
  9966. * transition to the new props/state/context will not require a component
  9967. * update.
  9968. *
  9969. * shouldComponentUpdate: function(nextProps, nextState, nextContext) {
  9970. * return !equal(nextProps, this.props) ||
  9971. * !equal(nextState, this.state) ||
  9972. * !equal(nextContext, this.context);
  9973. * }
  9974. *
  9975. * @param {object} nextProps
  9976. * @param {?object} nextState
  9977. * @param {?object} nextContext
  9978. * @return {boolean} True if the component should update.
  9979. * @optional
  9980. */
  9981. shouldComponentUpdate: 'DEFINE_ONCE',
  9982. /**
  9983. * Invoked when the component is about to update due to a transition from
  9984. * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
  9985. * and `nextContext`.
  9986. *
  9987. * Use this as an opportunity to perform preparation before an update occurs.
  9988. *
  9989. * NOTE: You **cannot** use `this.setState()` in this method.
  9990. *
  9991. * @param {object} nextProps
  9992. * @param {?object} nextState
  9993. * @param {?object} nextContext
  9994. * @param {ReactReconcileTransaction} transaction
  9995. * @optional
  9996. */
  9997. componentWillUpdate: 'DEFINE_MANY',
  9998. /**
  9999. * Invoked when the component's DOM representation has been updated.
  10000. *
  10001. * Use this as an opportunity to operate on the DOM when the component has
  10002. * been updated.
  10003. *
  10004. * @param {object} prevProps
  10005. * @param {?object} prevState
  10006. * @param {?object} prevContext
  10007. * @param {DOMElement} rootNode DOM element representing the component.
  10008. * @optional
  10009. */
  10010. componentDidUpdate: 'DEFINE_MANY',
  10011. /**
  10012. * Invoked when the component is about to be removed from its parent and have
  10013. * its DOM representation destroyed.
  10014. *
  10015. * Use this as an opportunity to deallocate any external resources.
  10016. *
  10017. * NOTE: There is no `componentDidUnmount` since your component will have been
  10018. * destroyed by that point.
  10019. *
  10020. * @optional
  10021. */
  10022. componentWillUnmount: 'DEFINE_MANY',
  10023. // ==== Advanced methods ====
  10024. /**
  10025. * Updates the component's currently mounted DOM representation.
  10026. *
  10027. * By default, this implements React's rendering and reconciliation algorithm.
  10028. * Sophisticated clients may wish to override this.
  10029. *
  10030. * @param {ReactReconcileTransaction} transaction
  10031. * @internal
  10032. * @overridable
  10033. */
  10034. updateComponent: 'OVERRIDE_BASE'
  10035. };
  10036. /**
  10037. * Mapping from class specification keys to special processing functions.
  10038. *
  10039. * Although these are declared like instance properties in the specification
  10040. * when defining classes using `React.createClass`, they are actually static
  10041. * and are accessible on the constructor instead of the prototype. Despite
  10042. * being static, they must be defined outside of the "statics" key under
  10043. * which all other static methods are defined.
  10044. */
  10045. var RESERVED_SPEC_KEYS = {
  10046. displayName: function (Constructor, displayName) {
  10047. Constructor.displayName = displayName;
  10048. },
  10049. mixins: function (Constructor, mixins) {
  10050. if (mixins) {
  10051. for (var i = 0; i < mixins.length; i++) {
  10052. mixSpecIntoComponent(Constructor, mixins[i]);
  10053. }
  10054. }
  10055. },
  10056. childContextTypes: function (Constructor, childContextTypes) {
  10057. if (process.env.NODE_ENV !== 'production') {
  10058. validateTypeDef(Constructor, childContextTypes, 'childContext');
  10059. }
  10060. Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
  10061. },
  10062. contextTypes: function (Constructor, contextTypes) {
  10063. if (process.env.NODE_ENV !== 'production') {
  10064. validateTypeDef(Constructor, contextTypes, 'context');
  10065. }
  10066. Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
  10067. },
  10068. /**
  10069. * Special case getDefaultProps which should move into statics but requires
  10070. * automatic merging.
  10071. */
  10072. getDefaultProps: function (Constructor, getDefaultProps) {
  10073. if (Constructor.getDefaultProps) {
  10074. Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);
  10075. } else {
  10076. Constructor.getDefaultProps = getDefaultProps;
  10077. }
  10078. },
  10079. propTypes: function (Constructor, propTypes) {
  10080. if (process.env.NODE_ENV !== 'production') {
  10081. validateTypeDef(Constructor, propTypes, 'prop');
  10082. }
  10083. Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
  10084. },
  10085. statics: function (Constructor, statics) {
  10086. mixStaticSpecIntoComponent(Constructor, statics);
  10087. },
  10088. autobind: function () {} };
  10089. function validateTypeDef(Constructor, typeDef, location) {
  10090. for (var propName in typeDef) {
  10091. if (typeDef.hasOwnProperty(propName)) {
  10092. // use a warning instead of an invariant so components
  10093. // don't show up in prod but only in __DEV__
  10094. 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;
  10095. }
  10096. }
  10097. }
  10098. function validateMethodOverride(isAlreadyDefined, name) {
  10099. var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
  10100. // Disallow overriding of base class methods unless explicitly allowed.
  10101. if (ReactClassMixin.hasOwnProperty(name)) {
  10102. !(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;
  10103. }
  10104. // Disallow defining methods more than once unless explicitly allowed.
  10105. if (isAlreadyDefined) {
  10106. !(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;
  10107. }
  10108. }
  10109. /**
  10110. * Mixin helper which handles policy validation and reserved
  10111. * specification keys when building React classes.
  10112. */
  10113. function mixSpecIntoComponent(Constructor, spec) {
  10114. if (!spec) {
  10115. if (process.env.NODE_ENV !== 'production') {
  10116. var typeofSpec = typeof spec;
  10117. var isMixinValid = typeofSpec === 'object' && spec !== null;
  10118. 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;
  10119. }
  10120. return;
  10121. }
  10122. !(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;
  10123. !!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;
  10124. var proto = Constructor.prototype;
  10125. var autoBindPairs = proto.__reactAutoBindPairs;
  10126. // By handling mixins before any other properties, we ensure the same
  10127. // chaining order is applied to methods with DEFINE_MANY policy, whether
  10128. // mixins are listed before or after these methods in the spec.
  10129. if (spec.hasOwnProperty(MIXINS_KEY)) {
  10130. RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
  10131. }
  10132. for (var name in spec) {
  10133. if (!spec.hasOwnProperty(name)) {
  10134. continue;
  10135. }
  10136. if (name === MIXINS_KEY) {
  10137. // We have already handled mixins in a special case above.
  10138. continue;
  10139. }
  10140. var property = spec[name];
  10141. var isAlreadyDefined = proto.hasOwnProperty(name);
  10142. validateMethodOverride(isAlreadyDefined, name);
  10143. if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
  10144. RESERVED_SPEC_KEYS[name](Constructor, property);
  10145. } else {
  10146. // Setup methods on prototype:
  10147. // The following member methods should not be automatically bound:
  10148. // 1. Expected ReactClass methods (in the "interface").
  10149. // 2. Overridden methods (that were mixed in).
  10150. var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
  10151. var isFunction = typeof property === 'function';
  10152. var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;
  10153. if (shouldAutoBind) {
  10154. autoBindPairs.push(name, property);
  10155. proto[name] = property;
  10156. } else {
  10157. if (isAlreadyDefined) {
  10158. var specPolicy = ReactClassInterface[name];
  10159. // These cases should already be caught by validateMethodOverride.
  10160. !(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;
  10161. // For methods which are defined more than once, call the existing
  10162. // methods before calling the new property, merging if appropriate.
  10163. if (specPolicy === 'DEFINE_MANY_MERGED') {
  10164. proto[name] = createMergedResultFunction(proto[name], property);
  10165. } else if (specPolicy === 'DEFINE_MANY') {
  10166. proto[name] = createChainedFunction(proto[name], property);
  10167. }
  10168. } else {
  10169. proto[name] = property;
  10170. if (process.env.NODE_ENV !== 'production') {
  10171. // Add verbose displayName to the function, which helps when looking
  10172. // at profiling tools.
  10173. if (typeof property === 'function' && spec.displayName) {
  10174. proto[name].displayName = spec.displayName + '_' + name;
  10175. }
  10176. }
  10177. }
  10178. }
  10179. }
  10180. }
  10181. }
  10182. function mixStaticSpecIntoComponent(Constructor, statics) {
  10183. if (!statics) {
  10184. return;
  10185. }
  10186. for (var name in statics) {
  10187. var property = statics[name];
  10188. if (!statics.hasOwnProperty(name)) {
  10189. continue;
  10190. }
  10191. var isReserved = name in RESERVED_SPEC_KEYS;
  10192. !!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;
  10193. var isInherited = name in Constructor;
  10194. !!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;
  10195. Constructor[name] = property;
  10196. }
  10197. }
  10198. /**
  10199. * Merge two objects, but throw if both contain the same key.
  10200. *
  10201. * @param {object} one The first object, which is mutated.
  10202. * @param {object} two The second object
  10203. * @return {object} one after it has been mutated to contain everything in two.
  10204. */
  10205. function mergeIntoWithNoDuplicateKeys(one, two) {
  10206. !(one && two && typeof one === 'object' && typeof two === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
  10207. for (var key in two) {
  10208. if (two.hasOwnProperty(key)) {
  10209. !(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;
  10210. one[key] = two[key];
  10211. }
  10212. }
  10213. return one;
  10214. }
  10215. /**
  10216. * Creates a function that invokes two functions and merges their return values.
  10217. *
  10218. * @param {function} one Function to invoke first.
  10219. * @param {function} two Function to invoke second.
  10220. * @return {function} Function that invokes the two argument functions.
  10221. * @private
  10222. */
  10223. function createMergedResultFunction(one, two) {
  10224. return function mergedResult() {
  10225. var a = one.apply(this, arguments);
  10226. var b = two.apply(this, arguments);
  10227. if (a == null) {
  10228. return b;
  10229. } else if (b == null) {
  10230. return a;
  10231. }
  10232. var c = {};
  10233. mergeIntoWithNoDuplicateKeys(c, a);
  10234. mergeIntoWithNoDuplicateKeys(c, b);
  10235. return c;
  10236. };
  10237. }
  10238. /**
  10239. * Creates a function that invokes two functions and ignores their return vales.
  10240. *
  10241. * @param {function} one Function to invoke first.
  10242. * @param {function} two Function to invoke second.
  10243. * @return {function} Function that invokes the two argument functions.
  10244. * @private
  10245. */
  10246. function createChainedFunction(one, two) {
  10247. return function chainedFunction() {
  10248. one.apply(this, arguments);
  10249. two.apply(this, arguments);
  10250. };
  10251. }
  10252. /**
  10253. * Binds a method to the component.
  10254. *
  10255. * @param {object} component Component whose method is going to be bound.
  10256. * @param {function} method Method to be bound.
  10257. * @return {function} The bound method.
  10258. */
  10259. function bindAutoBindMethod(component, method) {
  10260. var boundMethod = method.bind(component);
  10261. if (process.env.NODE_ENV !== 'production') {
  10262. boundMethod.__reactBoundContext = component;
  10263. boundMethod.__reactBoundMethod = method;
  10264. boundMethod.__reactBoundArguments = null;
  10265. var componentName = component.constructor.displayName;
  10266. var _bind = boundMethod.bind;
  10267. boundMethod.bind = function (newThis) {
  10268. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  10269. args[_key - 1] = arguments[_key];
  10270. }
  10271. // User is trying to bind() an autobound method; we effectively will
  10272. // ignore the value of "this" that the user is trying to use, so
  10273. // let's warn.
  10274. if (newThis !== component && newThis !== null) {
  10275. process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
  10276. } else if (!args.length) {
  10277. 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;
  10278. return boundMethod;
  10279. }
  10280. var reboundMethod = _bind.apply(boundMethod, arguments);
  10281. reboundMethod.__reactBoundContext = component;
  10282. reboundMethod.__reactBoundMethod = method;
  10283. reboundMethod.__reactBoundArguments = args;
  10284. return reboundMethod;
  10285. };
  10286. }
  10287. return boundMethod;
  10288. }
  10289. /**
  10290. * Binds all auto-bound methods in a component.
  10291. *
  10292. * @param {object} component Component whose method is going to be bound.
  10293. */
  10294. function bindAutoBindMethods(component) {
  10295. var pairs = component.__reactAutoBindPairs;
  10296. for (var i = 0; i < pairs.length; i += 2) {
  10297. var autoBindKey = pairs[i];
  10298. var method = pairs[i + 1];
  10299. component[autoBindKey] = bindAutoBindMethod(component, method);
  10300. }
  10301. }
  10302. /**
  10303. * Add more to the ReactClass base class. These are all legacy features and
  10304. * therefore not already part of the modern ReactComponent.
  10305. */
  10306. var ReactClassMixin = {
  10307. /**
  10308. * TODO: This will be deprecated because state should always keep a consistent
  10309. * type signature and the only use case for this, is to avoid that.
  10310. */
  10311. replaceState: function (newState, callback) {
  10312. this.updater.enqueueReplaceState(this, newState);
  10313. if (callback) {
  10314. this.updater.enqueueCallback(this, callback, 'replaceState');
  10315. }
  10316. },
  10317. /**
  10318. * Checks whether or not this composite component is mounted.
  10319. * @return {boolean} True if mounted, false otherwise.
  10320. * @protected
  10321. * @final
  10322. */
  10323. isMounted: function () {
  10324. return this.updater.isMounted(this);
  10325. }
  10326. };
  10327. var ReactClassComponent = function () {};
  10328. _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
  10329. var didWarnDeprecated = false;
  10330. /**
  10331. * Module for creating composite components.
  10332. *
  10333. * @class ReactClass
  10334. */
  10335. var ReactClass = {
  10336. /**
  10337. * Creates a composite component class given a class specification.
  10338. * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass
  10339. *
  10340. * @param {object} spec Class specification (which must define `render`).
  10341. * @return {function} Component constructor function.
  10342. * @public
  10343. */
  10344. createClass: function (spec) {
  10345. if (process.env.NODE_ENV !== 'production') {
  10346. 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;
  10347. didWarnDeprecated = true;
  10348. }
  10349. // To keep our warnings more understandable, we'll use a little hack here to
  10350. // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
  10351. // unnecessarily identify a class without displayName as 'Constructor'.
  10352. var Constructor = identity(function (props, context, updater) {
  10353. // This constructor gets overridden by mocks. The argument is used
  10354. // by mocks to assert on what gets mounted.
  10355. if (process.env.NODE_ENV !== 'production') {
  10356. 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;
  10357. }
  10358. // Wire up auto-binding
  10359. if (this.__reactAutoBindPairs.length) {
  10360. bindAutoBindMethods(this);
  10361. }
  10362. this.props = props;
  10363. this.context = context;
  10364. this.refs = emptyObject;
  10365. this.updater = updater || ReactNoopUpdateQueue;
  10366. this.state = null;
  10367. // ReactClasses doesn't have constructors. Instead, they use the
  10368. // getInitialState and componentWillMount methods for initialization.
  10369. var initialState = this.getInitialState ? this.getInitialState() : null;
  10370. if (process.env.NODE_ENV !== 'production') {
  10371. // We allow auto-mocks to proceed as if they're returning null.
  10372. if (initialState === undefined && this.getInitialState._isMockFunction) {
  10373. // This is probably bad practice. Consider warning here and
  10374. // deprecating this convenience.
  10375. initialState = null;
  10376. }
  10377. }
  10378. !(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;
  10379. this.state = initialState;
  10380. });
  10381. Constructor.prototype = new ReactClassComponent();
  10382. Constructor.prototype.constructor = Constructor;
  10383. Constructor.prototype.__reactAutoBindPairs = [];
  10384. injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
  10385. mixSpecIntoComponent(Constructor, spec);
  10386. // Initialize the defaultProps property after all mixins have been merged.
  10387. if (Constructor.getDefaultProps) {
  10388. Constructor.defaultProps = Constructor.getDefaultProps();
  10389. }
  10390. if (process.env.NODE_ENV !== 'production') {
  10391. // This is a tag to indicate that the use of these method names is ok,
  10392. // since it's used with createClass. If it's not, then it's likely a
  10393. // mistake so we'll warn you to use the static property, property
  10394. // initializer or constructor respectively.
  10395. if (Constructor.getDefaultProps) {
  10396. Constructor.getDefaultProps.isReactClassApproved = {};
  10397. }
  10398. if (Constructor.prototype.getInitialState) {
  10399. Constructor.prototype.getInitialState.isReactClassApproved = {};
  10400. }
  10401. }
  10402. !Constructor.prototype.render ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;
  10403. if (process.env.NODE_ENV !== 'production') {
  10404. 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;
  10405. 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;
  10406. }
  10407. // Reduce time spent doing lookups by setting these on the prototype.
  10408. for (var methodName in ReactClassInterface) {
  10409. if (!Constructor.prototype[methodName]) {
  10410. Constructor.prototype[methodName] = null;
  10411. }
  10412. }
  10413. return Constructor;
  10414. },
  10415. injection: {
  10416. injectMixin: function (mixin) {
  10417. injectedMixins.push(mixin);
  10418. }
  10419. }
  10420. };
  10421. module.exports = ReactClass;
  10422. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10423. /***/ }),
  10424. /* 92 */
  10425. /***/ (function(module, exports, __webpack_require__) {
  10426. "use strict";
  10427. /* WEBPACK VAR INJECTION */(function(process) {/**
  10428. * Copyright 2013-present, Facebook, Inc.
  10429. * All rights reserved.
  10430. *
  10431. * This source code is licensed under the BSD-style license found in the
  10432. * LICENSE file in the root directory of this source tree. An additional grant
  10433. * of patent rights can be found in the PATENTS file in the same directory.
  10434. *
  10435. */
  10436. var ReactElement = __webpack_require__(15);
  10437. /**
  10438. * Create a factory that creates HTML tag elements.
  10439. *
  10440. * @private
  10441. */
  10442. var createDOMFactory = ReactElement.createFactory;
  10443. if (process.env.NODE_ENV !== 'production') {
  10444. var ReactElementValidator = __webpack_require__(54);
  10445. createDOMFactory = ReactElementValidator.createFactory;
  10446. }
  10447. /**
  10448. * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
  10449. * This is also accessible via `React.DOM`.
  10450. *
  10451. * @public
  10452. */
  10453. var ReactDOMFactories = {
  10454. a: createDOMFactory('a'),
  10455. abbr: createDOMFactory('abbr'),
  10456. address: createDOMFactory('address'),
  10457. area: createDOMFactory('area'),
  10458. article: createDOMFactory('article'),
  10459. aside: createDOMFactory('aside'),
  10460. audio: createDOMFactory('audio'),
  10461. b: createDOMFactory('b'),
  10462. base: createDOMFactory('base'),
  10463. bdi: createDOMFactory('bdi'),
  10464. bdo: createDOMFactory('bdo'),
  10465. big: createDOMFactory('big'),
  10466. blockquote: createDOMFactory('blockquote'),
  10467. body: createDOMFactory('body'),
  10468. br: createDOMFactory('br'),
  10469. button: createDOMFactory('button'),
  10470. canvas: createDOMFactory('canvas'),
  10471. caption: createDOMFactory('caption'),
  10472. cite: createDOMFactory('cite'),
  10473. code: createDOMFactory('code'),
  10474. col: createDOMFactory('col'),
  10475. colgroup: createDOMFactory('colgroup'),
  10476. data: createDOMFactory('data'),
  10477. datalist: createDOMFactory('datalist'),
  10478. dd: createDOMFactory('dd'),
  10479. del: createDOMFactory('del'),
  10480. details: createDOMFactory('details'),
  10481. dfn: createDOMFactory('dfn'),
  10482. dialog: createDOMFactory('dialog'),
  10483. div: createDOMFactory('div'),
  10484. dl: createDOMFactory('dl'),
  10485. dt: createDOMFactory('dt'),
  10486. em: createDOMFactory('em'),
  10487. embed: createDOMFactory('embed'),
  10488. fieldset: createDOMFactory('fieldset'),
  10489. figcaption: createDOMFactory('figcaption'),
  10490. figure: createDOMFactory('figure'),
  10491. footer: createDOMFactory('footer'),
  10492. form: createDOMFactory('form'),
  10493. h1: createDOMFactory('h1'),
  10494. h2: createDOMFactory('h2'),
  10495. h3: createDOMFactory('h3'),
  10496. h4: createDOMFactory('h4'),
  10497. h5: createDOMFactory('h5'),
  10498. h6: createDOMFactory('h6'),
  10499. head: createDOMFactory('head'),
  10500. header: createDOMFactory('header'),
  10501. hgroup: createDOMFactory('hgroup'),
  10502. hr: createDOMFactory('hr'),
  10503. html: createDOMFactory('html'),
  10504. i: createDOMFactory('i'),
  10505. iframe: createDOMFactory('iframe'),
  10506. img: createDOMFactory('img'),
  10507. input: createDOMFactory('input'),
  10508. ins: createDOMFactory('ins'),
  10509. kbd: createDOMFactory('kbd'),
  10510. keygen: createDOMFactory('keygen'),
  10511. label: createDOMFactory('label'),
  10512. legend: createDOMFactory('legend'),
  10513. li: createDOMFactory('li'),
  10514. link: createDOMFactory('link'),
  10515. main: createDOMFactory('main'),
  10516. map: createDOMFactory('map'),
  10517. mark: createDOMFactory('mark'),
  10518. menu: createDOMFactory('menu'),
  10519. menuitem: createDOMFactory('menuitem'),
  10520. meta: createDOMFactory('meta'),
  10521. meter: createDOMFactory('meter'),
  10522. nav: createDOMFactory('nav'),
  10523. noscript: createDOMFactory('noscript'),
  10524. object: createDOMFactory('object'),
  10525. ol: createDOMFactory('ol'),
  10526. optgroup: createDOMFactory('optgroup'),
  10527. option: createDOMFactory('option'),
  10528. output: createDOMFactory('output'),
  10529. p: createDOMFactory('p'),
  10530. param: createDOMFactory('param'),
  10531. picture: createDOMFactory('picture'),
  10532. pre: createDOMFactory('pre'),
  10533. progress: createDOMFactory('progress'),
  10534. q: createDOMFactory('q'),
  10535. rp: createDOMFactory('rp'),
  10536. rt: createDOMFactory('rt'),
  10537. ruby: createDOMFactory('ruby'),
  10538. s: createDOMFactory('s'),
  10539. samp: createDOMFactory('samp'),
  10540. script: createDOMFactory('script'),
  10541. section: createDOMFactory('section'),
  10542. select: createDOMFactory('select'),
  10543. small: createDOMFactory('small'),
  10544. source: createDOMFactory('source'),
  10545. span: createDOMFactory('span'),
  10546. strong: createDOMFactory('strong'),
  10547. style: createDOMFactory('style'),
  10548. sub: createDOMFactory('sub'),
  10549. summary: createDOMFactory('summary'),
  10550. sup: createDOMFactory('sup'),
  10551. table: createDOMFactory('table'),
  10552. tbody: createDOMFactory('tbody'),
  10553. td: createDOMFactory('td'),
  10554. textarea: createDOMFactory('textarea'),
  10555. tfoot: createDOMFactory('tfoot'),
  10556. th: createDOMFactory('th'),
  10557. thead: createDOMFactory('thead'),
  10558. time: createDOMFactory('time'),
  10559. title: createDOMFactory('title'),
  10560. tr: createDOMFactory('tr'),
  10561. track: createDOMFactory('track'),
  10562. u: createDOMFactory('u'),
  10563. ul: createDOMFactory('ul'),
  10564. 'var': createDOMFactory('var'),
  10565. video: createDOMFactory('video'),
  10566. wbr: createDOMFactory('wbr'),
  10567. // SVG
  10568. circle: createDOMFactory('circle'),
  10569. clipPath: createDOMFactory('clipPath'),
  10570. defs: createDOMFactory('defs'),
  10571. ellipse: createDOMFactory('ellipse'),
  10572. g: createDOMFactory('g'),
  10573. image: createDOMFactory('image'),
  10574. line: createDOMFactory('line'),
  10575. linearGradient: createDOMFactory('linearGradient'),
  10576. mask: createDOMFactory('mask'),
  10577. path: createDOMFactory('path'),
  10578. pattern: createDOMFactory('pattern'),
  10579. polygon: createDOMFactory('polygon'),
  10580. polyline: createDOMFactory('polyline'),
  10581. radialGradient: createDOMFactory('radialGradient'),
  10582. rect: createDOMFactory('rect'),
  10583. stop: createDOMFactory('stop'),
  10584. svg: createDOMFactory('svg'),
  10585. text: createDOMFactory('text'),
  10586. tspan: createDOMFactory('tspan')
  10587. };
  10588. module.exports = ReactDOMFactories;
  10589. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10590. /***/ }),
  10591. /* 93 */
  10592. /***/ (function(module, exports, __webpack_require__) {
  10593. "use strict";
  10594. /* WEBPACK VAR INJECTION */(function(process) {/**
  10595. * Copyright 2013-present, Facebook, Inc.
  10596. * All rights reserved.
  10597. *
  10598. * This source code is licensed under the BSD-style license found in the
  10599. * LICENSE file in the root directory of this source tree. An additional grant
  10600. * of patent rights can be found in the PATENTS file in the same directory.
  10601. *
  10602. */
  10603. var _prodInvariant = __webpack_require__(14);
  10604. var ReactPropTypeLocationNames = __webpack_require__(53);
  10605. var ReactPropTypesSecret = __webpack_require__(94);
  10606. var invariant = __webpack_require__(1);
  10607. var warning = __webpack_require__(2);
  10608. var ReactComponentTreeHook;
  10609. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  10610. // Temporary hack.
  10611. // Inline requires don't work well with Jest:
  10612. // https://github.com/facebook/react/issues/7240
  10613. // Remove the inline requires when we don't need them anymore:
  10614. // https://github.com/facebook/react/pull/7178
  10615. ReactComponentTreeHook = __webpack_require__(7);
  10616. }
  10617. var loggedTypeFailures = {};
  10618. /**
  10619. * Assert that the values match with the type specs.
  10620. * Error messages are memorized and will only be shown once.
  10621. *
  10622. * @param {object} typeSpecs Map of name to a ReactPropType
  10623. * @param {object} values Runtime values that need to be type-checked
  10624. * @param {string} location e.g. "prop", "context", "child context"
  10625. * @param {string} componentName Name of the component for error messages.
  10626. * @param {?object} element The React element that is being type-checked
  10627. * @param {?number} debugID The React component instance that is being type-checked
  10628. * @private
  10629. */
  10630. function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
  10631. for (var typeSpecName in typeSpecs) {
  10632. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  10633. var error;
  10634. // Prop type validation may throw. In case they do, we don't want to
  10635. // fail the render phase where it didn't fail before. So we log it.
  10636. // After these have been cleaned up, we'll let them throw.
  10637. try {
  10638. // This is intentionally an invariant that gets caught. It's the same
  10639. // behavior as without this statement except with a better message.
  10640. !(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;
  10641. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  10642. } catch (ex) {
  10643. error = ex;
  10644. }
  10645. 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;
  10646. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  10647. // Only monitor this failure once because there tends to be a lot of the
  10648. // same error.
  10649. loggedTypeFailures[error.message] = true;
  10650. var componentStackInfo = '';
  10651. if (process.env.NODE_ENV !== 'production') {
  10652. if (!ReactComponentTreeHook) {
  10653. ReactComponentTreeHook = __webpack_require__(7);
  10654. }
  10655. if (debugID !== null) {
  10656. componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
  10657. } else if (element !== null) {
  10658. componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
  10659. }
  10660. }
  10661. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
  10662. }
  10663. }
  10664. }
  10665. }
  10666. module.exports = checkReactTypeSpec;
  10667. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  10668. /***/ }),
  10669. /* 94 */
  10670. /***/ (function(module, exports, __webpack_require__) {
  10671. "use strict";
  10672. /**
  10673. * Copyright 2013-present, Facebook, Inc.
  10674. * All rights reserved.
  10675. *
  10676. * This source code is licensed under the BSD-style license found in the
  10677. * LICENSE file in the root directory of this source tree. An additional grant
  10678. * of patent rights can be found in the PATENTS file in the same directory.
  10679. *
  10680. *
  10681. */
  10682. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  10683. module.exports = ReactPropTypesSecret;
  10684. /***/ }),
  10685. /* 95 */
  10686. /***/ (function(module, exports, __webpack_require__) {
  10687. "use strict";
  10688. /**
  10689. * Copyright 2013-present, Facebook, Inc.
  10690. * All rights reserved.
  10691. *
  10692. * This source code is licensed under the BSD-style license found in the
  10693. * LICENSE file in the root directory of this source tree. An additional grant
  10694. * of patent rights can be found in the PATENTS file in the same directory.
  10695. *
  10696. */
  10697. var _require = __webpack_require__(15),
  10698. isValidElement = _require.isValidElement;
  10699. var factory = __webpack_require__(96);
  10700. module.exports = factory(isValidElement);
  10701. /***/ }),
  10702. /* 96 */
  10703. /***/ (function(module, exports, __webpack_require__) {
  10704. "use strict";
  10705. /**
  10706. * Copyright (c) 2013-present, Facebook, Inc.
  10707. *
  10708. * This source code is licensed under the MIT license found in the
  10709. * LICENSE file in the root directory of this source tree.
  10710. */
  10711. // React 15.5 references this module, and assumes PropTypes are still callable in production.
  10712. // Therefore we re-export development-only version with all the PropTypes checks here.
  10713. // However if one is migrating to the `prop-types` npm library, they will go through the
  10714. // `index.js` entry point, and it will branch depending on the environment.
  10715. var factory = __webpack_require__(97);
  10716. module.exports = function(isValidElement) {
  10717. // It is still allowed in 15.5.
  10718. var throwOnDirectAccess = false;
  10719. return factory(isValidElement, throwOnDirectAccess);
  10720. };
  10721. /***/ }),
  10722. /* 97 */
  10723. /***/ (function(module, exports, __webpack_require__) {
  10724. "use strict";
  10725. /* WEBPACK VAR INJECTION */(function(process) {/**
  10726. * Copyright (c) 2013-present, Facebook, Inc.
  10727. *
  10728. * This source code is licensed under the MIT license found in the
  10729. * LICENSE file in the root directory of this source tree.
  10730. */
  10731. var emptyFunction = __webpack_require__(8);
  10732. var invariant = __webpack_require__(1);
  10733. var warning = __webpack_require__(2);
  10734. var assign = __webpack_require__(4);
  10735. var ReactPropTypesSecret = __webpack_require__(55);
  10736. var checkPropTypes = __webpack_require__(98);
  10737. module.exports = function(isValidElement, throwOnDirectAccess) {
  10738. /* global Symbol */
  10739. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  10740. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  10741. /**
  10742. * Returns the iterator method function contained on the iterable object.
  10743. *
  10744. * Be sure to invoke the function with the iterable as context:
  10745. *
  10746. * var iteratorFn = getIteratorFn(myIterable);
  10747. * if (iteratorFn) {
  10748. * var iterator = iteratorFn.call(myIterable);
  10749. * ...
  10750. * }
  10751. *
  10752. * @param {?object} maybeIterable
  10753. * @return {?function}
  10754. */
  10755. function getIteratorFn(maybeIterable) {
  10756. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  10757. if (typeof iteratorFn === 'function') {
  10758. return iteratorFn;
  10759. }
  10760. }
  10761. /**
  10762. * Collection of methods that allow declaration and validation of props that are
  10763. * supplied to React components. Example usage:
  10764. *
  10765. * var Props = require('ReactPropTypes');
  10766. * var MyArticle = React.createClass({
  10767. * propTypes: {
  10768. * // An optional string prop named "description".
  10769. * description: Props.string,
  10770. *
  10771. * // A required enum prop named "category".
  10772. * category: Props.oneOf(['News','Photos']).isRequired,
  10773. *
  10774. * // A prop named "dialog" that requires an instance of Dialog.
  10775. * dialog: Props.instanceOf(Dialog).isRequired
  10776. * },
  10777. * render: function() { ... }
  10778. * });
  10779. *
  10780. * A more formal specification of how these methods are used:
  10781. *
  10782. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  10783. * decl := ReactPropTypes.{type}(.isRequired)?
  10784. *
  10785. * Each and every declaration produces a function with the same signature. This
  10786. * allows the creation of custom validation functions. For example:
  10787. *
  10788. * var MyLink = React.createClass({
  10789. * propTypes: {
  10790. * // An optional string or URI prop named "href".
  10791. * href: function(props, propName, componentName) {
  10792. * var propValue = props[propName];
  10793. * if (propValue != null && typeof propValue !== 'string' &&
  10794. * !(propValue instanceof URI)) {
  10795. * return new Error(
  10796. * 'Expected a string or an URI for ' + propName + ' in ' +
  10797. * componentName
  10798. * );
  10799. * }
  10800. * }
  10801. * },
  10802. * render: function() {...}
  10803. * });
  10804. *
  10805. * @internal
  10806. */
  10807. var ANONYMOUS = '<<anonymous>>';
  10808. // Important!
  10809. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  10810. var ReactPropTypes = {
  10811. array: createPrimitiveTypeChecker('array'),
  10812. bool: createPrimitiveTypeChecker('boolean'),
  10813. func: createPrimitiveTypeChecker('function'),
  10814. number: createPrimitiveTypeChecker('number'),
  10815. object: createPrimitiveTypeChecker('object'),
  10816. string: createPrimitiveTypeChecker('string'),
  10817. symbol: createPrimitiveTypeChecker('symbol'),
  10818. any: createAnyTypeChecker(),
  10819. arrayOf: createArrayOfTypeChecker,
  10820. element: createElementTypeChecker(),
  10821. instanceOf: createInstanceTypeChecker,
  10822. node: createNodeChecker(),
  10823. objectOf: createObjectOfTypeChecker,
  10824. oneOf: createEnumTypeChecker,
  10825. oneOfType: createUnionTypeChecker,
  10826. shape: createShapeTypeChecker,
  10827. exact: createStrictShapeTypeChecker,
  10828. };
  10829. /**
  10830. * inlined Object.is polyfill to avoid requiring consumers ship their own
  10831. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  10832. */
  10833. /*eslint-disable no-self-compare*/
  10834. function is(x, y) {
  10835. // SameValue algorithm
  10836. if (x === y) {
  10837. // Steps 1-5, 7-10
  10838. // Steps 6.b-6.e: +0 != -0
  10839. return x !== 0 || 1 / x === 1 / y;
  10840. } else {
  10841. // Step 6.a: NaN == NaN
  10842. return x !== x && y !== y;
  10843. }
  10844. }
  10845. /*eslint-enable no-self-compare*/
  10846. /**
  10847. * We use an Error-like object for backward compatibility as people may call
  10848. * PropTypes directly and inspect their output. However, we don't use real
  10849. * Errors anymore. We don't inspect their stack anyway, and creating them
  10850. * is prohibitively expensive if they are created too often, such as what
  10851. * happens in oneOfType() for any type before the one that matched.
  10852. */
  10853. function PropTypeError(message) {
  10854. this.message = message;
  10855. this.stack = '';
  10856. }
  10857. // Make `instanceof Error` still work for returned errors.
  10858. PropTypeError.prototype = Error.prototype;
  10859. function createChainableTypeChecker(validate) {
  10860. if (process.env.NODE_ENV !== 'production') {
  10861. var manualPropTypeCallCache = {};
  10862. var manualPropTypeWarningCount = 0;
  10863. }
  10864. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  10865. componentName = componentName || ANONYMOUS;
  10866. propFullName = propFullName || propName;
  10867. if (secret !== ReactPropTypesSecret) {
  10868. if (throwOnDirectAccess) {
  10869. // New behavior only for users of `prop-types` package
  10870. invariant(
  10871. false,
  10872. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  10873. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  10874. 'Read more at http://fb.me/use-check-prop-types'
  10875. );
  10876. } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
  10877. // Old behavior for people using React.PropTypes
  10878. var cacheKey = componentName + ':' + propName;
  10879. if (
  10880. !manualPropTypeCallCache[cacheKey] &&
  10881. // Avoid spamming the console because they are often not actionable except for lib authors
  10882. manualPropTypeWarningCount < 3
  10883. ) {
  10884. warning(
  10885. false,
  10886. 'You are manually calling a React.PropTypes validation ' +
  10887. 'function for the `%s` prop on `%s`. This is deprecated ' +
  10888. 'and will throw in the standalone `prop-types` package. ' +
  10889. 'You may be seeing this warning due to a third-party PropTypes ' +
  10890. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
  10891. propFullName,
  10892. componentName
  10893. );
  10894. manualPropTypeCallCache[cacheKey] = true;
  10895. manualPropTypeWarningCount++;
  10896. }
  10897. }
  10898. }
  10899. if (props[propName] == null) {
  10900. if (isRequired) {
  10901. if (props[propName] === null) {
  10902. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  10903. }
  10904. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  10905. }
  10906. return null;
  10907. } else {
  10908. return validate(props, propName, componentName, location, propFullName);
  10909. }
  10910. }
  10911. var chainedCheckType = checkType.bind(null, false);
  10912. chainedCheckType.isRequired = checkType.bind(null, true);
  10913. return chainedCheckType;
  10914. }
  10915. function createPrimitiveTypeChecker(expectedType) {
  10916. function validate(props, propName, componentName, location, propFullName, secret) {
  10917. var propValue = props[propName];
  10918. var propType = getPropType(propValue);
  10919. if (propType !== expectedType) {
  10920. // `propValue` being instance of, say, date/regexp, pass the 'object'
  10921. // check, but we can offer a more precise error message here rather than
  10922. // 'of type `object`'.
  10923. var preciseType = getPreciseType(propValue);
  10924. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  10925. }
  10926. return null;
  10927. }
  10928. return createChainableTypeChecker(validate);
  10929. }
  10930. function createAnyTypeChecker() {
  10931. return createChainableTypeChecker(emptyFunction.thatReturnsNull);
  10932. }
  10933. function createArrayOfTypeChecker(typeChecker) {
  10934. function validate(props, propName, componentName, location, propFullName) {
  10935. if (typeof typeChecker !== 'function') {
  10936. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  10937. }
  10938. var propValue = props[propName];
  10939. if (!Array.isArray(propValue)) {
  10940. var propType = getPropType(propValue);
  10941. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  10942. }
  10943. for (var i = 0; i < propValue.length; i++) {
  10944. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  10945. if (error instanceof Error) {
  10946. return error;
  10947. }
  10948. }
  10949. return null;
  10950. }
  10951. return createChainableTypeChecker(validate);
  10952. }
  10953. function createElementTypeChecker() {
  10954. function validate(props, propName, componentName, location, propFullName) {
  10955. var propValue = props[propName];
  10956. if (!isValidElement(propValue)) {
  10957. var propType = getPropType(propValue);
  10958. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  10959. }
  10960. return null;
  10961. }
  10962. return createChainableTypeChecker(validate);
  10963. }
  10964. function createInstanceTypeChecker(expectedClass) {
  10965. function validate(props, propName, componentName, location, propFullName) {
  10966. if (!(props[propName] instanceof expectedClass)) {
  10967. var expectedClassName = expectedClass.name || ANONYMOUS;
  10968. var actualClassName = getClassName(props[propName]);
  10969. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  10970. }
  10971. return null;
  10972. }
  10973. return createChainableTypeChecker(validate);
  10974. }
  10975. function createEnumTypeChecker(expectedValues) {
  10976. if (!Array.isArray(expectedValues)) {
  10977. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
  10978. return emptyFunction.thatReturnsNull;
  10979. }
  10980. function validate(props, propName, componentName, location, propFullName) {
  10981. var propValue = props[propName];
  10982. for (var i = 0; i < expectedValues.length; i++) {
  10983. if (is(propValue, expectedValues[i])) {
  10984. return null;
  10985. }
  10986. }
  10987. var valuesString = JSON.stringify(expectedValues);
  10988. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  10989. }
  10990. return createChainableTypeChecker(validate);
  10991. }
  10992. function createObjectOfTypeChecker(typeChecker) {
  10993. function validate(props, propName, componentName, location, propFullName) {
  10994. if (typeof typeChecker !== 'function') {
  10995. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  10996. }
  10997. var propValue = props[propName];
  10998. var propType = getPropType(propValue);
  10999. if (propType !== 'object') {
  11000. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  11001. }
  11002. for (var key in propValue) {
  11003. if (propValue.hasOwnProperty(key)) {
  11004. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11005. if (error instanceof Error) {
  11006. return error;
  11007. }
  11008. }
  11009. }
  11010. return null;
  11011. }
  11012. return createChainableTypeChecker(validate);
  11013. }
  11014. function createUnionTypeChecker(arrayOfTypeCheckers) {
  11015. if (!Array.isArray(arrayOfTypeCheckers)) {
  11016. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
  11017. return emptyFunction.thatReturnsNull;
  11018. }
  11019. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  11020. var checker = arrayOfTypeCheckers[i];
  11021. if (typeof checker !== 'function') {
  11022. warning(
  11023. false,
  11024. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  11025. 'received %s at index %s.',
  11026. getPostfixForTypeWarning(checker),
  11027. i
  11028. );
  11029. return emptyFunction.thatReturnsNull;
  11030. }
  11031. }
  11032. function validate(props, propName, componentName, location, propFullName) {
  11033. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  11034. var checker = arrayOfTypeCheckers[i];
  11035. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  11036. return null;
  11037. }
  11038. }
  11039. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  11040. }
  11041. return createChainableTypeChecker(validate);
  11042. }
  11043. function createNodeChecker() {
  11044. function validate(props, propName, componentName, location, propFullName) {
  11045. if (!isNode(props[propName])) {
  11046. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  11047. }
  11048. return null;
  11049. }
  11050. return createChainableTypeChecker(validate);
  11051. }
  11052. function createShapeTypeChecker(shapeTypes) {
  11053. function validate(props, propName, componentName, location, propFullName) {
  11054. var propValue = props[propName];
  11055. var propType = getPropType(propValue);
  11056. if (propType !== 'object') {
  11057. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  11058. }
  11059. for (var key in shapeTypes) {
  11060. var checker = shapeTypes[key];
  11061. if (!checker) {
  11062. continue;
  11063. }
  11064. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11065. if (error) {
  11066. return error;
  11067. }
  11068. }
  11069. return null;
  11070. }
  11071. return createChainableTypeChecker(validate);
  11072. }
  11073. function createStrictShapeTypeChecker(shapeTypes) {
  11074. function validate(props, propName, componentName, location, propFullName) {
  11075. var propValue = props[propName];
  11076. var propType = getPropType(propValue);
  11077. if (propType !== 'object') {
  11078. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  11079. }
  11080. // We need to check all keys in case some are required but missing from
  11081. // props.
  11082. var allKeys = assign({}, props[propName], shapeTypes);
  11083. for (var key in allKeys) {
  11084. var checker = shapeTypes[key];
  11085. if (!checker) {
  11086. return new PropTypeError(
  11087. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  11088. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  11089. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  11090. );
  11091. }
  11092. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  11093. if (error) {
  11094. return error;
  11095. }
  11096. }
  11097. return null;
  11098. }
  11099. return createChainableTypeChecker(validate);
  11100. }
  11101. function isNode(propValue) {
  11102. switch (typeof propValue) {
  11103. case 'number':
  11104. case 'string':
  11105. case 'undefined':
  11106. return true;
  11107. case 'boolean':
  11108. return !propValue;
  11109. case 'object':
  11110. if (Array.isArray(propValue)) {
  11111. return propValue.every(isNode);
  11112. }
  11113. if (propValue === null || isValidElement(propValue)) {
  11114. return true;
  11115. }
  11116. var iteratorFn = getIteratorFn(propValue);
  11117. if (iteratorFn) {
  11118. var iterator = iteratorFn.call(propValue);
  11119. var step;
  11120. if (iteratorFn !== propValue.entries) {
  11121. while (!(step = iterator.next()).done) {
  11122. if (!isNode(step.value)) {
  11123. return false;
  11124. }
  11125. }
  11126. } else {
  11127. // Iterator will provide entry [k,v] tuples rather than values.
  11128. while (!(step = iterator.next()).done) {
  11129. var entry = step.value;
  11130. if (entry) {
  11131. if (!isNode(entry[1])) {
  11132. return false;
  11133. }
  11134. }
  11135. }
  11136. }
  11137. } else {
  11138. return false;
  11139. }
  11140. return true;
  11141. default:
  11142. return false;
  11143. }
  11144. }
  11145. function isSymbol(propType, propValue) {
  11146. // Native Symbol.
  11147. if (propType === 'symbol') {
  11148. return true;
  11149. }
  11150. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  11151. if (propValue['@@toStringTag'] === 'Symbol') {
  11152. return true;
  11153. }
  11154. // Fallback for non-spec compliant Symbols which are polyfilled.
  11155. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  11156. return true;
  11157. }
  11158. return false;
  11159. }
  11160. // Equivalent of `typeof` but with special handling for array and regexp.
  11161. function getPropType(propValue) {
  11162. var propType = typeof propValue;
  11163. if (Array.isArray(propValue)) {
  11164. return 'array';
  11165. }
  11166. if (propValue instanceof RegExp) {
  11167. // Old webkits (at least until Android 4.0) return 'function' rather than
  11168. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  11169. // passes PropTypes.object.
  11170. return 'object';
  11171. }
  11172. if (isSymbol(propType, propValue)) {
  11173. return 'symbol';
  11174. }
  11175. return propType;
  11176. }
  11177. // This handles more types than `getPropType`. Only used for error messages.
  11178. // See `createPrimitiveTypeChecker`.
  11179. function getPreciseType(propValue) {
  11180. if (typeof propValue === 'undefined' || propValue === null) {
  11181. return '' + propValue;
  11182. }
  11183. var propType = getPropType(propValue);
  11184. if (propType === 'object') {
  11185. if (propValue instanceof Date) {
  11186. return 'date';
  11187. } else if (propValue instanceof RegExp) {
  11188. return 'regexp';
  11189. }
  11190. }
  11191. return propType;
  11192. }
  11193. // Returns a string that is postfixed to a warning about an invalid type.
  11194. // For example, "undefined" or "of type array"
  11195. function getPostfixForTypeWarning(value) {
  11196. var type = getPreciseType(value);
  11197. switch (type) {
  11198. case 'array':
  11199. case 'object':
  11200. return 'an ' + type;
  11201. case 'boolean':
  11202. case 'date':
  11203. case 'regexp':
  11204. return 'a ' + type;
  11205. default:
  11206. return type;
  11207. }
  11208. }
  11209. // Returns class name of the object, if any.
  11210. function getClassName(propValue) {
  11211. if (!propValue.constructor || !propValue.constructor.name) {
  11212. return ANONYMOUS;
  11213. }
  11214. return propValue.constructor.name;
  11215. }
  11216. ReactPropTypes.checkPropTypes = checkPropTypes;
  11217. ReactPropTypes.PropTypes = ReactPropTypes;
  11218. return ReactPropTypes;
  11219. };
  11220. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11221. /***/ }),
  11222. /* 98 */
  11223. /***/ (function(module, exports, __webpack_require__) {
  11224. "use strict";
  11225. /* WEBPACK VAR INJECTION */(function(process) {/**
  11226. * Copyright (c) 2013-present, Facebook, Inc.
  11227. *
  11228. * This source code is licensed under the MIT license found in the
  11229. * LICENSE file in the root directory of this source tree.
  11230. */
  11231. if (process.env.NODE_ENV !== 'production') {
  11232. var invariant = __webpack_require__(1);
  11233. var warning = __webpack_require__(2);
  11234. var ReactPropTypesSecret = __webpack_require__(55);
  11235. var loggedTypeFailures = {};
  11236. }
  11237. /**
  11238. * Assert that the values match with the type specs.
  11239. * Error messages are memorized and will only be shown once.
  11240. *
  11241. * @param {object} typeSpecs Map of name to a ReactPropType
  11242. * @param {object} values Runtime values that need to be type-checked
  11243. * @param {string} location e.g. "prop", "context", "child context"
  11244. * @param {string} componentName Name of the component for error messages.
  11245. * @param {?Function} getStack Returns the component stack.
  11246. * @private
  11247. */
  11248. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  11249. if (process.env.NODE_ENV !== 'production') {
  11250. for (var typeSpecName in typeSpecs) {
  11251. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  11252. var error;
  11253. // Prop type validation may throw. In case they do, we don't want to
  11254. // fail the render phase where it didn't fail before. So we log it.
  11255. // After these have been cleaned up, we'll let them throw.
  11256. try {
  11257. // This is intentionally an invariant that gets caught. It's the same
  11258. // behavior as without this statement except with a better message.
  11259. 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]);
  11260. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  11261. } catch (ex) {
  11262. error = ex;
  11263. }
  11264. 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);
  11265. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  11266. // Only monitor this failure once because there tends to be a lot of the
  11267. // same error.
  11268. loggedTypeFailures[error.message] = true;
  11269. var stack = getStack ? getStack() : '';
  11270. warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
  11271. }
  11272. }
  11273. }
  11274. }
  11275. }
  11276. module.exports = checkPropTypes;
  11277. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11278. /***/ }),
  11279. /* 99 */
  11280. /***/ (function(module, exports, __webpack_require__) {
  11281. "use strict";
  11282. /**
  11283. * Copyright 2013-present, Facebook, Inc.
  11284. * All rights reserved.
  11285. *
  11286. * This source code is licensed under the BSD-style license found in the
  11287. * LICENSE file in the root directory of this source tree. An additional grant
  11288. * of patent rights can be found in the PATENTS file in the same directory.
  11289. *
  11290. */
  11291. module.exports = '15.5.4';
  11292. /***/ }),
  11293. /* 100 */
  11294. /***/ (function(module, exports, __webpack_require__) {
  11295. "use strict";
  11296. /* WEBPACK VAR INJECTION */(function(process) {/**
  11297. * Copyright 2013-present, Facebook, Inc.
  11298. * All rights reserved.
  11299. *
  11300. * This source code is licensed under the BSD-style license found in the
  11301. * LICENSE file in the root directory of this source tree. An additional grant
  11302. * of patent rights can be found in the PATENTS file in the same directory.
  11303. *
  11304. */
  11305. var _prodInvariant = __webpack_require__(14);
  11306. var ReactElement = __webpack_require__(15);
  11307. var invariant = __webpack_require__(1);
  11308. /**
  11309. * Returns the first child in a collection of children and verifies that there
  11310. * is only one child in the collection.
  11311. *
  11312. * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only
  11313. *
  11314. * The current implementation of this function assumes that a single child gets
  11315. * passed without a wrapper, but the purpose of this helper function is to
  11316. * abstract away the particular structure of children.
  11317. *
  11318. * @param {?object} children Child collection structure.
  11319. * @return {ReactElement} The first and only `ReactElement` contained in the
  11320. * structure.
  11321. */
  11322. function onlyChild(children) {
  11323. !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;
  11324. return children;
  11325. }
  11326. module.exports = onlyChild;
  11327. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11328. /***/ }),
  11329. /* 101 */
  11330. /***/ (function(module, exports, __webpack_require__) {
  11331. "use strict";
  11332. module.exports = __webpack_require__(102);
  11333. /***/ }),
  11334. /* 102 */
  11335. /***/ (function(module, exports, __webpack_require__) {
  11336. "use strict";
  11337. /* WEBPACK VAR INJECTION */(function(process) {/**
  11338. * Copyright 2013-present, Facebook, Inc.
  11339. * All rights reserved.
  11340. *
  11341. * This source code is licensed under the BSD-style license found in the
  11342. * LICENSE file in the root directory of this source tree. An additional grant
  11343. * of patent rights can be found in the PATENTS file in the same directory.
  11344. *
  11345. */
  11346. /* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
  11347. var ReactDOMComponentTree = __webpack_require__(5);
  11348. var ReactDefaultInjection = __webpack_require__(103);
  11349. var ReactMount = __webpack_require__(79);
  11350. var ReactReconciler = __webpack_require__(18);
  11351. var ReactUpdates = __webpack_require__(11);
  11352. var ReactVersion = __webpack_require__(184);
  11353. var findDOMNode = __webpack_require__(185);
  11354. var getHostComponentFromComposite = __webpack_require__(80);
  11355. var renderSubtreeIntoContainer = __webpack_require__(186);
  11356. var warning = __webpack_require__(2);
  11357. ReactDefaultInjection.inject();
  11358. var ReactDOM = {
  11359. findDOMNode: findDOMNode,
  11360. render: ReactMount.render,
  11361. unmountComponentAtNode: ReactMount.unmountComponentAtNode,
  11362. version: ReactVersion,
  11363. /* eslint-disable camelcase */
  11364. unstable_batchedUpdates: ReactUpdates.batchedUpdates,
  11365. unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
  11366. };
  11367. // Inject the runtime into a devtools global hook regardless of browser.
  11368. // Allows for debugging when the hook is injected on the page.
  11369. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {
  11370. __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
  11371. ComponentTree: {
  11372. getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,
  11373. getNodeFromInstance: function (inst) {
  11374. // inst is an internal instance (but could be a composite)
  11375. if (inst._renderedComponent) {
  11376. inst = getHostComponentFromComposite(inst);
  11377. }
  11378. if (inst) {
  11379. return ReactDOMComponentTree.getNodeFromInstance(inst);
  11380. } else {
  11381. return null;
  11382. }
  11383. }
  11384. },
  11385. Mount: ReactMount,
  11386. Reconciler: ReactReconciler
  11387. });
  11388. }
  11389. if (process.env.NODE_ENV !== 'production') {
  11390. var ExecutionEnvironment = __webpack_require__(6);
  11391. if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
  11392. // First check if devtools is not installed
  11393. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  11394. // If we're in Chrome or Firefox, provide a download link if not installed.
  11395. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  11396. // Firefox does not have the issue with devtools loaded over file://
  11397. var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1;
  11398. 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');
  11399. }
  11400. }
  11401. var testFunc = function testFn() {};
  11402. 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;
  11403. // If we're in IE8, check to see if we are in compatibility mode and provide
  11404. // information on preventing compatibility mode
  11405. var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
  11406. 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;
  11407. var expectedFeatures = [
  11408. // shims
  11409. Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim];
  11410. for (var i = 0; i < expectedFeatures.length; i++) {
  11411. if (!expectedFeatures[i]) {
  11412. 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;
  11413. break;
  11414. }
  11415. }
  11416. }
  11417. }
  11418. if (process.env.NODE_ENV !== 'production') {
  11419. var ReactInstrumentation = __webpack_require__(9);
  11420. var ReactDOMUnknownPropertyHook = __webpack_require__(187);
  11421. var ReactDOMNullInputValuePropHook = __webpack_require__(188);
  11422. var ReactDOMInvalidARIAHook = __webpack_require__(189);
  11423. ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);
  11424. ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);
  11425. ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);
  11426. }
  11427. module.exports = ReactDOM;
  11428. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  11429. /***/ }),
  11430. /* 103 */
  11431. /***/ (function(module, exports, __webpack_require__) {
  11432. "use strict";
  11433. /**
  11434. * Copyright 2013-present, Facebook, Inc.
  11435. * All rights reserved.
  11436. *
  11437. * This source code is licensed under the BSD-style license found in the
  11438. * LICENSE file in the root directory of this source tree. An additional grant
  11439. * of patent rights can be found in the PATENTS file in the same directory.
  11440. *
  11441. */
  11442. var ARIADOMPropertyConfig = __webpack_require__(104);
  11443. var BeforeInputEventPlugin = __webpack_require__(105);
  11444. var ChangeEventPlugin = __webpack_require__(109);
  11445. var DefaultEventPluginOrder = __webpack_require__(117);
  11446. var EnterLeaveEventPlugin = __webpack_require__(118);
  11447. var HTMLDOMPropertyConfig = __webpack_require__(119);
  11448. var ReactComponentBrowserEnvironment = __webpack_require__(120);
  11449. var ReactDOMComponent = __webpack_require__(126);
  11450. var ReactDOMComponentTree = __webpack_require__(5);
  11451. var ReactDOMEmptyComponent = __webpack_require__(155);
  11452. var ReactDOMTreeTraversal = __webpack_require__(156);
  11453. var ReactDOMTextComponent = __webpack_require__(157);
  11454. var ReactDefaultBatchingStrategy = __webpack_require__(158);
  11455. var ReactEventListener = __webpack_require__(159);
  11456. var ReactInjection = __webpack_require__(161);
  11457. var ReactReconcileTransaction = __webpack_require__(162);
  11458. var SVGDOMPropertyConfig = __webpack_require__(168);
  11459. var SelectEventPlugin = __webpack_require__(169);
  11460. var SimpleEventPlugin = __webpack_require__(170);
  11461. var alreadyInjected = false;
  11462. function inject() {
  11463. if (alreadyInjected) {
  11464. // TODO: This is currently true because these injections are shared between
  11465. // the client and the server package. They should be built independently
  11466. // and not share any injection state. Then this problem will be solved.
  11467. return;
  11468. }
  11469. alreadyInjected = true;
  11470. ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener);
  11471. /**
  11472. * Inject modules for resolving DOM hierarchy and plugin ordering.
  11473. */
  11474. ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder);
  11475. ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree);
  11476. ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal);
  11477. /**
  11478. * Some important event plugins included by default (without having to require
  11479. * them).
  11480. */
  11481. ReactInjection.EventPluginHub.injectEventPluginsByName({
  11482. SimpleEventPlugin: SimpleEventPlugin,
  11483. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  11484. ChangeEventPlugin: ChangeEventPlugin,
  11485. SelectEventPlugin: SelectEventPlugin,
  11486. BeforeInputEventPlugin: BeforeInputEventPlugin
  11487. });
  11488. ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent);
  11489. ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent);
  11490. ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig);
  11491. ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
  11492. ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig);
  11493. ReactInjection.EmptyComponent.injectEmptyComponentFactory(function (instantiate) {
  11494. return new ReactDOMEmptyComponent(instantiate);
  11495. });
  11496. ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction);
  11497. ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy);
  11498. ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment);
  11499. }
  11500. module.exports = {
  11501. inject: inject
  11502. };
  11503. /***/ }),
  11504. /* 104 */
  11505. /***/ (function(module, exports, __webpack_require__) {
  11506. "use strict";
  11507. /**
  11508. * Copyright 2013-present, Facebook, Inc.
  11509. * All rights reserved.
  11510. *
  11511. * This source code is licensed under the BSD-style license found in the
  11512. * LICENSE file in the root directory of this source tree. An additional grant
  11513. * of patent rights can be found in the PATENTS file in the same directory.
  11514. *
  11515. */
  11516. var ARIADOMPropertyConfig = {
  11517. Properties: {
  11518. // Global States and Properties
  11519. 'aria-current': 0, // state
  11520. 'aria-details': 0,
  11521. 'aria-disabled': 0, // state
  11522. 'aria-hidden': 0, // state
  11523. 'aria-invalid': 0, // state
  11524. 'aria-keyshortcuts': 0,
  11525. 'aria-label': 0,
  11526. 'aria-roledescription': 0,
  11527. // Widget Attributes
  11528. 'aria-autocomplete': 0,
  11529. 'aria-checked': 0,
  11530. 'aria-expanded': 0,
  11531. 'aria-haspopup': 0,
  11532. 'aria-level': 0,
  11533. 'aria-modal': 0,
  11534. 'aria-multiline': 0,
  11535. 'aria-multiselectable': 0,
  11536. 'aria-orientation': 0,
  11537. 'aria-placeholder': 0,
  11538. 'aria-pressed': 0,
  11539. 'aria-readonly': 0,
  11540. 'aria-required': 0,
  11541. 'aria-selected': 0,
  11542. 'aria-sort': 0,
  11543. 'aria-valuemax': 0,
  11544. 'aria-valuemin': 0,
  11545. 'aria-valuenow': 0,
  11546. 'aria-valuetext': 0,
  11547. // Live Region Attributes
  11548. 'aria-atomic': 0,
  11549. 'aria-busy': 0,
  11550. 'aria-live': 0,
  11551. 'aria-relevant': 0,
  11552. // Drag-and-Drop Attributes
  11553. 'aria-dropeffect': 0,
  11554. 'aria-grabbed': 0,
  11555. // Relationship Attributes
  11556. 'aria-activedescendant': 0,
  11557. 'aria-colcount': 0,
  11558. 'aria-colindex': 0,
  11559. 'aria-colspan': 0,
  11560. 'aria-controls': 0,
  11561. 'aria-describedby': 0,
  11562. 'aria-errormessage': 0,
  11563. 'aria-flowto': 0,
  11564. 'aria-labelledby': 0,
  11565. 'aria-owns': 0,
  11566. 'aria-posinset': 0,
  11567. 'aria-rowcount': 0,
  11568. 'aria-rowindex': 0,
  11569. 'aria-rowspan': 0,
  11570. 'aria-setsize': 0
  11571. },
  11572. DOMAttributeNames: {},
  11573. DOMPropertyNames: {}
  11574. };
  11575. module.exports = ARIADOMPropertyConfig;
  11576. /***/ }),
  11577. /* 105 */
  11578. /***/ (function(module, exports, __webpack_require__) {
  11579. "use strict";
  11580. /**
  11581. * Copyright 2013-present Facebook, Inc.
  11582. * All rights reserved.
  11583. *
  11584. * This source code is licensed under the BSD-style license found in the
  11585. * LICENSE file in the root directory of this source tree. An additional grant
  11586. * of patent rights can be found in the PATENTS file in the same directory.
  11587. *
  11588. */
  11589. var EventPropagators = __webpack_require__(21);
  11590. var ExecutionEnvironment = __webpack_require__(6);
  11591. var FallbackCompositionState = __webpack_require__(106);
  11592. var SyntheticCompositionEvent = __webpack_require__(107);
  11593. var SyntheticInputEvent = __webpack_require__(108);
  11594. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  11595. var START_KEYCODE = 229;
  11596. var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;
  11597. var documentMode = null;
  11598. if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {
  11599. documentMode = document.documentMode;
  11600. }
  11601. // Webkit offers a very useful `textInput` event that can be used to
  11602. // directly represent `beforeInput`. The IE `textinput` event is not as
  11603. // useful, so we don't use it.
  11604. var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();
  11605. // In IE9+, we have access to composition events, but the data supplied
  11606. // by the native compositionend event may be incorrect. Japanese ideographic
  11607. // spaces, for instance (\u3000) are not recorded correctly.
  11608. var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  11609. /**
  11610. * Opera <= 12 includes TextEvent in window, but does not fire
  11611. * text input events. Rely on keypress instead.
  11612. */
  11613. function isPresto() {
  11614. var opera = window.opera;
  11615. return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
  11616. }
  11617. var SPACEBAR_CODE = 32;
  11618. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  11619. // Events and their corresponding property names.
  11620. var eventTypes = {
  11621. beforeInput: {
  11622. phasedRegistrationNames: {
  11623. bubbled: 'onBeforeInput',
  11624. captured: 'onBeforeInputCapture'
  11625. },
  11626. dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']
  11627. },
  11628. compositionEnd: {
  11629. phasedRegistrationNames: {
  11630. bubbled: 'onCompositionEnd',
  11631. captured: 'onCompositionEndCapture'
  11632. },
  11633. dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11634. },
  11635. compositionStart: {
  11636. phasedRegistrationNames: {
  11637. bubbled: 'onCompositionStart',
  11638. captured: 'onCompositionStartCapture'
  11639. },
  11640. dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11641. },
  11642. compositionUpdate: {
  11643. phasedRegistrationNames: {
  11644. bubbled: 'onCompositionUpdate',
  11645. captured: 'onCompositionUpdateCapture'
  11646. },
  11647. dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
  11648. }
  11649. };
  11650. // Track whether we've ever handled a keypress on the space key.
  11651. var hasSpaceKeypress = false;
  11652. /**
  11653. * Return whether a native keypress event is assumed to be a command.
  11654. * This is required because Firefox fires `keypress` events for key commands
  11655. * (cut, copy, select-all, etc.) even though no character is inserted.
  11656. */
  11657. function isKeypressCommand(nativeEvent) {
  11658. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  11659. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  11660. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  11661. }
  11662. /**
  11663. * Translate native top level events into event types.
  11664. *
  11665. * @param {string} topLevelType
  11666. * @return {object}
  11667. */
  11668. function getCompositionEventType(topLevelType) {
  11669. switch (topLevelType) {
  11670. case 'topCompositionStart':
  11671. return eventTypes.compositionStart;
  11672. case 'topCompositionEnd':
  11673. return eventTypes.compositionEnd;
  11674. case 'topCompositionUpdate':
  11675. return eventTypes.compositionUpdate;
  11676. }
  11677. }
  11678. /**
  11679. * Does our fallback best-guess model think this event signifies that
  11680. * composition has begun?
  11681. *
  11682. * @param {string} topLevelType
  11683. * @param {object} nativeEvent
  11684. * @return {boolean}
  11685. */
  11686. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  11687. return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;
  11688. }
  11689. /**
  11690. * Does our fallback mode think that this event is the end of composition?
  11691. *
  11692. * @param {string} topLevelType
  11693. * @param {object} nativeEvent
  11694. * @return {boolean}
  11695. */
  11696. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  11697. switch (topLevelType) {
  11698. case 'topKeyUp':
  11699. // Command keys insert or clear IME input.
  11700. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  11701. case 'topKeyDown':
  11702. // Expect IME keyCode on each keydown. If we get any other
  11703. // code we must have exited earlier.
  11704. return nativeEvent.keyCode !== START_KEYCODE;
  11705. case 'topKeyPress':
  11706. case 'topMouseDown':
  11707. case 'topBlur':
  11708. // Events are not possible without cancelling IME.
  11709. return true;
  11710. default:
  11711. return false;
  11712. }
  11713. }
  11714. /**
  11715. * Google Input Tools provides composition data via a CustomEvent,
  11716. * with the `data` property populated in the `detail` object. If this
  11717. * is available on the event object, use it. If not, this is a plain
  11718. * composition event and we have nothing special to extract.
  11719. *
  11720. * @param {object} nativeEvent
  11721. * @return {?string}
  11722. */
  11723. function getDataFromCustomEvent(nativeEvent) {
  11724. var detail = nativeEvent.detail;
  11725. if (typeof detail === 'object' && 'data' in detail) {
  11726. return detail.data;
  11727. }
  11728. return null;
  11729. }
  11730. // Track the current IME composition fallback object, if any.
  11731. var currentComposition = null;
  11732. /**
  11733. * @return {?object} A SyntheticCompositionEvent.
  11734. */
  11735. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11736. var eventType;
  11737. var fallbackData;
  11738. if (canUseCompositionEvent) {
  11739. eventType = getCompositionEventType(topLevelType);
  11740. } else if (!currentComposition) {
  11741. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  11742. eventType = eventTypes.compositionStart;
  11743. }
  11744. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  11745. eventType = eventTypes.compositionEnd;
  11746. }
  11747. if (!eventType) {
  11748. return null;
  11749. }
  11750. if (useFallbackCompositionData) {
  11751. // The current composition is stored statically and must not be
  11752. // overwritten while composition continues.
  11753. if (!currentComposition && eventType === eventTypes.compositionStart) {
  11754. currentComposition = FallbackCompositionState.getPooled(nativeEventTarget);
  11755. } else if (eventType === eventTypes.compositionEnd) {
  11756. if (currentComposition) {
  11757. fallbackData = currentComposition.getData();
  11758. }
  11759. }
  11760. }
  11761. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  11762. if (fallbackData) {
  11763. // Inject data generated from fallback path into the synthetic event.
  11764. // This matches the property of native CompositionEventInterface.
  11765. event.data = fallbackData;
  11766. } else {
  11767. var customData = getDataFromCustomEvent(nativeEvent);
  11768. if (customData !== null) {
  11769. event.data = customData;
  11770. }
  11771. }
  11772. EventPropagators.accumulateTwoPhaseDispatches(event);
  11773. return event;
  11774. }
  11775. /**
  11776. * @param {string} topLevelType Record from `EventConstants`.
  11777. * @param {object} nativeEvent Native browser event.
  11778. * @return {?string} The string corresponding to this `beforeInput` event.
  11779. */
  11780. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  11781. switch (topLevelType) {
  11782. case 'topCompositionEnd':
  11783. return getDataFromCustomEvent(nativeEvent);
  11784. case 'topKeyPress':
  11785. /**
  11786. * If native `textInput` events are available, our goal is to make
  11787. * use of them. However, there is a special case: the spacebar key.
  11788. * In Webkit, preventing default on a spacebar `textInput` event
  11789. * cancels character insertion, but it *also* causes the browser
  11790. * to fall back to its default spacebar behavior of scrolling the
  11791. * page.
  11792. *
  11793. * Tracking at:
  11794. * https://code.google.com/p/chromium/issues/detail?id=355103
  11795. *
  11796. * To avoid this issue, use the keypress event as if no `textInput`
  11797. * event is available.
  11798. */
  11799. var which = nativeEvent.which;
  11800. if (which !== SPACEBAR_CODE) {
  11801. return null;
  11802. }
  11803. hasSpaceKeypress = true;
  11804. return SPACEBAR_CHAR;
  11805. case 'topTextInput':
  11806. // Record the characters to be added to the DOM.
  11807. var chars = nativeEvent.data;
  11808. // If it's a spacebar character, assume that we have already handled
  11809. // it at the keypress level and bail immediately. Android Chrome
  11810. // doesn't give us keycodes, so we need to blacklist it.
  11811. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  11812. return null;
  11813. }
  11814. return chars;
  11815. default:
  11816. // For other native event types, do nothing.
  11817. return null;
  11818. }
  11819. }
  11820. /**
  11821. * For browsers that do not provide the `textInput` event, extract the
  11822. * appropriate string to use for SyntheticInputEvent.
  11823. *
  11824. * @param {string} topLevelType Record from `EventConstants`.
  11825. * @param {object} nativeEvent Native browser event.
  11826. * @return {?string} The fallback string for this `beforeInput` event.
  11827. */
  11828. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  11829. // If we are currently composing (IME) and using a fallback to do so,
  11830. // try to extract the composed characters from the fallback object.
  11831. // If composition event is available, we extract a string only at
  11832. // compositionevent, otherwise extract it at fallback events.
  11833. if (currentComposition) {
  11834. if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  11835. var chars = currentComposition.getData();
  11836. FallbackCompositionState.release(currentComposition);
  11837. currentComposition = null;
  11838. return chars;
  11839. }
  11840. return null;
  11841. }
  11842. switch (topLevelType) {
  11843. case 'topPaste':
  11844. // If a paste event occurs after a keypress, throw out the input
  11845. // chars. Paste events should not lead to BeforeInput events.
  11846. return null;
  11847. case 'topKeyPress':
  11848. /**
  11849. * As of v27, Firefox may fire keypress events even when no character
  11850. * will be inserted. A few possibilities:
  11851. *
  11852. * - `which` is `0`. Arrow keys, Esc key, etc.
  11853. *
  11854. * - `which` is the pressed key code, but no char is available.
  11855. * Ex: 'AltGr + d` in Polish. There is no modified character for
  11856. * this key combination and no character is inserted into the
  11857. * document, but FF fires the keypress for char code `100` anyway.
  11858. * No `input` event will occur.
  11859. *
  11860. * - `which` is the pressed key code, but a command combination is
  11861. * being used. Ex: `Cmd+C`. No character is inserted, and no
  11862. * `input` event will occur.
  11863. */
  11864. if (nativeEvent.which && !isKeypressCommand(nativeEvent)) {
  11865. return String.fromCharCode(nativeEvent.which);
  11866. }
  11867. return null;
  11868. case 'topCompositionEnd':
  11869. return useFallbackCompositionData ? null : nativeEvent.data;
  11870. default:
  11871. return null;
  11872. }
  11873. }
  11874. /**
  11875. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  11876. * `textInput` or fallback behavior.
  11877. *
  11878. * @return {?object} A SyntheticInputEvent.
  11879. */
  11880. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11881. var chars;
  11882. if (canUseTextInputEvent) {
  11883. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  11884. } else {
  11885. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  11886. }
  11887. // If no characters are being inserted, no BeforeInput event should
  11888. // be fired.
  11889. if (!chars) {
  11890. return null;
  11891. }
  11892. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  11893. event.data = chars;
  11894. EventPropagators.accumulateTwoPhaseDispatches(event);
  11895. return event;
  11896. }
  11897. /**
  11898. * Create an `onBeforeInput` event to match
  11899. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  11900. *
  11901. * This event plugin is based on the native `textInput` event
  11902. * available in Chrome, Safari, Opera, and IE. This event fires after
  11903. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  11904. *
  11905. * `beforeInput` is spec'd but not implemented in any browsers, and
  11906. * the `input` event does not provide any useful information about what has
  11907. * actually been added, contrary to the spec. Thus, `textInput` is the best
  11908. * available event to identify the characters that have actually been inserted
  11909. * into the target node.
  11910. *
  11911. * This plugin is also responsible for emitting `composition` events, thus
  11912. * allowing us to share composition fallback code for both `beforeInput` and
  11913. * `composition` event types.
  11914. */
  11915. var BeforeInputEventPlugin = {
  11916. eventTypes: eventTypes,
  11917. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  11918. return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];
  11919. }
  11920. };
  11921. module.exports = BeforeInputEventPlugin;
  11922. /***/ }),
  11923. /* 106 */
  11924. /***/ (function(module, exports, __webpack_require__) {
  11925. "use strict";
  11926. /**
  11927. * Copyright 2013-present, Facebook, Inc.
  11928. * All rights reserved.
  11929. *
  11930. * This source code is licensed under the BSD-style license found in the
  11931. * LICENSE file in the root directory of this source tree. An additional grant
  11932. * of patent rights can be found in the PATENTS file in the same directory.
  11933. *
  11934. */
  11935. var _assign = __webpack_require__(4);
  11936. var PooledClass = __webpack_require__(16);
  11937. var getTextContentAccessor = __webpack_require__(59);
  11938. /**
  11939. * This helper class stores information about text content of a target node,
  11940. * allowing comparison of content before and after a given event.
  11941. *
  11942. * Identify the node where selection currently begins, then observe
  11943. * both its text content and its current position in the DOM. Since the
  11944. * browser may natively replace the target node during composition, we can
  11945. * use its position to find its replacement.
  11946. *
  11947. * @param {DOMEventTarget} root
  11948. */
  11949. function FallbackCompositionState(root) {
  11950. this._root = root;
  11951. this._startText = this.getText();
  11952. this._fallbackText = null;
  11953. }
  11954. _assign(FallbackCompositionState.prototype, {
  11955. destructor: function () {
  11956. this._root = null;
  11957. this._startText = null;
  11958. this._fallbackText = null;
  11959. },
  11960. /**
  11961. * Get current text of input.
  11962. *
  11963. * @return {string}
  11964. */
  11965. getText: function () {
  11966. if ('value' in this._root) {
  11967. return this._root.value;
  11968. }
  11969. return this._root[getTextContentAccessor()];
  11970. },
  11971. /**
  11972. * Determine the differing substring between the initially stored
  11973. * text content and the current content.
  11974. *
  11975. * @return {string}
  11976. */
  11977. getData: function () {
  11978. if (this._fallbackText) {
  11979. return this._fallbackText;
  11980. }
  11981. var start;
  11982. var startValue = this._startText;
  11983. var startLength = startValue.length;
  11984. var end;
  11985. var endValue = this.getText();
  11986. var endLength = endValue.length;
  11987. for (start = 0; start < startLength; start++) {
  11988. if (startValue[start] !== endValue[start]) {
  11989. break;
  11990. }
  11991. }
  11992. var minEnd = startLength - start;
  11993. for (end = 1; end <= minEnd; end++) {
  11994. if (startValue[startLength - end] !== endValue[endLength - end]) {
  11995. break;
  11996. }
  11997. }
  11998. var sliceTail = end > 1 ? 1 - end : undefined;
  11999. this._fallbackText = endValue.slice(start, sliceTail);
  12000. return this._fallbackText;
  12001. }
  12002. });
  12003. PooledClass.addPoolingTo(FallbackCompositionState);
  12004. module.exports = FallbackCompositionState;
  12005. /***/ }),
  12006. /* 107 */
  12007. /***/ (function(module, exports, __webpack_require__) {
  12008. "use strict";
  12009. /**
  12010. * Copyright 2013-present, Facebook, Inc.
  12011. * All rights reserved.
  12012. *
  12013. * This source code is licensed under the BSD-style license found in the
  12014. * LICENSE file in the root directory of this source tree. An additional grant
  12015. * of patent rights can be found in the PATENTS file in the same directory.
  12016. *
  12017. */
  12018. var SyntheticEvent = __webpack_require__(12);
  12019. /**
  12020. * @interface Event
  12021. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  12022. */
  12023. var CompositionEventInterface = {
  12024. data: null
  12025. };
  12026. /**
  12027. * @param {object} dispatchConfig Configuration used to dispatch this event.
  12028. * @param {string} dispatchMarker Marker identifying the event target.
  12029. * @param {object} nativeEvent Native browser event.
  12030. * @extends {SyntheticUIEvent}
  12031. */
  12032. function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  12033. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  12034. }
  12035. SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
  12036. module.exports = SyntheticCompositionEvent;
  12037. /***/ }),
  12038. /* 108 */
  12039. /***/ (function(module, exports, __webpack_require__) {
  12040. "use strict";
  12041. /**
  12042. * Copyright 2013-present, Facebook, Inc.
  12043. * All rights reserved.
  12044. *
  12045. * This source code is licensed under the BSD-style license found in the
  12046. * LICENSE file in the root directory of this source tree. An additional grant
  12047. * of patent rights can be found in the PATENTS file in the same directory.
  12048. *
  12049. */
  12050. var SyntheticEvent = __webpack_require__(12);
  12051. /**
  12052. * @interface Event
  12053. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  12054. * /#events-inputevents
  12055. */
  12056. var InputEventInterface = {
  12057. data: null
  12058. };
  12059. /**
  12060. * @param {object} dispatchConfig Configuration used to dispatch this event.
  12061. * @param {string} dispatchMarker Marker identifying the event target.
  12062. * @param {object} nativeEvent Native browser event.
  12063. * @extends {SyntheticUIEvent}
  12064. */
  12065. function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  12066. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  12067. }
  12068. SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);
  12069. module.exports = SyntheticInputEvent;
  12070. /***/ }),
  12071. /* 109 */
  12072. /***/ (function(module, exports, __webpack_require__) {
  12073. "use strict";
  12074. /**
  12075. * Copyright 2013-present, Facebook, Inc.
  12076. * All rights reserved.
  12077. *
  12078. * This source code is licensed under the BSD-style license found in the
  12079. * LICENSE file in the root directory of this source tree. An additional grant
  12080. * of patent rights can be found in the PATENTS file in the same directory.
  12081. *
  12082. */
  12083. var EventPluginHub = __webpack_require__(22);
  12084. var EventPropagators = __webpack_require__(21);
  12085. var ExecutionEnvironment = __webpack_require__(6);
  12086. var ReactDOMComponentTree = __webpack_require__(5);
  12087. var ReactUpdates = __webpack_require__(11);
  12088. var SyntheticEvent = __webpack_require__(12);
  12089. var getEventTarget = __webpack_require__(37);
  12090. var isEventSupported = __webpack_require__(38);
  12091. var isTextInputElement = __webpack_require__(62);
  12092. var eventTypes = {
  12093. change: {
  12094. phasedRegistrationNames: {
  12095. bubbled: 'onChange',
  12096. captured: 'onChangeCapture'
  12097. },
  12098. dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']
  12099. }
  12100. };
  12101. /**
  12102. * For IE shims
  12103. */
  12104. var activeElement = null;
  12105. var activeElementInst = null;
  12106. var activeElementValue = null;
  12107. var activeElementValueProp = null;
  12108. /**
  12109. * SECTION: handle `change` event
  12110. */
  12111. function shouldUseChangeEvent(elem) {
  12112. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  12113. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  12114. }
  12115. var doesChangeEventBubble = false;
  12116. if (ExecutionEnvironment.canUseDOM) {
  12117. // See `handleChange` comment below
  12118. doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8);
  12119. }
  12120. function manualDispatchChangeEvent(nativeEvent) {
  12121. var event = SyntheticEvent.getPooled(eventTypes.change, activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  12122. EventPropagators.accumulateTwoPhaseDispatches(event);
  12123. // If change and propertychange bubbled, we'd just bind to it like all the
  12124. // other events and have it go through ReactBrowserEventEmitter. Since it
  12125. // doesn't, we manually listen for the events and so we have to enqueue and
  12126. // process the abstract event manually.
  12127. //
  12128. // Batching is necessary here in order to ensure that all event handlers run
  12129. // before the next rerender (including event handlers attached to ancestor
  12130. // elements instead of directly on the input). Without this, controlled
  12131. // components don't work properly in conjunction with event bubbling because
  12132. // the component is rerendered and the value reverted before all the event
  12133. // handlers can run. See https://github.com/facebook/react/issues/708.
  12134. ReactUpdates.batchedUpdates(runEventInBatch, event);
  12135. }
  12136. function runEventInBatch(event) {
  12137. EventPluginHub.enqueueEvents(event);
  12138. EventPluginHub.processEventQueue(false);
  12139. }
  12140. function startWatchingForChangeEventIE8(target, targetInst) {
  12141. activeElement = target;
  12142. activeElementInst = targetInst;
  12143. activeElement.attachEvent('onchange', manualDispatchChangeEvent);
  12144. }
  12145. function stopWatchingForChangeEventIE8() {
  12146. if (!activeElement) {
  12147. return;
  12148. }
  12149. activeElement.detachEvent('onchange', manualDispatchChangeEvent);
  12150. activeElement = null;
  12151. activeElementInst = null;
  12152. }
  12153. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  12154. if (topLevelType === 'topChange') {
  12155. return targetInst;
  12156. }
  12157. }
  12158. function handleEventsForChangeEventIE8(topLevelType, target, targetInst) {
  12159. if (topLevelType === 'topFocus') {
  12160. // stopWatching() should be a noop here but we call it just in case we
  12161. // missed a blur event somehow.
  12162. stopWatchingForChangeEventIE8();
  12163. startWatchingForChangeEventIE8(target, targetInst);
  12164. } else if (topLevelType === 'topBlur') {
  12165. stopWatchingForChangeEventIE8();
  12166. }
  12167. }
  12168. /**
  12169. * SECTION: handle `input` event
  12170. */
  12171. var isInputEventSupported = false;
  12172. if (ExecutionEnvironment.canUseDOM) {
  12173. // IE9 claims to support the input event but fails to trigger it when
  12174. // deleting text, so we ignore its input events.
  12175. // IE10+ fire input events to often, such when a placeholder
  12176. // changes or when an input with a placeholder is focused.
  12177. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 11);
  12178. }
  12179. /**
  12180. * (For IE <=11) Replacement getter/setter for the `value` property that gets
  12181. * set on the active element.
  12182. */
  12183. var newValueProp = {
  12184. get: function () {
  12185. return activeElementValueProp.get.call(this);
  12186. },
  12187. set: function (val) {
  12188. // Cast to a string so we can do equality checks.
  12189. activeElementValue = '' + val;
  12190. activeElementValueProp.set.call(this, val);
  12191. }
  12192. };
  12193. /**
  12194. * (For IE <=11) Starts tracking propertychange events on the passed-in element
  12195. * and override the value property so that we can distinguish user events from
  12196. * value changes in JS.
  12197. */
  12198. function startWatchingForValueChange(target, targetInst) {
  12199. activeElement = target;
  12200. activeElementInst = targetInst;
  12201. activeElementValue = target.value;
  12202. activeElementValueProp = Object.getOwnPropertyDescriptor(target.constructor.prototype, 'value');
  12203. // Not guarded in a canDefineProperty check: IE8 supports defineProperty only
  12204. // on DOM elements
  12205. Object.defineProperty(activeElement, 'value', newValueProp);
  12206. if (activeElement.attachEvent) {
  12207. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  12208. } else {
  12209. activeElement.addEventListener('propertychange', handlePropertyChange, false);
  12210. }
  12211. }
  12212. /**
  12213. * (For IE <=11) Removes the event listeners from the currently-tracked element,
  12214. * if any exists.
  12215. */
  12216. function stopWatchingForValueChange() {
  12217. if (!activeElement) {
  12218. return;
  12219. }
  12220. // delete restores the original property definition
  12221. delete activeElement.value;
  12222. if (activeElement.detachEvent) {
  12223. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  12224. } else {
  12225. activeElement.removeEventListener('propertychange', handlePropertyChange, false);
  12226. }
  12227. activeElement = null;
  12228. activeElementInst = null;
  12229. activeElementValue = null;
  12230. activeElementValueProp = null;
  12231. }
  12232. /**
  12233. * (For IE <=11) Handles a propertychange event, sending a `change` event if
  12234. * the value of the active element has changed.
  12235. */
  12236. function handlePropertyChange(nativeEvent) {
  12237. if (nativeEvent.propertyName !== 'value') {
  12238. return;
  12239. }
  12240. var value = nativeEvent.srcElement.value;
  12241. if (value === activeElementValue) {
  12242. return;
  12243. }
  12244. activeElementValue = value;
  12245. manualDispatchChangeEvent(nativeEvent);
  12246. }
  12247. /**
  12248. * If a `change` event should be fired, returns the target's ID.
  12249. */
  12250. function getTargetInstForInputEvent(topLevelType, targetInst) {
  12251. if (topLevelType === 'topInput') {
  12252. // In modern browsers (i.e., not IE8 or IE9), the input event is exactly
  12253. // what we want so fall through here and trigger an abstract event
  12254. return targetInst;
  12255. }
  12256. }
  12257. function handleEventsForInputEventIE(topLevelType, target, targetInst) {
  12258. if (topLevelType === 'topFocus') {
  12259. // In IE8, we can capture almost all .value changes by adding a
  12260. // propertychange handler and looking for events with propertyName
  12261. // equal to 'value'
  12262. // In IE9-11, propertychange fires for most input events but is buggy and
  12263. // doesn't fire when text is deleted, but conveniently, selectionchange
  12264. // appears to fire in all of the remaining cases so we catch those and
  12265. // forward the event if the value has changed
  12266. // In either case, we don't want to call the event handler if the value
  12267. // is changed from JS so we redefine a setter for `.value` that updates
  12268. // our activeElementValue variable, allowing us to ignore those changes
  12269. //
  12270. // stopWatching() should be a noop here but we call it just in case we
  12271. // missed a blur event somehow.
  12272. stopWatchingForValueChange();
  12273. startWatchingForValueChange(target, targetInst);
  12274. } else if (topLevelType === 'topBlur') {
  12275. stopWatchingForValueChange();
  12276. }
  12277. }
  12278. // For IE8 and IE9.
  12279. function getTargetInstForInputEventIE(topLevelType, targetInst) {
  12280. if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {
  12281. // On the selectionchange event, the target is just document which isn't
  12282. // helpful for us so just check activeElement instead.
  12283. //
  12284. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  12285. // propertychange on the first input event after setting `value` from a
  12286. // script and fires only keydown, keypress, keyup. Catching keyup usually
  12287. // gets it and catching keydown lets us fire an event for the first
  12288. // keystroke if user does a key repeat (it'll be a little delayed: right
  12289. // before the second keystroke). Other input methods (e.g., paste) seem to
  12290. // fire selectionchange normally.
  12291. if (activeElement && activeElement.value !== activeElementValue) {
  12292. activeElementValue = activeElement.value;
  12293. return activeElementInst;
  12294. }
  12295. }
  12296. }
  12297. /**
  12298. * SECTION: handle `click` event
  12299. */
  12300. function shouldUseClickEvent(elem) {
  12301. // Use the `click` event to detect changes to checkbox and radio inputs.
  12302. // This approach works across all browsers, whereas `change` does not fire
  12303. // until `blur` in IE8.
  12304. return elem.nodeName && elem.nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  12305. }
  12306. function getTargetInstForClickEvent(topLevelType, targetInst) {
  12307. if (topLevelType === 'topClick') {
  12308. return targetInst;
  12309. }
  12310. }
  12311. function handleControlledInputBlur(inst, node) {
  12312. // TODO: In IE, inst is occasionally null. Why?
  12313. if (inst == null) {
  12314. return;
  12315. }
  12316. // Fiber and ReactDOM keep wrapper state in separate places
  12317. var state = inst._wrapperState || node._wrapperState;
  12318. if (!state || !state.controlled || node.type !== 'number') {
  12319. return;
  12320. }
  12321. // If controlled, assign the value attribute to the current value on blur
  12322. var value = '' + node.value;
  12323. if (node.getAttribute('value') !== value) {
  12324. node.setAttribute('value', value);
  12325. }
  12326. }
  12327. /**
  12328. * This plugin creates an `onChange` event that normalizes change events
  12329. * across form elements. This event fires at a time when it's possible to
  12330. * change the element's value without seeing a flicker.
  12331. *
  12332. * Supported elements are:
  12333. * - input (see `isTextInputElement`)
  12334. * - textarea
  12335. * - select
  12336. */
  12337. var ChangeEventPlugin = {
  12338. eventTypes: eventTypes,
  12339. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  12340. var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
  12341. var getTargetInstFunc, handleEventFunc;
  12342. if (shouldUseChangeEvent(targetNode)) {
  12343. if (doesChangeEventBubble) {
  12344. getTargetInstFunc = getTargetInstForChangeEvent;
  12345. } else {
  12346. handleEventFunc = handleEventsForChangeEventIE8;
  12347. }
  12348. } else if (isTextInputElement(targetNode)) {
  12349. if (isInputEventSupported) {
  12350. getTargetInstFunc = getTargetInstForInputEvent;
  12351. } else {
  12352. getTargetInstFunc = getTargetInstForInputEventIE;
  12353. handleEventFunc = handleEventsForInputEventIE;
  12354. }
  12355. } else if (shouldUseClickEvent(targetNode)) {
  12356. getTargetInstFunc = getTargetInstForClickEvent;
  12357. }
  12358. if (getTargetInstFunc) {
  12359. var inst = getTargetInstFunc(topLevelType, targetInst);
  12360. if (inst) {
  12361. var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, nativeEventTarget);
  12362. event.type = 'change';
  12363. EventPropagators.accumulateTwoPhaseDispatches(event);
  12364. return event;
  12365. }
  12366. }
  12367. if (handleEventFunc) {
  12368. handleEventFunc(topLevelType, targetNode, targetInst);
  12369. }
  12370. // When blurring, set the value attribute for number inputs
  12371. if (topLevelType === 'topBlur') {
  12372. handleControlledInputBlur(targetInst, targetNode);
  12373. }
  12374. }
  12375. };
  12376. module.exports = ChangeEventPlugin;
  12377. /***/ }),
  12378. /* 110 */
  12379. /***/ (function(module, exports, __webpack_require__) {
  12380. "use strict";
  12381. /**
  12382. * Copyright 2013-present, Facebook, Inc.
  12383. * All rights reserved.
  12384. *
  12385. * This source code is licensed under the BSD-style license found in the
  12386. * LICENSE file in the root directory of this source tree. An additional grant
  12387. * of patent rights can be found in the PATENTS file in the same directory.
  12388. *
  12389. *
  12390. */
  12391. var ReactOwner = __webpack_require__(111);
  12392. var ReactRef = {};
  12393. function attachRef(ref, component, owner) {
  12394. if (typeof ref === 'function') {
  12395. ref(component.getPublicInstance());
  12396. } else {
  12397. // Legacy ref
  12398. ReactOwner.addComponentAsRefTo(component, ref, owner);
  12399. }
  12400. }
  12401. function detachRef(ref, component, owner) {
  12402. if (typeof ref === 'function') {
  12403. ref(null);
  12404. } else {
  12405. // Legacy ref
  12406. ReactOwner.removeComponentAsRefFrom(component, ref, owner);
  12407. }
  12408. }
  12409. ReactRef.attachRefs = function (instance, element) {
  12410. if (element === null || typeof element !== 'object') {
  12411. return;
  12412. }
  12413. var ref = element.ref;
  12414. if (ref != null) {
  12415. attachRef(ref, instance, element._owner);
  12416. }
  12417. };
  12418. ReactRef.shouldUpdateRefs = function (prevElement, nextElement) {
  12419. // If either the owner or a `ref` has changed, make sure the newest owner
  12420. // has stored a reference to `this`, and the previous owner (if different)
  12421. // has forgotten the reference to `this`. We use the element instead
  12422. // of the public this.props because the post processing cannot determine
  12423. // a ref. The ref conceptually lives on the element.
  12424. // TODO: Should this even be possible? The owner cannot change because
  12425. // it's forbidden by shouldUpdateReactComponent. The ref can change
  12426. // if you swap the keys of but not the refs. Reconsider where this check
  12427. // is made. It probably belongs where the key checking and
  12428. // instantiateReactComponent is done.
  12429. var prevRef = null;
  12430. var prevOwner = null;
  12431. if (prevElement !== null && typeof prevElement === 'object') {
  12432. prevRef = prevElement.ref;
  12433. prevOwner = prevElement._owner;
  12434. }
  12435. var nextRef = null;
  12436. var nextOwner = null;
  12437. if (nextElement !== null && typeof nextElement === 'object') {
  12438. nextRef = nextElement.ref;
  12439. nextOwner = nextElement._owner;
  12440. }
  12441. return prevRef !== nextRef ||
  12442. // If owner changes but we have an unchanged function ref, don't update refs
  12443. typeof nextRef === 'string' && nextOwner !== prevOwner;
  12444. };
  12445. ReactRef.detachRefs = function (instance, element) {
  12446. if (element === null || typeof element !== 'object') {
  12447. return;
  12448. }
  12449. var ref = element.ref;
  12450. if (ref != null) {
  12451. detachRef(ref, instance, element._owner);
  12452. }
  12453. };
  12454. module.exports = ReactRef;
  12455. /***/ }),
  12456. /* 111 */
  12457. /***/ (function(module, exports, __webpack_require__) {
  12458. "use strict";
  12459. /* WEBPACK VAR INJECTION */(function(process) {/**
  12460. * Copyright 2013-present, Facebook, Inc.
  12461. * All rights reserved.
  12462. *
  12463. * This source code is licensed under the BSD-style license found in the
  12464. * LICENSE file in the root directory of this source tree. An additional grant
  12465. * of patent rights can be found in the PATENTS file in the same directory.
  12466. *
  12467. *
  12468. */
  12469. var _prodInvariant = __webpack_require__(3);
  12470. var invariant = __webpack_require__(1);
  12471. /**
  12472. * @param {?object} object
  12473. * @return {boolean} True if `object` is a valid owner.
  12474. * @final
  12475. */
  12476. function isValidOwner(object) {
  12477. return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function');
  12478. }
  12479. /**
  12480. * ReactOwners are capable of storing references to owned components.
  12481. *
  12482. * All components are capable of //being// referenced by owner components, but
  12483. * only ReactOwner components are capable of //referencing// owned components.
  12484. * The named reference is known as a "ref".
  12485. *
  12486. * Refs are available when mounted and updated during reconciliation.
  12487. *
  12488. * var MyComponent = React.createClass({
  12489. * render: function() {
  12490. * return (
  12491. * <div onClick={this.handleClick}>
  12492. * <CustomComponent ref="custom" />
  12493. * </div>
  12494. * );
  12495. * },
  12496. * handleClick: function() {
  12497. * this.refs.custom.handleClick();
  12498. * },
  12499. * componentDidMount: function() {
  12500. * this.refs.custom.initialize();
  12501. * }
  12502. * });
  12503. *
  12504. * Refs should rarely be used. When refs are used, they should only be done to
  12505. * control data that is not handled by React's data flow.
  12506. *
  12507. * @class ReactOwner
  12508. */
  12509. var ReactOwner = {
  12510. /**
  12511. * Adds a component by ref to an owner component.
  12512. *
  12513. * @param {ReactComponent} component Component to reference.
  12514. * @param {string} ref Name by which to refer to the component.
  12515. * @param {ReactOwner} owner Component on which to record the ref.
  12516. * @final
  12517. * @internal
  12518. */
  12519. addComponentAsRefTo: function (component, ref, owner) {
  12520. !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;
  12521. owner.attachRef(ref, component);
  12522. },
  12523. /**
  12524. * Removes a component by ref from an owner component.
  12525. *
  12526. * @param {ReactComponent} component Component to dereference.
  12527. * @param {string} ref Name of the ref to remove.
  12528. * @param {ReactOwner} owner Component on which the ref is recorded.
  12529. * @final
  12530. * @internal
  12531. */
  12532. removeComponentAsRefFrom: function (component, ref, owner) {
  12533. !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;
  12534. var ownerPublicInstance = owner.getPublicInstance();
  12535. // Check that `component`'s owner is still alive and that `component` is still the current ref
  12536. // because we do not want to detach the ref if another component stole it.
  12537. if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) {
  12538. owner.detachRef(ref);
  12539. }
  12540. }
  12541. };
  12542. module.exports = ReactOwner;
  12543. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12544. /***/ }),
  12545. /* 112 */
  12546. /***/ (function(module, exports, __webpack_require__) {
  12547. "use strict";
  12548. /* WEBPACK VAR INJECTION */(function(process) {/**
  12549. * Copyright 2016-present, Facebook, Inc.
  12550. * All rights reserved.
  12551. *
  12552. * This source code is licensed under the BSD-style license found in the
  12553. * LICENSE file in the root directory of this source tree. An additional grant
  12554. * of patent rights can be found in the PATENTS file in the same directory.
  12555. *
  12556. *
  12557. */
  12558. var ReactInvalidSetStateWarningHook = __webpack_require__(113);
  12559. var ReactHostOperationHistoryHook = __webpack_require__(114);
  12560. var ReactComponentTreeHook = __webpack_require__(7);
  12561. var ExecutionEnvironment = __webpack_require__(6);
  12562. var performanceNow = __webpack_require__(115);
  12563. var warning = __webpack_require__(2);
  12564. var hooks = [];
  12565. var didHookThrowForEvent = {};
  12566. function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {
  12567. try {
  12568. fn.call(context, arg1, arg2, arg3, arg4, arg5);
  12569. } catch (e) {
  12570. process.env.NODE_ENV !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack) : void 0;
  12571. didHookThrowForEvent[event] = true;
  12572. }
  12573. }
  12574. function emitEvent(event, arg1, arg2, arg3, arg4, arg5) {
  12575. for (var i = 0; i < hooks.length; i++) {
  12576. var hook = hooks[i];
  12577. var fn = hook[event];
  12578. if (fn) {
  12579. callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
  12580. }
  12581. }
  12582. }
  12583. var isProfiling = false;
  12584. var flushHistory = [];
  12585. var lifeCycleTimerStack = [];
  12586. var currentFlushNesting = 0;
  12587. var currentFlushMeasurements = [];
  12588. var currentFlushStartTime = 0;
  12589. var currentTimerDebugID = null;
  12590. var currentTimerStartTime = 0;
  12591. var currentTimerNestedFlushDuration = 0;
  12592. var currentTimerType = null;
  12593. var lifeCycleTimerHasWarned = false;
  12594. function clearHistory() {
  12595. ReactComponentTreeHook.purgeUnmountedComponents();
  12596. ReactHostOperationHistoryHook.clearHistory();
  12597. }
  12598. function getTreeSnapshot(registeredIDs) {
  12599. return registeredIDs.reduce(function (tree, id) {
  12600. var ownerID = ReactComponentTreeHook.getOwnerID(id);
  12601. var parentID = ReactComponentTreeHook.getParentID(id);
  12602. tree[id] = {
  12603. displayName: ReactComponentTreeHook.getDisplayName(id),
  12604. text: ReactComponentTreeHook.getText(id),
  12605. updateCount: ReactComponentTreeHook.getUpdateCount(id),
  12606. childIDs: ReactComponentTreeHook.getChildIDs(id),
  12607. // Text nodes don't have owners but this is close enough.
  12608. ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
  12609. parentID: parentID
  12610. };
  12611. return tree;
  12612. }, {});
  12613. }
  12614. function resetMeasurements() {
  12615. var previousStartTime = currentFlushStartTime;
  12616. var previousMeasurements = currentFlushMeasurements;
  12617. var previousOperations = ReactHostOperationHistoryHook.getHistory();
  12618. if (currentFlushNesting === 0) {
  12619. currentFlushStartTime = 0;
  12620. currentFlushMeasurements = [];
  12621. clearHistory();
  12622. return;
  12623. }
  12624. if (previousMeasurements.length || previousOperations.length) {
  12625. var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
  12626. flushHistory.push({
  12627. duration: performanceNow() - previousStartTime,
  12628. measurements: previousMeasurements || [],
  12629. operations: previousOperations || [],
  12630. treeSnapshot: getTreeSnapshot(registeredIDs)
  12631. });
  12632. }
  12633. clearHistory();
  12634. currentFlushStartTime = performanceNow();
  12635. currentFlushMeasurements = [];
  12636. }
  12637. function checkDebugID(debugID) {
  12638. var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  12639. if (allowRoot && debugID === 0) {
  12640. return;
  12641. }
  12642. if (!debugID) {
  12643. process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;
  12644. }
  12645. }
  12646. function beginLifeCycleTimer(debugID, timerType) {
  12647. if (currentFlushNesting === 0) {
  12648. return;
  12649. }
  12650. if (currentTimerType && !lifeCycleTimerHasWarned) {
  12651. 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;
  12652. lifeCycleTimerHasWarned = true;
  12653. }
  12654. currentTimerStartTime = performanceNow();
  12655. currentTimerNestedFlushDuration = 0;
  12656. currentTimerDebugID = debugID;
  12657. currentTimerType = timerType;
  12658. }
  12659. function endLifeCycleTimer(debugID, timerType) {
  12660. if (currentFlushNesting === 0) {
  12661. return;
  12662. }
  12663. if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
  12664. 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;
  12665. lifeCycleTimerHasWarned = true;
  12666. }
  12667. if (isProfiling) {
  12668. currentFlushMeasurements.push({
  12669. timerType: timerType,
  12670. instanceID: debugID,
  12671. duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
  12672. });
  12673. }
  12674. currentTimerStartTime = 0;
  12675. currentTimerNestedFlushDuration = 0;
  12676. currentTimerDebugID = null;
  12677. currentTimerType = null;
  12678. }
  12679. function pauseCurrentLifeCycleTimer() {
  12680. var currentTimer = {
  12681. startTime: currentTimerStartTime,
  12682. nestedFlushStartTime: performanceNow(),
  12683. debugID: currentTimerDebugID,
  12684. timerType: currentTimerType
  12685. };
  12686. lifeCycleTimerStack.push(currentTimer);
  12687. currentTimerStartTime = 0;
  12688. currentTimerNestedFlushDuration = 0;
  12689. currentTimerDebugID = null;
  12690. currentTimerType = null;
  12691. }
  12692. function resumeCurrentLifeCycleTimer() {
  12693. var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),
  12694. startTime = _lifeCycleTimerStack$.startTime,
  12695. nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,
  12696. debugID = _lifeCycleTimerStack$.debugID,
  12697. timerType = _lifeCycleTimerStack$.timerType;
  12698. var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
  12699. currentTimerStartTime = startTime;
  12700. currentTimerNestedFlushDuration += nestedFlushDuration;
  12701. currentTimerDebugID = debugID;
  12702. currentTimerType = timerType;
  12703. }
  12704. var lastMarkTimeStamp = 0;
  12705. var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  12706. function shouldMark(debugID) {
  12707. if (!isProfiling || !canUsePerformanceMeasure) {
  12708. return false;
  12709. }
  12710. var element = ReactComponentTreeHook.getElement(debugID);
  12711. if (element == null || typeof element !== 'object') {
  12712. return false;
  12713. }
  12714. var isHostElement = typeof element.type === 'string';
  12715. if (isHostElement) {
  12716. return false;
  12717. }
  12718. return true;
  12719. }
  12720. function markBegin(debugID, markType) {
  12721. if (!shouldMark(debugID)) {
  12722. return;
  12723. }
  12724. var markName = debugID + '::' + markType;
  12725. lastMarkTimeStamp = performanceNow();
  12726. performance.mark(markName);
  12727. }
  12728. function markEnd(debugID, markType) {
  12729. if (!shouldMark(debugID)) {
  12730. return;
  12731. }
  12732. var markName = debugID + '::' + markType;
  12733. var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';
  12734. // Chrome has an issue of dropping markers recorded too fast:
  12735. // https://bugs.chromium.org/p/chromium/issues/detail?id=640652
  12736. // To work around this, we will not report very small measurements.
  12737. // I determined the magic number by tweaking it back and forth.
  12738. // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.
  12739. // When the bug is fixed, we can `measure()` unconditionally if we want to.
  12740. var timeStamp = performanceNow();
  12741. if (timeStamp - lastMarkTimeStamp > 0.1) {
  12742. var measurementName = displayName + ' [' + markType + ']';
  12743. performance.measure(measurementName, markName);
  12744. }
  12745. performance.clearMarks(markName);
  12746. performance.clearMeasures(measurementName);
  12747. }
  12748. var ReactDebugTool = {
  12749. addHook: function (hook) {
  12750. hooks.push(hook);
  12751. },
  12752. removeHook: function (hook) {
  12753. for (var i = 0; i < hooks.length; i++) {
  12754. if (hooks[i] === hook) {
  12755. hooks.splice(i, 1);
  12756. i--;
  12757. }
  12758. }
  12759. },
  12760. isProfiling: function () {
  12761. return isProfiling;
  12762. },
  12763. beginProfiling: function () {
  12764. if (isProfiling) {
  12765. return;
  12766. }
  12767. isProfiling = true;
  12768. flushHistory.length = 0;
  12769. resetMeasurements();
  12770. ReactDebugTool.addHook(ReactHostOperationHistoryHook);
  12771. },
  12772. endProfiling: function () {
  12773. if (!isProfiling) {
  12774. return;
  12775. }
  12776. isProfiling = false;
  12777. resetMeasurements();
  12778. ReactDebugTool.removeHook(ReactHostOperationHistoryHook);
  12779. },
  12780. getFlushHistory: function () {
  12781. return flushHistory;
  12782. },
  12783. onBeginFlush: function () {
  12784. currentFlushNesting++;
  12785. resetMeasurements();
  12786. pauseCurrentLifeCycleTimer();
  12787. emitEvent('onBeginFlush');
  12788. },
  12789. onEndFlush: function () {
  12790. resetMeasurements();
  12791. currentFlushNesting--;
  12792. resumeCurrentLifeCycleTimer();
  12793. emitEvent('onEndFlush');
  12794. },
  12795. onBeginLifeCycleTimer: function (debugID, timerType) {
  12796. checkDebugID(debugID);
  12797. emitEvent('onBeginLifeCycleTimer', debugID, timerType);
  12798. markBegin(debugID, timerType);
  12799. beginLifeCycleTimer(debugID, timerType);
  12800. },
  12801. onEndLifeCycleTimer: function (debugID, timerType) {
  12802. checkDebugID(debugID);
  12803. endLifeCycleTimer(debugID, timerType);
  12804. markEnd(debugID, timerType);
  12805. emitEvent('onEndLifeCycleTimer', debugID, timerType);
  12806. },
  12807. onBeginProcessingChildContext: function () {
  12808. emitEvent('onBeginProcessingChildContext');
  12809. },
  12810. onEndProcessingChildContext: function () {
  12811. emitEvent('onEndProcessingChildContext');
  12812. },
  12813. onHostOperation: function (operation) {
  12814. checkDebugID(operation.instanceID);
  12815. emitEvent('onHostOperation', operation);
  12816. },
  12817. onSetState: function () {
  12818. emitEvent('onSetState');
  12819. },
  12820. onSetChildren: function (debugID, childDebugIDs) {
  12821. checkDebugID(debugID);
  12822. childDebugIDs.forEach(checkDebugID);
  12823. emitEvent('onSetChildren', debugID, childDebugIDs);
  12824. },
  12825. onBeforeMountComponent: function (debugID, element, parentDebugID) {
  12826. checkDebugID(debugID);
  12827. checkDebugID(parentDebugID, true);
  12828. emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
  12829. markBegin(debugID, 'mount');
  12830. },
  12831. onMountComponent: function (debugID) {
  12832. checkDebugID(debugID);
  12833. markEnd(debugID, 'mount');
  12834. emitEvent('onMountComponent', debugID);
  12835. },
  12836. onBeforeUpdateComponent: function (debugID, element) {
  12837. checkDebugID(debugID);
  12838. emitEvent('onBeforeUpdateComponent', debugID, element);
  12839. markBegin(debugID, 'update');
  12840. },
  12841. onUpdateComponent: function (debugID) {
  12842. checkDebugID(debugID);
  12843. markEnd(debugID, 'update');
  12844. emitEvent('onUpdateComponent', debugID);
  12845. },
  12846. onBeforeUnmountComponent: function (debugID) {
  12847. checkDebugID(debugID);
  12848. emitEvent('onBeforeUnmountComponent', debugID);
  12849. markBegin(debugID, 'unmount');
  12850. },
  12851. onUnmountComponent: function (debugID) {
  12852. checkDebugID(debugID);
  12853. markEnd(debugID, 'unmount');
  12854. emitEvent('onUnmountComponent', debugID);
  12855. },
  12856. onTestEvent: function () {
  12857. emitEvent('onTestEvent');
  12858. }
  12859. };
  12860. // TODO remove these when RN/www gets updated
  12861. ReactDebugTool.addDevtool = ReactDebugTool.addHook;
  12862. ReactDebugTool.removeDevtool = ReactDebugTool.removeHook;
  12863. ReactDebugTool.addHook(ReactInvalidSetStateWarningHook);
  12864. ReactDebugTool.addHook(ReactComponentTreeHook);
  12865. var url = ExecutionEnvironment.canUseDOM && window.location.href || '';
  12866. if (/[?&]react_perf\b/.test(url)) {
  12867. ReactDebugTool.beginProfiling();
  12868. }
  12869. module.exports = ReactDebugTool;
  12870. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12871. /***/ }),
  12872. /* 113 */
  12873. /***/ (function(module, exports, __webpack_require__) {
  12874. "use strict";
  12875. /* WEBPACK VAR INJECTION */(function(process) {/**
  12876. * Copyright 2016-present, Facebook, Inc.
  12877. * All rights reserved.
  12878. *
  12879. * This source code is licensed under the BSD-style license found in the
  12880. * LICENSE file in the root directory of this source tree. An additional grant
  12881. * of patent rights can be found in the PATENTS file in the same directory.
  12882. *
  12883. *
  12884. */
  12885. var warning = __webpack_require__(2);
  12886. if (process.env.NODE_ENV !== 'production') {
  12887. var processingChildContext = false;
  12888. var warnInvalidSetState = function () {
  12889. process.env.NODE_ENV !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;
  12890. };
  12891. }
  12892. var ReactInvalidSetStateWarningHook = {
  12893. onBeginProcessingChildContext: function () {
  12894. processingChildContext = true;
  12895. },
  12896. onEndProcessingChildContext: function () {
  12897. processingChildContext = false;
  12898. },
  12899. onSetState: function () {
  12900. warnInvalidSetState();
  12901. }
  12902. };
  12903. module.exports = ReactInvalidSetStateWarningHook;
  12904. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  12905. /***/ }),
  12906. /* 114 */
  12907. /***/ (function(module, exports, __webpack_require__) {
  12908. "use strict";
  12909. /**
  12910. * Copyright 2016-present, Facebook, Inc.
  12911. * All rights reserved.
  12912. *
  12913. * This source code is licensed under the BSD-style license found in the
  12914. * LICENSE file in the root directory of this source tree. An additional grant
  12915. * of patent rights can be found in the PATENTS file in the same directory.
  12916. *
  12917. *
  12918. */
  12919. var history = [];
  12920. var ReactHostOperationHistoryHook = {
  12921. onHostOperation: function (operation) {
  12922. history.push(operation);
  12923. },
  12924. clearHistory: function () {
  12925. if (ReactHostOperationHistoryHook._preventClearing) {
  12926. // Should only be used for tests.
  12927. return;
  12928. }
  12929. history = [];
  12930. },
  12931. getHistory: function () {
  12932. return history;
  12933. }
  12934. };
  12935. module.exports = ReactHostOperationHistoryHook;
  12936. /***/ }),
  12937. /* 115 */
  12938. /***/ (function(module, exports, __webpack_require__) {
  12939. "use strict";
  12940. /**
  12941. * Copyright (c) 2013-present, Facebook, Inc.
  12942. *
  12943. * This source code is licensed under the MIT license found in the
  12944. * LICENSE file in the root directory of this source tree.
  12945. *
  12946. * @typechecks
  12947. */
  12948. var performance = __webpack_require__(116);
  12949. var performanceNow;
  12950. /**
  12951. * Detect if we can use `window.performance.now()` and gracefully fallback to
  12952. * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
  12953. * because of Facebook's testing infrastructure.
  12954. */
  12955. if (performance.now) {
  12956. performanceNow = function performanceNow() {
  12957. return performance.now();
  12958. };
  12959. } else {
  12960. performanceNow = function performanceNow() {
  12961. return Date.now();
  12962. };
  12963. }
  12964. module.exports = performanceNow;
  12965. /***/ }),
  12966. /* 116 */
  12967. /***/ (function(module, exports, __webpack_require__) {
  12968. "use strict";
  12969. /**
  12970. * Copyright (c) 2013-present, Facebook, Inc.
  12971. *
  12972. * This source code is licensed under the MIT license found in the
  12973. * LICENSE file in the root directory of this source tree.
  12974. *
  12975. * @typechecks
  12976. */
  12977. var ExecutionEnvironment = __webpack_require__(6);
  12978. var performance;
  12979. if (ExecutionEnvironment.canUseDOM) {
  12980. performance = window.performance || window.msPerformance || window.webkitPerformance;
  12981. }
  12982. module.exports = performance || {};
  12983. /***/ }),
  12984. /* 117 */
  12985. /***/ (function(module, exports, __webpack_require__) {
  12986. "use strict";
  12987. /**
  12988. * Copyright 2013-present, Facebook, Inc.
  12989. * All rights reserved.
  12990. *
  12991. * This source code is licensed under the BSD-style license found in the
  12992. * LICENSE file in the root directory of this source tree. An additional grant
  12993. * of patent rights can be found in the PATENTS file in the same directory.
  12994. *
  12995. */
  12996. /**
  12997. * Module that is injectable into `EventPluginHub`, that specifies a
  12998. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  12999. * plugins, without having to package every one of them. This is better than
  13000. * having plugins be ordered in the same order that they are injected because
  13001. * that ordering would be influenced by the packaging order.
  13002. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  13003. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  13004. */
  13005. var DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  13006. module.exports = DefaultEventPluginOrder;
  13007. /***/ }),
  13008. /* 118 */
  13009. /***/ (function(module, exports, __webpack_require__) {
  13010. "use strict";
  13011. /**
  13012. * Copyright 2013-present, Facebook, Inc.
  13013. * All rights reserved.
  13014. *
  13015. * This source code is licensed under the BSD-style license found in the
  13016. * LICENSE file in the root directory of this source tree. An additional grant
  13017. * of patent rights can be found in the PATENTS file in the same directory.
  13018. *
  13019. */
  13020. var EventPropagators = __webpack_require__(21);
  13021. var ReactDOMComponentTree = __webpack_require__(5);
  13022. var SyntheticMouseEvent = __webpack_require__(29);
  13023. var eventTypes = {
  13024. mouseEnter: {
  13025. registrationName: 'onMouseEnter',
  13026. dependencies: ['topMouseOut', 'topMouseOver']
  13027. },
  13028. mouseLeave: {
  13029. registrationName: 'onMouseLeave',
  13030. dependencies: ['topMouseOut', 'topMouseOver']
  13031. }
  13032. };
  13033. var EnterLeaveEventPlugin = {
  13034. eventTypes: eventTypes,
  13035. /**
  13036. * For almost every interaction we care about, there will be both a top-level
  13037. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  13038. * we do not extract duplicate events. However, moving the mouse into the
  13039. * browser from outside will not fire a `mouseout` event. In this case, we use
  13040. * the `mouseover` top-level event.
  13041. */
  13042. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  13043. if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  13044. return null;
  13045. }
  13046. if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {
  13047. // Must not be a mouse in or mouse out - ignoring.
  13048. return null;
  13049. }
  13050. var win;
  13051. if (nativeEventTarget.window === nativeEventTarget) {
  13052. // `nativeEventTarget` is probably a window object.
  13053. win = nativeEventTarget;
  13054. } else {
  13055. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  13056. var doc = nativeEventTarget.ownerDocument;
  13057. if (doc) {
  13058. win = doc.defaultView || doc.parentWindow;
  13059. } else {
  13060. win = window;
  13061. }
  13062. }
  13063. var from;
  13064. var to;
  13065. if (topLevelType === 'topMouseOut') {
  13066. from = targetInst;
  13067. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  13068. to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;
  13069. } else {
  13070. // Moving to a node from outside the window.
  13071. from = null;
  13072. to = targetInst;
  13073. }
  13074. if (from === to) {
  13075. // Nothing pertains to our managed components.
  13076. return null;
  13077. }
  13078. var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from);
  13079. var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to);
  13080. var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);
  13081. leave.type = 'mouseleave';
  13082. leave.target = fromNode;
  13083. leave.relatedTarget = toNode;
  13084. var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);
  13085. enter.type = 'mouseenter';
  13086. enter.target = toNode;
  13087. enter.relatedTarget = fromNode;
  13088. EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to);
  13089. return [leave, enter];
  13090. }
  13091. };
  13092. module.exports = EnterLeaveEventPlugin;
  13093. /***/ }),
  13094. /* 119 */
  13095. /***/ (function(module, exports, __webpack_require__) {
  13096. "use strict";
  13097. /**
  13098. * Copyright 2013-present, Facebook, Inc.
  13099. * All rights reserved.
  13100. *
  13101. * This source code is licensed under the BSD-style license found in the
  13102. * LICENSE file in the root directory of this source tree. An additional grant
  13103. * of patent rights can be found in the PATENTS file in the same directory.
  13104. *
  13105. */
  13106. var DOMProperty = __webpack_require__(13);
  13107. var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;
  13108. var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;
  13109. var HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE;
  13110. var HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE;
  13111. var HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE;
  13112. var HTMLDOMPropertyConfig = {
  13113. isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')),
  13114. Properties: {
  13115. /**
  13116. * Standard Properties
  13117. */
  13118. accept: 0,
  13119. acceptCharset: 0,
  13120. accessKey: 0,
  13121. action: 0,
  13122. allowFullScreen: HAS_BOOLEAN_VALUE,
  13123. allowTransparency: 0,
  13124. alt: 0,
  13125. // specifies target context for links with `preload` type
  13126. as: 0,
  13127. async: HAS_BOOLEAN_VALUE,
  13128. autoComplete: 0,
  13129. // autoFocus is polyfilled/normalized by AutoFocusUtils
  13130. // autoFocus: HAS_BOOLEAN_VALUE,
  13131. autoPlay: HAS_BOOLEAN_VALUE,
  13132. capture: HAS_BOOLEAN_VALUE,
  13133. cellPadding: 0,
  13134. cellSpacing: 0,
  13135. charSet: 0,
  13136. challenge: 0,
  13137. checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13138. cite: 0,
  13139. classID: 0,
  13140. className: 0,
  13141. cols: HAS_POSITIVE_NUMERIC_VALUE,
  13142. colSpan: 0,
  13143. content: 0,
  13144. contentEditable: 0,
  13145. contextMenu: 0,
  13146. controls: HAS_BOOLEAN_VALUE,
  13147. coords: 0,
  13148. crossOrigin: 0,
  13149. data: 0, // For `<object />` acts as `src`.
  13150. dateTime: 0,
  13151. 'default': HAS_BOOLEAN_VALUE,
  13152. defer: HAS_BOOLEAN_VALUE,
  13153. dir: 0,
  13154. disabled: HAS_BOOLEAN_VALUE,
  13155. download: HAS_OVERLOADED_BOOLEAN_VALUE,
  13156. draggable: 0,
  13157. encType: 0,
  13158. form: 0,
  13159. formAction: 0,
  13160. formEncType: 0,
  13161. formMethod: 0,
  13162. formNoValidate: HAS_BOOLEAN_VALUE,
  13163. formTarget: 0,
  13164. frameBorder: 0,
  13165. headers: 0,
  13166. height: 0,
  13167. hidden: HAS_BOOLEAN_VALUE,
  13168. high: 0,
  13169. href: 0,
  13170. hrefLang: 0,
  13171. htmlFor: 0,
  13172. httpEquiv: 0,
  13173. icon: 0,
  13174. id: 0,
  13175. inputMode: 0,
  13176. integrity: 0,
  13177. is: 0,
  13178. keyParams: 0,
  13179. keyType: 0,
  13180. kind: 0,
  13181. label: 0,
  13182. lang: 0,
  13183. list: 0,
  13184. loop: HAS_BOOLEAN_VALUE,
  13185. low: 0,
  13186. manifest: 0,
  13187. marginHeight: 0,
  13188. marginWidth: 0,
  13189. max: 0,
  13190. maxLength: 0,
  13191. media: 0,
  13192. mediaGroup: 0,
  13193. method: 0,
  13194. min: 0,
  13195. minLength: 0,
  13196. // Caution; `option.selected` is not updated if `select.multiple` is
  13197. // disabled with `removeAttribute`.
  13198. multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13199. muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13200. name: 0,
  13201. nonce: 0,
  13202. noValidate: HAS_BOOLEAN_VALUE,
  13203. open: HAS_BOOLEAN_VALUE,
  13204. optimum: 0,
  13205. pattern: 0,
  13206. placeholder: 0,
  13207. playsInline: HAS_BOOLEAN_VALUE,
  13208. poster: 0,
  13209. preload: 0,
  13210. profile: 0,
  13211. radioGroup: 0,
  13212. readOnly: HAS_BOOLEAN_VALUE,
  13213. referrerPolicy: 0,
  13214. rel: 0,
  13215. required: HAS_BOOLEAN_VALUE,
  13216. reversed: HAS_BOOLEAN_VALUE,
  13217. role: 0,
  13218. rows: HAS_POSITIVE_NUMERIC_VALUE,
  13219. rowSpan: HAS_NUMERIC_VALUE,
  13220. sandbox: 0,
  13221. scope: 0,
  13222. scoped: HAS_BOOLEAN_VALUE,
  13223. scrolling: 0,
  13224. seamless: HAS_BOOLEAN_VALUE,
  13225. selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
  13226. shape: 0,
  13227. size: HAS_POSITIVE_NUMERIC_VALUE,
  13228. sizes: 0,
  13229. span: HAS_POSITIVE_NUMERIC_VALUE,
  13230. spellCheck: 0,
  13231. src: 0,
  13232. srcDoc: 0,
  13233. srcLang: 0,
  13234. srcSet: 0,
  13235. start: HAS_NUMERIC_VALUE,
  13236. step: 0,
  13237. style: 0,
  13238. summary: 0,
  13239. tabIndex: 0,
  13240. target: 0,
  13241. title: 0,
  13242. // Setting .type throws on non-<input> tags
  13243. type: 0,
  13244. useMap: 0,
  13245. value: 0,
  13246. width: 0,
  13247. wmode: 0,
  13248. wrap: 0,
  13249. /**
  13250. * RDFa Properties
  13251. */
  13252. about: 0,
  13253. datatype: 0,
  13254. inlist: 0,
  13255. prefix: 0,
  13256. // property is also supported for OpenGraph in meta tags.
  13257. property: 0,
  13258. resource: 0,
  13259. 'typeof': 0,
  13260. vocab: 0,
  13261. /**
  13262. * Non-standard Properties
  13263. */
  13264. // autoCapitalize and autoCorrect are supported in Mobile Safari for
  13265. // keyboard hints.
  13266. autoCapitalize: 0,
  13267. autoCorrect: 0,
  13268. // autoSave allows WebKit/Blink to persist values of input fields on page reloads
  13269. autoSave: 0,
  13270. // color is for Safari mask-icon link
  13271. color: 0,
  13272. // itemProp, itemScope, itemType are for
  13273. // Microdata support. See http://schema.org/docs/gs.html
  13274. itemProp: 0,
  13275. itemScope: HAS_BOOLEAN_VALUE,
  13276. itemType: 0,
  13277. // itemID and itemRef are for Microdata support as well but
  13278. // only specified in the WHATWG spec document. See
  13279. // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
  13280. itemID: 0,
  13281. itemRef: 0,
  13282. // results show looking glass icon and recent searches on input
  13283. // search fields in WebKit/Blink
  13284. results: 0,
  13285. // IE-only attribute that specifies security restrictions on an iframe
  13286. // as an alternative to the sandbox attribute on IE<10
  13287. security: 0,
  13288. // IE-only attribute that controls focus behavior
  13289. unselectable: 0
  13290. },
  13291. DOMAttributeNames: {
  13292. acceptCharset: 'accept-charset',
  13293. className: 'class',
  13294. htmlFor: 'for',
  13295. httpEquiv: 'http-equiv'
  13296. },
  13297. DOMPropertyNames: {},
  13298. DOMMutationMethods: {
  13299. value: function (node, value) {
  13300. if (value == null) {
  13301. return node.removeAttribute('value');
  13302. }
  13303. // Number inputs get special treatment due to some edge cases in
  13304. // Chrome. Let everything else assign the value attribute as normal.
  13305. // https://github.com/facebook/react/issues/7253#issuecomment-236074326
  13306. if (node.type !== 'number' || node.hasAttribute('value') === false) {
  13307. node.setAttribute('value', '' + value);
  13308. } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) {
  13309. // Don't assign an attribute if validation reports bad
  13310. // input. Chrome will clear the value. Additionally, don't
  13311. // operate on inputs that have focus, otherwise Chrome might
  13312. // strip off trailing decimal places and cause the user's
  13313. // cursor position to jump to the beginning of the input.
  13314. //
  13315. // In ReactDOMInput, we have an onBlur event that will trigger
  13316. // this function again when focus is lost.
  13317. node.setAttribute('value', '' + value);
  13318. }
  13319. }
  13320. }
  13321. };
  13322. module.exports = HTMLDOMPropertyConfig;
  13323. /***/ }),
  13324. /* 120 */
  13325. /***/ (function(module, exports, __webpack_require__) {
  13326. "use strict";
  13327. /**
  13328. * Copyright 2013-present, Facebook, Inc.
  13329. * All rights reserved.
  13330. *
  13331. * This source code is licensed under the BSD-style license found in the
  13332. * LICENSE file in the root directory of this source tree. An additional grant
  13333. * of patent rights can be found in the PATENTS file in the same directory.
  13334. *
  13335. */
  13336. var DOMChildrenOperations = __webpack_require__(40);
  13337. var ReactDOMIDOperations = __webpack_require__(125);
  13338. /**
  13339. * Abstracts away all functionality of the reconciler that requires knowledge of
  13340. * the browser context. TODO: These callers should be refactored to avoid the
  13341. * need for this injection.
  13342. */
  13343. var ReactComponentBrowserEnvironment = {
  13344. processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,
  13345. replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup
  13346. };
  13347. module.exports = ReactComponentBrowserEnvironment;
  13348. /***/ }),
  13349. /* 121 */
  13350. /***/ (function(module, exports, __webpack_require__) {
  13351. "use strict";
  13352. /* WEBPACK VAR INJECTION */(function(process) {/**
  13353. * Copyright 2013-present, Facebook, Inc.
  13354. * All rights reserved.
  13355. *
  13356. * This source code is licensed under the BSD-style license found in the
  13357. * LICENSE file in the root directory of this source tree. An additional grant
  13358. * of patent rights can be found in the PATENTS file in the same directory.
  13359. *
  13360. */
  13361. var _prodInvariant = __webpack_require__(3);
  13362. var DOMLazyTree = __webpack_require__(19);
  13363. var ExecutionEnvironment = __webpack_require__(6);
  13364. var createNodesFromMarkup = __webpack_require__(122);
  13365. var emptyFunction = __webpack_require__(8);
  13366. var invariant = __webpack_require__(1);
  13367. var Danger = {
  13368. /**
  13369. * Replaces a node with a string of markup at its current position within its
  13370. * parent. The markup must render into a single root node.
  13371. *
  13372. * @param {DOMElement} oldChild Child node to replace.
  13373. * @param {string} markup Markup to render in place of the child node.
  13374. * @internal
  13375. */
  13376. dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {
  13377. !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;
  13378. !markup ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;
  13379. !(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;
  13380. if (typeof markup === 'string') {
  13381. var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
  13382. oldChild.parentNode.replaceChild(newChild, oldChild);
  13383. } else {
  13384. DOMLazyTree.replaceChildWithTree(oldChild, markup);
  13385. }
  13386. }
  13387. };
  13388. module.exports = Danger;
  13389. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13390. /***/ }),
  13391. /* 122 */
  13392. /***/ (function(module, exports, __webpack_require__) {
  13393. "use strict";
  13394. /* WEBPACK VAR INJECTION */(function(process) {
  13395. /**
  13396. * Copyright (c) 2013-present, Facebook, Inc.
  13397. *
  13398. * This source code is licensed under the MIT license found in the
  13399. * LICENSE file in the root directory of this source tree.
  13400. *
  13401. * @typechecks
  13402. */
  13403. /*eslint-disable fb-www/unsafe-html*/
  13404. var ExecutionEnvironment = __webpack_require__(6);
  13405. var createArrayFromMixed = __webpack_require__(123);
  13406. var getMarkupWrap = __webpack_require__(124);
  13407. var invariant = __webpack_require__(1);
  13408. /**
  13409. * Dummy container used to render all markup.
  13410. */
  13411. var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
  13412. /**
  13413. * Pattern used by `getNodeName`.
  13414. */
  13415. var nodeNamePattern = /^\s*<(\w+)/;
  13416. /**
  13417. * Extracts the `nodeName` of the first element in a string of markup.
  13418. *
  13419. * @param {string} markup String of markup.
  13420. * @return {?string} Node name of the supplied markup.
  13421. */
  13422. function getNodeName(markup) {
  13423. var nodeNameMatch = markup.match(nodeNamePattern);
  13424. return nodeNameMatch && nodeNameMatch[1].toLowerCase();
  13425. }
  13426. /**
  13427. * Creates an array containing the nodes rendered from the supplied markup. The
  13428. * optionally supplied `handleScript` function will be invoked once for each
  13429. * <script> element that is rendered. If no `handleScript` function is supplied,
  13430. * an exception is thrown if any <script> elements are rendered.
  13431. *
  13432. * @param {string} markup A string of valid HTML markup.
  13433. * @param {?function} handleScript Invoked once for each rendered <script>.
  13434. * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes.
  13435. */
  13436. function createNodesFromMarkup(markup, handleScript) {
  13437. var node = dummyNode;
  13438. !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;
  13439. var nodeName = getNodeName(markup);
  13440. var wrap = nodeName && getMarkupWrap(nodeName);
  13441. if (wrap) {
  13442. node.innerHTML = wrap[1] + markup + wrap[2];
  13443. var wrapDepth = wrap[0];
  13444. while (wrapDepth--) {
  13445. node = node.lastChild;
  13446. }
  13447. } else {
  13448. node.innerHTML = markup;
  13449. }
  13450. var scripts = node.getElementsByTagName('script');
  13451. if (scripts.length) {
  13452. !handleScript ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : void 0;
  13453. createArrayFromMixed(scripts).forEach(handleScript);
  13454. }
  13455. var nodes = Array.from(node.childNodes);
  13456. while (node.lastChild) {
  13457. node.removeChild(node.lastChild);
  13458. }
  13459. return nodes;
  13460. }
  13461. module.exports = createNodesFromMarkup;
  13462. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13463. /***/ }),
  13464. /* 123 */
  13465. /***/ (function(module, exports, __webpack_require__) {
  13466. "use strict";
  13467. /* WEBPACK VAR INJECTION */(function(process) {
  13468. /**
  13469. * Copyright (c) 2013-present, Facebook, Inc.
  13470. *
  13471. * This source code is licensed under the MIT license found in the
  13472. * LICENSE file in the root directory of this source tree.
  13473. *
  13474. * @typechecks
  13475. */
  13476. var invariant = __webpack_require__(1);
  13477. /**
  13478. * Convert array-like objects to arrays.
  13479. *
  13480. * This API assumes the caller knows the contents of the data type. For less
  13481. * well defined inputs use createArrayFromMixed.
  13482. *
  13483. * @param {object|function|filelist} obj
  13484. * @return {array}
  13485. */
  13486. function toArray(obj) {
  13487. var length = obj.length;
  13488. // Some browsers builtin objects can report typeof 'function' (e.g. NodeList
  13489. // in old versions of Safari).
  13490. !(!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;
  13491. !(typeof length === 'number') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;
  13492. !(length === 0 || length - 1 in obj) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;
  13493. !(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;
  13494. // Old IE doesn't give collections access to hasOwnProperty. Assume inputs
  13495. // without method will throw during the slice call and skip straight to the
  13496. // fallback.
  13497. if (obj.hasOwnProperty) {
  13498. try {
  13499. return Array.prototype.slice.call(obj);
  13500. } catch (e) {
  13501. // IE < 9 does not support Array#slice on collections objects
  13502. }
  13503. }
  13504. // Fall back to copying key by key. This assumes all keys have a value,
  13505. // so will not preserve sparsely populated inputs.
  13506. var ret = Array(length);
  13507. for (var ii = 0; ii < length; ii++) {
  13508. ret[ii] = obj[ii];
  13509. }
  13510. return ret;
  13511. }
  13512. /**
  13513. * Perform a heuristic test to determine if an object is "array-like".
  13514. *
  13515. * A monk asked Joshu, a Zen master, "Has a dog Buddha nature?"
  13516. * Joshu replied: "Mu."
  13517. *
  13518. * This function determines if its argument has "array nature": it returns
  13519. * true if the argument is an actual array, an `arguments' object, or an
  13520. * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()).
  13521. *
  13522. * It will return false for other array-like objects like Filelist.
  13523. *
  13524. * @param {*} obj
  13525. * @return {boolean}
  13526. */
  13527. function hasArrayNature(obj) {
  13528. return (
  13529. // not null/false
  13530. !!obj && (
  13531. // arrays are objects, NodeLists are functions in Safari
  13532. typeof obj == 'object' || typeof obj == 'function') &&
  13533. // quacks like an array
  13534. 'length' in obj &&
  13535. // not window
  13536. !('setInterval' in obj) &&
  13537. // no DOM node should be considered an array-like
  13538. // a 'select' element has 'length' and 'item' properties on IE8
  13539. typeof obj.nodeType != 'number' && (
  13540. // a real array
  13541. Array.isArray(obj) ||
  13542. // arguments
  13543. 'callee' in obj ||
  13544. // HTMLCollection/NodeList
  13545. 'item' in obj)
  13546. );
  13547. }
  13548. /**
  13549. * Ensure that the argument is an array by wrapping it in an array if it is not.
  13550. * Creates a copy of the argument if it is already an array.
  13551. *
  13552. * This is mostly useful idiomatically:
  13553. *
  13554. * var createArrayFromMixed = require('createArrayFromMixed');
  13555. *
  13556. * function takesOneOrMoreThings(things) {
  13557. * things = createArrayFromMixed(things);
  13558. * ...
  13559. * }
  13560. *
  13561. * This allows you to treat `things' as an array, but accept scalars in the API.
  13562. *
  13563. * If you need to convert an array-like object, like `arguments`, into an array
  13564. * use toArray instead.
  13565. *
  13566. * @param {*} obj
  13567. * @return {array}
  13568. */
  13569. function createArrayFromMixed(obj) {
  13570. if (!hasArrayNature(obj)) {
  13571. return [obj];
  13572. } else if (Array.isArray(obj)) {
  13573. return obj.slice();
  13574. } else {
  13575. return toArray(obj);
  13576. }
  13577. }
  13578. module.exports = createArrayFromMixed;
  13579. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13580. /***/ }),
  13581. /* 124 */
  13582. /***/ (function(module, exports, __webpack_require__) {
  13583. "use strict";
  13584. /* WEBPACK VAR INJECTION */(function(process) {
  13585. /**
  13586. * Copyright (c) 2013-present, Facebook, Inc.
  13587. *
  13588. * This source code is licensed under the MIT license found in the
  13589. * LICENSE file in the root directory of this source tree.
  13590. *
  13591. */
  13592. /*eslint-disable fb-www/unsafe-html */
  13593. var ExecutionEnvironment = __webpack_require__(6);
  13594. var invariant = __webpack_require__(1);
  13595. /**
  13596. * Dummy container used to detect which wraps are necessary.
  13597. */
  13598. var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
  13599. /**
  13600. * Some browsers cannot use `innerHTML` to render certain elements standalone,
  13601. * so we wrap them, render the wrapped nodes, then extract the desired node.
  13602. *
  13603. * In IE8, certain elements cannot render alone, so wrap all elements ('*').
  13604. */
  13605. var shouldWrap = {};
  13606. var selectWrap = [1, '<select multiple="true">', '</select>'];
  13607. var tableWrap = [1, '<table>', '</table>'];
  13608. var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
  13609. var svgWrap = [1, '<svg xmlns="http://www.w3.org/2000/svg">', '</svg>'];
  13610. var markupWrap = {
  13611. '*': [1, '?<div>', '</div>'],
  13612. 'area': [1, '<map>', '</map>'],
  13613. 'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
  13614. 'legend': [1, '<fieldset>', '</fieldset>'],
  13615. 'param': [1, '<object>', '</object>'],
  13616. 'tr': [2, '<table><tbody>', '</tbody></table>'],
  13617. 'optgroup': selectWrap,
  13618. 'option': selectWrap,
  13619. 'caption': tableWrap,
  13620. 'colgroup': tableWrap,
  13621. 'tbody': tableWrap,
  13622. 'tfoot': tableWrap,
  13623. 'thead': tableWrap,
  13624. 'td': trWrap,
  13625. 'th': trWrap
  13626. };
  13627. // Initialize the SVG elements since we know they'll always need to be wrapped
  13628. // consistently. If they are created inside a <div> they will be initialized in
  13629. // the wrong namespace (and will not display).
  13630. var svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan'];
  13631. svgElements.forEach(function (nodeName) {
  13632. markupWrap[nodeName] = svgWrap;
  13633. shouldWrap[nodeName] = true;
  13634. });
  13635. /**
  13636. * Gets the markup wrap configuration for the supplied `nodeName`.
  13637. *
  13638. * NOTE: This lazily detects which wraps are necessary for the current browser.
  13639. *
  13640. * @param {string} nodeName Lowercase `nodeName`.
  13641. * @return {?array} Markup wrap configuration, if applicable.
  13642. */
  13643. function getMarkupWrap(nodeName) {
  13644. !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : void 0;
  13645. if (!markupWrap.hasOwnProperty(nodeName)) {
  13646. nodeName = '*';
  13647. }
  13648. if (!shouldWrap.hasOwnProperty(nodeName)) {
  13649. if (nodeName === '*') {
  13650. dummyNode.innerHTML = '<link />';
  13651. } else {
  13652. dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>';
  13653. }
  13654. shouldWrap[nodeName] = !dummyNode.firstChild;
  13655. }
  13656. return shouldWrap[nodeName] ? markupWrap[nodeName] : null;
  13657. }
  13658. module.exports = getMarkupWrap;
  13659. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  13660. /***/ }),
  13661. /* 125 */
  13662. /***/ (function(module, exports, __webpack_require__) {
  13663. "use strict";
  13664. /**
  13665. * Copyright 2013-present, Facebook, Inc.
  13666. * All rights reserved.
  13667. *
  13668. * This source code is licensed under the BSD-style license found in the
  13669. * LICENSE file in the root directory of this source tree. An additional grant
  13670. * of patent rights can be found in the PATENTS file in the same directory.
  13671. *
  13672. */
  13673. var DOMChildrenOperations = __webpack_require__(40);
  13674. var ReactDOMComponentTree = __webpack_require__(5);
  13675. /**
  13676. * Operations used to process updates to DOM nodes.
  13677. */
  13678. var ReactDOMIDOperations = {
  13679. /**
  13680. * Updates a component's children by processing a series of updates.
  13681. *
  13682. * @param {array<object>} updates List of update configurations.
  13683. * @internal
  13684. */
  13685. dangerouslyProcessChildrenUpdates: function (parentInst, updates) {
  13686. var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);
  13687. DOMChildrenOperations.processUpdates(node, updates);
  13688. }
  13689. };
  13690. module.exports = ReactDOMIDOperations;
  13691. /***/ }),
  13692. /* 126 */
  13693. /***/ (function(module, exports, __webpack_require__) {
  13694. "use strict";
  13695. /* WEBPACK VAR INJECTION */(function(process) {/**
  13696. * Copyright 2013-present, Facebook, Inc.
  13697. * All rights reserved.
  13698. *
  13699. * This source code is licensed under the BSD-style license found in the
  13700. * LICENSE file in the root directory of this source tree. An additional grant
  13701. * of patent rights can be found in the PATENTS file in the same directory.
  13702. *
  13703. */
  13704. /* global hasOwnProperty:true */
  13705. var _prodInvariant = __webpack_require__(3),
  13706. _assign = __webpack_require__(4);
  13707. var AutoFocusUtils = __webpack_require__(127);
  13708. var CSSPropertyOperations = __webpack_require__(128);
  13709. var DOMLazyTree = __webpack_require__(19);
  13710. var DOMNamespaces = __webpack_require__(41);
  13711. var DOMProperty = __webpack_require__(13);
  13712. var DOMPropertyOperations = __webpack_require__(67);
  13713. var EventPluginHub = __webpack_require__(22);
  13714. var EventPluginRegistry = __webpack_require__(27);
  13715. var ReactBrowserEventEmitter = __webpack_require__(32);
  13716. var ReactDOMComponentFlags = __webpack_require__(56);
  13717. var ReactDOMComponentTree = __webpack_require__(5);
  13718. var ReactDOMInput = __webpack_require__(138);
  13719. var ReactDOMOption = __webpack_require__(142);
  13720. var ReactDOMSelect = __webpack_require__(70);
  13721. var ReactDOMTextarea = __webpack_require__(143);
  13722. var ReactInstrumentation = __webpack_require__(9);
  13723. var ReactMultiChild = __webpack_require__(144);
  13724. var ReactServerRenderingTransaction = __webpack_require__(153);
  13725. var emptyFunction = __webpack_require__(8);
  13726. var escapeTextContentForBrowser = __webpack_require__(31);
  13727. var invariant = __webpack_require__(1);
  13728. var isEventSupported = __webpack_require__(38);
  13729. var shallowEqual = __webpack_require__(45);
  13730. var validateDOMNesting = __webpack_require__(49);
  13731. var warning = __webpack_require__(2);
  13732. var Flags = ReactDOMComponentFlags;
  13733. var deleteListener = EventPluginHub.deleteListener;
  13734. var getNode = ReactDOMComponentTree.getNodeFromInstance;
  13735. var listenTo = ReactBrowserEventEmitter.listenTo;
  13736. var registrationNameModules = EventPluginRegistry.registrationNameModules;
  13737. // For quickly matching children type, to test if can be treated as content.
  13738. var CONTENT_TYPES = { 'string': true, 'number': true };
  13739. var STYLE = 'style';
  13740. var HTML = '__html';
  13741. var RESERVED_PROPS = {
  13742. children: null,
  13743. dangerouslySetInnerHTML: null,
  13744. suppressContentEditableWarning: null
  13745. };
  13746. // Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE).
  13747. var DOC_FRAGMENT_TYPE = 11;
  13748. function getDeclarationErrorAddendum(internalInstance) {
  13749. if (internalInstance) {
  13750. var owner = internalInstance._currentElement._owner || null;
  13751. if (owner) {
  13752. var name = owner.getName();
  13753. if (name) {
  13754. return ' This DOM node was rendered by `' + name + '`.';
  13755. }
  13756. }
  13757. }
  13758. return '';
  13759. }
  13760. function friendlyStringify(obj) {
  13761. if (typeof obj === 'object') {
  13762. if (Array.isArray(obj)) {
  13763. return '[' + obj.map(friendlyStringify).join(', ') + ']';
  13764. } else {
  13765. var pairs = [];
  13766. for (var key in obj) {
  13767. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  13768. var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key);
  13769. pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key]));
  13770. }
  13771. }
  13772. return '{' + pairs.join(', ') + '}';
  13773. }
  13774. } else if (typeof obj === 'string') {
  13775. return JSON.stringify(obj);
  13776. } else if (typeof obj === 'function') {
  13777. return '[function object]';
  13778. }
  13779. // Differs from JSON.stringify in that undefined because undefined and that
  13780. // inf and nan don't become null
  13781. return String(obj);
  13782. }
  13783. var styleMutationWarning = {};
  13784. function checkAndWarnForMutatedStyle(style1, style2, component) {
  13785. if (style1 == null || style2 == null) {
  13786. return;
  13787. }
  13788. if (shallowEqual(style1, style2)) {
  13789. return;
  13790. }
  13791. var componentName = component._tag;
  13792. var owner = component._currentElement._owner;
  13793. var ownerName;
  13794. if (owner) {
  13795. ownerName = owner.getName();
  13796. }
  13797. var hash = ownerName + '|' + componentName;
  13798. if (styleMutationWarning.hasOwnProperty(hash)) {
  13799. return;
  13800. }
  13801. styleMutationWarning[hash] = true;
  13802. 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;
  13803. }
  13804. /**
  13805. * @param {object} component
  13806. * @param {?object} props
  13807. */
  13808. function assertValidProps(component, props) {
  13809. if (!props) {
  13810. return;
  13811. }
  13812. // Note the use of `==` which checks for null or undefined.
  13813. if (voidElementTags[component._tag]) {
  13814. !(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;
  13815. }
  13816. if (props.dangerouslySetInnerHTML != null) {
  13817. !(props.children == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : _prodInvariant('60') : void 0;
  13818. !(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;
  13819. }
  13820. if (process.env.NODE_ENV !== 'production') {
  13821. 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;
  13822. 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;
  13823. 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;
  13824. }
  13825. !(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;
  13826. }
  13827. function enqueuePutListener(inst, registrationName, listener, transaction) {
  13828. if (transaction instanceof ReactServerRenderingTransaction) {
  13829. return;
  13830. }
  13831. if (process.env.NODE_ENV !== 'production') {
  13832. // IE8 has no API for event capturing and the `onScroll` event doesn't
  13833. // bubble.
  13834. process.env.NODE_ENV !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\'t support the `onScroll` event') : void 0;
  13835. }
  13836. var containerInfo = inst._hostContainerInfo;
  13837. var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;
  13838. var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
  13839. listenTo(registrationName, doc);
  13840. transaction.getReactMountReady().enqueue(putListener, {
  13841. inst: inst,
  13842. registrationName: registrationName,
  13843. listener: listener
  13844. });
  13845. }
  13846. function putListener() {
  13847. var listenerToPut = this;
  13848. EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener);
  13849. }
  13850. function inputPostMount() {
  13851. var inst = this;
  13852. ReactDOMInput.postMountWrapper(inst);
  13853. }
  13854. function textareaPostMount() {
  13855. var inst = this;
  13856. ReactDOMTextarea.postMountWrapper(inst);
  13857. }
  13858. function optionPostMount() {
  13859. var inst = this;
  13860. ReactDOMOption.postMountWrapper(inst);
  13861. }
  13862. var setAndValidateContentChildDev = emptyFunction;
  13863. if (process.env.NODE_ENV !== 'production') {
  13864. setAndValidateContentChildDev = function (content) {
  13865. var hasExistingContent = this._contentDebugID != null;
  13866. var debugID = this._debugID;
  13867. // This ID represents the inlined child that has no backing instance:
  13868. var contentDebugID = -debugID;
  13869. if (content == null) {
  13870. if (hasExistingContent) {
  13871. ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID);
  13872. }
  13873. this._contentDebugID = null;
  13874. return;
  13875. }
  13876. validateDOMNesting(null, String(content), this, this._ancestorInfo);
  13877. this._contentDebugID = contentDebugID;
  13878. if (hasExistingContent) {
  13879. ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content);
  13880. ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID);
  13881. } else {
  13882. ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID);
  13883. ReactInstrumentation.debugTool.onMountComponent(contentDebugID);
  13884. ReactInstrumentation.debugTool.onSetChildren(debugID, [contentDebugID]);
  13885. }
  13886. };
  13887. }
  13888. // There are so many media events, it makes sense to just
  13889. // maintain a list rather than create a `trapBubbledEvent` for each
  13890. var mediaEvents = {
  13891. topAbort: 'abort',
  13892. topCanPlay: 'canplay',
  13893. topCanPlayThrough: 'canplaythrough',
  13894. topDurationChange: 'durationchange',
  13895. topEmptied: 'emptied',
  13896. topEncrypted: 'encrypted',
  13897. topEnded: 'ended',
  13898. topError: 'error',
  13899. topLoadedData: 'loadeddata',
  13900. topLoadedMetadata: 'loadedmetadata',
  13901. topLoadStart: 'loadstart',
  13902. topPause: 'pause',
  13903. topPlay: 'play',
  13904. topPlaying: 'playing',
  13905. topProgress: 'progress',
  13906. topRateChange: 'ratechange',
  13907. topSeeked: 'seeked',
  13908. topSeeking: 'seeking',
  13909. topStalled: 'stalled',
  13910. topSuspend: 'suspend',
  13911. topTimeUpdate: 'timeupdate',
  13912. topVolumeChange: 'volumechange',
  13913. topWaiting: 'waiting'
  13914. };
  13915. function trapBubbledEventsLocal() {
  13916. var inst = this;
  13917. // If a component renders to null or if another component fatals and causes
  13918. // the state of the tree to be corrupted, `node` here can be null.
  13919. !inst._rootNodeID ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Must be mounted to trap events') : _prodInvariant('63') : void 0;
  13920. var node = getNode(inst);
  13921. !node ? process.env.NODE_ENV !== 'production' ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : _prodInvariant('64') : void 0;
  13922. switch (inst._tag) {
  13923. case 'iframe':
  13924. case 'object':
  13925. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
  13926. break;
  13927. case 'video':
  13928. case 'audio':
  13929. inst._wrapperState.listeners = [];
  13930. // Create listener for each media event
  13931. for (var event in mediaEvents) {
  13932. if (mediaEvents.hasOwnProperty(event)) {
  13933. inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node));
  13934. }
  13935. }
  13936. break;
  13937. case 'source':
  13938. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)];
  13939. break;
  13940. case 'img':
  13941. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
  13942. break;
  13943. case 'form':
  13944. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)];
  13945. break;
  13946. case 'input':
  13947. case 'select':
  13948. case 'textarea':
  13949. inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)];
  13950. break;
  13951. }
  13952. }
  13953. function postUpdateSelectWrapper() {
  13954. ReactDOMSelect.postUpdateWrapper(this);
  13955. }
  13956. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  13957. // those special-case tags.
  13958. var omittedCloseTags = {
  13959. 'area': true,
  13960. 'base': true,
  13961. 'br': true,
  13962. 'col': true,
  13963. 'embed': true,
  13964. 'hr': true,
  13965. 'img': true,
  13966. 'input': true,
  13967. 'keygen': true,
  13968. 'link': true,
  13969. 'meta': true,
  13970. 'param': true,
  13971. 'source': true,
  13972. 'track': true,
  13973. 'wbr': true
  13974. };
  13975. var newlineEatingTags = {
  13976. 'listing': true,
  13977. 'pre': true,
  13978. 'textarea': true
  13979. };
  13980. // For HTML, certain tags cannot have children. This has the same purpose as
  13981. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  13982. var voidElementTags = _assign({
  13983. 'menuitem': true
  13984. }, omittedCloseTags);
  13985. // We accept any tag to be rendered but since this gets injected into arbitrary
  13986. // HTML, we want to make sure that it's a safe tag.
  13987. // http://www.w3.org/TR/REC-xml/#NT-Name
  13988. var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset
  13989. var validatedTagCache = {};
  13990. var hasOwnProperty = {}.hasOwnProperty;
  13991. function validateDangerousTag(tag) {
  13992. if (!hasOwnProperty.call(validatedTagCache, tag)) {
  13993. !VALID_TAG_REGEX.test(tag) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Invalid tag: %s', tag) : _prodInvariant('65', tag) : void 0;
  13994. validatedTagCache[tag] = true;
  13995. }
  13996. }
  13997. function isCustomComponent(tagName, props) {
  13998. return tagName.indexOf('-') >= 0 || props.is != null;
  13999. }
  14000. var globalIdCounter = 1;
  14001. /**
  14002. * Creates a new React class that is idempotent and capable of containing other
  14003. * React components. It accepts event listeners and DOM properties that are
  14004. * valid according to `DOMProperty`.
  14005. *
  14006. * - Event listeners: `onClick`, `onMouseDown`, etc.
  14007. * - DOM properties: `className`, `name`, `title`, etc.
  14008. *
  14009. * The `style` property functions differently from the DOM API. It accepts an
  14010. * object mapping of style properties to values.
  14011. *
  14012. * @constructor ReactDOMComponent
  14013. * @extends ReactMultiChild
  14014. */
  14015. function ReactDOMComponent(element) {
  14016. var tag = element.type;
  14017. validateDangerousTag(tag);
  14018. this._currentElement = element;
  14019. this._tag = tag.toLowerCase();
  14020. this._namespaceURI = null;
  14021. this._renderedChildren = null;
  14022. this._previousStyle = null;
  14023. this._previousStyleCopy = null;
  14024. this._hostNode = null;
  14025. this._hostParent = null;
  14026. this._rootNodeID = 0;
  14027. this._domID = 0;
  14028. this._hostContainerInfo = null;
  14029. this._wrapperState = null;
  14030. this._topLevelWrapper = null;
  14031. this._flags = 0;
  14032. if (process.env.NODE_ENV !== 'production') {
  14033. this._ancestorInfo = null;
  14034. setAndValidateContentChildDev.call(this, null);
  14035. }
  14036. }
  14037. ReactDOMComponent.displayName = 'ReactDOMComponent';
  14038. ReactDOMComponent.Mixin = {
  14039. /**
  14040. * Generates root tag markup then recurses. This method has side effects and
  14041. * is not idempotent.
  14042. *
  14043. * @internal
  14044. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14045. * @param {?ReactDOMComponent} the parent component instance
  14046. * @param {?object} info about the host container
  14047. * @param {object} context
  14048. * @return {string} The computed markup.
  14049. */
  14050. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  14051. this._rootNodeID = globalIdCounter++;
  14052. this._domID = hostContainerInfo._idCounter++;
  14053. this._hostParent = hostParent;
  14054. this._hostContainerInfo = hostContainerInfo;
  14055. var props = this._currentElement.props;
  14056. switch (this._tag) {
  14057. case 'audio':
  14058. case 'form':
  14059. case 'iframe':
  14060. case 'img':
  14061. case 'link':
  14062. case 'object':
  14063. case 'source':
  14064. case 'video':
  14065. this._wrapperState = {
  14066. listeners: null
  14067. };
  14068. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14069. break;
  14070. case 'input':
  14071. ReactDOMInput.mountWrapper(this, props, hostParent);
  14072. props = ReactDOMInput.getHostProps(this, props);
  14073. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14074. break;
  14075. case 'option':
  14076. ReactDOMOption.mountWrapper(this, props, hostParent);
  14077. props = ReactDOMOption.getHostProps(this, props);
  14078. break;
  14079. case 'select':
  14080. ReactDOMSelect.mountWrapper(this, props, hostParent);
  14081. props = ReactDOMSelect.getHostProps(this, props);
  14082. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14083. break;
  14084. case 'textarea':
  14085. ReactDOMTextarea.mountWrapper(this, props, hostParent);
  14086. props = ReactDOMTextarea.getHostProps(this, props);
  14087. transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
  14088. break;
  14089. }
  14090. assertValidProps(this, props);
  14091. // We create tags in the namespace of their parent container, except HTML
  14092. // tags get no namespace.
  14093. var namespaceURI;
  14094. var parentTag;
  14095. if (hostParent != null) {
  14096. namespaceURI = hostParent._namespaceURI;
  14097. parentTag = hostParent._tag;
  14098. } else if (hostContainerInfo._tag) {
  14099. namespaceURI = hostContainerInfo._namespaceURI;
  14100. parentTag = hostContainerInfo._tag;
  14101. }
  14102. if (namespaceURI == null || namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject') {
  14103. namespaceURI = DOMNamespaces.html;
  14104. }
  14105. if (namespaceURI === DOMNamespaces.html) {
  14106. if (this._tag === 'svg') {
  14107. namespaceURI = DOMNamespaces.svg;
  14108. } else if (this._tag === 'math') {
  14109. namespaceURI = DOMNamespaces.mathml;
  14110. }
  14111. }
  14112. this._namespaceURI = namespaceURI;
  14113. if (process.env.NODE_ENV !== 'production') {
  14114. var parentInfo;
  14115. if (hostParent != null) {
  14116. parentInfo = hostParent._ancestorInfo;
  14117. } else if (hostContainerInfo._tag) {
  14118. parentInfo = hostContainerInfo._ancestorInfo;
  14119. }
  14120. if (parentInfo) {
  14121. // parentInfo should always be present except for the top-level
  14122. // component when server rendering
  14123. validateDOMNesting(this._tag, null, this, parentInfo);
  14124. }
  14125. this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(parentInfo, this._tag, this);
  14126. }
  14127. var mountImage;
  14128. if (transaction.useCreateElement) {
  14129. var ownerDocument = hostContainerInfo._ownerDocument;
  14130. var el;
  14131. if (namespaceURI === DOMNamespaces.html) {
  14132. if (this._tag === 'script') {
  14133. // Create the script via .innerHTML so its "parser-inserted" flag is
  14134. // set to true and it does not execute
  14135. var div = ownerDocument.createElement('div');
  14136. var type = this._currentElement.type;
  14137. div.innerHTML = '<' + type + '></' + type + '>';
  14138. el = div.removeChild(div.firstChild);
  14139. } else if (props.is) {
  14140. el = ownerDocument.createElement(this._currentElement.type, props.is);
  14141. } else {
  14142. // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
  14143. // See discussion in https://github.com/facebook/react/pull/6896
  14144. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  14145. el = ownerDocument.createElement(this._currentElement.type);
  14146. }
  14147. } else {
  14148. el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type);
  14149. }
  14150. ReactDOMComponentTree.precacheNode(this, el);
  14151. this._flags |= Flags.hasCachedChildNodes;
  14152. if (!this._hostParent) {
  14153. DOMPropertyOperations.setAttributeForRoot(el);
  14154. }
  14155. this._updateDOMProperties(null, props, transaction);
  14156. var lazyTree = DOMLazyTree(el);
  14157. this._createInitialChildren(transaction, props, context, lazyTree);
  14158. mountImage = lazyTree;
  14159. } else {
  14160. var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props);
  14161. var tagContent = this._createContentMarkup(transaction, props, context);
  14162. if (!tagContent && omittedCloseTags[this._tag]) {
  14163. mountImage = tagOpen + '/>';
  14164. } else {
  14165. mountImage = tagOpen + '>' + tagContent + '</' + this._currentElement.type + '>';
  14166. }
  14167. }
  14168. switch (this._tag) {
  14169. case 'input':
  14170. transaction.getReactMountReady().enqueue(inputPostMount, this);
  14171. if (props.autoFocus) {
  14172. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14173. }
  14174. break;
  14175. case 'textarea':
  14176. transaction.getReactMountReady().enqueue(textareaPostMount, this);
  14177. if (props.autoFocus) {
  14178. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14179. }
  14180. break;
  14181. case 'select':
  14182. if (props.autoFocus) {
  14183. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14184. }
  14185. break;
  14186. case 'button':
  14187. if (props.autoFocus) {
  14188. transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
  14189. }
  14190. break;
  14191. case 'option':
  14192. transaction.getReactMountReady().enqueue(optionPostMount, this);
  14193. break;
  14194. }
  14195. return mountImage;
  14196. },
  14197. /**
  14198. * Creates markup for the open tag and all attributes.
  14199. *
  14200. * This method has side effects because events get registered.
  14201. *
  14202. * Iterating over object properties is faster than iterating over arrays.
  14203. * @see http://jsperf.com/obj-vs-arr-iteration
  14204. *
  14205. * @private
  14206. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14207. * @param {object} props
  14208. * @return {string} Markup of opening tag.
  14209. */
  14210. _createOpenTagMarkupAndPutListeners: function (transaction, props) {
  14211. var ret = '<' + this._currentElement.type;
  14212. for (var propKey in props) {
  14213. if (!props.hasOwnProperty(propKey)) {
  14214. continue;
  14215. }
  14216. var propValue = props[propKey];
  14217. if (propValue == null) {
  14218. continue;
  14219. }
  14220. if (registrationNameModules.hasOwnProperty(propKey)) {
  14221. if (propValue) {
  14222. enqueuePutListener(this, propKey, propValue, transaction);
  14223. }
  14224. } else {
  14225. if (propKey === STYLE) {
  14226. if (propValue) {
  14227. if (process.env.NODE_ENV !== 'production') {
  14228. // See `_updateDOMProperties`. style block
  14229. this._previousStyle = propValue;
  14230. }
  14231. propValue = this._previousStyleCopy = _assign({}, props.style);
  14232. }
  14233. propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this);
  14234. }
  14235. var markup = null;
  14236. if (this._tag != null && isCustomComponent(this._tag, props)) {
  14237. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14238. markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue);
  14239. }
  14240. } else {
  14241. markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue);
  14242. }
  14243. if (markup) {
  14244. ret += ' ' + markup;
  14245. }
  14246. }
  14247. }
  14248. // For static pages, no need to put React ID and checksum. Saves lots of
  14249. // bytes.
  14250. if (transaction.renderToStaticMarkup) {
  14251. return ret;
  14252. }
  14253. if (!this._hostParent) {
  14254. ret += ' ' + DOMPropertyOperations.createMarkupForRoot();
  14255. }
  14256. ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID);
  14257. return ret;
  14258. },
  14259. /**
  14260. * Creates markup for the content between the tags.
  14261. *
  14262. * @private
  14263. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14264. * @param {object} props
  14265. * @param {object} context
  14266. * @return {string} Content markup.
  14267. */
  14268. _createContentMarkup: function (transaction, props, context) {
  14269. var ret = '';
  14270. // Intentional use of != to avoid catching zero/false.
  14271. var innerHTML = props.dangerouslySetInnerHTML;
  14272. if (innerHTML != null) {
  14273. if (innerHTML.__html != null) {
  14274. ret = innerHTML.__html;
  14275. }
  14276. } else {
  14277. var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
  14278. var childrenToUse = contentToUse != null ? null : props.children;
  14279. if (contentToUse != null) {
  14280. // TODO: Validate that text is allowed as a child of this node
  14281. ret = escapeTextContentForBrowser(contentToUse);
  14282. if (process.env.NODE_ENV !== 'production') {
  14283. setAndValidateContentChildDev.call(this, contentToUse);
  14284. }
  14285. } else if (childrenToUse != null) {
  14286. var mountImages = this.mountChildren(childrenToUse, transaction, context);
  14287. ret = mountImages.join('');
  14288. }
  14289. }
  14290. if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') {
  14291. // text/html ignores the first character in these tags if it's a newline
  14292. // Prefer to break application/xml over text/html (for now) by adding
  14293. // a newline specifically to get eaten by the parser. (Alternately for
  14294. // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first
  14295. // \r is normalized out by HTMLTextAreaElement#value.)
  14296. // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>
  14297. // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>
  14298. // See: <http://www.w3.org/TR/html5/syntax.html#newlines>
  14299. // See: Parsing of "textarea" "listing" and "pre" elements
  14300. // from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>
  14301. return '\n' + ret;
  14302. } else {
  14303. return ret;
  14304. }
  14305. },
  14306. _createInitialChildren: function (transaction, props, context, lazyTree) {
  14307. // Intentional use of != to avoid catching zero/false.
  14308. var innerHTML = props.dangerouslySetInnerHTML;
  14309. if (innerHTML != null) {
  14310. if (innerHTML.__html != null) {
  14311. DOMLazyTree.queueHTML(lazyTree, innerHTML.__html);
  14312. }
  14313. } else {
  14314. var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
  14315. var childrenToUse = contentToUse != null ? null : props.children;
  14316. // TODO: Validate that text is allowed as a child of this node
  14317. if (contentToUse != null) {
  14318. // Avoid setting textContent when the text is empty. In IE11 setting
  14319. // textContent on a text area will cause the placeholder to not
  14320. // show within the textarea until it has been focused and blurred again.
  14321. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  14322. if (contentToUse !== '') {
  14323. if (process.env.NODE_ENV !== 'production') {
  14324. setAndValidateContentChildDev.call(this, contentToUse);
  14325. }
  14326. DOMLazyTree.queueText(lazyTree, contentToUse);
  14327. }
  14328. } else if (childrenToUse != null) {
  14329. var mountImages = this.mountChildren(childrenToUse, transaction, context);
  14330. for (var i = 0; i < mountImages.length; i++) {
  14331. DOMLazyTree.queueChild(lazyTree, mountImages[i]);
  14332. }
  14333. }
  14334. }
  14335. },
  14336. /**
  14337. * Receives a next element and updates the component.
  14338. *
  14339. * @internal
  14340. * @param {ReactElement} nextElement
  14341. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  14342. * @param {object} context
  14343. */
  14344. receiveComponent: function (nextElement, transaction, context) {
  14345. var prevElement = this._currentElement;
  14346. this._currentElement = nextElement;
  14347. this.updateComponent(transaction, prevElement, nextElement, context);
  14348. },
  14349. /**
  14350. * Updates a DOM component after it has already been allocated and
  14351. * attached to the DOM. Reconciles the root DOM node, then recurses.
  14352. *
  14353. * @param {ReactReconcileTransaction} transaction
  14354. * @param {ReactElement} prevElement
  14355. * @param {ReactElement} nextElement
  14356. * @internal
  14357. * @overridable
  14358. */
  14359. updateComponent: function (transaction, prevElement, nextElement, context) {
  14360. var lastProps = prevElement.props;
  14361. var nextProps = this._currentElement.props;
  14362. switch (this._tag) {
  14363. case 'input':
  14364. lastProps = ReactDOMInput.getHostProps(this, lastProps);
  14365. nextProps = ReactDOMInput.getHostProps(this, nextProps);
  14366. break;
  14367. case 'option':
  14368. lastProps = ReactDOMOption.getHostProps(this, lastProps);
  14369. nextProps = ReactDOMOption.getHostProps(this, nextProps);
  14370. break;
  14371. case 'select':
  14372. lastProps = ReactDOMSelect.getHostProps(this, lastProps);
  14373. nextProps = ReactDOMSelect.getHostProps(this, nextProps);
  14374. break;
  14375. case 'textarea':
  14376. lastProps = ReactDOMTextarea.getHostProps(this, lastProps);
  14377. nextProps = ReactDOMTextarea.getHostProps(this, nextProps);
  14378. break;
  14379. }
  14380. assertValidProps(this, nextProps);
  14381. this._updateDOMProperties(lastProps, nextProps, transaction);
  14382. this._updateDOMChildren(lastProps, nextProps, transaction, context);
  14383. switch (this._tag) {
  14384. case 'input':
  14385. // Update the wrapper around inputs *after* updating props. This has to
  14386. // happen after `_updateDOMProperties`. Otherwise HTML5 input validations
  14387. // raise warnings and prevent the new value from being assigned.
  14388. ReactDOMInput.updateWrapper(this);
  14389. break;
  14390. case 'textarea':
  14391. ReactDOMTextarea.updateWrapper(this);
  14392. break;
  14393. case 'select':
  14394. // <select> value update needs to occur after <option> children
  14395. // reconciliation
  14396. transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this);
  14397. break;
  14398. }
  14399. },
  14400. /**
  14401. * Reconciles the properties by detecting differences in property values and
  14402. * updating the DOM as necessary. This function is probably the single most
  14403. * critical path for performance optimization.
  14404. *
  14405. * TODO: Benchmark whether checking for changed values in memory actually
  14406. * improves performance (especially statically positioned elements).
  14407. * TODO: Benchmark the effects of putting this at the top since 99% of props
  14408. * do not change for a given reconciliation.
  14409. * TODO: Benchmark areas that can be improved with caching.
  14410. *
  14411. * @private
  14412. * @param {object} lastProps
  14413. * @param {object} nextProps
  14414. * @param {?DOMElement} node
  14415. */
  14416. _updateDOMProperties: function (lastProps, nextProps, transaction) {
  14417. var propKey;
  14418. var styleName;
  14419. var styleUpdates;
  14420. for (propKey in lastProps) {
  14421. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  14422. continue;
  14423. }
  14424. if (propKey === STYLE) {
  14425. var lastStyle = this._previousStyleCopy;
  14426. for (styleName in lastStyle) {
  14427. if (lastStyle.hasOwnProperty(styleName)) {
  14428. styleUpdates = styleUpdates || {};
  14429. styleUpdates[styleName] = '';
  14430. }
  14431. }
  14432. this._previousStyleCopy = null;
  14433. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  14434. if (lastProps[propKey]) {
  14435. // Only call deleteListener if there was a listener previously or
  14436. // else willDeleteListener gets called when there wasn't actually a
  14437. // listener (e.g., onClick={null})
  14438. deleteListener(this, propKey);
  14439. }
  14440. } else if (isCustomComponent(this._tag, lastProps)) {
  14441. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14442. DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey);
  14443. }
  14444. } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
  14445. DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
  14446. }
  14447. }
  14448. for (propKey in nextProps) {
  14449. var nextProp = nextProps[propKey];
  14450. var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps != null ? lastProps[propKey] : undefined;
  14451. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  14452. continue;
  14453. }
  14454. if (propKey === STYLE) {
  14455. if (nextProp) {
  14456. if (process.env.NODE_ENV !== 'production') {
  14457. checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this);
  14458. this._previousStyle = nextProp;
  14459. }
  14460. nextProp = this._previousStyleCopy = _assign({}, nextProp);
  14461. } else {
  14462. this._previousStyleCopy = null;
  14463. }
  14464. if (lastProp) {
  14465. // Unset styles on `lastProp` but not on `nextProp`.
  14466. for (styleName in lastProp) {
  14467. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  14468. styleUpdates = styleUpdates || {};
  14469. styleUpdates[styleName] = '';
  14470. }
  14471. }
  14472. // Update styles that changed since `lastProp`.
  14473. for (styleName in nextProp) {
  14474. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  14475. styleUpdates = styleUpdates || {};
  14476. styleUpdates[styleName] = nextProp[styleName];
  14477. }
  14478. }
  14479. } else {
  14480. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  14481. styleUpdates = nextProp;
  14482. }
  14483. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  14484. if (nextProp) {
  14485. enqueuePutListener(this, propKey, nextProp, transaction);
  14486. } else if (lastProp) {
  14487. deleteListener(this, propKey);
  14488. }
  14489. } else if (isCustomComponent(this._tag, nextProps)) {
  14490. if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
  14491. DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp);
  14492. }
  14493. } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
  14494. var node = getNode(this);
  14495. // If we're updating to null or undefined, we should remove the property
  14496. // from the DOM node instead of inadvertently setting to a string. This
  14497. // brings us in line with the same behavior we have on initial render.
  14498. if (nextProp != null) {
  14499. DOMPropertyOperations.setValueForProperty(node, propKey, nextProp);
  14500. } else {
  14501. DOMPropertyOperations.deleteValueForProperty(node, propKey);
  14502. }
  14503. }
  14504. }
  14505. if (styleUpdates) {
  14506. CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this);
  14507. }
  14508. },
  14509. /**
  14510. * Reconciles the children with the various properties that affect the
  14511. * children content.
  14512. *
  14513. * @param {object} lastProps
  14514. * @param {object} nextProps
  14515. * @param {ReactReconcileTransaction} transaction
  14516. * @param {object} context
  14517. */
  14518. _updateDOMChildren: function (lastProps, nextProps, transaction, context) {
  14519. var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null;
  14520. var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null;
  14521. var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html;
  14522. var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html;
  14523. // Note the use of `!=` which checks for null or undefined.
  14524. var lastChildren = lastContent != null ? null : lastProps.children;
  14525. var nextChildren = nextContent != null ? null : nextProps.children;
  14526. // If we're switching from children to content/html or vice versa, remove
  14527. // the old content
  14528. var lastHasContentOrHtml = lastContent != null || lastHtml != null;
  14529. var nextHasContentOrHtml = nextContent != null || nextHtml != null;
  14530. if (lastChildren != null && nextChildren == null) {
  14531. this.updateChildren(null, transaction, context);
  14532. } else if (lastHasContentOrHtml && !nextHasContentOrHtml) {
  14533. this.updateTextContent('');
  14534. if (process.env.NODE_ENV !== 'production') {
  14535. ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
  14536. }
  14537. }
  14538. if (nextContent != null) {
  14539. if (lastContent !== nextContent) {
  14540. this.updateTextContent('' + nextContent);
  14541. if (process.env.NODE_ENV !== 'production') {
  14542. setAndValidateContentChildDev.call(this, nextContent);
  14543. }
  14544. }
  14545. } else if (nextHtml != null) {
  14546. if (lastHtml !== nextHtml) {
  14547. this.updateMarkup('' + nextHtml);
  14548. }
  14549. if (process.env.NODE_ENV !== 'production') {
  14550. ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
  14551. }
  14552. } else if (nextChildren != null) {
  14553. if (process.env.NODE_ENV !== 'production') {
  14554. setAndValidateContentChildDev.call(this, null);
  14555. }
  14556. this.updateChildren(nextChildren, transaction, context);
  14557. }
  14558. },
  14559. getHostNode: function () {
  14560. return getNode(this);
  14561. },
  14562. /**
  14563. * Destroys all event registrations for this instance. Does not remove from
  14564. * the DOM. That must be done by the parent.
  14565. *
  14566. * @internal
  14567. */
  14568. unmountComponent: function (safely) {
  14569. switch (this._tag) {
  14570. case 'audio':
  14571. case 'form':
  14572. case 'iframe':
  14573. case 'img':
  14574. case 'link':
  14575. case 'object':
  14576. case 'source':
  14577. case 'video':
  14578. var listeners = this._wrapperState.listeners;
  14579. if (listeners) {
  14580. for (var i = 0; i < listeners.length; i++) {
  14581. listeners[i].remove();
  14582. }
  14583. }
  14584. break;
  14585. case 'html':
  14586. case 'head':
  14587. case 'body':
  14588. /**
  14589. * Components like <html> <head> and <body> can't be removed or added
  14590. * easily in a cross-browser way, however it's valuable to be able to
  14591. * take advantage of React's reconciliation for styling and <title>
  14592. * management. So we just document it and throw in dangerous cases.
  14593. */
  14594. 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;
  14595. break;
  14596. }
  14597. this.unmountChildren(safely);
  14598. ReactDOMComponentTree.uncacheNode(this);
  14599. EventPluginHub.deleteAllListeners(this);
  14600. this._rootNodeID = 0;
  14601. this._domID = 0;
  14602. this._wrapperState = null;
  14603. if (process.env.NODE_ENV !== 'production') {
  14604. setAndValidateContentChildDev.call(this, null);
  14605. }
  14606. },
  14607. getPublicInstance: function () {
  14608. return getNode(this);
  14609. }
  14610. };
  14611. _assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin);
  14612. module.exports = ReactDOMComponent;
  14613. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14614. /***/ }),
  14615. /* 127 */
  14616. /***/ (function(module, exports, __webpack_require__) {
  14617. "use strict";
  14618. /**
  14619. * Copyright 2013-present, Facebook, Inc.
  14620. * All rights reserved.
  14621. *
  14622. * This source code is licensed under the BSD-style license found in the
  14623. * LICENSE file in the root directory of this source tree. An additional grant
  14624. * of patent rights can be found in the PATENTS file in the same directory.
  14625. *
  14626. */
  14627. var ReactDOMComponentTree = __webpack_require__(5);
  14628. var focusNode = __webpack_require__(65);
  14629. var AutoFocusUtils = {
  14630. focusDOMComponent: function () {
  14631. focusNode(ReactDOMComponentTree.getNodeFromInstance(this));
  14632. }
  14633. };
  14634. module.exports = AutoFocusUtils;
  14635. /***/ }),
  14636. /* 128 */
  14637. /***/ (function(module, exports, __webpack_require__) {
  14638. "use strict";
  14639. /* WEBPACK VAR INJECTION */(function(process) {/**
  14640. * Copyright 2013-present, Facebook, Inc.
  14641. * All rights reserved.
  14642. *
  14643. * This source code is licensed under the BSD-style license found in the
  14644. * LICENSE file in the root directory of this source tree. An additional grant
  14645. * of patent rights can be found in the PATENTS file in the same directory.
  14646. *
  14647. */
  14648. var CSSProperty = __webpack_require__(66);
  14649. var ExecutionEnvironment = __webpack_require__(6);
  14650. var ReactInstrumentation = __webpack_require__(9);
  14651. var camelizeStyleName = __webpack_require__(129);
  14652. var dangerousStyleValue = __webpack_require__(131);
  14653. var hyphenateStyleName = __webpack_require__(132);
  14654. var memoizeStringOnly = __webpack_require__(134);
  14655. var warning = __webpack_require__(2);
  14656. var processStyleName = memoizeStringOnly(function (styleName) {
  14657. return hyphenateStyleName(styleName);
  14658. });
  14659. var hasShorthandPropertyBug = false;
  14660. var styleFloatAccessor = 'cssFloat';
  14661. if (ExecutionEnvironment.canUseDOM) {
  14662. var tempStyle = document.createElement('div').style;
  14663. try {
  14664. // IE8 throws "Invalid argument." if resetting shorthand style properties.
  14665. tempStyle.font = '';
  14666. } catch (e) {
  14667. hasShorthandPropertyBug = true;
  14668. }
  14669. // IE8 only supports accessing cssFloat (standard) as styleFloat
  14670. if (document.documentElement.style.cssFloat === undefined) {
  14671. styleFloatAccessor = 'styleFloat';
  14672. }
  14673. }
  14674. if (process.env.NODE_ENV !== 'production') {
  14675. // 'msTransform' is correct, but the other prefixes should be capitalized
  14676. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  14677. // style values shouldn't contain a semicolon
  14678. var badStyleValueWithSemicolonPattern = /;\s*$/;
  14679. var warnedStyleNames = {};
  14680. var warnedStyleValues = {};
  14681. var warnedForNaNValue = false;
  14682. var warnHyphenatedStyleName = function (name, owner) {
  14683. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14684. return;
  14685. }
  14686. warnedStyleNames[name] = true;
  14687. process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0;
  14688. };
  14689. var warnBadVendoredStyleName = function (name, owner) {
  14690. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  14691. return;
  14692. }
  14693. warnedStyleNames[name] = true;
  14694. 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;
  14695. };
  14696. var warnStyleValueWithSemicolon = function (name, value, owner) {
  14697. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  14698. return;
  14699. }
  14700. warnedStyleValues[value] = true;
  14701. 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;
  14702. };
  14703. var warnStyleValueIsNaN = function (name, value, owner) {
  14704. if (warnedForNaNValue) {
  14705. return;
  14706. }
  14707. warnedForNaNValue = true;
  14708. process.env.NODE_ENV !== 'production' ? warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;
  14709. };
  14710. var checkRenderMessage = function (owner) {
  14711. if (owner) {
  14712. var name = owner.getName();
  14713. if (name) {
  14714. return ' Check the render method of `' + name + '`.';
  14715. }
  14716. }
  14717. return '';
  14718. };
  14719. /**
  14720. * @param {string} name
  14721. * @param {*} value
  14722. * @param {ReactDOMComponent} component
  14723. */
  14724. var warnValidStyle = function (name, value, component) {
  14725. var owner;
  14726. if (component) {
  14727. owner = component._currentElement._owner;
  14728. }
  14729. if (name.indexOf('-') > -1) {
  14730. warnHyphenatedStyleName(name, owner);
  14731. } else if (badVendoredStyleNamePattern.test(name)) {
  14732. warnBadVendoredStyleName(name, owner);
  14733. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  14734. warnStyleValueWithSemicolon(name, value, owner);
  14735. }
  14736. if (typeof value === 'number' && isNaN(value)) {
  14737. warnStyleValueIsNaN(name, value, owner);
  14738. }
  14739. };
  14740. }
  14741. /**
  14742. * Operations for dealing with CSS properties.
  14743. */
  14744. var CSSPropertyOperations = {
  14745. /**
  14746. * Serializes a mapping of style properties for use as inline styles:
  14747. *
  14748. * > createMarkupForStyles({width: '200px', height: 0})
  14749. * "width:200px;height:0;"
  14750. *
  14751. * Undefined values are ignored so that declarative programming is easier.
  14752. * The result should be HTML-escaped before insertion into the DOM.
  14753. *
  14754. * @param {object} styles
  14755. * @param {ReactDOMComponent} component
  14756. * @return {?string}
  14757. */
  14758. createMarkupForStyles: function (styles, component) {
  14759. var serialized = '';
  14760. for (var styleName in styles) {
  14761. if (!styles.hasOwnProperty(styleName)) {
  14762. continue;
  14763. }
  14764. var styleValue = styles[styleName];
  14765. if (process.env.NODE_ENV !== 'production') {
  14766. warnValidStyle(styleName, styleValue, component);
  14767. }
  14768. if (styleValue != null) {
  14769. serialized += processStyleName(styleName) + ':';
  14770. serialized += dangerousStyleValue(styleName, styleValue, component) + ';';
  14771. }
  14772. }
  14773. return serialized || null;
  14774. },
  14775. /**
  14776. * Sets the value for multiple styles on a node. If a value is specified as
  14777. * '' (empty string), the corresponding style property will be unset.
  14778. *
  14779. * @param {DOMElement} node
  14780. * @param {object} styles
  14781. * @param {ReactDOMComponent} component
  14782. */
  14783. setValueForStyles: function (node, styles, component) {
  14784. if (process.env.NODE_ENV !== 'production') {
  14785. ReactInstrumentation.debugTool.onHostOperation({
  14786. instanceID: component._debugID,
  14787. type: 'update styles',
  14788. payload: styles
  14789. });
  14790. }
  14791. var style = node.style;
  14792. for (var styleName in styles) {
  14793. if (!styles.hasOwnProperty(styleName)) {
  14794. continue;
  14795. }
  14796. if (process.env.NODE_ENV !== 'production') {
  14797. warnValidStyle(styleName, styles[styleName], component);
  14798. }
  14799. var styleValue = dangerousStyleValue(styleName, styles[styleName], component);
  14800. if (styleName === 'float' || styleName === 'cssFloat') {
  14801. styleName = styleFloatAccessor;
  14802. }
  14803. if (styleValue) {
  14804. style[styleName] = styleValue;
  14805. } else {
  14806. var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName];
  14807. if (expansion) {
  14808. // Shorthand property that IE8 won't like unsetting, so unset each
  14809. // component to placate it
  14810. for (var individualStyleName in expansion) {
  14811. style[individualStyleName] = '';
  14812. }
  14813. } else {
  14814. style[styleName] = '';
  14815. }
  14816. }
  14817. }
  14818. }
  14819. };
  14820. module.exports = CSSPropertyOperations;
  14821. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14822. /***/ }),
  14823. /* 129 */
  14824. /***/ (function(module, exports, __webpack_require__) {
  14825. "use strict";
  14826. /**
  14827. * Copyright (c) 2013-present, Facebook, Inc.
  14828. *
  14829. * This source code is licensed under the MIT license found in the
  14830. * LICENSE file in the root directory of this source tree.
  14831. *
  14832. * @typechecks
  14833. */
  14834. var camelize = __webpack_require__(130);
  14835. var msPattern = /^-ms-/;
  14836. /**
  14837. * Camelcases a hyphenated CSS property name, for example:
  14838. *
  14839. * > camelizeStyleName('background-color')
  14840. * < "backgroundColor"
  14841. * > camelizeStyleName('-moz-transition')
  14842. * < "MozTransition"
  14843. * > camelizeStyleName('-ms-transition')
  14844. * < "msTransition"
  14845. *
  14846. * As Andi Smith suggests
  14847. * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  14848. * is converted to lowercase `ms`.
  14849. *
  14850. * @param {string} string
  14851. * @return {string}
  14852. */
  14853. function camelizeStyleName(string) {
  14854. return camelize(string.replace(msPattern, 'ms-'));
  14855. }
  14856. module.exports = camelizeStyleName;
  14857. /***/ }),
  14858. /* 130 */
  14859. /***/ (function(module, exports, __webpack_require__) {
  14860. "use strict";
  14861. /**
  14862. * Copyright (c) 2013-present, Facebook, Inc.
  14863. *
  14864. * This source code is licensed under the MIT license found in the
  14865. * LICENSE file in the root directory of this source tree.
  14866. *
  14867. * @typechecks
  14868. */
  14869. var _hyphenPattern = /-(.)/g;
  14870. /**
  14871. * Camelcases a hyphenated string, for example:
  14872. *
  14873. * > camelize('background-color')
  14874. * < "backgroundColor"
  14875. *
  14876. * @param {string} string
  14877. * @return {string}
  14878. */
  14879. function camelize(string) {
  14880. return string.replace(_hyphenPattern, function (_, character) {
  14881. return character.toUpperCase();
  14882. });
  14883. }
  14884. module.exports = camelize;
  14885. /***/ }),
  14886. /* 131 */
  14887. /***/ (function(module, exports, __webpack_require__) {
  14888. "use strict";
  14889. /* WEBPACK VAR INJECTION */(function(process) {/**
  14890. * Copyright 2013-present, Facebook, Inc.
  14891. * All rights reserved.
  14892. *
  14893. * This source code is licensed under the BSD-style license found in the
  14894. * LICENSE file in the root directory of this source tree. An additional grant
  14895. * of patent rights can be found in the PATENTS file in the same directory.
  14896. *
  14897. */
  14898. var CSSProperty = __webpack_require__(66);
  14899. var warning = __webpack_require__(2);
  14900. var isUnitlessNumber = CSSProperty.isUnitlessNumber;
  14901. var styleWarnings = {};
  14902. /**
  14903. * Convert a value into the proper css writable value. The style name `name`
  14904. * should be logical (no hyphens), as specified
  14905. * in `CSSProperty.isUnitlessNumber`.
  14906. *
  14907. * @param {string} name CSS property name such as `topMargin`.
  14908. * @param {*} value CSS property value such as `10px`.
  14909. * @param {ReactDOMComponent} component
  14910. * @return {string} Normalized style value with dimensions applied.
  14911. */
  14912. function dangerousStyleValue(name, value, component) {
  14913. // Note that we've removed escapeTextForBrowser() calls here since the
  14914. // whole string will be escaped when the attribute is injected into
  14915. // the markup. If you provide unsafe user data here they can inject
  14916. // arbitrary CSS which may be problematic (I couldn't repro this):
  14917. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  14918. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  14919. // This is not an XSS hole but instead a potential CSS injection issue
  14920. // which has lead to a greater discussion about how we're going to
  14921. // trust URLs moving forward. See #2115901
  14922. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  14923. if (isEmpty) {
  14924. return '';
  14925. }
  14926. var isNonNumeric = isNaN(value);
  14927. if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
  14928. return '' + value; // cast to string
  14929. }
  14930. if (typeof value === 'string') {
  14931. if (process.env.NODE_ENV !== 'production') {
  14932. // Allow '0' to pass through without warning. 0 is already special and
  14933. // doesn't require units, so we don't need to warn about it.
  14934. if (component && value !== '0') {
  14935. var owner = component._currentElement._owner;
  14936. var ownerName = owner ? owner.getName() : null;
  14937. if (ownerName && !styleWarnings[ownerName]) {
  14938. styleWarnings[ownerName] = {};
  14939. }
  14940. var warned = false;
  14941. if (ownerName) {
  14942. var warnings = styleWarnings[ownerName];
  14943. warned = warnings[name];
  14944. if (!warned) {
  14945. warnings[name] = true;
  14946. }
  14947. }
  14948. if (!warned) {
  14949. 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;
  14950. }
  14951. }
  14952. }
  14953. value = value.trim();
  14954. }
  14955. return value + 'px';
  14956. }
  14957. module.exports = dangerousStyleValue;
  14958. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  14959. /***/ }),
  14960. /* 132 */
  14961. /***/ (function(module, exports, __webpack_require__) {
  14962. "use strict";
  14963. /**
  14964. * Copyright (c) 2013-present, Facebook, Inc.
  14965. *
  14966. * This source code is licensed under the MIT license found in the
  14967. * LICENSE file in the root directory of this source tree.
  14968. *
  14969. * @typechecks
  14970. */
  14971. var hyphenate = __webpack_require__(133);
  14972. var msPattern = /^ms-/;
  14973. /**
  14974. * Hyphenates a camelcased CSS property name, for example:
  14975. *
  14976. * > hyphenateStyleName('backgroundColor')
  14977. * < "background-color"
  14978. * > hyphenateStyleName('MozTransition')
  14979. * < "-moz-transition"
  14980. * > hyphenateStyleName('msTransition')
  14981. * < "-ms-transition"
  14982. *
  14983. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  14984. * is converted to `-ms-`.
  14985. *
  14986. * @param {string} string
  14987. * @return {string}
  14988. */
  14989. function hyphenateStyleName(string) {
  14990. return hyphenate(string).replace(msPattern, '-ms-');
  14991. }
  14992. module.exports = hyphenateStyleName;
  14993. /***/ }),
  14994. /* 133 */
  14995. /***/ (function(module, exports, __webpack_require__) {
  14996. "use strict";
  14997. /**
  14998. * Copyright (c) 2013-present, Facebook, Inc.
  14999. *
  15000. * This source code is licensed under the MIT license found in the
  15001. * LICENSE file in the root directory of this source tree.
  15002. *
  15003. * @typechecks
  15004. */
  15005. var _uppercasePattern = /([A-Z])/g;
  15006. /**
  15007. * Hyphenates a camelcased string, for example:
  15008. *
  15009. * > hyphenate('backgroundColor')
  15010. * < "background-color"
  15011. *
  15012. * For CSS style names, use `hyphenateStyleName` instead which works properly
  15013. * with all vendor prefixes, including `ms`.
  15014. *
  15015. * @param {string} string
  15016. * @return {string}
  15017. */
  15018. function hyphenate(string) {
  15019. return string.replace(_uppercasePattern, '-$1').toLowerCase();
  15020. }
  15021. module.exports = hyphenate;
  15022. /***/ }),
  15023. /* 134 */
  15024. /***/ (function(module, exports, __webpack_require__) {
  15025. "use strict";
  15026. /**
  15027. * Copyright (c) 2013-present, Facebook, Inc.
  15028. *
  15029. * This source code is licensed under the MIT license found in the
  15030. * LICENSE file in the root directory of this source tree.
  15031. *
  15032. *
  15033. * @typechecks static-only
  15034. */
  15035. /**
  15036. * Memoizes the return value of a function that accepts one string argument.
  15037. */
  15038. function memoizeStringOnly(callback) {
  15039. var cache = {};
  15040. return function (string) {
  15041. if (!cache.hasOwnProperty(string)) {
  15042. cache[string] = callback.call(this, string);
  15043. }
  15044. return cache[string];
  15045. };
  15046. }
  15047. module.exports = memoizeStringOnly;
  15048. /***/ }),
  15049. /* 135 */
  15050. /***/ (function(module, exports, __webpack_require__) {
  15051. "use strict";
  15052. /**
  15053. * Copyright 2013-present, Facebook, Inc.
  15054. * All rights reserved.
  15055. *
  15056. * This source code is licensed under the BSD-style license found in the
  15057. * LICENSE file in the root directory of this source tree. An additional grant
  15058. * of patent rights can be found in the PATENTS file in the same directory.
  15059. *
  15060. */
  15061. var escapeTextContentForBrowser = __webpack_require__(31);
  15062. /**
  15063. * Escapes attribute value to prevent scripting attacks.
  15064. *
  15065. * @param {*} value Value to escape.
  15066. * @return {string} An escaped string.
  15067. */
  15068. function quoteAttributeValueForBrowser(value) {
  15069. return '"' + escapeTextContentForBrowser(value) + '"';
  15070. }
  15071. module.exports = quoteAttributeValueForBrowser;
  15072. /***/ }),
  15073. /* 136 */
  15074. /***/ (function(module, exports, __webpack_require__) {
  15075. "use strict";
  15076. /**
  15077. * Copyright 2013-present, Facebook, Inc.
  15078. * All rights reserved.
  15079. *
  15080. * This source code is licensed under the BSD-style license found in the
  15081. * LICENSE file in the root directory of this source tree. An additional grant
  15082. * of patent rights can be found in the PATENTS file in the same directory.
  15083. *
  15084. */
  15085. var EventPluginHub = __webpack_require__(22);
  15086. function runEventQueueInBatch(events) {
  15087. EventPluginHub.enqueueEvents(events);
  15088. EventPluginHub.processEventQueue(false);
  15089. }
  15090. var ReactEventEmitterMixin = {
  15091. /**
  15092. * Streams a fired top-level event to `EventPluginHub` where plugins have the
  15093. * opportunity to create `ReactEvent`s to be dispatched.
  15094. */
  15095. handleTopLevel: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  15096. var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  15097. runEventQueueInBatch(events);
  15098. }
  15099. };
  15100. module.exports = ReactEventEmitterMixin;
  15101. /***/ }),
  15102. /* 137 */
  15103. /***/ (function(module, exports, __webpack_require__) {
  15104. "use strict";
  15105. /**
  15106. * Copyright 2013-present, Facebook, Inc.
  15107. * All rights reserved.
  15108. *
  15109. * This source code is licensed under the BSD-style license found in the
  15110. * LICENSE file in the root directory of this source tree. An additional grant
  15111. * of patent rights can be found in the PATENTS file in the same directory.
  15112. *
  15113. */
  15114. var ExecutionEnvironment = __webpack_require__(6);
  15115. /**
  15116. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  15117. *
  15118. * @param {string} styleProp
  15119. * @param {string} eventName
  15120. * @returns {object}
  15121. */
  15122. function makePrefixMap(styleProp, eventName) {
  15123. var prefixes = {};
  15124. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  15125. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  15126. prefixes['Moz' + styleProp] = 'moz' + eventName;
  15127. prefixes['ms' + styleProp] = 'MS' + eventName;
  15128. prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();
  15129. return prefixes;
  15130. }
  15131. /**
  15132. * A list of event names to a configurable list of vendor prefixes.
  15133. */
  15134. var vendorPrefixes = {
  15135. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  15136. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  15137. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  15138. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  15139. };
  15140. /**
  15141. * Event names that have already been detected and prefixed (if applicable).
  15142. */
  15143. var prefixedEventNames = {};
  15144. /**
  15145. * Element to check for prefixes on.
  15146. */
  15147. var style = {};
  15148. /**
  15149. * Bootstrap if a DOM exists.
  15150. */
  15151. if (ExecutionEnvironment.canUseDOM) {
  15152. style = document.createElement('div').style;
  15153. // On some platforms, in particular some releases of Android 4.x,
  15154. // the un-prefixed "animation" and "transition" properties are defined on the
  15155. // style object but the events that fire will still be prefixed, so we need
  15156. // to check if the un-prefixed events are usable, and if not remove them from the map.
  15157. if (!('AnimationEvent' in window)) {
  15158. delete vendorPrefixes.animationend.animation;
  15159. delete vendorPrefixes.animationiteration.animation;
  15160. delete vendorPrefixes.animationstart.animation;
  15161. }
  15162. // Same as above
  15163. if (!('TransitionEvent' in window)) {
  15164. delete vendorPrefixes.transitionend.transition;
  15165. }
  15166. }
  15167. /**
  15168. * Attempts to determine the correct vendor prefixed event name.
  15169. *
  15170. * @param {string} eventName
  15171. * @returns {string}
  15172. */
  15173. function getVendorPrefixedEventName(eventName) {
  15174. if (prefixedEventNames[eventName]) {
  15175. return prefixedEventNames[eventName];
  15176. } else if (!vendorPrefixes[eventName]) {
  15177. return eventName;
  15178. }
  15179. var prefixMap = vendorPrefixes[eventName];
  15180. for (var styleProp in prefixMap) {
  15181. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  15182. return prefixedEventNames[eventName] = prefixMap[styleProp];
  15183. }
  15184. }
  15185. return '';
  15186. }
  15187. module.exports = getVendorPrefixedEventName;
  15188. /***/ }),
  15189. /* 138 */
  15190. /***/ (function(module, exports, __webpack_require__) {
  15191. "use strict";
  15192. /* WEBPACK VAR INJECTION */(function(process) {/**
  15193. * Copyright 2013-present, Facebook, Inc.
  15194. * All rights reserved.
  15195. *
  15196. * This source code is licensed under the BSD-style license found in the
  15197. * LICENSE file in the root directory of this source tree. An additional grant
  15198. * of patent rights can be found in the PATENTS file in the same directory.
  15199. *
  15200. */
  15201. var _prodInvariant = __webpack_require__(3),
  15202. _assign = __webpack_require__(4);
  15203. var DOMPropertyOperations = __webpack_require__(67);
  15204. var LinkedValueUtils = __webpack_require__(43);
  15205. var ReactDOMComponentTree = __webpack_require__(5);
  15206. var ReactUpdates = __webpack_require__(11);
  15207. var invariant = __webpack_require__(1);
  15208. var warning = __webpack_require__(2);
  15209. var didWarnValueLink = false;
  15210. var didWarnCheckedLink = false;
  15211. var didWarnValueDefaultValue = false;
  15212. var didWarnCheckedDefaultChecked = false;
  15213. var didWarnControlledToUncontrolled = false;
  15214. var didWarnUncontrolledToControlled = false;
  15215. function forceUpdateIfMounted() {
  15216. if (this._rootNodeID) {
  15217. // DOM component is still mounted; update
  15218. ReactDOMInput.updateWrapper(this);
  15219. }
  15220. }
  15221. function isControlled(props) {
  15222. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  15223. return usesChecked ? props.checked != null : props.value != null;
  15224. }
  15225. /**
  15226. * Implements an <input> host component that allows setting these optional
  15227. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  15228. *
  15229. * If `checked` or `value` are not supplied (or null/undefined), user actions
  15230. * that affect the checked state or value will trigger updates to the element.
  15231. *
  15232. * If they are supplied (and not null/undefined), the rendered element will not
  15233. * trigger updates to the element. Instead, the props must change in order for
  15234. * the rendered element to be updated.
  15235. *
  15236. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  15237. * with an empty value (or `defaultValue`).
  15238. *
  15239. * @see http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  15240. */
  15241. var ReactDOMInput = {
  15242. getHostProps: function (inst, props) {
  15243. var value = LinkedValueUtils.getValue(props);
  15244. var checked = LinkedValueUtils.getChecked(props);
  15245. var hostProps = _assign({
  15246. // Make sure we set .type before any other properties (setting .value
  15247. // before .type means .value is lost in IE11 and below)
  15248. type: undefined,
  15249. // Make sure we set .step before .value (setting .value before .step
  15250. // means .value is rounded on mount, based upon step precision)
  15251. step: undefined,
  15252. // Make sure we set .min & .max before .value (to ensure proper order
  15253. // in corner cases such as min or max deriving from value, e.g. Issue #7170)
  15254. min: undefined,
  15255. max: undefined
  15256. }, props, {
  15257. defaultChecked: undefined,
  15258. defaultValue: undefined,
  15259. value: value != null ? value : inst._wrapperState.initialValue,
  15260. checked: checked != null ? checked : inst._wrapperState.initialChecked,
  15261. onChange: inst._wrapperState.onChange
  15262. });
  15263. return hostProps;
  15264. },
  15265. mountWrapper: function (inst, props) {
  15266. if (process.env.NODE_ENV !== 'production') {
  15267. LinkedValueUtils.checkPropTypes('input', props, inst._currentElement._owner);
  15268. var owner = inst._currentElement._owner;
  15269. if (props.valueLink !== undefined && !didWarnValueLink) {
  15270. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;
  15271. didWarnValueLink = true;
  15272. }
  15273. if (props.checkedLink !== undefined && !didWarnCheckedLink) {
  15274. process.env.NODE_ENV !== 'production' ? warning(false, '`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0;
  15275. didWarnCheckedLink = true;
  15276. }
  15277. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  15278. 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;
  15279. didWarnCheckedDefaultChecked = true;
  15280. }
  15281. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  15282. 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;
  15283. didWarnValueDefaultValue = true;
  15284. }
  15285. }
  15286. var defaultValue = props.defaultValue;
  15287. inst._wrapperState = {
  15288. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  15289. initialValue: props.value != null ? props.value : defaultValue,
  15290. listeners: null,
  15291. onChange: _handleChange.bind(inst),
  15292. controlled: isControlled(props)
  15293. };
  15294. },
  15295. updateWrapper: function (inst) {
  15296. var props = inst._currentElement.props;
  15297. if (process.env.NODE_ENV !== 'production') {
  15298. var controlled = isControlled(props);
  15299. var owner = inst._currentElement._owner;
  15300. if (!inst._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
  15301. 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;
  15302. didWarnUncontrolledToControlled = true;
  15303. }
  15304. if (inst._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
  15305. 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;
  15306. didWarnControlledToUncontrolled = true;
  15307. }
  15308. }
  15309. // TODO: Shouldn't this be getChecked(props)?
  15310. var checked = props.checked;
  15311. if (checked != null) {
  15312. DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), 'checked', checked || false);
  15313. }
  15314. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  15315. var value = LinkedValueUtils.getValue(props);
  15316. if (value != null) {
  15317. if (value === 0 && node.value === '') {
  15318. node.value = '0';
  15319. // Note: IE9 reports a number inputs as 'text', so check props instead.
  15320. } else if (props.type === 'number') {
  15321. // Simulate `input.valueAsNumber`. IE9 does not support it
  15322. var valueAsNumber = parseFloat(node.value, 10) || 0;
  15323. // eslint-disable-next-line
  15324. if (value != valueAsNumber) {
  15325. // Cast `value` to a string to ensure the value is set correctly. While
  15326. // browsers typically do this as necessary, jsdom doesn't.
  15327. node.value = '' + value;
  15328. }
  15329. // eslint-disable-next-line
  15330. } else if (value != node.value) {
  15331. // Cast `value` to a string to ensure the value is set correctly. While
  15332. // browsers typically do this as necessary, jsdom doesn't.
  15333. node.value = '' + value;
  15334. }
  15335. } else {
  15336. if (props.value == null && props.defaultValue != null) {
  15337. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  15338. // For number inputs, the display value loses trailing decimal points. For email inputs,
  15339. // Chrome raises "The specified value <x> is not a valid email address".
  15340. //
  15341. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  15342. // when the user is inputting text
  15343. //
  15344. // https://github.com/facebook/react/issues/7253
  15345. if (node.defaultValue !== '' + props.defaultValue) {
  15346. node.defaultValue = '' + props.defaultValue;
  15347. }
  15348. }
  15349. if (props.checked == null && props.defaultChecked != null) {
  15350. node.defaultChecked = !!props.defaultChecked;
  15351. }
  15352. }
  15353. },
  15354. postMountWrapper: function (inst) {
  15355. var props = inst._currentElement.props;
  15356. // This is in postMount because we need access to the DOM node, which is not
  15357. // available until after the component has mounted.
  15358. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  15359. // Detach value from defaultValue. We won't do anything if we're working on
  15360. // submit or reset inputs as those values & defaultValues are linked. They
  15361. // are not resetable nodes so this operation doesn't matter and actually
  15362. // removes browser-default values (eg "Submit Query") when no value is
  15363. // provided.
  15364. switch (props.type) {
  15365. case 'submit':
  15366. case 'reset':
  15367. break;
  15368. case 'color':
  15369. case 'date':
  15370. case 'datetime':
  15371. case 'datetime-local':
  15372. case 'month':
  15373. case 'time':
  15374. case 'week':
  15375. // This fixes the no-show issue on iOS Safari and Android Chrome:
  15376. // https://github.com/facebook/react/issues/7233
  15377. node.value = '';
  15378. node.value = node.defaultValue;
  15379. break;
  15380. default:
  15381. node.value = node.value;
  15382. break;
  15383. }
  15384. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  15385. // this is needed to work around a chrome bug where setting defaultChecked
  15386. // will sometimes influence the value of checked (even after detachment).
  15387. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  15388. // We need to temporarily unset name to avoid disrupting radio button groups.
  15389. var name = node.name;
  15390. if (name !== '') {
  15391. node.name = '';
  15392. }
  15393. node.defaultChecked = !node.defaultChecked;
  15394. node.defaultChecked = !node.defaultChecked;
  15395. if (name !== '') {
  15396. node.name = name;
  15397. }
  15398. }
  15399. };
  15400. function _handleChange(event) {
  15401. var props = this._currentElement.props;
  15402. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  15403. // Here we use asap to wait until all updates have propagated, which
  15404. // is important when using controlled components within layers:
  15405. // https://github.com/facebook/react/issues/1698
  15406. ReactUpdates.asap(forceUpdateIfMounted, this);
  15407. var name = props.name;
  15408. if (props.type === 'radio' && name != null) {
  15409. var rootNode = ReactDOMComponentTree.getNodeFromInstance(this);
  15410. var queryRoot = rootNode;
  15411. while (queryRoot.parentNode) {
  15412. queryRoot = queryRoot.parentNode;
  15413. }
  15414. // If `rootNode.form` was non-null, then we could try `form.elements`,
  15415. // but that sometimes behaves strangely in IE8. We could also try using
  15416. // `form.getElementsByName`, but that will only return direct children
  15417. // and won't include inputs that use the HTML5 `form=` attribute. Since
  15418. // the input might not even be in a form, let's just use the global
  15419. // `querySelectorAll` to ensure we don't miss anything.
  15420. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  15421. for (var i = 0; i < group.length; i++) {
  15422. var otherNode = group[i];
  15423. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  15424. continue;
  15425. }
  15426. // This will throw if radio buttons rendered by different copies of React
  15427. // and the same name are rendered into the same form (same as #1939).
  15428. // That's probably okay; we don't support it just as we don't support
  15429. // mixing React radio buttons with non-React ones.
  15430. var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode);
  15431. !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;
  15432. // If this is a controlled radio button group, forcing the input that
  15433. // was previously checked to update will cause it to be come re-checked
  15434. // as appropriate.
  15435. ReactUpdates.asap(forceUpdateIfMounted, otherInstance);
  15436. }
  15437. }
  15438. return returnValue;
  15439. }
  15440. module.exports = ReactDOMInput;
  15441. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15442. /***/ }),
  15443. /* 139 */
  15444. /***/ (function(module, exports, __webpack_require__) {
  15445. "use strict";
  15446. /**
  15447. * Copyright 2013-present, Facebook, Inc.
  15448. * All rights reserved.
  15449. *
  15450. * This source code is licensed under the BSD-style license found in the
  15451. * LICENSE file in the root directory of this source tree. An additional grant
  15452. * of patent rights can be found in the PATENTS file in the same directory.
  15453. */
  15454. // React 15.5 references this module, and assumes PropTypes are still callable in production.
  15455. // Therefore we re-export development-only version with all the PropTypes checks here.
  15456. // However if one is migrating to the `prop-types` npm library, they will go through the
  15457. // `index.js` entry point, and it will branch depending on the environment.
  15458. var factory = __webpack_require__(140);
  15459. module.exports = function(isValidElement) {
  15460. // It is still allowed in 15.5.
  15461. var throwOnDirectAccess = false;
  15462. return factory(isValidElement, throwOnDirectAccess);
  15463. };
  15464. /***/ }),
  15465. /* 140 */
  15466. /***/ (function(module, exports, __webpack_require__) {
  15467. "use strict";
  15468. /* WEBPACK VAR INJECTION */(function(process) {/**
  15469. * Copyright 2013-present, Facebook, Inc.
  15470. * All rights reserved.
  15471. *
  15472. * This source code is licensed under the BSD-style license found in the
  15473. * LICENSE file in the root directory of this source tree. An additional grant
  15474. * of patent rights can be found in the PATENTS file in the same directory.
  15475. */
  15476. var emptyFunction = __webpack_require__(8);
  15477. var invariant = __webpack_require__(1);
  15478. var warning = __webpack_require__(2);
  15479. var ReactPropTypesSecret = __webpack_require__(69);
  15480. var checkPropTypes = __webpack_require__(141);
  15481. module.exports = function(isValidElement, throwOnDirectAccess) {
  15482. /* global Symbol */
  15483. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  15484. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  15485. /**
  15486. * Returns the iterator method function contained on the iterable object.
  15487. *
  15488. * Be sure to invoke the function with the iterable as context:
  15489. *
  15490. * var iteratorFn = getIteratorFn(myIterable);
  15491. * if (iteratorFn) {
  15492. * var iterator = iteratorFn.call(myIterable);
  15493. * ...
  15494. * }
  15495. *
  15496. * @param {?object} maybeIterable
  15497. * @return {?function}
  15498. */
  15499. function getIteratorFn(maybeIterable) {
  15500. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  15501. if (typeof iteratorFn === 'function') {
  15502. return iteratorFn;
  15503. }
  15504. }
  15505. /**
  15506. * Collection of methods that allow declaration and validation of props that are
  15507. * supplied to React components. Example usage:
  15508. *
  15509. * var Props = require('ReactPropTypes');
  15510. * var MyArticle = React.createClass({
  15511. * propTypes: {
  15512. * // An optional string prop named "description".
  15513. * description: Props.string,
  15514. *
  15515. * // A required enum prop named "category".
  15516. * category: Props.oneOf(['News','Photos']).isRequired,
  15517. *
  15518. * // A prop named "dialog" that requires an instance of Dialog.
  15519. * dialog: Props.instanceOf(Dialog).isRequired
  15520. * },
  15521. * render: function() { ... }
  15522. * });
  15523. *
  15524. * A more formal specification of how these methods are used:
  15525. *
  15526. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  15527. * decl := ReactPropTypes.{type}(.isRequired)?
  15528. *
  15529. * Each and every declaration produces a function with the same signature. This
  15530. * allows the creation of custom validation functions. For example:
  15531. *
  15532. * var MyLink = React.createClass({
  15533. * propTypes: {
  15534. * // An optional string or URI prop named "href".
  15535. * href: function(props, propName, componentName) {
  15536. * var propValue = props[propName];
  15537. * if (propValue != null && typeof propValue !== 'string' &&
  15538. * !(propValue instanceof URI)) {
  15539. * return new Error(
  15540. * 'Expected a string or an URI for ' + propName + ' in ' +
  15541. * componentName
  15542. * );
  15543. * }
  15544. * }
  15545. * },
  15546. * render: function() {...}
  15547. * });
  15548. *
  15549. * @internal
  15550. */
  15551. var ANONYMOUS = '<<anonymous>>';
  15552. // Important!
  15553. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  15554. var ReactPropTypes = {
  15555. array: createPrimitiveTypeChecker('array'),
  15556. bool: createPrimitiveTypeChecker('boolean'),
  15557. func: createPrimitiveTypeChecker('function'),
  15558. number: createPrimitiveTypeChecker('number'),
  15559. object: createPrimitiveTypeChecker('object'),
  15560. string: createPrimitiveTypeChecker('string'),
  15561. symbol: createPrimitiveTypeChecker('symbol'),
  15562. any: createAnyTypeChecker(),
  15563. arrayOf: createArrayOfTypeChecker,
  15564. element: createElementTypeChecker(),
  15565. instanceOf: createInstanceTypeChecker,
  15566. node: createNodeChecker(),
  15567. objectOf: createObjectOfTypeChecker,
  15568. oneOf: createEnumTypeChecker,
  15569. oneOfType: createUnionTypeChecker,
  15570. shape: createShapeTypeChecker
  15571. };
  15572. /**
  15573. * inlined Object.is polyfill to avoid requiring consumers ship their own
  15574. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  15575. */
  15576. /*eslint-disable no-self-compare*/
  15577. function is(x, y) {
  15578. // SameValue algorithm
  15579. if (x === y) {
  15580. // Steps 1-5, 7-10
  15581. // Steps 6.b-6.e: +0 != -0
  15582. return x !== 0 || 1 / x === 1 / y;
  15583. } else {
  15584. // Step 6.a: NaN == NaN
  15585. return x !== x && y !== y;
  15586. }
  15587. }
  15588. /*eslint-enable no-self-compare*/
  15589. /**
  15590. * We use an Error-like object for backward compatibility as people may call
  15591. * PropTypes directly and inspect their output. However, we don't use real
  15592. * Errors anymore. We don't inspect their stack anyway, and creating them
  15593. * is prohibitively expensive if they are created too often, such as what
  15594. * happens in oneOfType() for any type before the one that matched.
  15595. */
  15596. function PropTypeError(message) {
  15597. this.message = message;
  15598. this.stack = '';
  15599. }
  15600. // Make `instanceof Error` still work for returned errors.
  15601. PropTypeError.prototype = Error.prototype;
  15602. function createChainableTypeChecker(validate) {
  15603. if (process.env.NODE_ENV !== 'production') {
  15604. var manualPropTypeCallCache = {};
  15605. var manualPropTypeWarningCount = 0;
  15606. }
  15607. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  15608. componentName = componentName || ANONYMOUS;
  15609. propFullName = propFullName || propName;
  15610. if (secret !== ReactPropTypesSecret) {
  15611. if (throwOnDirectAccess) {
  15612. // New behavior only for users of `prop-types` package
  15613. invariant(
  15614. false,
  15615. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  15616. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  15617. 'Read more at http://fb.me/use-check-prop-types'
  15618. );
  15619. } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
  15620. // Old behavior for people using React.PropTypes
  15621. var cacheKey = componentName + ':' + propName;
  15622. if (
  15623. !manualPropTypeCallCache[cacheKey] &&
  15624. // Avoid spamming the console because they are often not actionable except for lib authors
  15625. manualPropTypeWarningCount < 3
  15626. ) {
  15627. warning(
  15628. false,
  15629. 'You are manually calling a React.PropTypes validation ' +
  15630. 'function for the `%s` prop on `%s`. This is deprecated ' +
  15631. 'and will throw in the standalone `prop-types` package. ' +
  15632. 'You may be seeing this warning due to a third-party PropTypes ' +
  15633. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
  15634. propFullName,
  15635. componentName
  15636. );
  15637. manualPropTypeCallCache[cacheKey] = true;
  15638. manualPropTypeWarningCount++;
  15639. }
  15640. }
  15641. }
  15642. if (props[propName] == null) {
  15643. if (isRequired) {
  15644. if (props[propName] === null) {
  15645. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  15646. }
  15647. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  15648. }
  15649. return null;
  15650. } else {
  15651. return validate(props, propName, componentName, location, propFullName);
  15652. }
  15653. }
  15654. var chainedCheckType = checkType.bind(null, false);
  15655. chainedCheckType.isRequired = checkType.bind(null, true);
  15656. return chainedCheckType;
  15657. }
  15658. function createPrimitiveTypeChecker(expectedType) {
  15659. function validate(props, propName, componentName, location, propFullName, secret) {
  15660. var propValue = props[propName];
  15661. var propType = getPropType(propValue);
  15662. if (propType !== expectedType) {
  15663. // `propValue` being instance of, say, date/regexp, pass the 'object'
  15664. // check, but we can offer a more precise error message here rather than
  15665. // 'of type `object`'.
  15666. var preciseType = getPreciseType(propValue);
  15667. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  15668. }
  15669. return null;
  15670. }
  15671. return createChainableTypeChecker(validate);
  15672. }
  15673. function createAnyTypeChecker() {
  15674. return createChainableTypeChecker(emptyFunction.thatReturnsNull);
  15675. }
  15676. function createArrayOfTypeChecker(typeChecker) {
  15677. function validate(props, propName, componentName, location, propFullName) {
  15678. if (typeof typeChecker !== 'function') {
  15679. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  15680. }
  15681. var propValue = props[propName];
  15682. if (!Array.isArray(propValue)) {
  15683. var propType = getPropType(propValue);
  15684. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  15685. }
  15686. for (var i = 0; i < propValue.length; i++) {
  15687. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  15688. if (error instanceof Error) {
  15689. return error;
  15690. }
  15691. }
  15692. return null;
  15693. }
  15694. return createChainableTypeChecker(validate);
  15695. }
  15696. function createElementTypeChecker() {
  15697. function validate(props, propName, componentName, location, propFullName) {
  15698. var propValue = props[propName];
  15699. if (!isValidElement(propValue)) {
  15700. var propType = getPropType(propValue);
  15701. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  15702. }
  15703. return null;
  15704. }
  15705. return createChainableTypeChecker(validate);
  15706. }
  15707. function createInstanceTypeChecker(expectedClass) {
  15708. function validate(props, propName, componentName, location, propFullName) {
  15709. if (!(props[propName] instanceof expectedClass)) {
  15710. var expectedClassName = expectedClass.name || ANONYMOUS;
  15711. var actualClassName = getClassName(props[propName]);
  15712. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  15713. }
  15714. return null;
  15715. }
  15716. return createChainableTypeChecker(validate);
  15717. }
  15718. function createEnumTypeChecker(expectedValues) {
  15719. if (!Array.isArray(expectedValues)) {
  15720. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
  15721. return emptyFunction.thatReturnsNull;
  15722. }
  15723. function validate(props, propName, componentName, location, propFullName) {
  15724. var propValue = props[propName];
  15725. for (var i = 0; i < expectedValues.length; i++) {
  15726. if (is(propValue, expectedValues[i])) {
  15727. return null;
  15728. }
  15729. }
  15730. var valuesString = JSON.stringify(expectedValues);
  15731. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  15732. }
  15733. return createChainableTypeChecker(validate);
  15734. }
  15735. function createObjectOfTypeChecker(typeChecker) {
  15736. function validate(props, propName, componentName, location, propFullName) {
  15737. if (typeof typeChecker !== 'function') {
  15738. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  15739. }
  15740. var propValue = props[propName];
  15741. var propType = getPropType(propValue);
  15742. if (propType !== 'object') {
  15743. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  15744. }
  15745. for (var key in propValue) {
  15746. if (propValue.hasOwnProperty(key)) {
  15747. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  15748. if (error instanceof Error) {
  15749. return error;
  15750. }
  15751. }
  15752. }
  15753. return null;
  15754. }
  15755. return createChainableTypeChecker(validate);
  15756. }
  15757. function createUnionTypeChecker(arrayOfTypeCheckers) {
  15758. if (!Array.isArray(arrayOfTypeCheckers)) {
  15759. process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
  15760. return emptyFunction.thatReturnsNull;
  15761. }
  15762. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  15763. var checker = arrayOfTypeCheckers[i];
  15764. if (typeof checker !== 'function') {
  15765. warning(
  15766. false,
  15767. 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
  15768. 'received %s at index %s.',
  15769. getPostfixForTypeWarning(checker),
  15770. i
  15771. );
  15772. return emptyFunction.thatReturnsNull;
  15773. }
  15774. }
  15775. function validate(props, propName, componentName, location, propFullName) {
  15776. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  15777. var checker = arrayOfTypeCheckers[i];
  15778. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  15779. return null;
  15780. }
  15781. }
  15782. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  15783. }
  15784. return createChainableTypeChecker(validate);
  15785. }
  15786. function createNodeChecker() {
  15787. function validate(props, propName, componentName, location, propFullName) {
  15788. if (!isNode(props[propName])) {
  15789. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  15790. }
  15791. return null;
  15792. }
  15793. return createChainableTypeChecker(validate);
  15794. }
  15795. function createShapeTypeChecker(shapeTypes) {
  15796. function validate(props, propName, componentName, location, propFullName) {
  15797. var propValue = props[propName];
  15798. var propType = getPropType(propValue);
  15799. if (propType !== 'object') {
  15800. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  15801. }
  15802. for (var key in shapeTypes) {
  15803. var checker = shapeTypes[key];
  15804. if (!checker) {
  15805. continue;
  15806. }
  15807. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  15808. if (error) {
  15809. return error;
  15810. }
  15811. }
  15812. return null;
  15813. }
  15814. return createChainableTypeChecker(validate);
  15815. }
  15816. function isNode(propValue) {
  15817. switch (typeof propValue) {
  15818. case 'number':
  15819. case 'string':
  15820. case 'undefined':
  15821. return true;
  15822. case 'boolean':
  15823. return !propValue;
  15824. case 'object':
  15825. if (Array.isArray(propValue)) {
  15826. return propValue.every(isNode);
  15827. }
  15828. if (propValue === null || isValidElement(propValue)) {
  15829. return true;
  15830. }
  15831. var iteratorFn = getIteratorFn(propValue);
  15832. if (iteratorFn) {
  15833. var iterator = iteratorFn.call(propValue);
  15834. var step;
  15835. if (iteratorFn !== propValue.entries) {
  15836. while (!(step = iterator.next()).done) {
  15837. if (!isNode(step.value)) {
  15838. return false;
  15839. }
  15840. }
  15841. } else {
  15842. // Iterator will provide entry [k,v] tuples rather than values.
  15843. while (!(step = iterator.next()).done) {
  15844. var entry = step.value;
  15845. if (entry) {
  15846. if (!isNode(entry[1])) {
  15847. return false;
  15848. }
  15849. }
  15850. }
  15851. }
  15852. } else {
  15853. return false;
  15854. }
  15855. return true;
  15856. default:
  15857. return false;
  15858. }
  15859. }
  15860. function isSymbol(propType, propValue) {
  15861. // Native Symbol.
  15862. if (propType === 'symbol') {
  15863. return true;
  15864. }
  15865. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  15866. if (propValue['@@toStringTag'] === 'Symbol') {
  15867. return true;
  15868. }
  15869. // Fallback for non-spec compliant Symbols which are polyfilled.
  15870. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  15871. return true;
  15872. }
  15873. return false;
  15874. }
  15875. // Equivalent of `typeof` but with special handling for array and regexp.
  15876. function getPropType(propValue) {
  15877. var propType = typeof propValue;
  15878. if (Array.isArray(propValue)) {
  15879. return 'array';
  15880. }
  15881. if (propValue instanceof RegExp) {
  15882. // Old webkits (at least until Android 4.0) return 'function' rather than
  15883. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  15884. // passes PropTypes.object.
  15885. return 'object';
  15886. }
  15887. if (isSymbol(propType, propValue)) {
  15888. return 'symbol';
  15889. }
  15890. return propType;
  15891. }
  15892. // This handles more types than `getPropType`. Only used for error messages.
  15893. // See `createPrimitiveTypeChecker`.
  15894. function getPreciseType(propValue) {
  15895. if (typeof propValue === 'undefined' || propValue === null) {
  15896. return '' + propValue;
  15897. }
  15898. var propType = getPropType(propValue);
  15899. if (propType === 'object') {
  15900. if (propValue instanceof Date) {
  15901. return 'date';
  15902. } else if (propValue instanceof RegExp) {
  15903. return 'regexp';
  15904. }
  15905. }
  15906. return propType;
  15907. }
  15908. // Returns a string that is postfixed to a warning about an invalid type.
  15909. // For example, "undefined" or "of type array"
  15910. function getPostfixForTypeWarning(value) {
  15911. var type = getPreciseType(value);
  15912. switch (type) {
  15913. case 'array':
  15914. case 'object':
  15915. return 'an ' + type;
  15916. case 'boolean':
  15917. case 'date':
  15918. case 'regexp':
  15919. return 'a ' + type;
  15920. default:
  15921. return type;
  15922. }
  15923. }
  15924. // Returns class name of the object, if any.
  15925. function getClassName(propValue) {
  15926. if (!propValue.constructor || !propValue.constructor.name) {
  15927. return ANONYMOUS;
  15928. }
  15929. return propValue.constructor.name;
  15930. }
  15931. ReactPropTypes.checkPropTypes = checkPropTypes;
  15932. ReactPropTypes.PropTypes = ReactPropTypes;
  15933. return ReactPropTypes;
  15934. };
  15935. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15936. /***/ }),
  15937. /* 141 */
  15938. /***/ (function(module, exports, __webpack_require__) {
  15939. "use strict";
  15940. /* WEBPACK VAR INJECTION */(function(process) {/**
  15941. * Copyright 2013-present, Facebook, Inc.
  15942. * All rights reserved.
  15943. *
  15944. * This source code is licensed under the BSD-style license found in the
  15945. * LICENSE file in the root directory of this source tree. An additional grant
  15946. * of patent rights can be found in the PATENTS file in the same directory.
  15947. */
  15948. if (process.env.NODE_ENV !== 'production') {
  15949. var invariant = __webpack_require__(1);
  15950. var warning = __webpack_require__(2);
  15951. var ReactPropTypesSecret = __webpack_require__(69);
  15952. var loggedTypeFailures = {};
  15953. }
  15954. /**
  15955. * Assert that the values match with the type specs.
  15956. * Error messages are memorized and will only be shown once.
  15957. *
  15958. * @param {object} typeSpecs Map of name to a ReactPropType
  15959. * @param {object} values Runtime values that need to be type-checked
  15960. * @param {string} location e.g. "prop", "context", "child context"
  15961. * @param {string} componentName Name of the component for error messages.
  15962. * @param {?Function} getStack Returns the component stack.
  15963. * @private
  15964. */
  15965. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  15966. if (process.env.NODE_ENV !== 'production') {
  15967. for (var typeSpecName in typeSpecs) {
  15968. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  15969. var error;
  15970. // Prop type validation may throw. In case they do, we don't want to
  15971. // fail the render phase where it didn't fail before. So we log it.
  15972. // After these have been cleaned up, we'll let them throw.
  15973. try {
  15974. // This is intentionally an invariant that gets caught. It's the same
  15975. // behavior as without this statement except with a better message.
  15976. 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);
  15977. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  15978. } catch (ex) {
  15979. error = ex;
  15980. }
  15981. 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);
  15982. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  15983. // Only monitor this failure once because there tends to be a lot of the
  15984. // same error.
  15985. loggedTypeFailures[error.message] = true;
  15986. var stack = getStack ? getStack() : '';
  15987. warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
  15988. }
  15989. }
  15990. }
  15991. }
  15992. }
  15993. module.exports = checkPropTypes;
  15994. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  15995. /***/ }),
  15996. /* 142 */
  15997. /***/ (function(module, exports, __webpack_require__) {
  15998. "use strict";
  15999. /* WEBPACK VAR INJECTION */(function(process) {/**
  16000. * Copyright 2013-present, Facebook, Inc.
  16001. * All rights reserved.
  16002. *
  16003. * This source code is licensed under the BSD-style license found in the
  16004. * LICENSE file in the root directory of this source tree. An additional grant
  16005. * of patent rights can be found in the PATENTS file in the same directory.
  16006. *
  16007. */
  16008. var _assign = __webpack_require__(4);
  16009. var React = __webpack_require__(17);
  16010. var ReactDOMComponentTree = __webpack_require__(5);
  16011. var ReactDOMSelect = __webpack_require__(70);
  16012. var warning = __webpack_require__(2);
  16013. var didWarnInvalidOptionChildren = false;
  16014. function flattenChildren(children) {
  16015. var content = '';
  16016. // Flatten children and warn if they aren't strings or numbers;
  16017. // invalid types are ignored.
  16018. React.Children.forEach(children, function (child) {
  16019. if (child == null) {
  16020. return;
  16021. }
  16022. if (typeof child === 'string' || typeof child === 'number') {
  16023. content += child;
  16024. } else if (!didWarnInvalidOptionChildren) {
  16025. didWarnInvalidOptionChildren = true;
  16026. process.env.NODE_ENV !== 'production' ? warning(false, 'Only strings and numbers are supported as <option> children.') : void 0;
  16027. }
  16028. });
  16029. return content;
  16030. }
  16031. /**
  16032. * Implements an <option> host component that warns when `selected` is set.
  16033. */
  16034. var ReactDOMOption = {
  16035. mountWrapper: function (inst, props, hostParent) {
  16036. // TODO (yungsters): Remove support for `selected` in <option>.
  16037. if (process.env.NODE_ENV !== 'production') {
  16038. 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;
  16039. }
  16040. // Look up whether this option is 'selected'
  16041. var selectValue = null;
  16042. if (hostParent != null) {
  16043. var selectParent = hostParent;
  16044. if (selectParent._tag === 'optgroup') {
  16045. selectParent = selectParent._hostParent;
  16046. }
  16047. if (selectParent != null && selectParent._tag === 'select') {
  16048. selectValue = ReactDOMSelect.getSelectValueContext(selectParent);
  16049. }
  16050. }
  16051. // If the value is null (e.g., no specified value or after initial mount)
  16052. // or missing (e.g., for <datalist>), we don't change props.selected
  16053. var selected = null;
  16054. if (selectValue != null) {
  16055. var value;
  16056. if (props.value != null) {
  16057. value = props.value + '';
  16058. } else {
  16059. value = flattenChildren(props.children);
  16060. }
  16061. selected = false;
  16062. if (Array.isArray(selectValue)) {
  16063. // multiple
  16064. for (var i = 0; i < selectValue.length; i++) {
  16065. if ('' + selectValue[i] === value) {
  16066. selected = true;
  16067. break;
  16068. }
  16069. }
  16070. } else {
  16071. selected = '' + selectValue === value;
  16072. }
  16073. }
  16074. inst._wrapperState = { selected: selected };
  16075. },
  16076. postMountWrapper: function (inst) {
  16077. // value="" should make a value attribute (#6219)
  16078. var props = inst._currentElement.props;
  16079. if (props.value != null) {
  16080. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16081. node.setAttribute('value', props.value);
  16082. }
  16083. },
  16084. getHostProps: function (inst, props) {
  16085. var hostProps = _assign({ selected: undefined, children: undefined }, props);
  16086. // Read state only from initial mount because <select> updates value
  16087. // manually; we need the initial state only for server rendering
  16088. if (inst._wrapperState.selected != null) {
  16089. hostProps.selected = inst._wrapperState.selected;
  16090. }
  16091. var content = flattenChildren(props.children);
  16092. if (content) {
  16093. hostProps.children = content;
  16094. }
  16095. return hostProps;
  16096. }
  16097. };
  16098. module.exports = ReactDOMOption;
  16099. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16100. /***/ }),
  16101. /* 143 */
  16102. /***/ (function(module, exports, __webpack_require__) {
  16103. "use strict";
  16104. /* WEBPACK VAR INJECTION */(function(process) {/**
  16105. * Copyright 2013-present, Facebook, Inc.
  16106. * All rights reserved.
  16107. *
  16108. * This source code is licensed under the BSD-style license found in the
  16109. * LICENSE file in the root directory of this source tree. An additional grant
  16110. * of patent rights can be found in the PATENTS file in the same directory.
  16111. *
  16112. */
  16113. var _prodInvariant = __webpack_require__(3),
  16114. _assign = __webpack_require__(4);
  16115. var LinkedValueUtils = __webpack_require__(43);
  16116. var ReactDOMComponentTree = __webpack_require__(5);
  16117. var ReactUpdates = __webpack_require__(11);
  16118. var invariant = __webpack_require__(1);
  16119. var warning = __webpack_require__(2);
  16120. var didWarnValueLink = false;
  16121. var didWarnValDefaultVal = false;
  16122. function forceUpdateIfMounted() {
  16123. if (this._rootNodeID) {
  16124. // DOM component is still mounted; update
  16125. ReactDOMTextarea.updateWrapper(this);
  16126. }
  16127. }
  16128. /**
  16129. * Implements a <textarea> host component that allows setting `value`, and
  16130. * `defaultValue`. This differs from the traditional DOM API because value is
  16131. * usually set as PCDATA children.
  16132. *
  16133. * If `value` is not supplied (or null/undefined), user actions that affect the
  16134. * value will trigger updates to the element.
  16135. *
  16136. * If `value` is supplied (and not null/undefined), the rendered element will
  16137. * not trigger updates to the element. Instead, the `value` prop must change in
  16138. * order for the rendered element to be updated.
  16139. *
  16140. * The rendered element will be initialized with an empty value, the prop
  16141. * `defaultValue` if specified, or the children content (deprecated).
  16142. */
  16143. var ReactDOMTextarea = {
  16144. getHostProps: function (inst, props) {
  16145. !(props.dangerouslySetInnerHTML == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : _prodInvariant('91') : void 0;
  16146. // Always set children to the same thing. In IE9, the selection range will
  16147. // get reset if `textContent` is mutated. We could add a check in setTextContent
  16148. // to only set the value if/when the value differs from the node value (which would
  16149. // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution.
  16150. // The value can be a boolean or object so that's why it's forced to be a string.
  16151. var hostProps = _assign({}, props, {
  16152. value: undefined,
  16153. defaultValue: undefined,
  16154. children: '' + inst._wrapperState.initialValue,
  16155. onChange: inst._wrapperState.onChange
  16156. });
  16157. return hostProps;
  16158. },
  16159. mountWrapper: function (inst, props) {
  16160. if (process.env.NODE_ENV !== 'production') {
  16161. LinkedValueUtils.checkPropTypes('textarea', props, inst._currentElement._owner);
  16162. if (props.valueLink !== undefined && !didWarnValueLink) {
  16163. process.env.NODE_ENV !== 'production' ? warning(false, '`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead.') : void 0;
  16164. didWarnValueLink = true;
  16165. }
  16166. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  16167. 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;
  16168. didWarnValDefaultVal = true;
  16169. }
  16170. }
  16171. var value = LinkedValueUtils.getValue(props);
  16172. var initialValue = value;
  16173. // Only bother fetching default value if we're going to use it
  16174. if (value == null) {
  16175. var defaultValue = props.defaultValue;
  16176. // TODO (yungsters): Remove support for children content in <textarea>.
  16177. var children = props.children;
  16178. if (children != null) {
  16179. if (process.env.NODE_ENV !== 'production') {
  16180. process.env.NODE_ENV !== 'production' ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : void 0;
  16181. }
  16182. !(defaultValue == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : _prodInvariant('92') : void 0;
  16183. if (Array.isArray(children)) {
  16184. !(children.length <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, '<textarea> can only have at most one child.') : _prodInvariant('93') : void 0;
  16185. children = children[0];
  16186. }
  16187. defaultValue = '' + children;
  16188. }
  16189. if (defaultValue == null) {
  16190. defaultValue = '';
  16191. }
  16192. initialValue = defaultValue;
  16193. }
  16194. inst._wrapperState = {
  16195. initialValue: '' + initialValue,
  16196. listeners: null,
  16197. onChange: _handleChange.bind(inst)
  16198. };
  16199. },
  16200. updateWrapper: function (inst) {
  16201. var props = inst._currentElement.props;
  16202. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16203. var value = LinkedValueUtils.getValue(props);
  16204. if (value != null) {
  16205. // Cast `value` to a string to ensure the value is set correctly. While
  16206. // browsers typically do this as necessary, jsdom doesn't.
  16207. var newValue = '' + value;
  16208. // To avoid side effects (such as losing text selection), only set value if changed
  16209. if (newValue !== node.value) {
  16210. node.value = newValue;
  16211. }
  16212. if (props.defaultValue == null) {
  16213. node.defaultValue = newValue;
  16214. }
  16215. }
  16216. if (props.defaultValue != null) {
  16217. node.defaultValue = props.defaultValue;
  16218. }
  16219. },
  16220. postMountWrapper: function (inst) {
  16221. // This is in postMount because we need access to the DOM node, which is not
  16222. // available until after the component has mounted.
  16223. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  16224. var textContent = node.textContent;
  16225. // Only set node.value if textContent is equal to the expected
  16226. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  16227. // will populate textContent as well.
  16228. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  16229. if (textContent === inst._wrapperState.initialValue) {
  16230. node.value = textContent;
  16231. }
  16232. }
  16233. };
  16234. function _handleChange(event) {
  16235. var props = this._currentElement.props;
  16236. var returnValue = LinkedValueUtils.executeOnChange(props, event);
  16237. ReactUpdates.asap(forceUpdateIfMounted, this);
  16238. return returnValue;
  16239. }
  16240. module.exports = ReactDOMTextarea;
  16241. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16242. /***/ }),
  16243. /* 144 */
  16244. /***/ (function(module, exports, __webpack_require__) {
  16245. "use strict";
  16246. /* WEBPACK VAR INJECTION */(function(process) {/**
  16247. * Copyright 2013-present, Facebook, Inc.
  16248. * All rights reserved.
  16249. *
  16250. * This source code is licensed under the BSD-style license found in the
  16251. * LICENSE file in the root directory of this source tree. An additional grant
  16252. * of patent rights can be found in the PATENTS file in the same directory.
  16253. *
  16254. */
  16255. var _prodInvariant = __webpack_require__(3);
  16256. var ReactComponentEnvironment = __webpack_require__(44);
  16257. var ReactInstanceMap = __webpack_require__(24);
  16258. var ReactInstrumentation = __webpack_require__(9);
  16259. var ReactCurrentOwner = __webpack_require__(10);
  16260. var ReactReconciler = __webpack_require__(18);
  16261. var ReactChildReconciler = __webpack_require__(145);
  16262. var emptyFunction = __webpack_require__(8);
  16263. var flattenChildren = __webpack_require__(152);
  16264. var invariant = __webpack_require__(1);
  16265. /**
  16266. * Make an update for markup to be rendered and inserted at a supplied index.
  16267. *
  16268. * @param {string} markup Markup that renders into an element.
  16269. * @param {number} toIndex Destination index.
  16270. * @private
  16271. */
  16272. function makeInsertMarkup(markup, afterNode, toIndex) {
  16273. // NOTE: Null values reduce hidden classes.
  16274. return {
  16275. type: 'INSERT_MARKUP',
  16276. content: markup,
  16277. fromIndex: null,
  16278. fromNode: null,
  16279. toIndex: toIndex,
  16280. afterNode: afterNode
  16281. };
  16282. }
  16283. /**
  16284. * Make an update for moving an existing element to another index.
  16285. *
  16286. * @param {number} fromIndex Source index of the existing element.
  16287. * @param {number} toIndex Destination index of the element.
  16288. * @private
  16289. */
  16290. function makeMove(child, afterNode, toIndex) {
  16291. // NOTE: Null values reduce hidden classes.
  16292. return {
  16293. type: 'MOVE_EXISTING',
  16294. content: null,
  16295. fromIndex: child._mountIndex,
  16296. fromNode: ReactReconciler.getHostNode(child),
  16297. toIndex: toIndex,
  16298. afterNode: afterNode
  16299. };
  16300. }
  16301. /**
  16302. * Make an update for removing an element at an index.
  16303. *
  16304. * @param {number} fromIndex Index of the element to remove.
  16305. * @private
  16306. */
  16307. function makeRemove(child, node) {
  16308. // NOTE: Null values reduce hidden classes.
  16309. return {
  16310. type: 'REMOVE_NODE',
  16311. content: null,
  16312. fromIndex: child._mountIndex,
  16313. fromNode: node,
  16314. toIndex: null,
  16315. afterNode: null
  16316. };
  16317. }
  16318. /**
  16319. * Make an update for setting the markup of a node.
  16320. *
  16321. * @param {string} markup Markup that renders into an element.
  16322. * @private
  16323. */
  16324. function makeSetMarkup(markup) {
  16325. // NOTE: Null values reduce hidden classes.
  16326. return {
  16327. type: 'SET_MARKUP',
  16328. content: markup,
  16329. fromIndex: null,
  16330. fromNode: null,
  16331. toIndex: null,
  16332. afterNode: null
  16333. };
  16334. }
  16335. /**
  16336. * Make an update for setting the text content.
  16337. *
  16338. * @param {string} textContent Text content to set.
  16339. * @private
  16340. */
  16341. function makeTextContent(textContent) {
  16342. // NOTE: Null values reduce hidden classes.
  16343. return {
  16344. type: 'TEXT_CONTENT',
  16345. content: textContent,
  16346. fromIndex: null,
  16347. fromNode: null,
  16348. toIndex: null,
  16349. afterNode: null
  16350. };
  16351. }
  16352. /**
  16353. * Push an update, if any, onto the queue. Creates a new queue if none is
  16354. * passed and always returns the queue. Mutative.
  16355. */
  16356. function enqueue(queue, update) {
  16357. if (update) {
  16358. queue = queue || [];
  16359. queue.push(update);
  16360. }
  16361. return queue;
  16362. }
  16363. /**
  16364. * Processes any enqueued updates.
  16365. *
  16366. * @private
  16367. */
  16368. function processQueue(inst, updateQueue) {
  16369. ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue);
  16370. }
  16371. var setChildrenForInstrumentation = emptyFunction;
  16372. if (process.env.NODE_ENV !== 'production') {
  16373. var getDebugID = function (inst) {
  16374. if (!inst._debugID) {
  16375. // Check for ART-like instances. TODO: This is silly/gross.
  16376. var internal;
  16377. if (internal = ReactInstanceMap.get(inst)) {
  16378. inst = internal;
  16379. }
  16380. }
  16381. return inst._debugID;
  16382. };
  16383. setChildrenForInstrumentation = function (children) {
  16384. var debugID = getDebugID(this);
  16385. // TODO: React Native empty components are also multichild.
  16386. // This means they still get into this method but don't have _debugID.
  16387. if (debugID !== 0) {
  16388. ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function (key) {
  16389. return children[key]._debugID;
  16390. }) : []);
  16391. }
  16392. };
  16393. }
  16394. /**
  16395. * ReactMultiChild are capable of reconciling multiple children.
  16396. *
  16397. * @class ReactMultiChild
  16398. * @internal
  16399. */
  16400. var ReactMultiChild = {
  16401. /**
  16402. * Provides common functionality for components that must reconcile multiple
  16403. * children. This is used by `ReactDOMComponent` to mount, update, and
  16404. * unmount child components.
  16405. *
  16406. * @lends {ReactMultiChild.prototype}
  16407. */
  16408. Mixin: {
  16409. _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) {
  16410. if (process.env.NODE_ENV !== 'production') {
  16411. var selfDebugID = getDebugID(this);
  16412. if (this._currentElement) {
  16413. try {
  16414. ReactCurrentOwner.current = this._currentElement._owner;
  16415. return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID);
  16416. } finally {
  16417. ReactCurrentOwner.current = null;
  16418. }
  16419. }
  16420. }
  16421. return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context);
  16422. },
  16423. _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) {
  16424. var nextChildren;
  16425. var selfDebugID = 0;
  16426. if (process.env.NODE_ENV !== 'production') {
  16427. selfDebugID = getDebugID(this);
  16428. if (this._currentElement) {
  16429. try {
  16430. ReactCurrentOwner.current = this._currentElement._owner;
  16431. nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
  16432. } finally {
  16433. ReactCurrentOwner.current = null;
  16434. }
  16435. ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16436. return nextChildren;
  16437. }
  16438. }
  16439. nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
  16440. ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16441. return nextChildren;
  16442. },
  16443. /**
  16444. * Generates a "mount image" for each of the supplied children. In the case
  16445. * of `ReactDOMComponent`, a mount image is a string of markup.
  16446. *
  16447. * @param {?object} nestedChildren Nested child maps.
  16448. * @return {array} An array of mounted representations.
  16449. * @internal
  16450. */
  16451. mountChildren: function (nestedChildren, transaction, context) {
  16452. var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context);
  16453. this._renderedChildren = children;
  16454. var mountImages = [];
  16455. var index = 0;
  16456. for (var name in children) {
  16457. if (children.hasOwnProperty(name)) {
  16458. var child = children[name];
  16459. var selfDebugID = 0;
  16460. if (process.env.NODE_ENV !== 'production') {
  16461. selfDebugID = getDebugID(this);
  16462. }
  16463. var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID);
  16464. child._mountIndex = index++;
  16465. mountImages.push(mountImage);
  16466. }
  16467. }
  16468. if (process.env.NODE_ENV !== 'production') {
  16469. setChildrenForInstrumentation.call(this, children);
  16470. }
  16471. return mountImages;
  16472. },
  16473. /**
  16474. * Replaces any rendered children with a text content string.
  16475. *
  16476. * @param {string} nextContent String of content.
  16477. * @internal
  16478. */
  16479. updateTextContent: function (nextContent) {
  16480. var prevChildren = this._renderedChildren;
  16481. // Remove any rendered children.
  16482. ReactChildReconciler.unmountChildren(prevChildren, false);
  16483. for (var name in prevChildren) {
  16484. if (prevChildren.hasOwnProperty(name)) {
  16485. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
  16486. }
  16487. }
  16488. // Set new text content.
  16489. var updates = [makeTextContent(nextContent)];
  16490. processQueue(this, updates);
  16491. },
  16492. /**
  16493. * Replaces any rendered children with a markup string.
  16494. *
  16495. * @param {string} nextMarkup String of markup.
  16496. * @internal
  16497. */
  16498. updateMarkup: function (nextMarkup) {
  16499. var prevChildren = this._renderedChildren;
  16500. // Remove any rendered children.
  16501. ReactChildReconciler.unmountChildren(prevChildren, false);
  16502. for (var name in prevChildren) {
  16503. if (prevChildren.hasOwnProperty(name)) {
  16504. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
  16505. }
  16506. }
  16507. var updates = [makeSetMarkup(nextMarkup)];
  16508. processQueue(this, updates);
  16509. },
  16510. /**
  16511. * Updates the rendered children with new children.
  16512. *
  16513. * @param {?object} nextNestedChildrenElements Nested child element maps.
  16514. * @param {ReactReconcileTransaction} transaction
  16515. * @internal
  16516. */
  16517. updateChildren: function (nextNestedChildrenElements, transaction, context) {
  16518. // Hook used by React ART
  16519. this._updateChildren(nextNestedChildrenElements, transaction, context);
  16520. },
  16521. /**
  16522. * @param {?object} nextNestedChildrenElements Nested child element maps.
  16523. * @param {ReactReconcileTransaction} transaction
  16524. * @final
  16525. * @protected
  16526. */
  16527. _updateChildren: function (nextNestedChildrenElements, transaction, context) {
  16528. var prevChildren = this._renderedChildren;
  16529. var removedNodes = {};
  16530. var mountImages = [];
  16531. var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context);
  16532. if (!nextChildren && !prevChildren) {
  16533. return;
  16534. }
  16535. var updates = null;
  16536. var name;
  16537. // `nextIndex` will increment for each child in `nextChildren`, but
  16538. // `lastIndex` will be the last index visited in `prevChildren`.
  16539. var nextIndex = 0;
  16540. var lastIndex = 0;
  16541. // `nextMountIndex` will increment for each newly mounted child.
  16542. var nextMountIndex = 0;
  16543. var lastPlacedNode = null;
  16544. for (name in nextChildren) {
  16545. if (!nextChildren.hasOwnProperty(name)) {
  16546. continue;
  16547. }
  16548. var prevChild = prevChildren && prevChildren[name];
  16549. var nextChild = nextChildren[name];
  16550. if (prevChild === nextChild) {
  16551. updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex));
  16552. lastIndex = Math.max(prevChild._mountIndex, lastIndex);
  16553. prevChild._mountIndex = nextIndex;
  16554. } else {
  16555. if (prevChild) {
  16556. // Update `lastIndex` before `_mountIndex` gets unset by unmounting.
  16557. lastIndex = Math.max(prevChild._mountIndex, lastIndex);
  16558. // The `removedNodes` loop below will actually remove the child.
  16559. }
  16560. // The child must be instantiated before it's mounted.
  16561. updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context));
  16562. nextMountIndex++;
  16563. }
  16564. nextIndex++;
  16565. lastPlacedNode = ReactReconciler.getHostNode(nextChild);
  16566. }
  16567. // Remove children that are no longer present.
  16568. for (name in removedNodes) {
  16569. if (removedNodes.hasOwnProperty(name)) {
  16570. updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name]));
  16571. }
  16572. }
  16573. if (updates) {
  16574. processQueue(this, updates);
  16575. }
  16576. this._renderedChildren = nextChildren;
  16577. if (process.env.NODE_ENV !== 'production') {
  16578. setChildrenForInstrumentation.call(this, nextChildren);
  16579. }
  16580. },
  16581. /**
  16582. * Unmounts all rendered children. This should be used to clean up children
  16583. * when this component is unmounted. It does not actually perform any
  16584. * backend operations.
  16585. *
  16586. * @internal
  16587. */
  16588. unmountChildren: function (safely) {
  16589. var renderedChildren = this._renderedChildren;
  16590. ReactChildReconciler.unmountChildren(renderedChildren, safely);
  16591. this._renderedChildren = null;
  16592. },
  16593. /**
  16594. * Moves a child component to the supplied index.
  16595. *
  16596. * @param {ReactComponent} child Component to move.
  16597. * @param {number} toIndex Destination index of the element.
  16598. * @param {number} lastIndex Last index visited of the siblings of `child`.
  16599. * @protected
  16600. */
  16601. moveChild: function (child, afterNode, toIndex, lastIndex) {
  16602. // If the index of `child` is less than `lastIndex`, then it needs to
  16603. // be moved. Otherwise, we do not need to move it because a child will be
  16604. // inserted or moved before `child`.
  16605. if (child._mountIndex < lastIndex) {
  16606. return makeMove(child, afterNode, toIndex);
  16607. }
  16608. },
  16609. /**
  16610. * Creates a child component.
  16611. *
  16612. * @param {ReactComponent} child Component to create.
  16613. * @param {string} mountImage Markup to insert.
  16614. * @protected
  16615. */
  16616. createChild: function (child, afterNode, mountImage) {
  16617. return makeInsertMarkup(mountImage, afterNode, child._mountIndex);
  16618. },
  16619. /**
  16620. * Removes a child component.
  16621. *
  16622. * @param {ReactComponent} child Child to remove.
  16623. * @protected
  16624. */
  16625. removeChild: function (child, node) {
  16626. return makeRemove(child, node);
  16627. },
  16628. /**
  16629. * Mounts a child with the supplied name.
  16630. *
  16631. * NOTE: This is part of `updateChildren` and is here for readability.
  16632. *
  16633. * @param {ReactComponent} child Component to mount.
  16634. * @param {string} name Name of the child.
  16635. * @param {number} index Index at which to insert the child.
  16636. * @param {ReactReconcileTransaction} transaction
  16637. * @private
  16638. */
  16639. _mountChildAtIndex: function (child, mountImage, afterNode, index, transaction, context) {
  16640. child._mountIndex = index;
  16641. return this.createChild(child, afterNode, mountImage);
  16642. },
  16643. /**
  16644. * Unmounts a rendered child.
  16645. *
  16646. * NOTE: This is part of `updateChildren` and is here for readability.
  16647. *
  16648. * @param {ReactComponent} child Component to unmount.
  16649. * @private
  16650. */
  16651. _unmountChild: function (child, node) {
  16652. var update = this.removeChild(child, node);
  16653. child._mountIndex = null;
  16654. return update;
  16655. }
  16656. }
  16657. };
  16658. module.exports = ReactMultiChild;
  16659. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16660. /***/ }),
  16661. /* 145 */
  16662. /***/ (function(module, exports, __webpack_require__) {
  16663. "use strict";
  16664. /* WEBPACK VAR INJECTION */(function(process) {/**
  16665. * Copyright 2014-present, Facebook, Inc.
  16666. * All rights reserved.
  16667. *
  16668. * This source code is licensed under the BSD-style license found in the
  16669. * LICENSE file in the root directory of this source tree. An additional grant
  16670. * of patent rights can be found in the PATENTS file in the same directory.
  16671. *
  16672. */
  16673. var ReactReconciler = __webpack_require__(18);
  16674. var instantiateReactComponent = __webpack_require__(71);
  16675. var KeyEscapeUtils = __webpack_require__(47);
  16676. var shouldUpdateReactComponent = __webpack_require__(46);
  16677. var traverseAllChildren = __webpack_require__(75);
  16678. var warning = __webpack_require__(2);
  16679. var ReactComponentTreeHook;
  16680. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  16681. // Temporary hack.
  16682. // Inline requires don't work well with Jest:
  16683. // https://github.com/facebook/react/issues/7240
  16684. // Remove the inline requires when we don't need them anymore:
  16685. // https://github.com/facebook/react/pull/7178
  16686. ReactComponentTreeHook = __webpack_require__(7);
  16687. }
  16688. function instantiateChild(childInstances, child, name, selfDebugID) {
  16689. // We found a component instance.
  16690. var keyUnique = childInstances[name] === undefined;
  16691. if (process.env.NODE_ENV !== 'production') {
  16692. if (!ReactComponentTreeHook) {
  16693. ReactComponentTreeHook = __webpack_require__(7);
  16694. }
  16695. if (!keyUnique) {
  16696. 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;
  16697. }
  16698. }
  16699. if (child != null && keyUnique) {
  16700. childInstances[name] = instantiateReactComponent(child, true);
  16701. }
  16702. }
  16703. /**
  16704. * ReactChildReconciler provides helpers for initializing or updating a set of
  16705. * children. Its output is suitable for passing it onto ReactMultiChild which
  16706. * does diffed reordering and insertion.
  16707. */
  16708. var ReactChildReconciler = {
  16709. /**
  16710. * Generates a "mount image" for each of the supplied children. In the case
  16711. * of `ReactDOMComponent`, a mount image is a string of markup.
  16712. *
  16713. * @param {?object} nestedChildNodes Nested child maps.
  16714. * @return {?object} A set of child instances.
  16715. * @internal
  16716. */
  16717. instantiateChildren: function (nestedChildNodes, transaction, context, selfDebugID // 0 in production and for roots
  16718. ) {
  16719. if (nestedChildNodes == null) {
  16720. return null;
  16721. }
  16722. var childInstances = {};
  16723. if (process.env.NODE_ENV !== 'production') {
  16724. traverseAllChildren(nestedChildNodes, function (childInsts, child, name) {
  16725. return instantiateChild(childInsts, child, name, selfDebugID);
  16726. }, childInstances);
  16727. } else {
  16728. traverseAllChildren(nestedChildNodes, instantiateChild, childInstances);
  16729. }
  16730. return childInstances;
  16731. },
  16732. /**
  16733. * Updates the rendered children and returns a new set of children.
  16734. *
  16735. * @param {?object} prevChildren Previously initialized set of children.
  16736. * @param {?object} nextChildren Flat child element maps.
  16737. * @param {ReactReconcileTransaction} transaction
  16738. * @param {object} context
  16739. * @return {?object} A new set of child instances.
  16740. * @internal
  16741. */
  16742. updateChildren: function (prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID // 0 in production and for roots
  16743. ) {
  16744. // We currently don't have a way to track moves here but if we use iterators
  16745. // instead of for..in we can zip the iterators and check if an item has
  16746. // moved.
  16747. // TODO: If nothing has changed, return the prevChildren object so that we
  16748. // can quickly bailout if nothing has changed.
  16749. if (!nextChildren && !prevChildren) {
  16750. return;
  16751. }
  16752. var name;
  16753. var prevChild;
  16754. for (name in nextChildren) {
  16755. if (!nextChildren.hasOwnProperty(name)) {
  16756. continue;
  16757. }
  16758. prevChild = prevChildren && prevChildren[name];
  16759. var prevElement = prevChild && prevChild._currentElement;
  16760. var nextElement = nextChildren[name];
  16761. if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) {
  16762. ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context);
  16763. nextChildren[name] = prevChild;
  16764. } else {
  16765. if (prevChild) {
  16766. removedNodes[name] = ReactReconciler.getHostNode(prevChild);
  16767. ReactReconciler.unmountComponent(prevChild, false);
  16768. }
  16769. // The child must be instantiated before it's mounted.
  16770. var nextChildInstance = instantiateReactComponent(nextElement, true);
  16771. nextChildren[name] = nextChildInstance;
  16772. // Creating mount image now ensures refs are resolved in right order
  16773. // (see https://github.com/facebook/react/pull/7101 for explanation).
  16774. var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID);
  16775. mountImages.push(nextChildMountImage);
  16776. }
  16777. }
  16778. // Unmount children that are no longer present.
  16779. for (name in prevChildren) {
  16780. if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) {
  16781. prevChild = prevChildren[name];
  16782. removedNodes[name] = ReactReconciler.getHostNode(prevChild);
  16783. ReactReconciler.unmountComponent(prevChild, false);
  16784. }
  16785. }
  16786. },
  16787. /**
  16788. * Unmounts all rendered children. This should be used to clean up children
  16789. * when this component is unmounted.
  16790. *
  16791. * @param {?object} renderedChildren Previously initialized set of children.
  16792. * @internal
  16793. */
  16794. unmountChildren: function (renderedChildren, safely) {
  16795. for (var name in renderedChildren) {
  16796. if (renderedChildren.hasOwnProperty(name)) {
  16797. var renderedChild = renderedChildren[name];
  16798. ReactReconciler.unmountComponent(renderedChild, safely);
  16799. }
  16800. }
  16801. }
  16802. };
  16803. module.exports = ReactChildReconciler;
  16804. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  16805. /***/ }),
  16806. /* 146 */
  16807. /***/ (function(module, exports, __webpack_require__) {
  16808. "use strict";
  16809. /* WEBPACK VAR INJECTION */(function(process) {/**
  16810. * Copyright 2013-present, Facebook, Inc.
  16811. * All rights reserved.
  16812. *
  16813. * This source code is licensed under the BSD-style license found in the
  16814. * LICENSE file in the root directory of this source tree. An additional grant
  16815. * of patent rights can be found in the PATENTS file in the same directory.
  16816. *
  16817. */
  16818. var _prodInvariant = __webpack_require__(3),
  16819. _assign = __webpack_require__(4);
  16820. var React = __webpack_require__(17);
  16821. var ReactComponentEnvironment = __webpack_require__(44);
  16822. var ReactCurrentOwner = __webpack_require__(10);
  16823. var ReactErrorUtils = __webpack_require__(36);
  16824. var ReactInstanceMap = __webpack_require__(24);
  16825. var ReactInstrumentation = __webpack_require__(9);
  16826. var ReactNodeTypes = __webpack_require__(72);
  16827. var ReactReconciler = __webpack_require__(18);
  16828. if (process.env.NODE_ENV !== 'production') {
  16829. var checkReactTypeSpec = __webpack_require__(147);
  16830. }
  16831. var emptyObject = __webpack_require__(20);
  16832. var invariant = __webpack_require__(1);
  16833. var shallowEqual = __webpack_require__(45);
  16834. var shouldUpdateReactComponent = __webpack_require__(46);
  16835. var warning = __webpack_require__(2);
  16836. var CompositeTypes = {
  16837. ImpureClass: 0,
  16838. PureClass: 1,
  16839. StatelessFunctional: 2
  16840. };
  16841. function StatelessComponent(Component) {}
  16842. StatelessComponent.prototype.render = function () {
  16843. var Component = ReactInstanceMap.get(this)._currentElement.type;
  16844. var element = Component(this.props, this.context, this.updater);
  16845. warnIfInvalidElement(Component, element);
  16846. return element;
  16847. };
  16848. function warnIfInvalidElement(Component, element) {
  16849. if (process.env.NODE_ENV !== 'production') {
  16850. 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;
  16851. process.env.NODE_ENV !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0;
  16852. }
  16853. }
  16854. function shouldConstruct(Component) {
  16855. return !!(Component.prototype && Component.prototype.isReactComponent);
  16856. }
  16857. function isPureComponent(Component) {
  16858. return !!(Component.prototype && Component.prototype.isPureReactComponent);
  16859. }
  16860. // Separated into a function to contain deoptimizations caused by try/finally.
  16861. function measureLifeCyclePerf(fn, debugID, timerType) {
  16862. if (debugID === 0) {
  16863. // Top-level wrappers (see ReactMount) and empty components (see
  16864. // ReactDOMEmptyComponent) are invisible to hooks and devtools.
  16865. // Both are implementation details that should go away in the future.
  16866. return fn();
  16867. }
  16868. ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
  16869. try {
  16870. return fn();
  16871. } finally {
  16872. ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
  16873. }
  16874. }
  16875. /**
  16876. * ------------------ The Life-Cycle of a Composite Component ------------------
  16877. *
  16878. * - constructor: Initialization of state. The instance is now retained.
  16879. * - componentWillMount
  16880. * - render
  16881. * - [children's constructors]
  16882. * - [children's componentWillMount and render]
  16883. * - [children's componentDidMount]
  16884. * - componentDidMount
  16885. *
  16886. * Update Phases:
  16887. * - componentWillReceiveProps (only called if parent updated)
  16888. * - shouldComponentUpdate
  16889. * - componentWillUpdate
  16890. * - render
  16891. * - [children's constructors or receive props phases]
  16892. * - componentDidUpdate
  16893. *
  16894. * - componentWillUnmount
  16895. * - [children's componentWillUnmount]
  16896. * - [children destroyed]
  16897. * - (destroyed): The instance is now blank, released by React and ready for GC.
  16898. *
  16899. * -----------------------------------------------------------------------------
  16900. */
  16901. /**
  16902. * An incrementing ID assigned to each component when it is mounted. This is
  16903. * used to enforce the order in which `ReactUpdates` updates dirty components.
  16904. *
  16905. * @private
  16906. */
  16907. var nextMountID = 1;
  16908. /**
  16909. * @lends {ReactCompositeComponent.prototype}
  16910. */
  16911. var ReactCompositeComponent = {
  16912. /**
  16913. * Base constructor for all composite component.
  16914. *
  16915. * @param {ReactElement} element
  16916. * @final
  16917. * @internal
  16918. */
  16919. construct: function (element) {
  16920. this._currentElement = element;
  16921. this._rootNodeID = 0;
  16922. this._compositeType = null;
  16923. this._instance = null;
  16924. this._hostParent = null;
  16925. this._hostContainerInfo = null;
  16926. // See ReactUpdateQueue
  16927. this._updateBatchNumber = null;
  16928. this._pendingElement = null;
  16929. this._pendingStateQueue = null;
  16930. this._pendingReplaceState = false;
  16931. this._pendingForceUpdate = false;
  16932. this._renderedNodeType = null;
  16933. this._renderedComponent = null;
  16934. this._context = null;
  16935. this._mountOrder = 0;
  16936. this._topLevelWrapper = null;
  16937. // See ReactUpdates and ReactUpdateQueue.
  16938. this._pendingCallbacks = null;
  16939. // ComponentWillUnmount shall only be called once
  16940. this._calledComponentWillUnmount = false;
  16941. if (process.env.NODE_ENV !== 'production') {
  16942. this._warnedAboutRefsInRender = false;
  16943. }
  16944. },
  16945. /**
  16946. * Initializes the component, renders markup, and registers event listeners.
  16947. *
  16948. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  16949. * @param {?object} hostParent
  16950. * @param {?object} hostContainerInfo
  16951. * @param {?object} context
  16952. * @return {?string} Rendered markup to be inserted into the DOM.
  16953. * @final
  16954. * @internal
  16955. */
  16956. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  16957. var _this = this;
  16958. this._context = context;
  16959. this._mountOrder = nextMountID++;
  16960. this._hostParent = hostParent;
  16961. this._hostContainerInfo = hostContainerInfo;
  16962. var publicProps = this._currentElement.props;
  16963. var publicContext = this._processContext(context);
  16964. var Component = this._currentElement.type;
  16965. var updateQueue = transaction.getUpdateQueue();
  16966. // Initialize the public class
  16967. var doConstruct = shouldConstruct(Component);
  16968. var inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue);
  16969. var renderedElement;
  16970. // Support functional components
  16971. if (!doConstruct && (inst == null || inst.render == null)) {
  16972. renderedElement = inst;
  16973. warnIfInvalidElement(Component, renderedElement);
  16974. !(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;
  16975. inst = new StatelessComponent(Component);
  16976. this._compositeType = CompositeTypes.StatelessFunctional;
  16977. } else {
  16978. if (isPureComponent(Component)) {
  16979. this._compositeType = CompositeTypes.PureClass;
  16980. } else {
  16981. this._compositeType = CompositeTypes.ImpureClass;
  16982. }
  16983. }
  16984. if (process.env.NODE_ENV !== 'production') {
  16985. // This will throw later in _renderValidatedComponent, but add an early
  16986. // warning now to help debugging
  16987. if (inst.render == null) {
  16988. 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;
  16989. }
  16990. var propsMutated = inst.props !== publicProps;
  16991. var componentName = Component.displayName || Component.name || 'Component';
  16992. 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;
  16993. }
  16994. // These should be set up in the constructor, but as a convenience for
  16995. // simpler class abstractions, we set them up after the fact.
  16996. inst.props = publicProps;
  16997. inst.context = publicContext;
  16998. inst.refs = emptyObject;
  16999. inst.updater = updateQueue;
  17000. this._instance = inst;
  17001. // Store a reference from the instance back to the internal representation
  17002. ReactInstanceMap.set(inst, this);
  17003. if (process.env.NODE_ENV !== 'production') {
  17004. // Since plain JS classes are defined without any special initialization
  17005. // logic, we can not catch common errors early. Therefore, we have to
  17006. // catch them here, at initialization time, instead.
  17007. 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;
  17008. 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;
  17009. 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;
  17010. 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;
  17011. 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;
  17012. 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;
  17013. 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;
  17014. }
  17015. var initialState = inst.state;
  17016. if (initialState === undefined) {
  17017. inst.state = initialState = null;
  17018. }
  17019. !(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;
  17020. this._pendingStateQueue = null;
  17021. this._pendingReplaceState = false;
  17022. this._pendingForceUpdate = false;
  17023. var markup;
  17024. if (inst.unstable_handleError) {
  17025. markup = this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17026. } else {
  17027. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17028. }
  17029. if (inst.componentDidMount) {
  17030. if (process.env.NODE_ENV !== 'production') {
  17031. transaction.getReactMountReady().enqueue(function () {
  17032. measureLifeCyclePerf(function () {
  17033. return inst.componentDidMount();
  17034. }, _this._debugID, 'componentDidMount');
  17035. });
  17036. } else {
  17037. transaction.getReactMountReady().enqueue(inst.componentDidMount, inst);
  17038. }
  17039. }
  17040. return markup;
  17041. },
  17042. _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {
  17043. if (process.env.NODE_ENV !== 'production') {
  17044. ReactCurrentOwner.current = this;
  17045. try {
  17046. return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
  17047. } finally {
  17048. ReactCurrentOwner.current = null;
  17049. }
  17050. } else {
  17051. return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
  17052. }
  17053. },
  17054. _constructComponentWithoutOwner: function (doConstruct, publicProps, publicContext, updateQueue) {
  17055. var Component = this._currentElement.type;
  17056. if (doConstruct) {
  17057. if (process.env.NODE_ENV !== 'production') {
  17058. return measureLifeCyclePerf(function () {
  17059. return new Component(publicProps, publicContext, updateQueue);
  17060. }, this._debugID, 'ctor');
  17061. } else {
  17062. return new Component(publicProps, publicContext, updateQueue);
  17063. }
  17064. }
  17065. // This can still be an instance in case of factory components
  17066. // but we'll count this as time spent rendering as the more common case.
  17067. if (process.env.NODE_ENV !== 'production') {
  17068. return measureLifeCyclePerf(function () {
  17069. return Component(publicProps, publicContext, updateQueue);
  17070. }, this._debugID, 'render');
  17071. } else {
  17072. return Component(publicProps, publicContext, updateQueue);
  17073. }
  17074. },
  17075. performInitialMountWithErrorHandling: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
  17076. var markup;
  17077. var checkpoint = transaction.checkpoint();
  17078. try {
  17079. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17080. } catch (e) {
  17081. // Roll back to checkpoint, handle error (which may add items to the transaction), and take a new checkpoint
  17082. transaction.rollback(checkpoint);
  17083. this._instance.unstable_handleError(e);
  17084. if (this._pendingStateQueue) {
  17085. this._instance.state = this._processPendingState(this._instance.props, this._instance.context);
  17086. }
  17087. checkpoint = transaction.checkpoint();
  17088. this._renderedComponent.unmountComponent(true);
  17089. transaction.rollback(checkpoint);
  17090. // Try again - we've informed the component about the error, so they can render an error message this time.
  17091. // If this throws again, the error will bubble up (and can be caught by a higher error boundary).
  17092. markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
  17093. }
  17094. return markup;
  17095. },
  17096. performInitialMount: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
  17097. var inst = this._instance;
  17098. var debugID = 0;
  17099. if (process.env.NODE_ENV !== 'production') {
  17100. debugID = this._debugID;
  17101. }
  17102. if (inst.componentWillMount) {
  17103. if (process.env.NODE_ENV !== 'production') {
  17104. measureLifeCyclePerf(function () {
  17105. return inst.componentWillMount();
  17106. }, debugID, 'componentWillMount');
  17107. } else {
  17108. inst.componentWillMount();
  17109. }
  17110. // When mounting, calls to `setState` by `componentWillMount` will set
  17111. // `this._pendingStateQueue` without triggering a re-render.
  17112. if (this._pendingStateQueue) {
  17113. inst.state = this._processPendingState(inst.props, inst.context);
  17114. }
  17115. }
  17116. // If not a stateless component, we now render
  17117. if (renderedElement === undefined) {
  17118. renderedElement = this._renderValidatedComponent();
  17119. }
  17120. var nodeType = ReactNodeTypes.getType(renderedElement);
  17121. this._renderedNodeType = nodeType;
  17122. var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
  17123. );
  17124. this._renderedComponent = child;
  17125. var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID);
  17126. if (process.env.NODE_ENV !== 'production') {
  17127. if (debugID !== 0) {
  17128. var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
  17129. ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
  17130. }
  17131. }
  17132. return markup;
  17133. },
  17134. getHostNode: function () {
  17135. return ReactReconciler.getHostNode(this._renderedComponent);
  17136. },
  17137. /**
  17138. * Releases any resources allocated by `mountComponent`.
  17139. *
  17140. * @final
  17141. * @internal
  17142. */
  17143. unmountComponent: function (safely) {
  17144. if (!this._renderedComponent) {
  17145. return;
  17146. }
  17147. var inst = this._instance;
  17148. if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) {
  17149. inst._calledComponentWillUnmount = true;
  17150. if (safely) {
  17151. var name = this.getName() + '.componentWillUnmount()';
  17152. ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst));
  17153. } else {
  17154. if (process.env.NODE_ENV !== 'production') {
  17155. measureLifeCyclePerf(function () {
  17156. return inst.componentWillUnmount();
  17157. }, this._debugID, 'componentWillUnmount');
  17158. } else {
  17159. inst.componentWillUnmount();
  17160. }
  17161. }
  17162. }
  17163. if (this._renderedComponent) {
  17164. ReactReconciler.unmountComponent(this._renderedComponent, safely);
  17165. this._renderedNodeType = null;
  17166. this._renderedComponent = null;
  17167. this._instance = null;
  17168. }
  17169. // Reset pending fields
  17170. // Even if this component is scheduled for another update in ReactUpdates,
  17171. // it would still be ignored because these fields are reset.
  17172. this._pendingStateQueue = null;
  17173. this._pendingReplaceState = false;
  17174. this._pendingForceUpdate = false;
  17175. this._pendingCallbacks = null;
  17176. this._pendingElement = null;
  17177. // These fields do not really need to be reset since this object is no
  17178. // longer accessible.
  17179. this._context = null;
  17180. this._rootNodeID = 0;
  17181. this._topLevelWrapper = null;
  17182. // Delete the reference from the instance to this internal representation
  17183. // which allow the internals to be properly cleaned up even if the user
  17184. // leaks a reference to the public instance.
  17185. ReactInstanceMap.remove(inst);
  17186. // Some existing components rely on inst.props even after they've been
  17187. // destroyed (in event handlers).
  17188. // TODO: inst.props = null;
  17189. // TODO: inst.state = null;
  17190. // TODO: inst.context = null;
  17191. },
  17192. /**
  17193. * Filters the context object to only contain keys specified in
  17194. * `contextTypes`
  17195. *
  17196. * @param {object} context
  17197. * @return {?object}
  17198. * @private
  17199. */
  17200. _maskContext: function (context) {
  17201. var Component = this._currentElement.type;
  17202. var contextTypes = Component.contextTypes;
  17203. if (!contextTypes) {
  17204. return emptyObject;
  17205. }
  17206. var maskedContext = {};
  17207. for (var contextName in contextTypes) {
  17208. maskedContext[contextName] = context[contextName];
  17209. }
  17210. return maskedContext;
  17211. },
  17212. /**
  17213. * Filters the context object to only contain keys specified in
  17214. * `contextTypes`, and asserts that they are valid.
  17215. *
  17216. * @param {object} context
  17217. * @return {?object}
  17218. * @private
  17219. */
  17220. _processContext: function (context) {
  17221. var maskedContext = this._maskContext(context);
  17222. if (process.env.NODE_ENV !== 'production') {
  17223. var Component = this._currentElement.type;
  17224. if (Component.contextTypes) {
  17225. this._checkContextTypes(Component.contextTypes, maskedContext, 'context');
  17226. }
  17227. }
  17228. return maskedContext;
  17229. },
  17230. /**
  17231. * @param {object} currentContext
  17232. * @return {object}
  17233. * @private
  17234. */
  17235. _processChildContext: function (currentContext) {
  17236. var Component = this._currentElement.type;
  17237. var inst = this._instance;
  17238. var childContext;
  17239. if (inst.getChildContext) {
  17240. if (process.env.NODE_ENV !== 'production') {
  17241. ReactInstrumentation.debugTool.onBeginProcessingChildContext();
  17242. try {
  17243. childContext = inst.getChildContext();
  17244. } finally {
  17245. ReactInstrumentation.debugTool.onEndProcessingChildContext();
  17246. }
  17247. } else {
  17248. childContext = inst.getChildContext();
  17249. }
  17250. }
  17251. if (childContext) {
  17252. !(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;
  17253. if (process.env.NODE_ENV !== 'production') {
  17254. this._checkContextTypes(Component.childContextTypes, childContext, 'child context');
  17255. }
  17256. for (var name in childContext) {
  17257. !(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;
  17258. }
  17259. return _assign({}, currentContext, childContext);
  17260. }
  17261. return currentContext;
  17262. },
  17263. /**
  17264. * Assert that the context types are valid
  17265. *
  17266. * @param {object} typeSpecs Map of context field to a ReactPropType
  17267. * @param {object} values Runtime values that need to be type-checked
  17268. * @param {string} location e.g. "prop", "context", "child context"
  17269. * @private
  17270. */
  17271. _checkContextTypes: function (typeSpecs, values, location) {
  17272. if (process.env.NODE_ENV !== 'production') {
  17273. checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID);
  17274. }
  17275. },
  17276. receiveComponent: function (nextElement, transaction, nextContext) {
  17277. var prevElement = this._currentElement;
  17278. var prevContext = this._context;
  17279. this._pendingElement = null;
  17280. this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext);
  17281. },
  17282. /**
  17283. * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate`
  17284. * is set, update the component.
  17285. *
  17286. * @param {ReactReconcileTransaction} transaction
  17287. * @internal
  17288. */
  17289. performUpdateIfNecessary: function (transaction) {
  17290. if (this._pendingElement != null) {
  17291. ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context);
  17292. } else if (this._pendingStateQueue !== null || this._pendingForceUpdate) {
  17293. this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context);
  17294. } else {
  17295. this._updateBatchNumber = null;
  17296. }
  17297. },
  17298. /**
  17299. * Perform an update to a mounted component. The componentWillReceiveProps and
  17300. * shouldComponentUpdate methods are called, then (assuming the update isn't
  17301. * skipped) the remaining update lifecycle methods are called and the DOM
  17302. * representation is updated.
  17303. *
  17304. * By default, this implements React's rendering and reconciliation algorithm.
  17305. * Sophisticated clients may wish to override this.
  17306. *
  17307. * @param {ReactReconcileTransaction} transaction
  17308. * @param {ReactElement} prevParentElement
  17309. * @param {ReactElement} nextParentElement
  17310. * @internal
  17311. * @overridable
  17312. */
  17313. updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) {
  17314. var inst = this._instance;
  17315. !(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;
  17316. var willReceive = false;
  17317. var nextContext;
  17318. // Determine if the context has changed or not
  17319. if (this._context === nextUnmaskedContext) {
  17320. nextContext = inst.context;
  17321. } else {
  17322. nextContext = this._processContext(nextUnmaskedContext);
  17323. willReceive = true;
  17324. }
  17325. var prevProps = prevParentElement.props;
  17326. var nextProps = nextParentElement.props;
  17327. // Not a simple state update but a props update
  17328. if (prevParentElement !== nextParentElement) {
  17329. willReceive = true;
  17330. }
  17331. // An update here will schedule an update but immediately set
  17332. // _pendingStateQueue which will ensure that any state updates gets
  17333. // immediately reconciled instead of waiting for the next batch.
  17334. if (willReceive && inst.componentWillReceiveProps) {
  17335. if (process.env.NODE_ENV !== 'production') {
  17336. measureLifeCyclePerf(function () {
  17337. return inst.componentWillReceiveProps(nextProps, nextContext);
  17338. }, this._debugID, 'componentWillReceiveProps');
  17339. } else {
  17340. inst.componentWillReceiveProps(nextProps, nextContext);
  17341. }
  17342. }
  17343. var nextState = this._processPendingState(nextProps, nextContext);
  17344. var shouldUpdate = true;
  17345. if (!this._pendingForceUpdate) {
  17346. if (inst.shouldComponentUpdate) {
  17347. if (process.env.NODE_ENV !== 'production') {
  17348. shouldUpdate = measureLifeCyclePerf(function () {
  17349. return inst.shouldComponentUpdate(nextProps, nextState, nextContext);
  17350. }, this._debugID, 'shouldComponentUpdate');
  17351. } else {
  17352. shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext);
  17353. }
  17354. } else {
  17355. if (this._compositeType === CompositeTypes.PureClass) {
  17356. shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState);
  17357. }
  17358. }
  17359. }
  17360. if (process.env.NODE_ENV !== 'production') {
  17361. 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;
  17362. }
  17363. this._updateBatchNumber = null;
  17364. if (shouldUpdate) {
  17365. this._pendingForceUpdate = false;
  17366. // Will set `this.props`, `this.state` and `this.context`.
  17367. this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext);
  17368. } else {
  17369. // If it's determined that a component should not update, we still want
  17370. // to set props and state but we shortcut the rest of the update.
  17371. this._currentElement = nextParentElement;
  17372. this._context = nextUnmaskedContext;
  17373. inst.props = nextProps;
  17374. inst.state = nextState;
  17375. inst.context = nextContext;
  17376. }
  17377. },
  17378. _processPendingState: function (props, context) {
  17379. var inst = this._instance;
  17380. var queue = this._pendingStateQueue;
  17381. var replace = this._pendingReplaceState;
  17382. this._pendingReplaceState = false;
  17383. this._pendingStateQueue = null;
  17384. if (!queue) {
  17385. return inst.state;
  17386. }
  17387. if (replace && queue.length === 1) {
  17388. return queue[0];
  17389. }
  17390. var nextState = _assign({}, replace ? queue[0] : inst.state);
  17391. for (var i = replace ? 1 : 0; i < queue.length; i++) {
  17392. var partial = queue[i];
  17393. _assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial);
  17394. }
  17395. return nextState;
  17396. },
  17397. /**
  17398. * Merges new props and state, notifies delegate methods of update and
  17399. * performs update.
  17400. *
  17401. * @param {ReactElement} nextElement Next element
  17402. * @param {object} nextProps Next public object to set as properties.
  17403. * @param {?object} nextState Next object to set as state.
  17404. * @param {?object} nextContext Next public object to set as context.
  17405. * @param {ReactReconcileTransaction} transaction
  17406. * @param {?object} unmaskedContext
  17407. * @private
  17408. */
  17409. _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) {
  17410. var _this2 = this;
  17411. var inst = this._instance;
  17412. var hasComponentDidUpdate = Boolean(inst.componentDidUpdate);
  17413. var prevProps;
  17414. var prevState;
  17415. var prevContext;
  17416. if (hasComponentDidUpdate) {
  17417. prevProps = inst.props;
  17418. prevState = inst.state;
  17419. prevContext = inst.context;
  17420. }
  17421. if (inst.componentWillUpdate) {
  17422. if (process.env.NODE_ENV !== 'production') {
  17423. measureLifeCyclePerf(function () {
  17424. return inst.componentWillUpdate(nextProps, nextState, nextContext);
  17425. }, this._debugID, 'componentWillUpdate');
  17426. } else {
  17427. inst.componentWillUpdate(nextProps, nextState, nextContext);
  17428. }
  17429. }
  17430. this._currentElement = nextElement;
  17431. this._context = unmaskedContext;
  17432. inst.props = nextProps;
  17433. inst.state = nextState;
  17434. inst.context = nextContext;
  17435. this._updateRenderedComponent(transaction, unmaskedContext);
  17436. if (hasComponentDidUpdate) {
  17437. if (process.env.NODE_ENV !== 'production') {
  17438. transaction.getReactMountReady().enqueue(function () {
  17439. measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, 'componentDidUpdate');
  17440. });
  17441. } else {
  17442. transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst);
  17443. }
  17444. }
  17445. },
  17446. /**
  17447. * Call the component's `render` method and update the DOM accordingly.
  17448. *
  17449. * @param {ReactReconcileTransaction} transaction
  17450. * @internal
  17451. */
  17452. _updateRenderedComponent: function (transaction, context) {
  17453. var prevComponentInstance = this._renderedComponent;
  17454. var prevRenderedElement = prevComponentInstance._currentElement;
  17455. var nextRenderedElement = this._renderValidatedComponent();
  17456. var debugID = 0;
  17457. if (process.env.NODE_ENV !== 'production') {
  17458. debugID = this._debugID;
  17459. }
  17460. if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) {
  17461. ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context));
  17462. } else {
  17463. var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance);
  17464. ReactReconciler.unmountComponent(prevComponentInstance, false);
  17465. var nodeType = ReactNodeTypes.getType(nextRenderedElement);
  17466. this._renderedNodeType = nodeType;
  17467. var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
  17468. );
  17469. this._renderedComponent = child;
  17470. var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID);
  17471. if (process.env.NODE_ENV !== 'production') {
  17472. if (debugID !== 0) {
  17473. var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
  17474. ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
  17475. }
  17476. }
  17477. this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance);
  17478. }
  17479. },
  17480. /**
  17481. * Overridden in shallow rendering.
  17482. *
  17483. * @protected
  17484. */
  17485. _replaceNodeWithMarkup: function (oldHostNode, nextMarkup, prevInstance) {
  17486. ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance);
  17487. },
  17488. /**
  17489. * @protected
  17490. */
  17491. _renderValidatedComponentWithoutOwnerOrContext: function () {
  17492. var inst = this._instance;
  17493. var renderedElement;
  17494. if (process.env.NODE_ENV !== 'production') {
  17495. renderedElement = measureLifeCyclePerf(function () {
  17496. return inst.render();
  17497. }, this._debugID, 'render');
  17498. } else {
  17499. renderedElement = inst.render();
  17500. }
  17501. if (process.env.NODE_ENV !== 'production') {
  17502. // We allow auto-mocks to proceed as if they're returning null.
  17503. if (renderedElement === undefined && inst.render._isMockFunction) {
  17504. // This is probably bad practice. Consider warning here and
  17505. // deprecating this convenience.
  17506. renderedElement = null;
  17507. }
  17508. }
  17509. return renderedElement;
  17510. },
  17511. /**
  17512. * @private
  17513. */
  17514. _renderValidatedComponent: function () {
  17515. var renderedElement;
  17516. if (process.env.NODE_ENV !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) {
  17517. ReactCurrentOwner.current = this;
  17518. try {
  17519. renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
  17520. } finally {
  17521. ReactCurrentOwner.current = null;
  17522. }
  17523. } else {
  17524. renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
  17525. }
  17526. !(
  17527. // TODO: An `isValidNode` function would probably be more appropriate
  17528. 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;
  17529. return renderedElement;
  17530. },
  17531. /**
  17532. * Lazily allocates the refs object and stores `component` as `ref`.
  17533. *
  17534. * @param {string} ref Reference name.
  17535. * @param {component} component Component to store as `ref`.
  17536. * @final
  17537. * @private
  17538. */
  17539. attachRef: function (ref, component) {
  17540. var inst = this.getPublicInstance();
  17541. !(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0;
  17542. var publicComponentInstance = component.getPublicInstance();
  17543. if (process.env.NODE_ENV !== 'production') {
  17544. var componentName = component && component.getName ? component.getName() : 'a component';
  17545. 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;
  17546. }
  17547. var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
  17548. refs[ref] = publicComponentInstance;
  17549. },
  17550. /**
  17551. * Detaches a reference name.
  17552. *
  17553. * @param {string} ref Name to dereference.
  17554. * @final
  17555. * @private
  17556. */
  17557. detachRef: function (ref) {
  17558. var refs = this.getPublicInstance().refs;
  17559. delete refs[ref];
  17560. },
  17561. /**
  17562. * Get a text description of the component that can be used to identify it
  17563. * in error messages.
  17564. * @return {string} The name or null.
  17565. * @internal
  17566. */
  17567. getName: function () {
  17568. var type = this._currentElement.type;
  17569. var constructor = this._instance && this._instance.constructor;
  17570. return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null;
  17571. },
  17572. /**
  17573. * Get the publicly accessible representation of this component - i.e. what
  17574. * is exposed by refs and returned by render. Can be null for stateless
  17575. * components.
  17576. *
  17577. * @return {ReactComponent} the public component instance.
  17578. * @internal
  17579. */
  17580. getPublicInstance: function () {
  17581. var inst = this._instance;
  17582. if (this._compositeType === CompositeTypes.StatelessFunctional) {
  17583. return null;
  17584. }
  17585. return inst;
  17586. },
  17587. // Stub
  17588. _instantiateReactComponent: null
  17589. };
  17590. module.exports = ReactCompositeComponent;
  17591. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17592. /***/ }),
  17593. /* 147 */
  17594. /***/ (function(module, exports, __webpack_require__) {
  17595. "use strict";
  17596. /* WEBPACK VAR INJECTION */(function(process) {/**
  17597. * Copyright 2013-present, Facebook, Inc.
  17598. * All rights reserved.
  17599. *
  17600. * This source code is licensed under the BSD-style license found in the
  17601. * LICENSE file in the root directory of this source tree. An additional grant
  17602. * of patent rights can be found in the PATENTS file in the same directory.
  17603. *
  17604. */
  17605. var _prodInvariant = __webpack_require__(3);
  17606. var ReactPropTypeLocationNames = __webpack_require__(148);
  17607. var ReactPropTypesSecret = __webpack_require__(68);
  17608. var invariant = __webpack_require__(1);
  17609. var warning = __webpack_require__(2);
  17610. var ReactComponentTreeHook;
  17611. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  17612. // Temporary hack.
  17613. // Inline requires don't work well with Jest:
  17614. // https://github.com/facebook/react/issues/7240
  17615. // Remove the inline requires when we don't need them anymore:
  17616. // https://github.com/facebook/react/pull/7178
  17617. ReactComponentTreeHook = __webpack_require__(7);
  17618. }
  17619. var loggedTypeFailures = {};
  17620. /**
  17621. * Assert that the values match with the type specs.
  17622. * Error messages are memorized and will only be shown once.
  17623. *
  17624. * @param {object} typeSpecs Map of name to a ReactPropType
  17625. * @param {object} values Runtime values that need to be type-checked
  17626. * @param {string} location e.g. "prop", "context", "child context"
  17627. * @param {string} componentName Name of the component for error messages.
  17628. * @param {?object} element The React element that is being type-checked
  17629. * @param {?number} debugID The React component instance that is being type-checked
  17630. * @private
  17631. */
  17632. function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
  17633. for (var typeSpecName in typeSpecs) {
  17634. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  17635. var error;
  17636. // Prop type validation may throw. In case they do, we don't want to
  17637. // fail the render phase where it didn't fail before. So we log it.
  17638. // After these have been cleaned up, we'll let them throw.
  17639. try {
  17640. // This is intentionally an invariant that gets caught. It's the same
  17641. // behavior as without this statement except with a better message.
  17642. !(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;
  17643. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  17644. } catch (ex) {
  17645. error = ex;
  17646. }
  17647. 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;
  17648. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  17649. // Only monitor this failure once because there tends to be a lot of the
  17650. // same error.
  17651. loggedTypeFailures[error.message] = true;
  17652. var componentStackInfo = '';
  17653. if (process.env.NODE_ENV !== 'production') {
  17654. if (!ReactComponentTreeHook) {
  17655. ReactComponentTreeHook = __webpack_require__(7);
  17656. }
  17657. if (debugID !== null) {
  17658. componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
  17659. } else if (element !== null) {
  17660. componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
  17661. }
  17662. }
  17663. process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
  17664. }
  17665. }
  17666. }
  17667. }
  17668. module.exports = checkReactTypeSpec;
  17669. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17670. /***/ }),
  17671. /* 148 */
  17672. /***/ (function(module, exports, __webpack_require__) {
  17673. "use strict";
  17674. /* WEBPACK VAR INJECTION */(function(process) {/**
  17675. * Copyright 2013-present, Facebook, Inc.
  17676. * All rights reserved.
  17677. *
  17678. * This source code is licensed under the BSD-style license found in the
  17679. * LICENSE file in the root directory of this source tree. An additional grant
  17680. * of patent rights can be found in the PATENTS file in the same directory.
  17681. *
  17682. *
  17683. */
  17684. var ReactPropTypeLocationNames = {};
  17685. if (process.env.NODE_ENV !== 'production') {
  17686. ReactPropTypeLocationNames = {
  17687. prop: 'prop',
  17688. context: 'context',
  17689. childContext: 'child context'
  17690. };
  17691. }
  17692. module.exports = ReactPropTypeLocationNames;
  17693. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17694. /***/ }),
  17695. /* 149 */
  17696. /***/ (function(module, exports, __webpack_require__) {
  17697. "use strict";
  17698. /**
  17699. * Copyright 2013-present, Facebook, Inc.
  17700. * All rights reserved.
  17701. *
  17702. * This source code is licensed under the BSD-style license found in the
  17703. * LICENSE file in the root directory of this source tree. An additional grant
  17704. * of patent rights can be found in the PATENTS file in the same directory.
  17705. *
  17706. *
  17707. */
  17708. var nextDebugID = 1;
  17709. function getNextDebugID() {
  17710. return nextDebugID++;
  17711. }
  17712. module.exports = getNextDebugID;
  17713. /***/ }),
  17714. /* 150 */
  17715. /***/ (function(module, exports, __webpack_require__) {
  17716. "use strict";
  17717. /**
  17718. * Copyright 2014-present, Facebook, Inc.
  17719. * All rights reserved.
  17720. *
  17721. * This source code is licensed under the BSD-style license found in the
  17722. * LICENSE file in the root directory of this source tree. An additional grant
  17723. * of patent rights can be found in the PATENTS file in the same directory.
  17724. *
  17725. *
  17726. */
  17727. // The Symbol used to tag the ReactElement type. If there is no native Symbol
  17728. // nor polyfill, then a plain number is used for performance.
  17729. var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
  17730. module.exports = REACT_ELEMENT_TYPE;
  17731. /***/ }),
  17732. /* 151 */
  17733. /***/ (function(module, exports, __webpack_require__) {
  17734. "use strict";
  17735. /**
  17736. * Copyright 2013-present, Facebook, Inc.
  17737. * All rights reserved.
  17738. *
  17739. * This source code is licensed under the BSD-style license found in the
  17740. * LICENSE file in the root directory of this source tree. An additional grant
  17741. * of patent rights can be found in the PATENTS file in the same directory.
  17742. *
  17743. *
  17744. */
  17745. /* global Symbol */
  17746. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  17747. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  17748. /**
  17749. * Returns the iterator method function contained on the iterable object.
  17750. *
  17751. * Be sure to invoke the function with the iterable as context:
  17752. *
  17753. * var iteratorFn = getIteratorFn(myIterable);
  17754. * if (iteratorFn) {
  17755. * var iterator = iteratorFn.call(myIterable);
  17756. * ...
  17757. * }
  17758. *
  17759. * @param {?object} maybeIterable
  17760. * @return {?function}
  17761. */
  17762. function getIteratorFn(maybeIterable) {
  17763. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  17764. if (typeof iteratorFn === 'function') {
  17765. return iteratorFn;
  17766. }
  17767. }
  17768. module.exports = getIteratorFn;
  17769. /***/ }),
  17770. /* 152 */
  17771. /***/ (function(module, exports, __webpack_require__) {
  17772. "use strict";
  17773. /* WEBPACK VAR INJECTION */(function(process) {/**
  17774. * Copyright 2013-present, Facebook, Inc.
  17775. * All rights reserved.
  17776. *
  17777. * This source code is licensed under the BSD-style license found in the
  17778. * LICENSE file in the root directory of this source tree. An additional grant
  17779. * of patent rights can be found in the PATENTS file in the same directory.
  17780. *
  17781. *
  17782. */
  17783. var KeyEscapeUtils = __webpack_require__(47);
  17784. var traverseAllChildren = __webpack_require__(75);
  17785. var warning = __webpack_require__(2);
  17786. var ReactComponentTreeHook;
  17787. if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') {
  17788. // Temporary hack.
  17789. // Inline requires don't work well with Jest:
  17790. // https://github.com/facebook/react/issues/7240
  17791. // Remove the inline requires when we don't need them anymore:
  17792. // https://github.com/facebook/react/pull/7178
  17793. ReactComponentTreeHook = __webpack_require__(7);
  17794. }
  17795. /**
  17796. * @param {function} traverseContext Context passed through traversal.
  17797. * @param {?ReactComponent} child React child component.
  17798. * @param {!string} name String name of key path to child.
  17799. * @param {number=} selfDebugID Optional debugID of the current internal instance.
  17800. */
  17801. function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {
  17802. // We found a component instance.
  17803. if (traverseContext && typeof traverseContext === 'object') {
  17804. var result = traverseContext;
  17805. var keyUnique = result[name] === undefined;
  17806. if (process.env.NODE_ENV !== 'production') {
  17807. if (!ReactComponentTreeHook) {
  17808. ReactComponentTreeHook = __webpack_require__(7);
  17809. }
  17810. if (!keyUnique) {
  17811. 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;
  17812. }
  17813. }
  17814. if (keyUnique && child != null) {
  17815. result[name] = child;
  17816. }
  17817. }
  17818. }
  17819. /**
  17820. * Flattens children that are typically specified as `props.children`. Any null
  17821. * children will not be included in the resulting object.
  17822. * @return {!object} flattened children keyed by name.
  17823. */
  17824. function flattenChildren(children, selfDebugID) {
  17825. if (children == null) {
  17826. return children;
  17827. }
  17828. var result = {};
  17829. if (process.env.NODE_ENV !== 'production') {
  17830. traverseAllChildren(children, function (traverseContext, child, name) {
  17831. return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);
  17832. }, result);
  17833. } else {
  17834. traverseAllChildren(children, flattenSingleChildIntoContext, result);
  17835. }
  17836. return result;
  17837. }
  17838. module.exports = flattenChildren;
  17839. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17840. /***/ }),
  17841. /* 153 */
  17842. /***/ (function(module, exports, __webpack_require__) {
  17843. "use strict";
  17844. /* WEBPACK VAR INJECTION */(function(process) {/**
  17845. * Copyright 2014-present, Facebook, Inc.
  17846. * All rights reserved.
  17847. *
  17848. * This source code is licensed under the BSD-style license found in the
  17849. * LICENSE file in the root directory of this source tree. An additional grant
  17850. * of patent rights can be found in the PATENTS file in the same directory.
  17851. *
  17852. */
  17853. var _assign = __webpack_require__(4);
  17854. var PooledClass = __webpack_require__(16);
  17855. var Transaction = __webpack_require__(28);
  17856. var ReactInstrumentation = __webpack_require__(9);
  17857. var ReactServerUpdateQueue = __webpack_require__(154);
  17858. /**
  17859. * Executed within the scope of the `Transaction` instance. Consider these as
  17860. * being member methods, but with an implied ordering while being isolated from
  17861. * each other.
  17862. */
  17863. var TRANSACTION_WRAPPERS = [];
  17864. if (process.env.NODE_ENV !== 'production') {
  17865. TRANSACTION_WRAPPERS.push({
  17866. initialize: ReactInstrumentation.debugTool.onBeginFlush,
  17867. close: ReactInstrumentation.debugTool.onEndFlush
  17868. });
  17869. }
  17870. var noopCallbackQueue = {
  17871. enqueue: function () {}
  17872. };
  17873. /**
  17874. * @class ReactServerRenderingTransaction
  17875. * @param {boolean} renderToStaticMarkup
  17876. */
  17877. function ReactServerRenderingTransaction(renderToStaticMarkup) {
  17878. this.reinitializeTransaction();
  17879. this.renderToStaticMarkup = renderToStaticMarkup;
  17880. this.useCreateElement = false;
  17881. this.updateQueue = new ReactServerUpdateQueue(this);
  17882. }
  17883. var Mixin = {
  17884. /**
  17885. * @see Transaction
  17886. * @abstract
  17887. * @final
  17888. * @return {array} Empty list of operation wrap procedures.
  17889. */
  17890. getTransactionWrappers: function () {
  17891. return TRANSACTION_WRAPPERS;
  17892. },
  17893. /**
  17894. * @return {object} The queue to collect `onDOMReady` callbacks with.
  17895. */
  17896. getReactMountReady: function () {
  17897. return noopCallbackQueue;
  17898. },
  17899. /**
  17900. * @return {object} The queue to collect React async events.
  17901. */
  17902. getUpdateQueue: function () {
  17903. return this.updateQueue;
  17904. },
  17905. /**
  17906. * `PooledClass` looks for this, and will invoke this before allowing this
  17907. * instance to be reused.
  17908. */
  17909. destructor: function () {},
  17910. checkpoint: function () {},
  17911. rollback: function () {}
  17912. };
  17913. _assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin);
  17914. PooledClass.addPoolingTo(ReactServerRenderingTransaction);
  17915. module.exports = ReactServerRenderingTransaction;
  17916. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  17917. /***/ }),
  17918. /* 154 */
  17919. /***/ (function(module, exports, __webpack_require__) {
  17920. "use strict";
  17921. /* WEBPACK VAR INJECTION */(function(process) {/**
  17922. * Copyright 2015-present, Facebook, Inc.
  17923. * All rights reserved.
  17924. *
  17925. * This source code is licensed under the BSD-style license found in the
  17926. * LICENSE file in the root directory of this source tree. An additional grant
  17927. * of patent rights can be found in the PATENTS file in the same directory.
  17928. *
  17929. *
  17930. */
  17931. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  17932. var ReactUpdateQueue = __webpack_require__(48);
  17933. var warning = __webpack_require__(2);
  17934. function warnNoop(publicInstance, callerName) {
  17935. if (process.env.NODE_ENV !== 'production') {
  17936. var constructor = publicInstance.constructor;
  17937. 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;
  17938. }
  17939. }
  17940. /**
  17941. * This is the update queue used for server rendering.
  17942. * It delegates to ReactUpdateQueue while server rendering is in progress and
  17943. * switches to ReactNoopUpdateQueue after the transaction has completed.
  17944. * @class ReactServerUpdateQueue
  17945. * @param {Transaction} transaction
  17946. */
  17947. var ReactServerUpdateQueue = function () {
  17948. function ReactServerUpdateQueue(transaction) {
  17949. _classCallCheck(this, ReactServerUpdateQueue);
  17950. this.transaction = transaction;
  17951. }
  17952. /**
  17953. * Checks whether or not this composite component is mounted.
  17954. * @param {ReactClass} publicInstance The instance we want to test.
  17955. * @return {boolean} True if mounted, false otherwise.
  17956. * @protected
  17957. * @final
  17958. */
  17959. ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) {
  17960. return false;
  17961. };
  17962. /**
  17963. * Enqueue a callback that will be executed after all the pending updates
  17964. * have processed.
  17965. *
  17966. * @param {ReactClass} publicInstance The instance to use as `this` context.
  17967. * @param {?function} callback Called after state is updated.
  17968. * @internal
  17969. */
  17970. ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback(publicInstance, callback, callerName) {
  17971. if (this.transaction.isInTransaction()) {
  17972. ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName);
  17973. }
  17974. };
  17975. /**
  17976. * Forces an update. This should only be invoked when it is known with
  17977. * certainty that we are **not** in a DOM transaction.
  17978. *
  17979. * You may want to call this when you know that some deeper aspect of the
  17980. * component's state has changed but `setState` was not called.
  17981. *
  17982. * This will not invoke `shouldComponentUpdate`, but it will invoke
  17983. * `componentWillUpdate` and `componentDidUpdate`.
  17984. *
  17985. * @param {ReactClass} publicInstance The instance that should rerender.
  17986. * @internal
  17987. */
  17988. ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate(publicInstance) {
  17989. if (this.transaction.isInTransaction()) {
  17990. ReactUpdateQueue.enqueueForceUpdate(publicInstance);
  17991. } else {
  17992. warnNoop(publicInstance, 'forceUpdate');
  17993. }
  17994. };
  17995. /**
  17996. * Replaces all of the state. Always use this or `setState` to mutate state.
  17997. * You should treat `this.state` as immutable.
  17998. *
  17999. * There is no guarantee that `this.state` will be immediately updated, so
  18000. * accessing `this.state` after calling this method may return the old value.
  18001. *
  18002. * @param {ReactClass} publicInstance The instance that should rerender.
  18003. * @param {object|function} completeState Next state.
  18004. * @internal
  18005. */
  18006. ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState(publicInstance, completeState) {
  18007. if (this.transaction.isInTransaction()) {
  18008. ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState);
  18009. } else {
  18010. warnNoop(publicInstance, 'replaceState');
  18011. }
  18012. };
  18013. /**
  18014. * Sets a subset of the state. This only exists because _pendingState is
  18015. * internal. This provides a merging strategy that is not available to deep
  18016. * properties which is confusing. TODO: Expose pendingState or don't use it
  18017. * during the merge.
  18018. *
  18019. * @param {ReactClass} publicInstance The instance that should rerender.
  18020. * @param {object|function} partialState Next partial state to be merged with state.
  18021. * @internal
  18022. */
  18023. ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState(publicInstance, partialState) {
  18024. if (this.transaction.isInTransaction()) {
  18025. ReactUpdateQueue.enqueueSetState(publicInstance, partialState);
  18026. } else {
  18027. warnNoop(publicInstance, 'setState');
  18028. }
  18029. };
  18030. return ReactServerUpdateQueue;
  18031. }();
  18032. module.exports = ReactServerUpdateQueue;
  18033. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18034. /***/ }),
  18035. /* 155 */
  18036. /***/ (function(module, exports, __webpack_require__) {
  18037. "use strict";
  18038. /**
  18039. * Copyright 2014-present, Facebook, Inc.
  18040. * All rights reserved.
  18041. *
  18042. * This source code is licensed under the BSD-style license found in the
  18043. * LICENSE file in the root directory of this source tree. An additional grant
  18044. * of patent rights can be found in the PATENTS file in the same directory.
  18045. *
  18046. */
  18047. var _assign = __webpack_require__(4);
  18048. var DOMLazyTree = __webpack_require__(19);
  18049. var ReactDOMComponentTree = __webpack_require__(5);
  18050. var ReactDOMEmptyComponent = function (instantiate) {
  18051. // ReactCompositeComponent uses this:
  18052. this._currentElement = null;
  18053. // ReactDOMComponentTree uses these:
  18054. this._hostNode = null;
  18055. this._hostParent = null;
  18056. this._hostContainerInfo = null;
  18057. this._domID = 0;
  18058. };
  18059. _assign(ReactDOMEmptyComponent.prototype, {
  18060. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  18061. var domID = hostContainerInfo._idCounter++;
  18062. this._domID = domID;
  18063. this._hostParent = hostParent;
  18064. this._hostContainerInfo = hostContainerInfo;
  18065. var nodeValue = ' react-empty: ' + this._domID + ' ';
  18066. if (transaction.useCreateElement) {
  18067. var ownerDocument = hostContainerInfo._ownerDocument;
  18068. var node = ownerDocument.createComment(nodeValue);
  18069. ReactDOMComponentTree.precacheNode(this, node);
  18070. return DOMLazyTree(node);
  18071. } else {
  18072. if (transaction.renderToStaticMarkup) {
  18073. // Normally we'd insert a comment node, but since this is a situation
  18074. // where React won't take over (static pages), we can simply return
  18075. // nothing.
  18076. return '';
  18077. }
  18078. return '<!--' + nodeValue + '-->';
  18079. }
  18080. },
  18081. receiveComponent: function () {},
  18082. getHostNode: function () {
  18083. return ReactDOMComponentTree.getNodeFromInstance(this);
  18084. },
  18085. unmountComponent: function () {
  18086. ReactDOMComponentTree.uncacheNode(this);
  18087. }
  18088. });
  18089. module.exports = ReactDOMEmptyComponent;
  18090. /***/ }),
  18091. /* 156 */
  18092. /***/ (function(module, exports, __webpack_require__) {
  18093. "use strict";
  18094. /* WEBPACK VAR INJECTION */(function(process) {/**
  18095. * Copyright 2015-present, Facebook, Inc.
  18096. * All rights reserved.
  18097. *
  18098. * This source code is licensed under the BSD-style license found in the
  18099. * LICENSE file in the root directory of this source tree. An additional grant
  18100. * of patent rights can be found in the PATENTS file in the same directory.
  18101. *
  18102. */
  18103. var _prodInvariant = __webpack_require__(3);
  18104. var invariant = __webpack_require__(1);
  18105. /**
  18106. * Return the lowest common ancestor of A and B, or null if they are in
  18107. * different trees.
  18108. */
  18109. function getLowestCommonAncestor(instA, instB) {
  18110. !('_hostNode' in instA) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  18111. !('_hostNode' in instB) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
  18112. var depthA = 0;
  18113. for (var tempA = instA; tempA; tempA = tempA._hostParent) {
  18114. depthA++;
  18115. }
  18116. var depthB = 0;
  18117. for (var tempB = instB; tempB; tempB = tempB._hostParent) {
  18118. depthB++;
  18119. }
  18120. // If A is deeper, crawl up.
  18121. while (depthA - depthB > 0) {
  18122. instA = instA._hostParent;
  18123. depthA--;
  18124. }
  18125. // If B is deeper, crawl up.
  18126. while (depthB - depthA > 0) {
  18127. instB = instB._hostParent;
  18128. depthB--;
  18129. }
  18130. // Walk in lockstep until we find a match.
  18131. var depth = depthA;
  18132. while (depth--) {
  18133. if (instA === instB) {
  18134. return instA;
  18135. }
  18136. instA = instA._hostParent;
  18137. instB = instB._hostParent;
  18138. }
  18139. return null;
  18140. }
  18141. /**
  18142. * Return if A is an ancestor of B.
  18143. */
  18144. function isAncestor(instA, instB) {
  18145. !('_hostNode' in instA) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;
  18146. !('_hostNode' in instB) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0;
  18147. while (instB) {
  18148. if (instB === instA) {
  18149. return true;
  18150. }
  18151. instB = instB._hostParent;
  18152. }
  18153. return false;
  18154. }
  18155. /**
  18156. * Return the parent instance of the passed-in instance.
  18157. */
  18158. function getParentInstance(inst) {
  18159. !('_hostNode' in inst) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getParentInstance: Invalid argument.') : _prodInvariant('36') : void 0;
  18160. return inst._hostParent;
  18161. }
  18162. /**
  18163. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  18164. */
  18165. function traverseTwoPhase(inst, fn, arg) {
  18166. var path = [];
  18167. while (inst) {
  18168. path.push(inst);
  18169. inst = inst._hostParent;
  18170. }
  18171. var i;
  18172. for (i = path.length; i-- > 0;) {
  18173. fn(path[i], 'captured', arg);
  18174. }
  18175. for (i = 0; i < path.length; i++) {
  18176. fn(path[i], 'bubbled', arg);
  18177. }
  18178. }
  18179. /**
  18180. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  18181. * should would receive a `mouseEnter` or `mouseLeave` event.
  18182. *
  18183. * Does not invoke the callback on the nearest common ancestor because nothing
  18184. * "entered" or "left" that element.
  18185. */
  18186. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  18187. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  18188. var pathFrom = [];
  18189. while (from && from !== common) {
  18190. pathFrom.push(from);
  18191. from = from._hostParent;
  18192. }
  18193. var pathTo = [];
  18194. while (to && to !== common) {
  18195. pathTo.push(to);
  18196. to = to._hostParent;
  18197. }
  18198. var i;
  18199. for (i = 0; i < pathFrom.length; i++) {
  18200. fn(pathFrom[i], 'bubbled', argFrom);
  18201. }
  18202. for (i = pathTo.length; i-- > 0;) {
  18203. fn(pathTo[i], 'captured', argTo);
  18204. }
  18205. }
  18206. module.exports = {
  18207. isAncestor: isAncestor,
  18208. getLowestCommonAncestor: getLowestCommonAncestor,
  18209. getParentInstance: getParentInstance,
  18210. traverseTwoPhase: traverseTwoPhase,
  18211. traverseEnterLeave: traverseEnterLeave
  18212. };
  18213. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18214. /***/ }),
  18215. /* 157 */
  18216. /***/ (function(module, exports, __webpack_require__) {
  18217. "use strict";
  18218. /* WEBPACK VAR INJECTION */(function(process) {/**
  18219. * Copyright 2013-present, Facebook, Inc.
  18220. * All rights reserved.
  18221. *
  18222. * This source code is licensed under the BSD-style license found in the
  18223. * LICENSE file in the root directory of this source tree. An additional grant
  18224. * of patent rights can be found in the PATENTS file in the same directory.
  18225. *
  18226. */
  18227. var _prodInvariant = __webpack_require__(3),
  18228. _assign = __webpack_require__(4);
  18229. var DOMChildrenOperations = __webpack_require__(40);
  18230. var DOMLazyTree = __webpack_require__(19);
  18231. var ReactDOMComponentTree = __webpack_require__(5);
  18232. var escapeTextContentForBrowser = __webpack_require__(31);
  18233. var invariant = __webpack_require__(1);
  18234. var validateDOMNesting = __webpack_require__(49);
  18235. /**
  18236. * Text nodes violate a couple assumptions that React makes about components:
  18237. *
  18238. * - When mounting text into the DOM, adjacent text nodes are merged.
  18239. * - Text nodes cannot be assigned a React root ID.
  18240. *
  18241. * This component is used to wrap strings between comment nodes so that they
  18242. * can undergo the same reconciliation that is applied to elements.
  18243. *
  18244. * TODO: Investigate representing React components in the DOM with text nodes.
  18245. *
  18246. * @class ReactDOMTextComponent
  18247. * @extends ReactComponent
  18248. * @internal
  18249. */
  18250. var ReactDOMTextComponent = function (text) {
  18251. // TODO: This is really a ReactText (ReactNode), not a ReactElement
  18252. this._currentElement = text;
  18253. this._stringText = '' + text;
  18254. // ReactDOMComponentTree uses these:
  18255. this._hostNode = null;
  18256. this._hostParent = null;
  18257. // Properties
  18258. this._domID = 0;
  18259. this._mountIndex = 0;
  18260. this._closingComment = null;
  18261. this._commentNodes = null;
  18262. };
  18263. _assign(ReactDOMTextComponent.prototype, {
  18264. /**
  18265. * Creates the markup for this text node. This node is not intended to have
  18266. * any features besides containing text content.
  18267. *
  18268. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
  18269. * @return {string} Markup for this text node.
  18270. * @internal
  18271. */
  18272. mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
  18273. if (process.env.NODE_ENV !== 'production') {
  18274. var parentInfo;
  18275. if (hostParent != null) {
  18276. parentInfo = hostParent._ancestorInfo;
  18277. } else if (hostContainerInfo != null) {
  18278. parentInfo = hostContainerInfo._ancestorInfo;
  18279. }
  18280. if (parentInfo) {
  18281. // parentInfo should always be present except for the top-level
  18282. // component when server rendering
  18283. validateDOMNesting(null, this._stringText, this, parentInfo);
  18284. }
  18285. }
  18286. var domID = hostContainerInfo._idCounter++;
  18287. var openingValue = ' react-text: ' + domID + ' ';
  18288. var closingValue = ' /react-text ';
  18289. this._domID = domID;
  18290. this._hostParent = hostParent;
  18291. if (transaction.useCreateElement) {
  18292. var ownerDocument = hostContainerInfo._ownerDocument;
  18293. var openingComment = ownerDocument.createComment(openingValue);
  18294. var closingComment = ownerDocument.createComment(closingValue);
  18295. var lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment());
  18296. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment));
  18297. if (this._stringText) {
  18298. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText)));
  18299. }
  18300. DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment));
  18301. ReactDOMComponentTree.precacheNode(this, openingComment);
  18302. this._closingComment = closingComment;
  18303. return lazyTree;
  18304. } else {
  18305. var escapedText = escapeTextContentForBrowser(this._stringText);
  18306. if (transaction.renderToStaticMarkup) {
  18307. // Normally we'd wrap this between comment nodes for the reasons stated
  18308. // above, but since this is a situation where React won't take over
  18309. // (static pages), we can simply return the text as it is.
  18310. return escapedText;
  18311. }
  18312. return '<!--' + openingValue + '-->' + escapedText + '<!--' + closingValue + '-->';
  18313. }
  18314. },
  18315. /**
  18316. * Updates this component by updating the text content.
  18317. *
  18318. * @param {ReactText} nextText The next text content
  18319. * @param {ReactReconcileTransaction} transaction
  18320. * @internal
  18321. */
  18322. receiveComponent: function (nextText, transaction) {
  18323. if (nextText !== this._currentElement) {
  18324. this._currentElement = nextText;
  18325. var nextStringText = '' + nextText;
  18326. if (nextStringText !== this._stringText) {
  18327. // TODO: Save this as pending props and use performUpdateIfNecessary
  18328. // and/or updateComponent to do the actual update for consistency with
  18329. // other component types?
  18330. this._stringText = nextStringText;
  18331. var commentNodes = this.getHostNode();
  18332. DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText);
  18333. }
  18334. }
  18335. },
  18336. getHostNode: function () {
  18337. var hostNode = this._commentNodes;
  18338. if (hostNode) {
  18339. return hostNode;
  18340. }
  18341. if (!this._closingComment) {
  18342. var openingComment = ReactDOMComponentTree.getNodeFromInstance(this);
  18343. var node = openingComment.nextSibling;
  18344. while (true) {
  18345. !(node != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Missing closing comment for text component %s', this._domID) : _prodInvariant('67', this._domID) : void 0;
  18346. if (node.nodeType === 8 && node.nodeValue === ' /react-text ') {
  18347. this._closingComment = node;
  18348. break;
  18349. }
  18350. node = node.nextSibling;
  18351. }
  18352. }
  18353. hostNode = [this._hostNode, this._closingComment];
  18354. this._commentNodes = hostNode;
  18355. return hostNode;
  18356. },
  18357. unmountComponent: function () {
  18358. this._closingComment = null;
  18359. this._commentNodes = null;
  18360. ReactDOMComponentTree.uncacheNode(this);
  18361. }
  18362. });
  18363. module.exports = ReactDOMTextComponent;
  18364. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18365. /***/ }),
  18366. /* 158 */
  18367. /***/ (function(module, exports, __webpack_require__) {
  18368. "use strict";
  18369. /**
  18370. * Copyright 2013-present, Facebook, Inc.
  18371. * All rights reserved.
  18372. *
  18373. * This source code is licensed under the BSD-style license found in the
  18374. * LICENSE file in the root directory of this source tree. An additional grant
  18375. * of patent rights can be found in the PATENTS file in the same directory.
  18376. *
  18377. */
  18378. var _assign = __webpack_require__(4);
  18379. var ReactUpdates = __webpack_require__(11);
  18380. var Transaction = __webpack_require__(28);
  18381. var emptyFunction = __webpack_require__(8);
  18382. var RESET_BATCHED_UPDATES = {
  18383. initialize: emptyFunction,
  18384. close: function () {
  18385. ReactDefaultBatchingStrategy.isBatchingUpdates = false;
  18386. }
  18387. };
  18388. var FLUSH_BATCHED_UPDATES = {
  18389. initialize: emptyFunction,
  18390. close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates)
  18391. };
  18392. var TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES];
  18393. function ReactDefaultBatchingStrategyTransaction() {
  18394. this.reinitializeTransaction();
  18395. }
  18396. _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, {
  18397. getTransactionWrappers: function () {
  18398. return TRANSACTION_WRAPPERS;
  18399. }
  18400. });
  18401. var transaction = new ReactDefaultBatchingStrategyTransaction();
  18402. var ReactDefaultBatchingStrategy = {
  18403. isBatchingUpdates: false,
  18404. /**
  18405. * Call the provided function in a context within which calls to `setState`
  18406. * and friends are batched such that components aren't updated unnecessarily.
  18407. */
  18408. batchedUpdates: function (callback, a, b, c, d, e) {
  18409. var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates;
  18410. ReactDefaultBatchingStrategy.isBatchingUpdates = true;
  18411. // The code is written this way to avoid extra allocations
  18412. if (alreadyBatchingUpdates) {
  18413. return callback(a, b, c, d, e);
  18414. } else {
  18415. return transaction.perform(callback, null, a, b, c, d, e);
  18416. }
  18417. }
  18418. };
  18419. module.exports = ReactDefaultBatchingStrategy;
  18420. /***/ }),
  18421. /* 159 */
  18422. /***/ (function(module, exports, __webpack_require__) {
  18423. "use strict";
  18424. /**
  18425. * Copyright 2013-present, Facebook, Inc.
  18426. * All rights reserved.
  18427. *
  18428. * This source code is licensed under the BSD-style license found in the
  18429. * LICENSE file in the root directory of this source tree. An additional grant
  18430. * of patent rights can be found in the PATENTS file in the same directory.
  18431. *
  18432. */
  18433. var _assign = __webpack_require__(4);
  18434. var EventListener = __webpack_require__(76);
  18435. var ExecutionEnvironment = __webpack_require__(6);
  18436. var PooledClass = __webpack_require__(16);
  18437. var ReactDOMComponentTree = __webpack_require__(5);
  18438. var ReactUpdates = __webpack_require__(11);
  18439. var getEventTarget = __webpack_require__(37);
  18440. var getUnboundedScrollPosition = __webpack_require__(160);
  18441. /**
  18442. * Find the deepest React component completely containing the root of the
  18443. * passed-in instance (for use when entire React trees are nested within each
  18444. * other). If React trees are not nested, returns null.
  18445. */
  18446. function findParent(inst) {
  18447. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  18448. // traversal, but caching is difficult to do correctly without using a
  18449. // mutation observer to listen for all DOM changes.
  18450. while (inst._hostParent) {
  18451. inst = inst._hostParent;
  18452. }
  18453. var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);
  18454. var container = rootNode.parentNode;
  18455. return ReactDOMComponentTree.getClosestInstanceFromNode(container);
  18456. }
  18457. // Used to store ancestor hierarchy in top level callback
  18458. function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) {
  18459. this.topLevelType = topLevelType;
  18460. this.nativeEvent = nativeEvent;
  18461. this.ancestors = [];
  18462. }
  18463. _assign(TopLevelCallbackBookKeeping.prototype, {
  18464. destructor: function () {
  18465. this.topLevelType = null;
  18466. this.nativeEvent = null;
  18467. this.ancestors.length = 0;
  18468. }
  18469. });
  18470. PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler);
  18471. function handleTopLevelImpl(bookKeeping) {
  18472. var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent);
  18473. var targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget);
  18474. // Loop through the hierarchy, in case there's any nested components.
  18475. // It's important that we build the array of ancestors before calling any
  18476. // event handlers, because event handlers can modify the DOM, leading to
  18477. // inconsistencies with ReactMount's node cache. See #1105.
  18478. var ancestor = targetInst;
  18479. do {
  18480. bookKeeping.ancestors.push(ancestor);
  18481. ancestor = ancestor && findParent(ancestor);
  18482. } while (ancestor);
  18483. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  18484. targetInst = bookKeeping.ancestors[i];
  18485. ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  18486. }
  18487. }
  18488. function scrollValueMonitor(cb) {
  18489. var scrollPosition = getUnboundedScrollPosition(window);
  18490. cb(scrollPosition);
  18491. }
  18492. var ReactEventListener = {
  18493. _enabled: true,
  18494. _handleTopLevel: null,
  18495. WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null,
  18496. setHandleTopLevel: function (handleTopLevel) {
  18497. ReactEventListener._handleTopLevel = handleTopLevel;
  18498. },
  18499. setEnabled: function (enabled) {
  18500. ReactEventListener._enabled = !!enabled;
  18501. },
  18502. isEnabled: function () {
  18503. return ReactEventListener._enabled;
  18504. },
  18505. /**
  18506. * Traps top-level events by using event bubbling.
  18507. *
  18508. * @param {string} topLevelType Record from `EventConstants`.
  18509. * @param {string} handlerBaseName Event name (e.g. "click").
  18510. * @param {object} element Element on which to attach listener.
  18511. * @return {?object} An object with a remove function which will forcefully
  18512. * remove the listener.
  18513. * @internal
  18514. */
  18515. trapBubbledEvent: function (topLevelType, handlerBaseName, element) {
  18516. if (!element) {
  18517. return null;
  18518. }
  18519. return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  18520. },
  18521. /**
  18522. * Traps a top-level event by using event capturing.
  18523. *
  18524. * @param {string} topLevelType Record from `EventConstants`.
  18525. * @param {string} handlerBaseName Event name (e.g. "click").
  18526. * @param {object} element Element on which to attach listener.
  18527. * @return {?object} An object with a remove function which will forcefully
  18528. * remove the listener.
  18529. * @internal
  18530. */
  18531. trapCapturedEvent: function (topLevelType, handlerBaseName, element) {
  18532. if (!element) {
  18533. return null;
  18534. }
  18535. return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  18536. },
  18537. monitorScrollValue: function (refresh) {
  18538. var callback = scrollValueMonitor.bind(null, refresh);
  18539. EventListener.listen(window, 'scroll', callback);
  18540. },
  18541. dispatchEvent: function (topLevelType, nativeEvent) {
  18542. if (!ReactEventListener._enabled) {
  18543. return;
  18544. }
  18545. var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent);
  18546. try {
  18547. // Event queue being processed in the same cycle allows
  18548. // `preventDefault`.
  18549. ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping);
  18550. } finally {
  18551. TopLevelCallbackBookKeeping.release(bookKeeping);
  18552. }
  18553. }
  18554. };
  18555. module.exports = ReactEventListener;
  18556. /***/ }),
  18557. /* 160 */
  18558. /***/ (function(module, exports, __webpack_require__) {
  18559. "use strict";
  18560. /**
  18561. * Copyright (c) 2013-present, Facebook, Inc.
  18562. *
  18563. * This source code is licensed under the MIT license found in the
  18564. * LICENSE file in the root directory of this source tree.
  18565. *
  18566. * @typechecks
  18567. */
  18568. /**
  18569. * Gets the scroll position of the supplied element or window.
  18570. *
  18571. * The return values are unbounded, unlike `getScrollPosition`. This means they
  18572. * may be negative or exceed the element boundaries (which is possible using
  18573. * inertial scrolling).
  18574. *
  18575. * @param {DOMWindow|DOMElement} scrollable
  18576. * @return {object} Map with `x` and `y` keys.
  18577. */
  18578. function getUnboundedScrollPosition(scrollable) {
  18579. if (scrollable.Window && scrollable instanceof scrollable.Window) {
  18580. return {
  18581. x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft,
  18582. y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop
  18583. };
  18584. }
  18585. return {
  18586. x: scrollable.scrollLeft,
  18587. y: scrollable.scrollTop
  18588. };
  18589. }
  18590. module.exports = getUnboundedScrollPosition;
  18591. /***/ }),
  18592. /* 161 */
  18593. /***/ (function(module, exports, __webpack_require__) {
  18594. "use strict";
  18595. /**
  18596. * Copyright 2013-present, Facebook, Inc.
  18597. * All rights reserved.
  18598. *
  18599. * This source code is licensed under the BSD-style license found in the
  18600. * LICENSE file in the root directory of this source tree. An additional grant
  18601. * of patent rights can be found in the PATENTS file in the same directory.
  18602. *
  18603. */
  18604. var DOMProperty = __webpack_require__(13);
  18605. var EventPluginHub = __webpack_require__(22);
  18606. var EventPluginUtils = __webpack_require__(35);
  18607. var ReactComponentEnvironment = __webpack_require__(44);
  18608. var ReactEmptyComponent = __webpack_require__(73);
  18609. var ReactBrowserEventEmitter = __webpack_require__(32);
  18610. var ReactHostComponent = __webpack_require__(74);
  18611. var ReactUpdates = __webpack_require__(11);
  18612. var ReactInjection = {
  18613. Component: ReactComponentEnvironment.injection,
  18614. DOMProperty: DOMProperty.injection,
  18615. EmptyComponent: ReactEmptyComponent.injection,
  18616. EventPluginHub: EventPluginHub.injection,
  18617. EventPluginUtils: EventPluginUtils.injection,
  18618. EventEmitter: ReactBrowserEventEmitter.injection,
  18619. HostComponent: ReactHostComponent.injection,
  18620. Updates: ReactUpdates.injection
  18621. };
  18622. module.exports = ReactInjection;
  18623. /***/ }),
  18624. /* 162 */
  18625. /***/ (function(module, exports, __webpack_require__) {
  18626. "use strict";
  18627. /* WEBPACK VAR INJECTION */(function(process) {/**
  18628. * Copyright 2013-present, Facebook, Inc.
  18629. * All rights reserved.
  18630. *
  18631. * This source code is licensed under the BSD-style license found in the
  18632. * LICENSE file in the root directory of this source tree. An additional grant
  18633. * of patent rights can be found in the PATENTS file in the same directory.
  18634. *
  18635. */
  18636. var _assign = __webpack_require__(4);
  18637. var CallbackQueue = __webpack_require__(60);
  18638. var PooledClass = __webpack_require__(16);
  18639. var ReactBrowserEventEmitter = __webpack_require__(32);
  18640. var ReactInputSelection = __webpack_require__(77);
  18641. var ReactInstrumentation = __webpack_require__(9);
  18642. var Transaction = __webpack_require__(28);
  18643. var ReactUpdateQueue = __webpack_require__(48);
  18644. /**
  18645. * Ensures that, when possible, the selection range (currently selected text
  18646. * input) is not disturbed by performing the transaction.
  18647. */
  18648. var SELECTION_RESTORATION = {
  18649. /**
  18650. * @return {Selection} Selection information.
  18651. */
  18652. initialize: ReactInputSelection.getSelectionInformation,
  18653. /**
  18654. * @param {Selection} sel Selection information returned from `initialize`.
  18655. */
  18656. close: ReactInputSelection.restoreSelection
  18657. };
  18658. /**
  18659. * Suppresses events (blur/focus) that could be inadvertently dispatched due to
  18660. * high level DOM manipulations (like temporarily removing a text input from the
  18661. * DOM).
  18662. */
  18663. var EVENT_SUPPRESSION = {
  18664. /**
  18665. * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before
  18666. * the reconciliation.
  18667. */
  18668. initialize: function () {
  18669. var currentlyEnabled = ReactBrowserEventEmitter.isEnabled();
  18670. ReactBrowserEventEmitter.setEnabled(false);
  18671. return currentlyEnabled;
  18672. },
  18673. /**
  18674. * @param {boolean} previouslyEnabled Enabled status of
  18675. * `ReactBrowserEventEmitter` before the reconciliation occurred. `close`
  18676. * restores the previous value.
  18677. */
  18678. close: function (previouslyEnabled) {
  18679. ReactBrowserEventEmitter.setEnabled(previouslyEnabled);
  18680. }
  18681. };
  18682. /**
  18683. * Provides a queue for collecting `componentDidMount` and
  18684. * `componentDidUpdate` callbacks during the transaction.
  18685. */
  18686. var ON_DOM_READY_QUEUEING = {
  18687. /**
  18688. * Initializes the internal `onDOMReady` queue.
  18689. */
  18690. initialize: function () {
  18691. this.reactMountReady.reset();
  18692. },
  18693. /**
  18694. * After DOM is flushed, invoke all registered `onDOMReady` callbacks.
  18695. */
  18696. close: function () {
  18697. this.reactMountReady.notifyAll();
  18698. }
  18699. };
  18700. /**
  18701. * Executed within the scope of the `Transaction` instance. Consider these as
  18702. * being member methods, but with an implied ordering while being isolated from
  18703. * each other.
  18704. */
  18705. var TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING];
  18706. if (process.env.NODE_ENV !== 'production') {
  18707. TRANSACTION_WRAPPERS.push({
  18708. initialize: ReactInstrumentation.debugTool.onBeginFlush,
  18709. close: ReactInstrumentation.debugTool.onEndFlush
  18710. });
  18711. }
  18712. /**
  18713. * Currently:
  18714. * - The order that these are listed in the transaction is critical:
  18715. * - Suppresses events.
  18716. * - Restores selection range.
  18717. *
  18718. * Future:
  18719. * - Restore document/overflow scroll positions that were unintentionally
  18720. * modified via DOM insertions above the top viewport boundary.
  18721. * - Implement/integrate with customized constraint based layout system and keep
  18722. * track of which dimensions must be remeasured.
  18723. *
  18724. * @class ReactReconcileTransaction
  18725. */
  18726. function ReactReconcileTransaction(useCreateElement) {
  18727. this.reinitializeTransaction();
  18728. // Only server-side rendering really needs this option (see
  18729. // `ReactServerRendering`), but server-side uses
  18730. // `ReactServerRenderingTransaction` instead. This option is here so that it's
  18731. // accessible and defaults to false when `ReactDOMComponent` and
  18732. // `ReactDOMTextComponent` checks it in `mountComponent`.`
  18733. this.renderToStaticMarkup = false;
  18734. this.reactMountReady = CallbackQueue.getPooled(null);
  18735. this.useCreateElement = useCreateElement;
  18736. }
  18737. var Mixin = {
  18738. /**
  18739. * @see Transaction
  18740. * @abstract
  18741. * @final
  18742. * @return {array<object>} List of operation wrap procedures.
  18743. * TODO: convert to array<TransactionWrapper>
  18744. */
  18745. getTransactionWrappers: function () {
  18746. return TRANSACTION_WRAPPERS;
  18747. },
  18748. /**
  18749. * @return {object} The queue to collect `onDOMReady` callbacks with.
  18750. */
  18751. getReactMountReady: function () {
  18752. return this.reactMountReady;
  18753. },
  18754. /**
  18755. * @return {object} The queue to collect React async events.
  18756. */
  18757. getUpdateQueue: function () {
  18758. return ReactUpdateQueue;
  18759. },
  18760. /**
  18761. * Save current transaction state -- if the return value from this method is
  18762. * passed to `rollback`, the transaction will be reset to that state.
  18763. */
  18764. checkpoint: function () {
  18765. // reactMountReady is the our only stateful wrapper
  18766. return this.reactMountReady.checkpoint();
  18767. },
  18768. rollback: function (checkpoint) {
  18769. this.reactMountReady.rollback(checkpoint);
  18770. },
  18771. /**
  18772. * `PooledClass` looks for this, and will invoke this before allowing this
  18773. * instance to be reused.
  18774. */
  18775. destructor: function () {
  18776. CallbackQueue.release(this.reactMountReady);
  18777. this.reactMountReady = null;
  18778. }
  18779. };
  18780. _assign(ReactReconcileTransaction.prototype, Transaction, Mixin);
  18781. PooledClass.addPoolingTo(ReactReconcileTransaction);
  18782. module.exports = ReactReconcileTransaction;
  18783. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  18784. /***/ }),
  18785. /* 163 */
  18786. /***/ (function(module, exports, __webpack_require__) {
  18787. "use strict";
  18788. /**
  18789. * Copyright 2013-present, Facebook, Inc.
  18790. * All rights reserved.
  18791. *
  18792. * This source code is licensed under the BSD-style license found in the
  18793. * LICENSE file in the root directory of this source tree. An additional grant
  18794. * of patent rights can be found in the PATENTS file in the same directory.
  18795. *
  18796. */
  18797. var ExecutionEnvironment = __webpack_require__(6);
  18798. var getNodeForCharacterOffset = __webpack_require__(164);
  18799. var getTextContentAccessor = __webpack_require__(59);
  18800. /**
  18801. * While `isCollapsed` is available on the Selection object and `collapsed`
  18802. * is available on the Range object, IE11 sometimes gets them wrong.
  18803. * If the anchor/focus nodes and offsets are the same, the range is collapsed.
  18804. */
  18805. function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {
  18806. return anchorNode === focusNode && anchorOffset === focusOffset;
  18807. }
  18808. /**
  18809. * Get the appropriate anchor and focus node/offset pairs for IE.
  18810. *
  18811. * The catch here is that IE's selection API doesn't provide information
  18812. * about whether the selection is forward or backward, so we have to
  18813. * behave as though it's always forward.
  18814. *
  18815. * IE text differs from modern selection in that it behaves as though
  18816. * block elements end with a new line. This means character offsets will
  18817. * differ between the two APIs.
  18818. *
  18819. * @param {DOMElement} node
  18820. * @return {object}
  18821. */
  18822. function getIEOffsets(node) {
  18823. var selection = document.selection;
  18824. var selectedRange = selection.createRange();
  18825. var selectedLength = selectedRange.text.length;
  18826. // Duplicate selection so we can move range without breaking user selection.
  18827. var fromStart = selectedRange.duplicate();
  18828. fromStart.moveToElementText(node);
  18829. fromStart.setEndPoint('EndToStart', selectedRange);
  18830. var startOffset = fromStart.text.length;
  18831. var endOffset = startOffset + selectedLength;
  18832. return {
  18833. start: startOffset,
  18834. end: endOffset
  18835. };
  18836. }
  18837. /**
  18838. * @param {DOMElement} node
  18839. * @return {?object}
  18840. */
  18841. function getModernOffsets(node) {
  18842. var selection = window.getSelection && window.getSelection();
  18843. if (!selection || selection.rangeCount === 0) {
  18844. return null;
  18845. }
  18846. var anchorNode = selection.anchorNode;
  18847. var anchorOffset = selection.anchorOffset;
  18848. var focusNode = selection.focusNode;
  18849. var focusOffset = selection.focusOffset;
  18850. var currentRange = selection.getRangeAt(0);
  18851. // In Firefox, range.startContainer and range.endContainer can be "anonymous
  18852. // divs", e.g. the up/down buttons on an <input type="number">. Anonymous
  18853. // divs do not seem to expose properties, triggering a "Permission denied
  18854. // error" if any of its properties are accessed. The only seemingly possible
  18855. // way to avoid erroring is to access a property that typically works for
  18856. // non-anonymous divs and catch any error that may otherwise arise. See
  18857. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  18858. try {
  18859. /* eslint-disable no-unused-expressions */
  18860. currentRange.startContainer.nodeType;
  18861. currentRange.endContainer.nodeType;
  18862. /* eslint-enable no-unused-expressions */
  18863. } catch (e) {
  18864. return null;
  18865. }
  18866. // If the node and offset values are the same, the selection is collapsed.
  18867. // `Selection.isCollapsed` is available natively, but IE sometimes gets
  18868. // this value wrong.
  18869. var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset);
  18870. var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length;
  18871. var tempRange = currentRange.cloneRange();
  18872. tempRange.selectNodeContents(node);
  18873. tempRange.setEnd(currentRange.startContainer, currentRange.startOffset);
  18874. var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset);
  18875. var start = isTempRangeCollapsed ? 0 : tempRange.toString().length;
  18876. var end = start + rangeLength;
  18877. // Detect whether the selection is backward.
  18878. var detectionRange = document.createRange();
  18879. detectionRange.setStart(anchorNode, anchorOffset);
  18880. detectionRange.setEnd(focusNode, focusOffset);
  18881. var isBackward = detectionRange.collapsed;
  18882. return {
  18883. start: isBackward ? end : start,
  18884. end: isBackward ? start : end
  18885. };
  18886. }
  18887. /**
  18888. * @param {DOMElement|DOMTextNode} node
  18889. * @param {object} offsets
  18890. */
  18891. function setIEOffsets(node, offsets) {
  18892. var range = document.selection.createRange().duplicate();
  18893. var start, end;
  18894. if (offsets.end === undefined) {
  18895. start = offsets.start;
  18896. end = start;
  18897. } else if (offsets.start > offsets.end) {
  18898. start = offsets.end;
  18899. end = offsets.start;
  18900. } else {
  18901. start = offsets.start;
  18902. end = offsets.end;
  18903. }
  18904. range.moveToElementText(node);
  18905. range.moveStart('character', start);
  18906. range.setEndPoint('EndToStart', range);
  18907. range.moveEnd('character', end - start);
  18908. range.select();
  18909. }
  18910. /**
  18911. * In modern non-IE browsers, we can support both forward and backward
  18912. * selections.
  18913. *
  18914. * Note: IE10+ supports the Selection object, but it does not support
  18915. * the `extend` method, which means that even in modern IE, it's not possible
  18916. * to programmatically create a backward selection. Thus, for all IE
  18917. * versions, we use the old IE API to create our selections.
  18918. *
  18919. * @param {DOMElement|DOMTextNode} node
  18920. * @param {object} offsets
  18921. */
  18922. function setModernOffsets(node, offsets) {
  18923. if (!window.getSelection) {
  18924. return;
  18925. }
  18926. var selection = window.getSelection();
  18927. var length = node[getTextContentAccessor()].length;
  18928. var start = Math.min(offsets.start, length);
  18929. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  18930. // IE 11 uses modern selection, but doesn't support the extend method.
  18931. // Flip backward selections, so we can set with a single range.
  18932. if (!selection.extend && start > end) {
  18933. var temp = end;
  18934. end = start;
  18935. start = temp;
  18936. }
  18937. var startMarker = getNodeForCharacterOffset(node, start);
  18938. var endMarker = getNodeForCharacterOffset(node, end);
  18939. if (startMarker && endMarker) {
  18940. var range = document.createRange();
  18941. range.setStart(startMarker.node, startMarker.offset);
  18942. selection.removeAllRanges();
  18943. if (start > end) {
  18944. selection.addRange(range);
  18945. selection.extend(endMarker.node, endMarker.offset);
  18946. } else {
  18947. range.setEnd(endMarker.node, endMarker.offset);
  18948. selection.addRange(range);
  18949. }
  18950. }
  18951. }
  18952. var useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window);
  18953. var ReactDOMSelection = {
  18954. /**
  18955. * @param {DOMElement} node
  18956. */
  18957. getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets,
  18958. /**
  18959. * @param {DOMElement|DOMTextNode} node
  18960. * @param {object} offsets
  18961. */
  18962. setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets
  18963. };
  18964. module.exports = ReactDOMSelection;
  18965. /***/ }),
  18966. /* 164 */
  18967. /***/ (function(module, exports, __webpack_require__) {
  18968. "use strict";
  18969. /**
  18970. * Copyright 2013-present, Facebook, Inc.
  18971. * All rights reserved.
  18972. *
  18973. * This source code is licensed under the BSD-style license found in the
  18974. * LICENSE file in the root directory of this source tree. An additional grant
  18975. * of patent rights can be found in the PATENTS file in the same directory.
  18976. *
  18977. */
  18978. /**
  18979. * Given any node return the first leaf node without children.
  18980. *
  18981. * @param {DOMElement|DOMTextNode} node
  18982. * @return {DOMElement|DOMTextNode}
  18983. */
  18984. function getLeafNode(node) {
  18985. while (node && node.firstChild) {
  18986. node = node.firstChild;
  18987. }
  18988. return node;
  18989. }
  18990. /**
  18991. * Get the next sibling within a container. This will walk up the
  18992. * DOM if a node's siblings have been exhausted.
  18993. *
  18994. * @param {DOMElement|DOMTextNode} node
  18995. * @return {?DOMElement|DOMTextNode}
  18996. */
  18997. function getSiblingNode(node) {
  18998. while (node) {
  18999. if (node.nextSibling) {
  19000. return node.nextSibling;
  19001. }
  19002. node = node.parentNode;
  19003. }
  19004. }
  19005. /**
  19006. * Get object describing the nodes which contain characters at offset.
  19007. *
  19008. * @param {DOMElement|DOMTextNode} root
  19009. * @param {number} offset
  19010. * @return {?object}
  19011. */
  19012. function getNodeForCharacterOffset(root, offset) {
  19013. var node = getLeafNode(root);
  19014. var nodeStart = 0;
  19015. var nodeEnd = 0;
  19016. while (node) {
  19017. if (node.nodeType === 3) {
  19018. nodeEnd = nodeStart + node.textContent.length;
  19019. if (nodeStart <= offset && nodeEnd >= offset) {
  19020. return {
  19021. node: node,
  19022. offset: offset - nodeStart
  19023. };
  19024. }
  19025. nodeStart = nodeEnd;
  19026. }
  19027. node = getLeafNode(getSiblingNode(node));
  19028. }
  19029. }
  19030. module.exports = getNodeForCharacterOffset;
  19031. /***/ }),
  19032. /* 165 */
  19033. /***/ (function(module, exports, __webpack_require__) {
  19034. "use strict";
  19035. /**
  19036. * Copyright (c) 2013-present, Facebook, Inc.
  19037. *
  19038. * This source code is licensed under the MIT license found in the
  19039. * LICENSE file in the root directory of this source tree.
  19040. *
  19041. *
  19042. */
  19043. var isTextNode = __webpack_require__(166);
  19044. /*eslint-disable no-bitwise */
  19045. /**
  19046. * Checks if a given DOM node contains or is another DOM node.
  19047. */
  19048. function containsNode(outerNode, innerNode) {
  19049. if (!outerNode || !innerNode) {
  19050. return false;
  19051. } else if (outerNode === innerNode) {
  19052. return true;
  19053. } else if (isTextNode(outerNode)) {
  19054. return false;
  19055. } else if (isTextNode(innerNode)) {
  19056. return containsNode(outerNode, innerNode.parentNode);
  19057. } else if ('contains' in outerNode) {
  19058. return outerNode.contains(innerNode);
  19059. } else if (outerNode.compareDocumentPosition) {
  19060. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  19061. } else {
  19062. return false;
  19063. }
  19064. }
  19065. module.exports = containsNode;
  19066. /***/ }),
  19067. /* 166 */
  19068. /***/ (function(module, exports, __webpack_require__) {
  19069. "use strict";
  19070. /**
  19071. * Copyright (c) 2013-present, Facebook, Inc.
  19072. *
  19073. * This source code is licensed under the MIT license found in the
  19074. * LICENSE file in the root directory of this source tree.
  19075. *
  19076. * @typechecks
  19077. */
  19078. var isNode = __webpack_require__(167);
  19079. /**
  19080. * @param {*} object The object to check.
  19081. * @return {boolean} Whether or not the object is a DOM text node.
  19082. */
  19083. function isTextNode(object) {
  19084. return isNode(object) && object.nodeType == 3;
  19085. }
  19086. module.exports = isTextNode;
  19087. /***/ }),
  19088. /* 167 */
  19089. /***/ (function(module, exports, __webpack_require__) {
  19090. "use strict";
  19091. /**
  19092. * Copyright (c) 2013-present, Facebook, Inc.
  19093. *
  19094. * This source code is licensed under the MIT license found in the
  19095. * LICENSE file in the root directory of this source tree.
  19096. *
  19097. * @typechecks
  19098. */
  19099. /**
  19100. * @param {*} object The object to check.
  19101. * @return {boolean} Whether or not the object is a DOM node.
  19102. */
  19103. function isNode(object) {
  19104. var doc = object ? object.ownerDocument || object : document;
  19105. var defaultView = doc.defaultView || window;
  19106. return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
  19107. }
  19108. module.exports = isNode;
  19109. /***/ }),
  19110. /* 168 */
  19111. /***/ (function(module, exports, __webpack_require__) {
  19112. "use strict";
  19113. /**
  19114. * Copyright 2013-present, Facebook, Inc.
  19115. * All rights reserved.
  19116. *
  19117. * This source code is licensed under the BSD-style license found in the
  19118. * LICENSE file in the root directory of this source tree. An additional grant
  19119. * of patent rights can be found in the PATENTS file in the same directory.
  19120. *
  19121. */
  19122. var NS = {
  19123. xlink: 'http://www.w3.org/1999/xlink',
  19124. xml: 'http://www.w3.org/XML/1998/namespace'
  19125. };
  19126. // We use attributes for everything SVG so let's avoid some duplication and run
  19127. // code instead.
  19128. // The following are all specified in the HTML config already so we exclude here.
  19129. // - class (as className)
  19130. // - color
  19131. // - height
  19132. // - id
  19133. // - lang
  19134. // - max
  19135. // - media
  19136. // - method
  19137. // - min
  19138. // - name
  19139. // - style
  19140. // - target
  19141. // - type
  19142. // - width
  19143. var ATTRS = {
  19144. accentHeight: 'accent-height',
  19145. accumulate: 0,
  19146. additive: 0,
  19147. alignmentBaseline: 'alignment-baseline',
  19148. allowReorder: 'allowReorder',
  19149. alphabetic: 0,
  19150. amplitude: 0,
  19151. arabicForm: 'arabic-form',
  19152. ascent: 0,
  19153. attributeName: 'attributeName',
  19154. attributeType: 'attributeType',
  19155. autoReverse: 'autoReverse',
  19156. azimuth: 0,
  19157. baseFrequency: 'baseFrequency',
  19158. baseProfile: 'baseProfile',
  19159. baselineShift: 'baseline-shift',
  19160. bbox: 0,
  19161. begin: 0,
  19162. bias: 0,
  19163. by: 0,
  19164. calcMode: 'calcMode',
  19165. capHeight: 'cap-height',
  19166. clip: 0,
  19167. clipPath: 'clip-path',
  19168. clipRule: 'clip-rule',
  19169. clipPathUnits: 'clipPathUnits',
  19170. colorInterpolation: 'color-interpolation',
  19171. colorInterpolationFilters: 'color-interpolation-filters',
  19172. colorProfile: 'color-profile',
  19173. colorRendering: 'color-rendering',
  19174. contentScriptType: 'contentScriptType',
  19175. contentStyleType: 'contentStyleType',
  19176. cursor: 0,
  19177. cx: 0,
  19178. cy: 0,
  19179. d: 0,
  19180. decelerate: 0,
  19181. descent: 0,
  19182. diffuseConstant: 'diffuseConstant',
  19183. direction: 0,
  19184. display: 0,
  19185. divisor: 0,
  19186. dominantBaseline: 'dominant-baseline',
  19187. dur: 0,
  19188. dx: 0,
  19189. dy: 0,
  19190. edgeMode: 'edgeMode',
  19191. elevation: 0,
  19192. enableBackground: 'enable-background',
  19193. end: 0,
  19194. exponent: 0,
  19195. externalResourcesRequired: 'externalResourcesRequired',
  19196. fill: 0,
  19197. fillOpacity: 'fill-opacity',
  19198. fillRule: 'fill-rule',
  19199. filter: 0,
  19200. filterRes: 'filterRes',
  19201. filterUnits: 'filterUnits',
  19202. floodColor: 'flood-color',
  19203. floodOpacity: 'flood-opacity',
  19204. focusable: 0,
  19205. fontFamily: 'font-family',
  19206. fontSize: 'font-size',
  19207. fontSizeAdjust: 'font-size-adjust',
  19208. fontStretch: 'font-stretch',
  19209. fontStyle: 'font-style',
  19210. fontVariant: 'font-variant',
  19211. fontWeight: 'font-weight',
  19212. format: 0,
  19213. from: 0,
  19214. fx: 0,
  19215. fy: 0,
  19216. g1: 0,
  19217. g2: 0,
  19218. glyphName: 'glyph-name',
  19219. glyphOrientationHorizontal: 'glyph-orientation-horizontal',
  19220. glyphOrientationVertical: 'glyph-orientation-vertical',
  19221. glyphRef: 'glyphRef',
  19222. gradientTransform: 'gradientTransform',
  19223. gradientUnits: 'gradientUnits',
  19224. hanging: 0,
  19225. horizAdvX: 'horiz-adv-x',
  19226. horizOriginX: 'horiz-origin-x',
  19227. ideographic: 0,
  19228. imageRendering: 'image-rendering',
  19229. 'in': 0,
  19230. in2: 0,
  19231. intercept: 0,
  19232. k: 0,
  19233. k1: 0,
  19234. k2: 0,
  19235. k3: 0,
  19236. k4: 0,
  19237. kernelMatrix: 'kernelMatrix',
  19238. kernelUnitLength: 'kernelUnitLength',
  19239. kerning: 0,
  19240. keyPoints: 'keyPoints',
  19241. keySplines: 'keySplines',
  19242. keyTimes: 'keyTimes',
  19243. lengthAdjust: 'lengthAdjust',
  19244. letterSpacing: 'letter-spacing',
  19245. lightingColor: 'lighting-color',
  19246. limitingConeAngle: 'limitingConeAngle',
  19247. local: 0,
  19248. markerEnd: 'marker-end',
  19249. markerMid: 'marker-mid',
  19250. markerStart: 'marker-start',
  19251. markerHeight: 'markerHeight',
  19252. markerUnits: 'markerUnits',
  19253. markerWidth: 'markerWidth',
  19254. mask: 0,
  19255. maskContentUnits: 'maskContentUnits',
  19256. maskUnits: 'maskUnits',
  19257. mathematical: 0,
  19258. mode: 0,
  19259. numOctaves: 'numOctaves',
  19260. offset: 0,
  19261. opacity: 0,
  19262. operator: 0,
  19263. order: 0,
  19264. orient: 0,
  19265. orientation: 0,
  19266. origin: 0,
  19267. overflow: 0,
  19268. overlinePosition: 'overline-position',
  19269. overlineThickness: 'overline-thickness',
  19270. paintOrder: 'paint-order',
  19271. panose1: 'panose-1',
  19272. pathLength: 'pathLength',
  19273. patternContentUnits: 'patternContentUnits',
  19274. patternTransform: 'patternTransform',
  19275. patternUnits: 'patternUnits',
  19276. pointerEvents: 'pointer-events',
  19277. points: 0,
  19278. pointsAtX: 'pointsAtX',
  19279. pointsAtY: 'pointsAtY',
  19280. pointsAtZ: 'pointsAtZ',
  19281. preserveAlpha: 'preserveAlpha',
  19282. preserveAspectRatio: 'preserveAspectRatio',
  19283. primitiveUnits: 'primitiveUnits',
  19284. r: 0,
  19285. radius: 0,
  19286. refX: 'refX',
  19287. refY: 'refY',
  19288. renderingIntent: 'rendering-intent',
  19289. repeatCount: 'repeatCount',
  19290. repeatDur: 'repeatDur',
  19291. requiredExtensions: 'requiredExtensions',
  19292. requiredFeatures: 'requiredFeatures',
  19293. restart: 0,
  19294. result: 0,
  19295. rotate: 0,
  19296. rx: 0,
  19297. ry: 0,
  19298. scale: 0,
  19299. seed: 0,
  19300. shapeRendering: 'shape-rendering',
  19301. slope: 0,
  19302. spacing: 0,
  19303. specularConstant: 'specularConstant',
  19304. specularExponent: 'specularExponent',
  19305. speed: 0,
  19306. spreadMethod: 'spreadMethod',
  19307. startOffset: 'startOffset',
  19308. stdDeviation: 'stdDeviation',
  19309. stemh: 0,
  19310. stemv: 0,
  19311. stitchTiles: 'stitchTiles',
  19312. stopColor: 'stop-color',
  19313. stopOpacity: 'stop-opacity',
  19314. strikethroughPosition: 'strikethrough-position',
  19315. strikethroughThickness: 'strikethrough-thickness',
  19316. string: 0,
  19317. stroke: 0,
  19318. strokeDasharray: 'stroke-dasharray',
  19319. strokeDashoffset: 'stroke-dashoffset',
  19320. strokeLinecap: 'stroke-linecap',
  19321. strokeLinejoin: 'stroke-linejoin',
  19322. strokeMiterlimit: 'stroke-miterlimit',
  19323. strokeOpacity: 'stroke-opacity',
  19324. strokeWidth: 'stroke-width',
  19325. surfaceScale: 'surfaceScale',
  19326. systemLanguage: 'systemLanguage',
  19327. tableValues: 'tableValues',
  19328. targetX: 'targetX',
  19329. targetY: 'targetY',
  19330. textAnchor: 'text-anchor',
  19331. textDecoration: 'text-decoration',
  19332. textRendering: 'text-rendering',
  19333. textLength: 'textLength',
  19334. to: 0,
  19335. transform: 0,
  19336. u1: 0,
  19337. u2: 0,
  19338. underlinePosition: 'underline-position',
  19339. underlineThickness: 'underline-thickness',
  19340. unicode: 0,
  19341. unicodeBidi: 'unicode-bidi',
  19342. unicodeRange: 'unicode-range',
  19343. unitsPerEm: 'units-per-em',
  19344. vAlphabetic: 'v-alphabetic',
  19345. vHanging: 'v-hanging',
  19346. vIdeographic: 'v-ideographic',
  19347. vMathematical: 'v-mathematical',
  19348. values: 0,
  19349. vectorEffect: 'vector-effect',
  19350. version: 0,
  19351. vertAdvY: 'vert-adv-y',
  19352. vertOriginX: 'vert-origin-x',
  19353. vertOriginY: 'vert-origin-y',
  19354. viewBox: 'viewBox',
  19355. viewTarget: 'viewTarget',
  19356. visibility: 0,
  19357. widths: 0,
  19358. wordSpacing: 'word-spacing',
  19359. writingMode: 'writing-mode',
  19360. x: 0,
  19361. xHeight: 'x-height',
  19362. x1: 0,
  19363. x2: 0,
  19364. xChannelSelector: 'xChannelSelector',
  19365. xlinkActuate: 'xlink:actuate',
  19366. xlinkArcrole: 'xlink:arcrole',
  19367. xlinkHref: 'xlink:href',
  19368. xlinkRole: 'xlink:role',
  19369. xlinkShow: 'xlink:show',
  19370. xlinkTitle: 'xlink:title',
  19371. xlinkType: 'xlink:type',
  19372. xmlBase: 'xml:base',
  19373. xmlns: 0,
  19374. xmlnsXlink: 'xmlns:xlink',
  19375. xmlLang: 'xml:lang',
  19376. xmlSpace: 'xml:space',
  19377. y: 0,
  19378. y1: 0,
  19379. y2: 0,
  19380. yChannelSelector: 'yChannelSelector',
  19381. z: 0,
  19382. zoomAndPan: 'zoomAndPan'
  19383. };
  19384. var SVGDOMPropertyConfig = {
  19385. Properties: {},
  19386. DOMAttributeNamespaces: {
  19387. xlinkActuate: NS.xlink,
  19388. xlinkArcrole: NS.xlink,
  19389. xlinkHref: NS.xlink,
  19390. xlinkRole: NS.xlink,
  19391. xlinkShow: NS.xlink,
  19392. xlinkTitle: NS.xlink,
  19393. xlinkType: NS.xlink,
  19394. xmlBase: NS.xml,
  19395. xmlLang: NS.xml,
  19396. xmlSpace: NS.xml
  19397. },
  19398. DOMAttributeNames: {}
  19399. };
  19400. Object.keys(ATTRS).forEach(function (key) {
  19401. SVGDOMPropertyConfig.Properties[key] = 0;
  19402. if (ATTRS[key]) {
  19403. SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];
  19404. }
  19405. });
  19406. module.exports = SVGDOMPropertyConfig;
  19407. /***/ }),
  19408. /* 169 */
  19409. /***/ (function(module, exports, __webpack_require__) {
  19410. "use strict";
  19411. /**
  19412. * Copyright 2013-present, Facebook, Inc.
  19413. * All rights reserved.
  19414. *
  19415. * This source code is licensed under the BSD-style license found in the
  19416. * LICENSE file in the root directory of this source tree. An additional grant
  19417. * of patent rights can be found in the PATENTS file in the same directory.
  19418. *
  19419. */
  19420. var EventPropagators = __webpack_require__(21);
  19421. var ExecutionEnvironment = __webpack_require__(6);
  19422. var ReactDOMComponentTree = __webpack_require__(5);
  19423. var ReactInputSelection = __webpack_require__(77);
  19424. var SyntheticEvent = __webpack_require__(12);
  19425. var getActiveElement = __webpack_require__(78);
  19426. var isTextInputElement = __webpack_require__(62);
  19427. var shallowEqual = __webpack_require__(45);
  19428. var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  19429. var eventTypes = {
  19430. select: {
  19431. phasedRegistrationNames: {
  19432. bubbled: 'onSelect',
  19433. captured: 'onSelectCapture'
  19434. },
  19435. dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange']
  19436. }
  19437. };
  19438. var activeElement = null;
  19439. var activeElementInst = null;
  19440. var lastSelection = null;
  19441. var mouseDown = false;
  19442. // Track whether a listener exists for this plugin. If none exist, we do
  19443. // not extract events. See #3639.
  19444. var hasListener = false;
  19445. /**
  19446. * Get an object which is a unique representation of the current selection.
  19447. *
  19448. * The return value will not be consistent across nodes or browsers, but
  19449. * two identical selections on the same node will return identical objects.
  19450. *
  19451. * @param {DOMElement} node
  19452. * @return {object}
  19453. */
  19454. function getSelection(node) {
  19455. if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) {
  19456. return {
  19457. start: node.selectionStart,
  19458. end: node.selectionEnd
  19459. };
  19460. } else if (window.getSelection) {
  19461. var selection = window.getSelection();
  19462. return {
  19463. anchorNode: selection.anchorNode,
  19464. anchorOffset: selection.anchorOffset,
  19465. focusNode: selection.focusNode,
  19466. focusOffset: selection.focusOffset
  19467. };
  19468. } else if (document.selection) {
  19469. var range = document.selection.createRange();
  19470. return {
  19471. parentElement: range.parentElement(),
  19472. text: range.text,
  19473. top: range.boundingTop,
  19474. left: range.boundingLeft
  19475. };
  19476. }
  19477. }
  19478. /**
  19479. * Poll selection to see whether it's changed.
  19480. *
  19481. * @param {object} nativeEvent
  19482. * @return {?SyntheticEvent}
  19483. */
  19484. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  19485. // Ensure we have the right element, and that the user is not dragging a
  19486. // selection (this matches native `select` event behavior). In HTML5, select
  19487. // fires only on input and textarea thus if there's no focused element we
  19488. // won't dispatch.
  19489. if (mouseDown || activeElement == null || activeElement !== getActiveElement()) {
  19490. return null;
  19491. }
  19492. // Only fire when selection has actually changed.
  19493. var currentSelection = getSelection(activeElement);
  19494. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  19495. lastSelection = currentSelection;
  19496. var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget);
  19497. syntheticEvent.type = 'select';
  19498. syntheticEvent.target = activeElement;
  19499. EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent);
  19500. return syntheticEvent;
  19501. }
  19502. return null;
  19503. }
  19504. /**
  19505. * This plugin creates an `onSelect` event that normalizes select events
  19506. * across form elements.
  19507. *
  19508. * Supported elements are:
  19509. * - input (see `isTextInputElement`)
  19510. * - textarea
  19511. * - contentEditable
  19512. *
  19513. * This differs from native browser implementations in the following ways:
  19514. * - Fires on contentEditable fields as well as inputs.
  19515. * - Fires for collapsed selection.
  19516. * - Fires after user input.
  19517. */
  19518. var SelectEventPlugin = {
  19519. eventTypes: eventTypes,
  19520. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19521. if (!hasListener) {
  19522. return null;
  19523. }
  19524. var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
  19525. switch (topLevelType) {
  19526. // Track the input node that has focus.
  19527. case 'topFocus':
  19528. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  19529. activeElement = targetNode;
  19530. activeElementInst = targetInst;
  19531. lastSelection = null;
  19532. }
  19533. break;
  19534. case 'topBlur':
  19535. activeElement = null;
  19536. activeElementInst = null;
  19537. lastSelection = null;
  19538. break;
  19539. // Don't fire the event while the user is dragging. This matches the
  19540. // semantics of the native select event.
  19541. case 'topMouseDown':
  19542. mouseDown = true;
  19543. break;
  19544. case 'topContextMenu':
  19545. case 'topMouseUp':
  19546. mouseDown = false;
  19547. return constructSelectEvent(nativeEvent, nativeEventTarget);
  19548. // Chrome and IE fire non-standard event when selection is changed (and
  19549. // sometimes when it hasn't). IE's event fires out of order with respect
  19550. // to key and input events on deletion, so we discard it.
  19551. //
  19552. // Firefox doesn't support selectionchange, so check selection status
  19553. // after each key entry. The selection changes after keydown and before
  19554. // keyup, but we check on keydown as well in the case of holding down a
  19555. // key, when multiple keydown events are fired but only one keyup is.
  19556. // This is also our approach for IE handling, for the reason above.
  19557. case 'topSelectionChange':
  19558. if (skipSelectionChangeEvent) {
  19559. break;
  19560. }
  19561. // falls through
  19562. case 'topKeyDown':
  19563. case 'topKeyUp':
  19564. return constructSelectEvent(nativeEvent, nativeEventTarget);
  19565. }
  19566. return null;
  19567. },
  19568. didPutListener: function (inst, registrationName, listener) {
  19569. if (registrationName === 'onSelect') {
  19570. hasListener = true;
  19571. }
  19572. }
  19573. };
  19574. module.exports = SelectEventPlugin;
  19575. /***/ }),
  19576. /* 170 */
  19577. /***/ (function(module, exports, __webpack_require__) {
  19578. "use strict";
  19579. /* WEBPACK VAR INJECTION */(function(process) {/**
  19580. * Copyright 2013-present, Facebook, Inc.
  19581. * All rights reserved.
  19582. *
  19583. * This source code is licensed under the BSD-style license found in the
  19584. * LICENSE file in the root directory of this source tree. An additional grant
  19585. * of patent rights can be found in the PATENTS file in the same directory.
  19586. *
  19587. *
  19588. */
  19589. var _prodInvariant = __webpack_require__(3);
  19590. var EventListener = __webpack_require__(76);
  19591. var EventPropagators = __webpack_require__(21);
  19592. var ReactDOMComponentTree = __webpack_require__(5);
  19593. var SyntheticAnimationEvent = __webpack_require__(171);
  19594. var SyntheticClipboardEvent = __webpack_require__(172);
  19595. var SyntheticEvent = __webpack_require__(12);
  19596. var SyntheticFocusEvent = __webpack_require__(173);
  19597. var SyntheticKeyboardEvent = __webpack_require__(174);
  19598. var SyntheticMouseEvent = __webpack_require__(29);
  19599. var SyntheticDragEvent = __webpack_require__(176);
  19600. var SyntheticTouchEvent = __webpack_require__(177);
  19601. var SyntheticTransitionEvent = __webpack_require__(178);
  19602. var SyntheticUIEvent = __webpack_require__(23);
  19603. var SyntheticWheelEvent = __webpack_require__(179);
  19604. var emptyFunction = __webpack_require__(8);
  19605. var getEventCharCode = __webpack_require__(50);
  19606. var invariant = __webpack_require__(1);
  19607. /**
  19608. * Turns
  19609. * ['abort', ...]
  19610. * into
  19611. * eventTypes = {
  19612. * 'abort': {
  19613. * phasedRegistrationNames: {
  19614. * bubbled: 'onAbort',
  19615. * captured: 'onAbortCapture',
  19616. * },
  19617. * dependencies: ['topAbort'],
  19618. * },
  19619. * ...
  19620. * };
  19621. * topLevelEventsToDispatchConfig = {
  19622. * 'topAbort': { sameConfig }
  19623. * };
  19624. */
  19625. var eventTypes = {};
  19626. var topLevelEventsToDispatchConfig = {};
  19627. ['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) {
  19628. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  19629. var onEvent = 'on' + capitalizedEvent;
  19630. var topEvent = 'top' + capitalizedEvent;
  19631. var type = {
  19632. phasedRegistrationNames: {
  19633. bubbled: onEvent,
  19634. captured: onEvent + 'Capture'
  19635. },
  19636. dependencies: [topEvent]
  19637. };
  19638. eventTypes[event] = type;
  19639. topLevelEventsToDispatchConfig[topEvent] = type;
  19640. });
  19641. var onClickListeners = {};
  19642. function getDictionaryKey(inst) {
  19643. // Prevents V8 performance issue:
  19644. // https://github.com/facebook/react/pull/7232
  19645. return '.' + inst._rootNodeID;
  19646. }
  19647. function isInteractive(tag) {
  19648. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  19649. }
  19650. var SimpleEventPlugin = {
  19651. eventTypes: eventTypes,
  19652. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19653. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  19654. if (!dispatchConfig) {
  19655. return null;
  19656. }
  19657. var EventConstructor;
  19658. switch (topLevelType) {
  19659. case 'topAbort':
  19660. case 'topCanPlay':
  19661. case 'topCanPlayThrough':
  19662. case 'topDurationChange':
  19663. case 'topEmptied':
  19664. case 'topEncrypted':
  19665. case 'topEnded':
  19666. case 'topError':
  19667. case 'topInput':
  19668. case 'topInvalid':
  19669. case 'topLoad':
  19670. case 'topLoadedData':
  19671. case 'topLoadedMetadata':
  19672. case 'topLoadStart':
  19673. case 'topPause':
  19674. case 'topPlay':
  19675. case 'topPlaying':
  19676. case 'topProgress':
  19677. case 'topRateChange':
  19678. case 'topReset':
  19679. case 'topSeeked':
  19680. case 'topSeeking':
  19681. case 'topStalled':
  19682. case 'topSubmit':
  19683. case 'topSuspend':
  19684. case 'topTimeUpdate':
  19685. case 'topVolumeChange':
  19686. case 'topWaiting':
  19687. // HTML Events
  19688. // @see http://www.w3.org/TR/html5/index.html#events-0
  19689. EventConstructor = SyntheticEvent;
  19690. break;
  19691. case 'topKeyPress':
  19692. // Firefox creates a keypress event for function keys too. This removes
  19693. // the unwanted keypress events. Enter is however both printable and
  19694. // non-printable. One would expect Tab to be as well (but it isn't).
  19695. if (getEventCharCode(nativeEvent) === 0) {
  19696. return null;
  19697. }
  19698. /* falls through */
  19699. case 'topKeyDown':
  19700. case 'topKeyUp':
  19701. EventConstructor = SyntheticKeyboardEvent;
  19702. break;
  19703. case 'topBlur':
  19704. case 'topFocus':
  19705. EventConstructor = SyntheticFocusEvent;
  19706. break;
  19707. case 'topClick':
  19708. // Firefox creates a click event on right mouse clicks. This removes the
  19709. // unwanted click events.
  19710. if (nativeEvent.button === 2) {
  19711. return null;
  19712. }
  19713. /* falls through */
  19714. case 'topDoubleClick':
  19715. case 'topMouseDown':
  19716. case 'topMouseMove':
  19717. case 'topMouseUp':
  19718. // TODO: Disabled elements should not respond to mouse events
  19719. /* falls through */
  19720. case 'topMouseOut':
  19721. case 'topMouseOver':
  19722. case 'topContextMenu':
  19723. EventConstructor = SyntheticMouseEvent;
  19724. break;
  19725. case 'topDrag':
  19726. case 'topDragEnd':
  19727. case 'topDragEnter':
  19728. case 'topDragExit':
  19729. case 'topDragLeave':
  19730. case 'topDragOver':
  19731. case 'topDragStart':
  19732. case 'topDrop':
  19733. EventConstructor = SyntheticDragEvent;
  19734. break;
  19735. case 'topTouchCancel':
  19736. case 'topTouchEnd':
  19737. case 'topTouchMove':
  19738. case 'topTouchStart':
  19739. EventConstructor = SyntheticTouchEvent;
  19740. break;
  19741. case 'topAnimationEnd':
  19742. case 'topAnimationIteration':
  19743. case 'topAnimationStart':
  19744. EventConstructor = SyntheticAnimationEvent;
  19745. break;
  19746. case 'topTransitionEnd':
  19747. EventConstructor = SyntheticTransitionEvent;
  19748. break;
  19749. case 'topScroll':
  19750. EventConstructor = SyntheticUIEvent;
  19751. break;
  19752. case 'topWheel':
  19753. EventConstructor = SyntheticWheelEvent;
  19754. break;
  19755. case 'topCopy':
  19756. case 'topCut':
  19757. case 'topPaste':
  19758. EventConstructor = SyntheticClipboardEvent;
  19759. break;
  19760. }
  19761. !EventConstructor ? process.env.NODE_ENV !== 'production' ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : _prodInvariant('86', topLevelType) : void 0;
  19762. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  19763. EventPropagators.accumulateTwoPhaseDispatches(event);
  19764. return event;
  19765. },
  19766. didPutListener: function (inst, registrationName, listener) {
  19767. // Mobile Safari does not fire properly bubble click events on
  19768. // non-interactive elements, which means delegated click listeners do not
  19769. // fire. The workaround for this bug involves attaching an empty click
  19770. // listener on the target node.
  19771. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  19772. if (registrationName === 'onClick' && !isInteractive(inst._tag)) {
  19773. var key = getDictionaryKey(inst);
  19774. var node = ReactDOMComponentTree.getNodeFromInstance(inst);
  19775. if (!onClickListeners[key]) {
  19776. onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction);
  19777. }
  19778. }
  19779. },
  19780. willDeleteListener: function (inst, registrationName) {
  19781. if (registrationName === 'onClick' && !isInteractive(inst._tag)) {
  19782. var key = getDictionaryKey(inst);
  19783. onClickListeners[key].remove();
  19784. delete onClickListeners[key];
  19785. }
  19786. }
  19787. };
  19788. module.exports = SimpleEventPlugin;
  19789. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  19790. /***/ }),
  19791. /* 171 */
  19792. /***/ (function(module, exports, __webpack_require__) {
  19793. "use strict";
  19794. /**
  19795. * Copyright 2013-present, Facebook, Inc.
  19796. * All rights reserved.
  19797. *
  19798. * This source code is licensed under the BSD-style license found in the
  19799. * LICENSE file in the root directory of this source tree. An additional grant
  19800. * of patent rights can be found in the PATENTS file in the same directory.
  19801. *
  19802. */
  19803. var SyntheticEvent = __webpack_require__(12);
  19804. /**
  19805. * @interface Event
  19806. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  19807. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  19808. */
  19809. var AnimationEventInterface = {
  19810. animationName: null,
  19811. elapsedTime: null,
  19812. pseudoElement: null
  19813. };
  19814. /**
  19815. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19816. * @param {string} dispatchMarker Marker identifying the event target.
  19817. * @param {object} nativeEvent Native browser event.
  19818. * @extends {SyntheticEvent}
  19819. */
  19820. function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19821. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19822. }
  19823. SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);
  19824. module.exports = SyntheticAnimationEvent;
  19825. /***/ }),
  19826. /* 172 */
  19827. /***/ (function(module, exports, __webpack_require__) {
  19828. "use strict";
  19829. /**
  19830. * Copyright 2013-present, Facebook, Inc.
  19831. * All rights reserved.
  19832. *
  19833. * This source code is licensed under the BSD-style license found in the
  19834. * LICENSE file in the root directory of this source tree. An additional grant
  19835. * of patent rights can be found in the PATENTS file in the same directory.
  19836. *
  19837. */
  19838. var SyntheticEvent = __webpack_require__(12);
  19839. /**
  19840. * @interface Event
  19841. * @see http://www.w3.org/TR/clipboard-apis/
  19842. */
  19843. var ClipboardEventInterface = {
  19844. clipboardData: function (event) {
  19845. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  19846. }
  19847. };
  19848. /**
  19849. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19850. * @param {string} dispatchMarker Marker identifying the event target.
  19851. * @param {object} nativeEvent Native browser event.
  19852. * @extends {SyntheticUIEvent}
  19853. */
  19854. function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19855. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19856. }
  19857. SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
  19858. module.exports = SyntheticClipboardEvent;
  19859. /***/ }),
  19860. /* 173 */
  19861. /***/ (function(module, exports, __webpack_require__) {
  19862. "use strict";
  19863. /**
  19864. * Copyright 2013-present, Facebook, Inc.
  19865. * All rights reserved.
  19866. *
  19867. * This source code is licensed under the BSD-style license found in the
  19868. * LICENSE file in the root directory of this source tree. An additional grant
  19869. * of patent rights can be found in the PATENTS file in the same directory.
  19870. *
  19871. */
  19872. var SyntheticUIEvent = __webpack_require__(23);
  19873. /**
  19874. * @interface FocusEvent
  19875. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  19876. */
  19877. var FocusEventInterface = {
  19878. relatedTarget: null
  19879. };
  19880. /**
  19881. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19882. * @param {string} dispatchMarker Marker identifying the event target.
  19883. * @param {object} nativeEvent Native browser event.
  19884. * @extends {SyntheticUIEvent}
  19885. */
  19886. function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19887. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19888. }
  19889. SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
  19890. module.exports = SyntheticFocusEvent;
  19891. /***/ }),
  19892. /* 174 */
  19893. /***/ (function(module, exports, __webpack_require__) {
  19894. "use strict";
  19895. /**
  19896. * Copyright 2013-present, Facebook, Inc.
  19897. * All rights reserved.
  19898. *
  19899. * This source code is licensed under the BSD-style license found in the
  19900. * LICENSE file in the root directory of this source tree. An additional grant
  19901. * of patent rights can be found in the PATENTS file in the same directory.
  19902. *
  19903. */
  19904. var SyntheticUIEvent = __webpack_require__(23);
  19905. var getEventCharCode = __webpack_require__(50);
  19906. var getEventKey = __webpack_require__(175);
  19907. var getEventModifierState = __webpack_require__(39);
  19908. /**
  19909. * @interface KeyboardEvent
  19910. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  19911. */
  19912. var KeyboardEventInterface = {
  19913. key: getEventKey,
  19914. location: null,
  19915. ctrlKey: null,
  19916. shiftKey: null,
  19917. altKey: null,
  19918. metaKey: null,
  19919. repeat: null,
  19920. locale: null,
  19921. getModifierState: getEventModifierState,
  19922. // Legacy Interface
  19923. charCode: function (event) {
  19924. // `charCode` is the result of a KeyPress event and represents the value of
  19925. // the actual printable character.
  19926. // KeyPress is deprecated, but its replacement is not yet final and not
  19927. // implemented in any major browser. Only KeyPress has charCode.
  19928. if (event.type === 'keypress') {
  19929. return getEventCharCode(event);
  19930. }
  19931. return 0;
  19932. },
  19933. keyCode: function (event) {
  19934. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  19935. // physical keyboard key.
  19936. // The actual meaning of the value depends on the users' keyboard layout
  19937. // which cannot be detected. Assuming that it is a US keyboard layout
  19938. // provides a surprisingly accurate mapping for US and European users.
  19939. // Due to this, it is left to the user to implement at this time.
  19940. if (event.type === 'keydown' || event.type === 'keyup') {
  19941. return event.keyCode;
  19942. }
  19943. return 0;
  19944. },
  19945. which: function (event) {
  19946. // `which` is an alias for either `keyCode` or `charCode` depending on the
  19947. // type of the event.
  19948. if (event.type === 'keypress') {
  19949. return getEventCharCode(event);
  19950. }
  19951. if (event.type === 'keydown' || event.type === 'keyup') {
  19952. return event.keyCode;
  19953. }
  19954. return 0;
  19955. }
  19956. };
  19957. /**
  19958. * @param {object} dispatchConfig Configuration used to dispatch this event.
  19959. * @param {string} dispatchMarker Marker identifying the event target.
  19960. * @param {object} nativeEvent Native browser event.
  19961. * @extends {SyntheticUIEvent}
  19962. */
  19963. function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  19964. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  19965. }
  19966. SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
  19967. module.exports = SyntheticKeyboardEvent;
  19968. /***/ }),
  19969. /* 175 */
  19970. /***/ (function(module, exports, __webpack_require__) {
  19971. "use strict";
  19972. /**
  19973. * Copyright 2013-present, Facebook, Inc.
  19974. * All rights reserved.
  19975. *
  19976. * This source code is licensed under the BSD-style license found in the
  19977. * LICENSE file in the root directory of this source tree. An additional grant
  19978. * of patent rights can be found in the PATENTS file in the same directory.
  19979. *
  19980. */
  19981. var getEventCharCode = __webpack_require__(50);
  19982. /**
  19983. * Normalization of deprecated HTML5 `key` values
  19984. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  19985. */
  19986. var normalizeKey = {
  19987. 'Esc': 'Escape',
  19988. 'Spacebar': ' ',
  19989. 'Left': 'ArrowLeft',
  19990. 'Up': 'ArrowUp',
  19991. 'Right': 'ArrowRight',
  19992. 'Down': 'ArrowDown',
  19993. 'Del': 'Delete',
  19994. 'Win': 'OS',
  19995. 'Menu': 'ContextMenu',
  19996. 'Apps': 'ContextMenu',
  19997. 'Scroll': 'ScrollLock',
  19998. 'MozPrintableKey': 'Unidentified'
  19999. };
  20000. /**
  20001. * Translation from legacy `keyCode` to HTML5 `key`
  20002. * Only special keys supported, all others depend on keyboard layout or browser
  20003. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  20004. */
  20005. var translateToKey = {
  20006. 8: 'Backspace',
  20007. 9: 'Tab',
  20008. 12: 'Clear',
  20009. 13: 'Enter',
  20010. 16: 'Shift',
  20011. 17: 'Control',
  20012. 18: 'Alt',
  20013. 19: 'Pause',
  20014. 20: 'CapsLock',
  20015. 27: 'Escape',
  20016. 32: ' ',
  20017. 33: 'PageUp',
  20018. 34: 'PageDown',
  20019. 35: 'End',
  20020. 36: 'Home',
  20021. 37: 'ArrowLeft',
  20022. 38: 'ArrowUp',
  20023. 39: 'ArrowRight',
  20024. 40: 'ArrowDown',
  20025. 45: 'Insert',
  20026. 46: 'Delete',
  20027. 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6',
  20028. 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12',
  20029. 144: 'NumLock',
  20030. 145: 'ScrollLock',
  20031. 224: 'Meta'
  20032. };
  20033. /**
  20034. * @param {object} nativeEvent Native browser event.
  20035. * @return {string} Normalized `key` property.
  20036. */
  20037. function getEventKey(nativeEvent) {
  20038. if (nativeEvent.key) {
  20039. // Normalize inconsistent values reported by browsers due to
  20040. // implementations of a working draft specification.
  20041. // FireFox implements `key` but returns `MozPrintableKey` for all
  20042. // printable characters (normalized to `Unidentified`), ignore it.
  20043. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  20044. if (key !== 'Unidentified') {
  20045. return key;
  20046. }
  20047. }
  20048. // Browser does not implement `key`, polyfill as much of it as we can.
  20049. if (nativeEvent.type === 'keypress') {
  20050. var charCode = getEventCharCode(nativeEvent);
  20051. // The enter-key is technically both printable and non-printable and can
  20052. // thus be captured by `keypress`, no other non-printable key should.
  20053. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  20054. }
  20055. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  20056. // While user keyboard layout determines the actual meaning of each
  20057. // `keyCode` value, almost all function keys have a universal value.
  20058. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  20059. }
  20060. return '';
  20061. }
  20062. module.exports = getEventKey;
  20063. /***/ }),
  20064. /* 176 */
  20065. /***/ (function(module, exports, __webpack_require__) {
  20066. "use strict";
  20067. /**
  20068. * Copyright 2013-present, Facebook, Inc.
  20069. * All rights reserved.
  20070. *
  20071. * This source code is licensed under the BSD-style license found in the
  20072. * LICENSE file in the root directory of this source tree. An additional grant
  20073. * of patent rights can be found in the PATENTS file in the same directory.
  20074. *
  20075. */
  20076. var SyntheticMouseEvent = __webpack_require__(29);
  20077. /**
  20078. * @interface DragEvent
  20079. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20080. */
  20081. var DragEventInterface = {
  20082. dataTransfer: null
  20083. };
  20084. /**
  20085. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20086. * @param {string} dispatchMarker Marker identifying the event target.
  20087. * @param {object} nativeEvent Native browser event.
  20088. * @extends {SyntheticUIEvent}
  20089. */
  20090. function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20091. return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20092. }
  20093. SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
  20094. module.exports = SyntheticDragEvent;
  20095. /***/ }),
  20096. /* 177 */
  20097. /***/ (function(module, exports, __webpack_require__) {
  20098. "use strict";
  20099. /**
  20100. * Copyright 2013-present, Facebook, Inc.
  20101. * All rights reserved.
  20102. *
  20103. * This source code is licensed under the BSD-style license found in the
  20104. * LICENSE file in the root directory of this source tree. An additional grant
  20105. * of patent rights can be found in the PATENTS file in the same directory.
  20106. *
  20107. */
  20108. var SyntheticUIEvent = __webpack_require__(23);
  20109. var getEventModifierState = __webpack_require__(39);
  20110. /**
  20111. * @interface TouchEvent
  20112. * @see http://www.w3.org/TR/touch-events/
  20113. */
  20114. var TouchEventInterface = {
  20115. touches: null,
  20116. targetTouches: null,
  20117. changedTouches: null,
  20118. altKey: null,
  20119. metaKey: null,
  20120. ctrlKey: null,
  20121. shiftKey: null,
  20122. getModifierState: getEventModifierState
  20123. };
  20124. /**
  20125. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20126. * @param {string} dispatchMarker Marker identifying the event target.
  20127. * @param {object} nativeEvent Native browser event.
  20128. * @extends {SyntheticUIEvent}
  20129. */
  20130. function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20131. return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20132. }
  20133. SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
  20134. module.exports = SyntheticTouchEvent;
  20135. /***/ }),
  20136. /* 178 */
  20137. /***/ (function(module, exports, __webpack_require__) {
  20138. "use strict";
  20139. /**
  20140. * Copyright 2013-present, Facebook, Inc.
  20141. * All rights reserved.
  20142. *
  20143. * This source code is licensed under the BSD-style license found in the
  20144. * LICENSE file in the root directory of this source tree. An additional grant
  20145. * of patent rights can be found in the PATENTS file in the same directory.
  20146. *
  20147. */
  20148. var SyntheticEvent = __webpack_require__(12);
  20149. /**
  20150. * @interface Event
  20151. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  20152. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  20153. */
  20154. var TransitionEventInterface = {
  20155. propertyName: null,
  20156. elapsedTime: null,
  20157. pseudoElement: null
  20158. };
  20159. /**
  20160. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20161. * @param {string} dispatchMarker Marker identifying the event target.
  20162. * @param {object} nativeEvent Native browser event.
  20163. * @extends {SyntheticEvent}
  20164. */
  20165. function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20166. return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20167. }
  20168. SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);
  20169. module.exports = SyntheticTransitionEvent;
  20170. /***/ }),
  20171. /* 179 */
  20172. /***/ (function(module, exports, __webpack_require__) {
  20173. "use strict";
  20174. /**
  20175. * Copyright 2013-present, Facebook, Inc.
  20176. * All rights reserved.
  20177. *
  20178. * This source code is licensed under the BSD-style license found in the
  20179. * LICENSE file in the root directory of this source tree. An additional grant
  20180. * of patent rights can be found in the PATENTS file in the same directory.
  20181. *
  20182. */
  20183. var SyntheticMouseEvent = __webpack_require__(29);
  20184. /**
  20185. * @interface WheelEvent
  20186. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20187. */
  20188. var WheelEventInterface = {
  20189. deltaX: function (event) {
  20190. return 'deltaX' in event ? event.deltaX :
  20191. // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  20192. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  20193. },
  20194. deltaY: function (event) {
  20195. return 'deltaY' in event ? event.deltaY :
  20196. // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  20197. 'wheelDeltaY' in event ? -event.wheelDeltaY :
  20198. // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  20199. 'wheelDelta' in event ? -event.wheelDelta : 0;
  20200. },
  20201. deltaZ: null,
  20202. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  20203. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  20204. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  20205. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  20206. deltaMode: null
  20207. };
  20208. /**
  20209. * @param {object} dispatchConfig Configuration used to dispatch this event.
  20210. * @param {string} dispatchMarker Marker identifying the event target.
  20211. * @param {object} nativeEvent Native browser event.
  20212. * @extends {SyntheticMouseEvent}
  20213. */
  20214. function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  20215. return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
  20216. }
  20217. SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
  20218. module.exports = SyntheticWheelEvent;
  20219. /***/ }),
  20220. /* 180 */
  20221. /***/ (function(module, exports, __webpack_require__) {
  20222. "use strict";
  20223. /* WEBPACK VAR INJECTION */(function(process) {/**
  20224. * Copyright 2013-present, Facebook, Inc.
  20225. * All rights reserved.
  20226. *
  20227. * This source code is licensed under the BSD-style license found in the
  20228. * LICENSE file in the root directory of this source tree. An additional grant
  20229. * of patent rights can be found in the PATENTS file in the same directory.
  20230. *
  20231. */
  20232. var validateDOMNesting = __webpack_require__(49);
  20233. var DOC_NODE_TYPE = 9;
  20234. function ReactDOMContainerInfo(topLevelWrapper, node) {
  20235. var info = {
  20236. _topLevelWrapper: topLevelWrapper,
  20237. _idCounter: 1,
  20238. _ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null,
  20239. _node: node,
  20240. _tag: node ? node.nodeName.toLowerCase() : null,
  20241. _namespaceURI: node ? node.namespaceURI : null
  20242. };
  20243. if (process.env.NODE_ENV !== 'production') {
  20244. info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null;
  20245. }
  20246. return info;
  20247. }
  20248. module.exports = ReactDOMContainerInfo;
  20249. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20250. /***/ }),
  20251. /* 181 */
  20252. /***/ (function(module, exports, __webpack_require__) {
  20253. "use strict";
  20254. /**
  20255. * Copyright 2013-present, Facebook, Inc.
  20256. * All rights reserved.
  20257. *
  20258. * This source code is licensed under the BSD-style license found in the
  20259. * LICENSE file in the root directory of this source tree. An additional grant
  20260. * of patent rights can be found in the PATENTS file in the same directory.
  20261. *
  20262. */
  20263. var ReactDOMFeatureFlags = {
  20264. useCreateElement: true,
  20265. useFiber: false
  20266. };
  20267. module.exports = ReactDOMFeatureFlags;
  20268. /***/ }),
  20269. /* 182 */
  20270. /***/ (function(module, exports, __webpack_require__) {
  20271. "use strict";
  20272. /**
  20273. * Copyright 2013-present, Facebook, Inc.
  20274. * All rights reserved.
  20275. *
  20276. * This source code is licensed under the BSD-style license found in the
  20277. * LICENSE file in the root directory of this source tree. An additional grant
  20278. * of patent rights can be found in the PATENTS file in the same directory.
  20279. *
  20280. */
  20281. var adler32 = __webpack_require__(183);
  20282. var TAG_END = /\/?>/;
  20283. var COMMENT_START = /^<\!\-\-/;
  20284. var ReactMarkupChecksum = {
  20285. CHECKSUM_ATTR_NAME: 'data-react-checksum',
  20286. /**
  20287. * @param {string} markup Markup string
  20288. * @return {string} Markup string with checksum attribute attached
  20289. */
  20290. addChecksumToMarkup: function (markup) {
  20291. var checksum = adler32(markup);
  20292. // Add checksum (handle both parent tags, comments and self-closing tags)
  20293. if (COMMENT_START.test(markup)) {
  20294. return markup;
  20295. } else {
  20296. return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&');
  20297. }
  20298. },
  20299. /**
  20300. * @param {string} markup to use
  20301. * @param {DOMElement} element root React element
  20302. * @returns {boolean} whether or not the markup is the same
  20303. */
  20304. canReuseMarkup: function (markup, element) {
  20305. var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
  20306. existingChecksum = existingChecksum && parseInt(existingChecksum, 10);
  20307. var markupChecksum = adler32(markup);
  20308. return markupChecksum === existingChecksum;
  20309. }
  20310. };
  20311. module.exports = ReactMarkupChecksum;
  20312. /***/ }),
  20313. /* 183 */
  20314. /***/ (function(module, exports, __webpack_require__) {
  20315. "use strict";
  20316. /**
  20317. * Copyright 2013-present, Facebook, Inc.
  20318. * All rights reserved.
  20319. *
  20320. * This source code is licensed under the BSD-style license found in the
  20321. * LICENSE file in the root directory of this source tree. An additional grant
  20322. * of patent rights can be found in the PATENTS file in the same directory.
  20323. *
  20324. *
  20325. */
  20326. var MOD = 65521;
  20327. // adler32 is not cryptographically strong, and is only used to sanity check that
  20328. // markup generated on the server matches the markup generated on the client.
  20329. // This implementation (a modified version of the SheetJS version) has been optimized
  20330. // for our use case, at the expense of conforming to the adler32 specification
  20331. // for non-ascii inputs.
  20332. function adler32(data) {
  20333. var a = 1;
  20334. var b = 0;
  20335. var i = 0;
  20336. var l = data.length;
  20337. var m = l & ~0x3;
  20338. while (i < m) {
  20339. var n = Math.min(i + 4096, m);
  20340. for (; i < n; i += 4) {
  20341. b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3));
  20342. }
  20343. a %= MOD;
  20344. b %= MOD;
  20345. }
  20346. for (; i < l; i++) {
  20347. b += a += data.charCodeAt(i);
  20348. }
  20349. a %= MOD;
  20350. b %= MOD;
  20351. return a | b << 16;
  20352. }
  20353. module.exports = adler32;
  20354. /***/ }),
  20355. /* 184 */
  20356. /***/ (function(module, exports, __webpack_require__) {
  20357. "use strict";
  20358. /**
  20359. * Copyright 2013-present, Facebook, Inc.
  20360. * All rights reserved.
  20361. *
  20362. * This source code is licensed under the BSD-style license found in the
  20363. * LICENSE file in the root directory of this source tree. An additional grant
  20364. * of patent rights can be found in the PATENTS file in the same directory.
  20365. *
  20366. */
  20367. module.exports = '15.5.4';
  20368. /***/ }),
  20369. /* 185 */
  20370. /***/ (function(module, exports, __webpack_require__) {
  20371. "use strict";
  20372. /* WEBPACK VAR INJECTION */(function(process) {/**
  20373. * Copyright 2013-present, Facebook, Inc.
  20374. * All rights reserved.
  20375. *
  20376. * This source code is licensed under the BSD-style license found in the
  20377. * LICENSE file in the root directory of this source tree. An additional grant
  20378. * of patent rights can be found in the PATENTS file in the same directory.
  20379. *
  20380. */
  20381. var _prodInvariant = __webpack_require__(3);
  20382. var ReactCurrentOwner = __webpack_require__(10);
  20383. var ReactDOMComponentTree = __webpack_require__(5);
  20384. var ReactInstanceMap = __webpack_require__(24);
  20385. var getHostComponentFromComposite = __webpack_require__(80);
  20386. var invariant = __webpack_require__(1);
  20387. var warning = __webpack_require__(2);
  20388. /**
  20389. * Returns the DOM node rendered by this element.
  20390. *
  20391. * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode
  20392. *
  20393. * @param {ReactComponent|DOMElement} componentOrElement
  20394. * @return {?DOMElement} The root node of this element.
  20395. */
  20396. function findDOMNode(componentOrElement) {
  20397. if (process.env.NODE_ENV !== 'production') {
  20398. var owner = ReactCurrentOwner.current;
  20399. if (owner !== null) {
  20400. 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;
  20401. owner._warnedAboutRefsInRender = true;
  20402. }
  20403. }
  20404. if (componentOrElement == null) {
  20405. return null;
  20406. }
  20407. if (componentOrElement.nodeType === 1) {
  20408. return componentOrElement;
  20409. }
  20410. var inst = ReactInstanceMap.get(componentOrElement);
  20411. if (inst) {
  20412. inst = getHostComponentFromComposite(inst);
  20413. return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
  20414. }
  20415. if (typeof componentOrElement.render === 'function') {
  20416. true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findDOMNode was called on an unmounted component.') : _prodInvariant('44') : void 0;
  20417. } else {
  20418. 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;
  20419. }
  20420. }
  20421. module.exports = findDOMNode;
  20422. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20423. /***/ }),
  20424. /* 186 */
  20425. /***/ (function(module, exports, __webpack_require__) {
  20426. "use strict";
  20427. /**
  20428. * Copyright 2013-present, Facebook, Inc.
  20429. * All rights reserved.
  20430. *
  20431. * This source code is licensed under the BSD-style license found in the
  20432. * LICENSE file in the root directory of this source tree. An additional grant
  20433. * of patent rights can be found in the PATENTS file in the same directory.
  20434. *
  20435. */
  20436. var ReactMount = __webpack_require__(79);
  20437. module.exports = ReactMount.renderSubtreeIntoContainer;
  20438. /***/ }),
  20439. /* 187 */
  20440. /***/ (function(module, exports, __webpack_require__) {
  20441. "use strict";
  20442. /* WEBPACK VAR INJECTION */(function(process) {/**
  20443. * Copyright 2013-present, Facebook, Inc.
  20444. * All rights reserved.
  20445. *
  20446. * This source code is licensed under the BSD-style license found in the
  20447. * LICENSE file in the root directory of this source tree. An additional grant
  20448. * of patent rights can be found in the PATENTS file in the same directory.
  20449. *
  20450. */
  20451. var DOMProperty = __webpack_require__(13);
  20452. var EventPluginRegistry = __webpack_require__(27);
  20453. var ReactComponentTreeHook = __webpack_require__(7);
  20454. var warning = __webpack_require__(2);
  20455. if (process.env.NODE_ENV !== 'production') {
  20456. var reactProps = {
  20457. children: true,
  20458. dangerouslySetInnerHTML: true,
  20459. key: true,
  20460. ref: true,
  20461. autoFocus: true,
  20462. defaultValue: true,
  20463. valueLink: true,
  20464. defaultChecked: true,
  20465. checkedLink: true,
  20466. innerHTML: true,
  20467. suppressContentEditableWarning: true,
  20468. onFocusIn: true,
  20469. onFocusOut: true
  20470. };
  20471. var warnedProperties = {};
  20472. var validateProperty = function (tagName, name, debugID) {
  20473. if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) {
  20474. return true;
  20475. }
  20476. if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
  20477. return true;
  20478. }
  20479. if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) {
  20480. return true;
  20481. }
  20482. warnedProperties[name] = true;
  20483. var lowerCasedName = name.toLowerCase();
  20484. // data-* attributes should be lowercase; suggest the lowercase version
  20485. var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
  20486. var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;
  20487. if (standardName != null) {
  20488. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20489. return true;
  20490. } else if (registrationName != null) {
  20491. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20492. return true;
  20493. } else {
  20494. // We were unable to guess which prop the user intended.
  20495. // It is likely that the user was just blindly spreading/forwarding props
  20496. // Components should be careful to only render valid props/attributes.
  20497. // Warning will be invoked in warnUnknownProperties to allow grouping.
  20498. return false;
  20499. }
  20500. };
  20501. }
  20502. var warnUnknownProperties = function (debugID, element) {
  20503. var unknownProps = [];
  20504. for (var key in element.props) {
  20505. var isValid = validateProperty(element.type, key, debugID);
  20506. if (!isValid) {
  20507. unknownProps.push(key);
  20508. }
  20509. }
  20510. var unknownPropString = unknownProps.map(function (prop) {
  20511. return '`' + prop + '`';
  20512. }).join(', ');
  20513. if (unknownProps.length === 1) {
  20514. 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;
  20515. } else if (unknownProps.length > 1) {
  20516. 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;
  20517. }
  20518. };
  20519. function handleElement(debugID, element) {
  20520. if (element == null || typeof element.type !== 'string') {
  20521. return;
  20522. }
  20523. if (element.type.indexOf('-') >= 0 || element.props.is) {
  20524. return;
  20525. }
  20526. warnUnknownProperties(debugID, element);
  20527. }
  20528. var ReactDOMUnknownPropertyHook = {
  20529. onBeforeMountComponent: function (debugID, element) {
  20530. handleElement(debugID, element);
  20531. },
  20532. onBeforeUpdateComponent: function (debugID, element) {
  20533. handleElement(debugID, element);
  20534. }
  20535. };
  20536. module.exports = ReactDOMUnknownPropertyHook;
  20537. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20538. /***/ }),
  20539. /* 188 */
  20540. /***/ (function(module, exports, __webpack_require__) {
  20541. "use strict";
  20542. /* WEBPACK VAR INJECTION */(function(process) {/**
  20543. * Copyright 2013-present, Facebook, Inc.
  20544. * All rights reserved.
  20545. *
  20546. * This source code is licensed under the BSD-style license found in the
  20547. * LICENSE file in the root directory of this source tree. An additional grant
  20548. * of patent rights can be found in the PATENTS file in the same directory.
  20549. *
  20550. */
  20551. var ReactComponentTreeHook = __webpack_require__(7);
  20552. var warning = __webpack_require__(2);
  20553. var didWarnValueNull = false;
  20554. function handleElement(debugID, element) {
  20555. if (element == null) {
  20556. return;
  20557. }
  20558. if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') {
  20559. return;
  20560. }
  20561. if (element.props != null && element.props.value === null && !didWarnValueNull) {
  20562. 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;
  20563. didWarnValueNull = true;
  20564. }
  20565. }
  20566. var ReactDOMNullInputValuePropHook = {
  20567. onBeforeMountComponent: function (debugID, element) {
  20568. handleElement(debugID, element);
  20569. },
  20570. onBeforeUpdateComponent: function (debugID, element) {
  20571. handleElement(debugID, element);
  20572. }
  20573. };
  20574. module.exports = ReactDOMNullInputValuePropHook;
  20575. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20576. /***/ }),
  20577. /* 189 */
  20578. /***/ (function(module, exports, __webpack_require__) {
  20579. "use strict";
  20580. /* WEBPACK VAR INJECTION */(function(process) {/**
  20581. * Copyright 2013-present, Facebook, Inc.
  20582. * All rights reserved.
  20583. *
  20584. * This source code is licensed under the BSD-style license found in the
  20585. * LICENSE file in the root directory of this source tree. An additional grant
  20586. * of patent rights can be found in the PATENTS file in the same directory.
  20587. *
  20588. */
  20589. var DOMProperty = __webpack_require__(13);
  20590. var ReactComponentTreeHook = __webpack_require__(7);
  20591. var warning = __webpack_require__(2);
  20592. var warnedProperties = {};
  20593. var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
  20594. function validateProperty(tagName, name, debugID) {
  20595. if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
  20596. return true;
  20597. }
  20598. if (rARIA.test(name)) {
  20599. var lowerCasedName = name.toLowerCase();
  20600. var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
  20601. // If this is an aria-* attribute, but is not listed in the known DOM
  20602. // DOM properties, then it is an invalid aria-* attribute.
  20603. if (standardName == null) {
  20604. warnedProperties[name] = true;
  20605. return false;
  20606. }
  20607. // aria-* attributes should be lowercase; suggest the lowercase version.
  20608. if (name !== standardName) {
  20609. process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
  20610. warnedProperties[name] = true;
  20611. return true;
  20612. }
  20613. }
  20614. return true;
  20615. }
  20616. function warnInvalidARIAProps(debugID, element) {
  20617. var invalidProps = [];
  20618. for (var key in element.props) {
  20619. var isValid = validateProperty(element.type, key, debugID);
  20620. if (!isValid) {
  20621. invalidProps.push(key);
  20622. }
  20623. }
  20624. var unknownPropString = invalidProps.map(function (prop) {
  20625. return '`' + prop + '`';
  20626. }).join(', ');
  20627. if (invalidProps.length === 1) {
  20628. 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;
  20629. } else if (invalidProps.length > 1) {
  20630. 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;
  20631. }
  20632. }
  20633. function handleElement(debugID, element) {
  20634. if (element == null || typeof element.type !== 'string') {
  20635. return;
  20636. }
  20637. if (element.type.indexOf('-') >= 0 || element.props.is) {
  20638. return;
  20639. }
  20640. warnInvalidARIAProps(debugID, element);
  20641. }
  20642. var ReactDOMInvalidARIAHook = {
  20643. onBeforeMountComponent: function (debugID, element) {
  20644. if (process.env.NODE_ENV !== 'production') {
  20645. handleElement(debugID, element);
  20646. }
  20647. },
  20648. onBeforeUpdateComponent: function (debugID, element) {
  20649. if (process.env.NODE_ENV !== 'production') {
  20650. handleElement(debugID, element);
  20651. }
  20652. }
  20653. };
  20654. module.exports = ReactDOMInvalidARIAHook;
  20655. /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
  20656. /***/ }),
  20657. /* 190 */
  20658. /***/ (function(module, exports, __webpack_require__) {
  20659. "use strict";
  20660. Object.defineProperty(exports, "__esModule", {
  20661. value: true
  20662. });
  20663. 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; };
  20664. 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; }; }();
  20665. var _react = __webpack_require__(25);
  20666. var _react2 = _interopRequireDefault(_react);
  20667. var _browserSymbol = __webpack_require__(81);
  20668. var _browserSymbol2 = _interopRequireDefault(_browserSymbol);
  20669. var _browserSprite = __webpack_require__(83);
  20670. var _browserSprite2 = _interopRequireDefault(_browserSprite);
  20671. var _icon = __webpack_require__(84);
  20672. var _icon2 = _interopRequireDefault(_icon);
  20673. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20674. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20675. 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; }
  20676. 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; }
  20677. var symbol = new _browserSymbol2.default({
  20678. "id": "twitter",
  20679. "use": "twitter-usage",
  20680. "viewBox": "0 0 273.4 222.2",
  20681. "content": "<symbol 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>"
  20682. });
  20683. _browserSprite2.default.add(symbol);
  20684. var TwitterSpriteSymbolComponent = function (_React$Component) {
  20685. _inherits(TwitterSpriteSymbolComponent, _React$Component);
  20686. function TwitterSpriteSymbolComponent() {
  20687. _classCallCheck(this, TwitterSpriteSymbolComponent);
  20688. return _possibleConstructorReturn(this, (TwitterSpriteSymbolComponent.__proto__ || Object.getPrototypeOf(TwitterSpriteSymbolComponent)).apply(this, arguments));
  20689. }
  20690. _createClass(TwitterSpriteSymbolComponent, [{
  20691. key: "render",
  20692. value: function render() {
  20693. return _react2.default.createElement(_icon2.default, _extends({ glyph: "twitter" }, this.props));
  20694. }
  20695. }]);
  20696. return TwitterSpriteSymbolComponent;
  20697. }(_react2.default.Component);
  20698. exports.default = TwitterSpriteSymbolComponent;
  20699. /***/ }),
  20700. /* 191 */
  20701. /***/ (function(module, exports, __webpack_require__) {
  20702. "use strict";
  20703. Object.defineProperty(exports, "__esModule", {
  20704. value: true
  20705. });
  20706. 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; };
  20707. 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; }; }();
  20708. var _react = __webpack_require__(25);
  20709. var _react2 = _interopRequireDefault(_react);
  20710. var _browserSymbol = __webpack_require__(81);
  20711. var _browserSymbol2 = _interopRequireDefault(_browserSymbol);
  20712. var _browserSprite = __webpack_require__(83);
  20713. var _browserSprite2 = _interopRequireDefault(_browserSprite);
  20714. var _icon = __webpack_require__(84);
  20715. var _icon2 = _interopRequireDefault(_icon);
  20716. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20717. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20718. 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; }
  20719. 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; }
  20720. var symbol = new _browserSymbol2.default({
  20721. "id": "wikipedia",
  20722. "use": "wikipedia-usage",
  20723. "viewBox": "-254 350 103 94",
  20724. "content": "<symbol 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>"
  20725. });
  20726. _browserSprite2.default.add(symbol);
  20727. var WikipediaSpriteSymbolComponent = function (_React$Component) {
  20728. _inherits(WikipediaSpriteSymbolComponent, _React$Component);
  20729. function WikipediaSpriteSymbolComponent() {
  20730. _classCallCheck(this, WikipediaSpriteSymbolComponent);
  20731. return _possibleConstructorReturn(this, (WikipediaSpriteSymbolComponent.__proto__ || Object.getPrototypeOf(WikipediaSpriteSymbolComponent)).apply(this, arguments));
  20732. }
  20733. _createClass(WikipediaSpriteSymbolComponent, [{
  20734. key: "render",
  20735. value: function render() {
  20736. return _react2.default.createElement(_icon2.default, _extends({ glyph: "wikipedia" }, this.props));
  20737. }
  20738. }]);
  20739. return WikipediaSpriteSymbolComponent;
  20740. }(_react2.default.Component);
  20741. exports.default = WikipediaSpriteSymbolComponent;
  20742. /***/ })
  20743. /******/ ]);